On 10.04.14 16:53, Philip Taylor wrote:
Further to this thread, in a document on which I am currently
working I have to write :

\XeTeXprotrudechars = 2
\rpcode \fd /hyphen = 250
\rpcode \fd /period = 150

I would like to write :

\XeTeXprotrudechars = 2
\rpcode \fd `\- = 250
\rpcode \fd `\. = 150

Simple (ie. non-prefixed) numbers designate font-specific glyph positions, while you want the Unicode char code.

or at worst :

\XeTeXprotrudechars = 2
\rpcode \fd \TeXtoUnicode `\- = 250
\rpcode \fd \TeXtoUnicode `\. = 150

Clearly there /is/ a reason why the first was not /
cannot be implemented, but (a) what is that reason,
and (b) does \TeXtoUnicode already exist,

Yes, it exists: "U" (as explained here: http://tug.org/pipermail/xetex/2010-May/016531.html). So:

\XeTeXprotrudechars = 2
\rpcode \fd U`\- = 250
\rpcode \fd U`\. = 150

should do what you want.

Best,
--
 Robert




--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex

Reply via email to