From owner-freebsd-questions@FreeBSD.ORG Sat Jun 7 09:28:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4957C1065676 for ; Sat, 7 Jun 2008 09:28:46 +0000 (UTC) (envelope-from 7yuny1@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.188]) by mx1.freebsd.org (Postfix) with ESMTP id 9CC0D8FC18 for ; Sat, 7 Jun 2008 09:28:45 +0000 (UTC) (envelope-from 7yuny1@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so424111tid.3 for ; Sat, 07 Jun 2008 02:28:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=i553BECDikiTmfwCNngGtmsWZE1g1IcO1+kTOraYHfU=; b=NB4yrsfVioYMv7zGSvKkOSPt187MzNYFadbP+ay4TWOl6jgZDT83BH+tEuR1VzB3EO /XkMq3ik7KboaloNOYzkV3SZ0weU8FyI1NcRLWoRqnwWtvO5h6dkxI9R11AlCNvm7znz HXsngnt7EFSiHz08xbeIkyBs4WwgM3REcfmFA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=PJUIqrd7vDP/ol+qhbYCL09jxt0Q5P23AgteHKnubbM4bNrVEV2lrDVYbzajWLSfOE 7cCkv/rYAkVzWkOJsc4MWJ/7dG6cXU6H/GbeLZBbVIsE+kcv+OPLzZNoi4wKr3wg1t/h xZRPFeLPWbzIgL8ir/WDsRIOKb8z2mWzH3WxI= Received: by 10.110.92.8 with SMTP id p8mr240736tib.9.1212830923770; Sat, 07 Jun 2008 02:28:43 -0700 (PDT) Received: by 10.110.20.20 with HTTP; Sat, 7 Jun 2008 02:28:43 -0700 (PDT) Message-ID: <81a9e3840806070228q440af610g94cec5599752048c@mail.gmail.com> Date: Sat, 7 Jun 2008 17:28:43 +0800 From: "Jyun-Yi Liou" <7yuny1@gmail.com> To: yuri@rawbw.com In-Reply-To: <484A4FDC.80308@rawbw.com> MIME-Version: 1.0 References: <48498735.6030800@rawbw.com> <81a9e3840806070109g5605ca5ag52382cf100b454e6@mail.gmail.com> <484A4FDC.80308@rawbw.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Input method doesn't work with QT applications. Anyone able to type Chinese into QT apps? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jun 2008 09:28:46 -0000 Hi Yuri, try this below, export LANG=zh_TW.UTF-8 export LC_CTYPE=zh_TW.UTF-8 export LC_MESSAGES en_US.ISO8859-1 export LC_TIME en_US.ISO8859-1 this may let your gcin working and keep your system speak in english further more, you may want to read this doc http://chinsan2.twbbs.org/zh-tut/ Regards, jyuny1 2008/6/7 Yuri : > Hi Jyun-Yi, > > I am using bash. > And XMODIFIERS, GTK_IM_MODULE and QT_IM_MODULE variables are all set to the > values you wrote. > But in QT applications the prompt window doesn't pop up as in GTK ones. > > I am not setting any of LANG/LC_ALL/LC_CTYPE to Chinese. > This may be related to the problem. > When I set all of those to zh_TW.UTF-8 gcin begins to pop up the prompt > window from QT applications just like from GTK. But after selection the word > doesn't appear 9in the editbox. > But I don't want to use Chinese locale since this makes all applications > speak Chinese. And I only want to be able to type Chinese words. > > Do you know how to achieve this? > > Yuri > > > Jyun-Yi Liou wrote: > >> Hi Yuri, >> First of all, You do not specify what shell you are using. TCSH or BASH? >> Second, waht DE you using too? >> >> for TCSH, it should be this in your ~/.xinitrc >> setenv XMODIFIERS='@im=gcin' >> setenv GTK_IM_MODULE=gcin >> setenv QT_IM_MODULE=gcin >> >> I guess you are using TCSH not BASH. >> gcin can let you type chinese in GTK apps without set GTK_IM_MODULE >> >> You can check the SHELL VARIABLE that is set or not after logged-in X. >> >> Regards, >> jyuny1 >> >> >