[XeTeX] fontspec and pinyin.sty conflict

Andy Lin kiryen at gmail.com
Thu Jun 7 10:01:03 CEST 2012


I got bored so I made a teckit mapping anyway. (The solution we
reached off-list was to just use the US Extended keyboard already
present on Mac OSX for native unicode entry since backwards
compatibility was not a concern.)

It'll do placement according to what I understand from reading wikipedia:
1. Start by placing tone marker on final vowel.
2. Move tone marker to non-final a, e, or o.
3. Tone 0/5 is indicated by placing a dot in front of the syllable
(possibly buggy)

Use it as you would any other teckit mapping. It takes input like:
ni3chi1fan4le3ma5
and outputs:
nǐchīfànlě·ma


Hope someone finds it useful. If not, at least it was an interesting exercise.

-Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pinyin.map
Type: application/octet-stream
Size: 4150 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20120607/5a71e29d/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pinyin.tec
Type: application/octet-stream
Size: 1924 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20120607/5a71e29d/attachment-0003.obj>


More information about the XeTeX mailing list