From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michel Chassey Newsgroups: gmane.emacs.help Subject: Re: accented letters ( typing in ) Date: Fri, 17 Jan 2014 17:30:48 -0800 (PST) Message-ID: References: <1389982848501-310678.post@n5.nabble.com> <20140117230736.GA30062@hysteria.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1390008666 12685 80.91.229.3 (18 Jan 2014 01:31:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jan 2014 01:31:06 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 18 02:31:11 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W4Kkh-00034M-BL for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Jan 2014 02:31:11 +0100 Original-Received: from localhost ([::1]:40870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4Kkg-0003pf-OB for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 20:31:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4KkQ-0003oj-PX for Help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 20:31:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4KkL-0005Dm-LY for Help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 20:30:54 -0500 Original-Received: from sam.nabble.com ([216.139.236.26]:39714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4KkL-0005Db-C5 for Help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 20:30:49 -0500 Original-Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1W4KkK-0000Lz-D3 for Help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 17:30:48 -0800 In-Reply-To: <20140117230736.GA30062@hysteria.proulx.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.139.236.26 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95468 Archived-At: Thanks for all your suggestions. To help clarify my set-up, I'm running emacs from the GUI and have enjoyed it since ubuntu 9 first installed it. Running emacs from the ctrl + meta + F1 terminal produces weird chars when I try accented chars. I'm still a noob when setting up environment variables . Ubuntu keyboard system have not changed but maybe as one poster suggests it is a bug. The only thing that works right now is the CTRL + 8 compose method. I have tried changing input methods but no cigar . One question an OP has asked is how the apostrophe works and it gets typed in the first time. Another poster suggested a newer version of emacs and I will try that. Hope you can help on this Michel Chassey 2014/1/17 Bob Proulx [via Emacs] > Michel Chassey wrote: > > Emacs displays all accented letters flawlessly from my files but I > cannot > > type in these accented letters. > > =C3=A9 can by typed in but none the others like =C3=A8 =C3=AA =C3=A0 = =C3=A2 . I can type these > > letters anywhere ( as you can see ) but not in emacs. > > My OS is Ubuntu 13.10 ( just upgraded ) > > Are you running Emacs in X11 or from a terminal? If you can type in > those characters anywhere then it should work within emacs too. It > makes no sense to me. Therefore I am going to ignore that and simply > give generic keyboard configuration advice as if I had not read it. > Perhaps some of it might even be useful. > > You can use C-x 8 in Emacs as the compose key for most common > sequences. For example C-x 8 ` e for =C3=A8 and so forth. See the emacs > "22.18 Unibyte Editing Mode" section of the manual. That can be used > even on keyboards that are not configured for the compose key. (Such > as if logged in remotely from a foreign keyboard.) However not all > compose key sequences are available within emacs. Only the compose > key sequences for the latin1 character set. Use C-x 8 C-h to list out > a full list of C-x 8 translations available. > > But that only works within emacs. Therefore I think you will be > better off if you configure your system to input those characters at > the system level. Then it will work correctly everywhere. So instead > of learning an emacs specific way I would set up a global system way. > > On Debian (and I assume on Ubuntu which is a fork) you can configure > your keyboard to create a compose key. > > sudo dpkg-reconfigure keyboard-configuration > > That asks what to set up for AltGr and Compose. I select Right Alt > for AltGR and Menu for Compose. (I also select the X terminate key of > control-alt-backspace.) That resulted in this configuration in the > /etc/default/keyboard file. > > XKBOPTIONS=3D"lv3:ralt_switch,compose:menu,terminate:ctrl_alt_bksp" > > That will take effect the next time X is started. But you can > dynamically change the running session by calling the setxkbmap > command to set it for the running session. > > setxkbmap -model pc104 -layout us -option compose:menu -option > terminate:ctrl_alt_bksp > > Select the layout appropriate to your system. The above is for my US > keyboard. That sets up the Compose key. (As well as the X terminate > key. You might not want that. The key sequence kills the current X > session and logs you out immediately.) At that point you should be > able to use the right menu key as the compose key. > > The choice of Right Alt or Right Control might be most general as all > PC keyboards have those keys. My laptop does not have a right logo > key. It does have a menu key. Other keyboards have a Right Logo key. > People must simply pick one of the several possibilities and there is > no single right answer. Here are some possible selections that you > might select one of them and try. > > setxkbmap -model pc104 -layout us -option compose:rctrl > setxkbmap -model pc104 -layout us -option compose:menu > setxkbmap -model pc104 -layout us -option compose:rwin > > To activate an AltGr key (another way to create special characters) > use the -variant altgr-intl option. Here is another example. > > setxkbmap -model pc104 -layout us -variant altgr-intl -option > compose:rctrl -option terminate:ctrl_alt_bksp > > With that you get both the Compose key and the AltGr key. Both work. > You can either build the characters with Compose ' e for =C3=A9 or can us= e > the AltGr e for =C3=A9. Personally I prefer the compose key method over > the AltGr method. It works better with my brain. Select the one you > prefer. > > This following file documents the compose key sequences. Browse that > file to determine what sequence you need for the characters you will > be typing in. > > /usr/share/X11/locale/en_US.UTF-8/Compose > > That lists many useful combinations. Searching for a desired > character cut and pasted into search yields the input keys needed to > produce it. Very useful. > > Here are some common compose key sequences. Type the keys one after > the other. Tap, tap, tap. Do not hold down the compose key as it is > not a shift key and not a control key. Here are just a few of the > possibilities. > > =C3=A2 =3D Compose ^ a > =C3=85 =3D Compose o A > =C3=A8 =3D Compose ` e > =C3=BC =3D Compose " u > > Since you are using Ubuntu and the system input method is system > specific you might want to ask this question on the ubuntu-user > mailing list. Or if you decide something is a bug you might want to > submit a bug into the Ubuntu bug tracker. Because other system will > configure this in their own unique ways. > > Hope that helps, > Bob > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://emacs.1067599.n5.nabble.com/accented-letters-typing-in-tp310678p31= 0696.html > To unsubscribe from accented letters ( typing in ), click here > . > NAML > -- View this message in context: http://emacs.1067599.n5.nabble.com/accented-l= etters-typing-in-tp310678p310703.html Sent from the Emacs - Help mailing list archive at Nabble.com.