From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kokrhac - Ales MATAS Newsgroups: gmane.emacs.help Subject: Re: Entering UTF-8 Characters Date: Tue, 20 Dec 2005 16:13:28 +0100 Message-ID: <43A81F98.20402@atlas.cz> References: <20051220001159.GD29667@setzer.hsd1.tx.comcast.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1135102009 6971 80.91.229.2 (20 Dec 2005 18:06:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2005 18:06:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 20 19:06:46 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EolsA-0002xs-Pk for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2005 19:06:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eolt4-000563-VI for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2005 13:06:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EojCl-00036Q-CV for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 10:15:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EojCf-00034i-Mu for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 10:15:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EojCe-00033y-PI for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 10:15:01 -0500 Original-Received: from [147.228.57.20] (helo=axor.zcu.cz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EojFn-0006te-3m for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 10:18:15 -0500 Original-Received: from [147.228.44.195] (ul609p44-kma.fav.zcu.cz [147.228.44.195]) by axor.zcu.cz (8.11.7/8.11.7/Wim) with ESMTP id jBKFDZT23098 for ; Tue, 20 Dec 2005 16:13:35 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-MIME-Autoconverted: from 8bit to quoted-printable by axor.zcu.cz id jBKFDZT23098 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32109 Archived-At: I use two ways imultaneous - ucs-insert function (I didn't know mention shortcut, thanks ;] ) - xmlunicode package and its unicode-character-insert function (called=20 with C-u prefix - then is unconditionaly inserted the unicode char and=20 not xml &#....; like notation) You could find it at http://nwalsh.com/emacs/xmlchars/ It is not very well documented (I think), but if you watch directly the=20 code or at least the documentation of the functions you can find it very=20 useful - another alternative is nxml. I contain command nxml-insert-named-char=20 (C-c C-u). It has same functionality as unicode-character-insert. So if=20 you are editing xml(-like) file you needn't to use xmlunicode package. Ales Matas Peter Dyballa wrote: >=20 > Am 20.12.2005 um 01:11 schrieb Cameron Desautels: >=20 >> My ultimate goal is to type "smart quotes" into UTF-8 files. >=20 >=20 > Three choices: >=20 > =E2=80=A2 octal a in \20030 ... \20037 =3D =E2=80=98 =E2=80=99 =E2=80= =9A =E2=80=9B =E2=80=9C =E2=80=9D =E2=80=9E =E2=80=9F (end with non-digit= ) > =E2=80=A2 ucs input method C-x RET C-\ RET u201c > =E2=80=A2 bind a key to insert these by copying from my eMail or ut= f8.txt in=20 > kermit distribution >=20 > I think the first two methods won't work in GNU Emacs 21.4. This Emacs=20 > too gives on C-u C-x =3D not the correct answers. Whether the last meth= od=20 > works I can't tell, I prefer GNU Emacs 23 because is has Unicode suppor= t=20 > that you can actually use (at almost 100% of the time, printing only=20 > works via htmlizing the buffer and then printing out of an Internet=20 > browser). Here is GNU Emacs 23's description of a "smart" quote: >=20 > character: =E2=80=9E (020036, 8222, 0x201e) > preferred charset: [iso-8859-13] (ISO/IEC 8859/13) > code point: [0xA5] > syntax: . which means: punctuation > buffer code: 0xE2 0x80 0x9E > file code: 0xE2 0x80 0x9E (encoded by coding system utf-8) > display: by this font (glyph code) > =20 > -B&H-LucidaTypewriter-Medium-R-Normal-Sans-10-100-75-75-M-60-ISO10646-1= =20 > (0x201E) >=20 > Character code properties are not shown: [customize what to show] >=20 > There are text properties here: > fontified t >=20 >=20 > --=20 > Greetings >=20 > Pete >=20 > "A smart quote proves nothing." > --Pete (19??-20??) >=20 >=20 >=20 > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >=20 >=20 >=20