On 4/17/2013 4:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
On Wed, 17 Apr 2013 07:56:41 -0600, Hans Hagen
wrote: On 4/17/2013 3:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
Hi Hans,
These commands are good to know!
On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen
wrote: \narrownobreakspace
If a font does not have U+202F defined, what's the best way to redefine this to, say, one half of the current font's regular space U+0020 (with no shrinking or stretching of course).
it has nothing to do with fonts ... they are not characters bound to glyphs .. independent so to say ... dealt with at another level
In spac-chr.mkiv there is
Line 73: \edef\narrownobreakspace {\normalUchar"202F}
So in the preamble we have to do something like (spac-hor.mkiv, line 905)
\edef\narrownobreakspace{\penalty\plustenthousand\kern .7ex}
why redefine it? just keep it as is ... such an utf char automagically in mkiv becomes a combination of kern / skip / penalty ... if you start redefining yourself it also gets out of control when it's passed around don't worry about how that happens (just assume the abstraction is taken care of)
Then I can say, e.g.
\defineactivecharater + {\narrownobreakspace}
و+الباب
(untested, but on my list)
But per the current definition I should be able to define U+"202F as, e.g., .7ex in the font and get the same effect, right?
why make a character active and let it expand to itself as letter? normally the font handler never sees that character as there is no character -> glyph issue involved just insert the utf character as-is Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------