help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entering UTF-8 Characters


From: kokrhac - Ales MATAS
Subject: Re: Entering UTF-8 Characters
Date: Tue, 20 Dec 2005 16:13:28 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414

I use two ways imultaneous


- ucs-insert function (I didn't know mention shortcut, thanks ;] )

- xmlunicode package and its unicode-character-insert function (called with C-u prefix - then is unconditionaly inserted the unicode char and 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 code or at least the documentation of the functions you can find it very useful

- another alternative is nxml. I contain command nxml-insert-named-char (C-c C-u). It has same functionality as unicode-character-insert. So if you are editing xml(-like) file you needn't to use xmlunicode package.

        Ales Matas

Peter Dyballa wrote:


Am 20.12.2005 um 01:11 schrieb Cameron Desautels:

My ultimate goal is to type "smart quotes" into UTF-8 files.


Three choices:

    • octal a in \20030 ... \20037 = ‘ ’ ‚ ‛ “ ” „ ‟ (end with non-digit)
    • ucs input method C-x RET C-\ RET u201c
• bind a key to insert these by copying from my eMail or utf8.txt in kermit distribution

I think the first two methods won't work in GNU Emacs 21.4. This Emacs too gives on C-u C-x = not the correct answers. Whether the last method works I can't tell, I prefer GNU Emacs 23 because is has Unicode support that you can actually use (at almost 100% of the time, printing only works via htmlizing the buffer and then printing out of an Internet browser). Here is GNU Emacs 23's description of a "smart" quote:

        character: „ (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)
-B&H-LucidaTypewriter-Medium-R-Normal-Sans-10-100-75-75-M-60-ISO10646-1 (0x201E)

Character code properties are not shown: [customize what to show]

There are text properties here:
  fontified            t


--
Greetings

  Pete

"A smart quote proves nothing."
     --Pete (19??-20??)



_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs







reply via email to

[Prev in Thread] Current Thread [Next in Thread]