[openi18n-im:01379] Re: Help with defining a new module
Hideki Hiura <[email protected]> Mon, 16 May 2005 08:01:34 -0700 (PDT)
| Newsgroups | gmane.comp.internationalization.input-methods |
|---|---|
| Message-ID | <[email protected]> |
> From: Giuseppe Castagna <[email protected]> > Thank to all for your answers, and in particular to Hideki and Jens > since their suggestions worked, and now I can write \lambda and > yupppieee it prints λ (as the previous char shows as I did it in > Thunderbird by iiimf)! Wow, lovely! > Now I can start to complete the table for most Latex symbols but before > doing that I will abuse once more of your kindness and ask two more > questions: You are very welcome! > 1) How can I specify codepoints instead of character in the [ phrase ] > section? I was expecting that I had to write something like > \boxdot 0x22A1 > \vdash 0x22A2 > \dashv 0x22A3 > with some escape character. You don't have to use any escape characters :-). You can use them as same as regular text, like ordinary alphabet. Please switch to UNICODE-HEX input method to type them in directly. UNICODE-HEX entry usually appears in the last page of language selector, so after bringing language selecter with shift-cntl-SPACE, type PgDn a couple of times until you see UNICODE-HEX, then type in the number appears on the UNICODE-HEX entry. Now you get SQUARED DOT OPERATOR, RIGHT TACK, LEFT TACK(unicode names of \boxdot, \vdash, \dashv) nicely as regular text without any hassle by typing 22a1 22a2 22a3. > 2) How can obtain, if I can, subscripts and superscripts, that is when I > write ^a then a appears in a superscript. I really have not a cue about it. "Superscript a" is "COMBINING LATIN SMALL LETTER A" 0x0363, so you can type in 0363 in UNICODE-HEX input method to create an entry in your latex input method like above to produce it by typing ^a. # BTW, when it comes to rendering, it depends on the rendering engine # whether it actually perform combining, as Unicode does not have a code # point as precomposed character for particular combination with # Medieval superscript letter diacritics. I just type it in on gedit and # it show superscript a aside of previous character.:-). Hope it helps! -- hiura@{freestandards.org,OpenI18N.org,li18nux.org,unicode.org,sun.com} Chair, OpenI18N.org/The Free Standards Group http://www.OpenI18N.org Architect/Sr. Staff Engineer, Sun Microsystems, Inc, USA eFAX: 207-433-8964