Hi all, sorry if this is obvious and I have simply overlooked something. I need the character U0113 "emacron." It is not present in the font I use. In mkii, I could simply write \=e, and TeX would take care of building (faking) the character. When I try this in mkiv, I get an error: error: ...al/texlive/texmf-local/tex/context/base/font-otf.lua:3329: attempt to index field '?' (a nil value) I'm not complaining about this somewhat opaque error message, but I'm wondering how I can fake this glyph. There was an older discussion on the list which pointed me to char-utf.tex and \definecomposedutf, but the file says "This feature is obsolete." So what would be the canonical way to build such a character in mkiv? Thanks a lot, all best Thomas
Thomas A. Schmitz wrote:
Hi all,
sorry if this is obvious and I have simply overlooked something. I need the character U0113 "emacron." It is not present in the font I use. In mkii, I could simply write \=e, and TeX would take care of building (faking) the character. When I try this in mkiv, I get an error:
error: ...al/texlive/texmf-local/tex/context/base/font-otf.lua:3329: attempt to index field '?' (a nil value)
I'm not complaining about this somewhat opaque error message, but I'm wondering how I can fake this glyph. There was an older discussion on the list which pointed me to char-utf.tex and \definecomposedutf, but the file says "This feature is obsolete." So what would be the canonical way to build such a character in mkiv?
use the feature: combine=yes maybe you're lucky ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Thomas A. Schmitz wrote:
On May 19, 2008, at 8:04 PM, Hans Hagen wrote:
use the feature:
combine=yes
maybe you're lucky
:-) No such luck, unfortunately. I have now found a post by Taco on a similar problem and use this:
\catcode`\ē=\active \def ē{\buildtextaccent\textmacron e}
Works well!
hm, but that will do it for *all* fonts i have no plans yet to set up a mechanism for that; at some point we will have a callback for missing characters and then we can think of something more structural btw, i wonder why combine does not work here ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Thomas A. Schmitz wrote:
Hi all,
sorry if this is obvious and I have simply overlooked something. I need the character U0113 "emacron." It is not present in the font I use. In mkii, I could simply write \=e, and TeX would take care of building (faking) the character. When I try this in mkiv, I get an error:
error: ...al/texlive/texmf-local/tex/context/base/font-otf.lua:3329: attempt to index field '?' (a nil value)
while next and next.id == glyph and next.subtype<256 and next.font == currentfont do local cn = characters[next.char] if not cn or cn.description.class == 'mark' then prev = next next = next.next else should repair this
I'm not complaining about this somewhat opaque error message, but I'm
well, eventually all such errors should go away makes me wonder ... maybe in addition to combine i should have a simplify feature (so that a missing emacron at least gives an e) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Thomas A. Schmitz wrote: can you try compose=yes ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Arthur Reutenauer
-
Hans Hagen
-
Thomas A. Schmitz