From owner-freebsd-questions@FreeBSD.ORG Sat Jun 7 09:07:42 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 3533F1065674 for ; Sat, 7 Jun 2008 09:07:42 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell.rawbw.com (shell.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 039FE8FC0A for ; Sat, 7 Jun 2008 09:07:41 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from eagle.syrec.org (ip224.carlyle.sfo.ygnition.net [24.219.144.224]) (authenticated bits=0) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id m5797fnJ036844; Sat, 7 Jun 2008 02:07:41 -0700 (PDT) Message-ID: <484A4FDC.80308@rawbw.com> Date: Sat, 07 Jun 2008 02:07:40 -0700 From: Yuri User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: Jyun-Yi Liou <7yuny1@gmail.com> References: <48498735.6030800@rawbw.com> <81a9e3840806070109g5605ca5ag52382cf100b454e6@mail.gmail.com> In-Reply-To: <81a9e3840806070109g5605ca5ag52382cf100b454e6@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Reply-To: yuri@rawbw.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jun 2008 09:07:42 -0000 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 >