Hi, often PS and TTF fonts include some common symbols like "registered", "trademark"... Currently i try to build an interface to access them independent from the current font encoding. The following test file (using the attached typescripts): %%% % output=pdftex interface=en \enableregime[il1] \mainlanguage[de] \usetypescriptfile[cts-at-test] \usetypescriptfile[cts-textsymbols] \usetypescript[textsymbols][all,ec,8r] \definetypeface[BodyFontT][rm][serif][AdobeTimes][default][encoding=ec] \definetypeface[BodyFontR][rm][serif][AdobeTimes][default][encoding=8r] \setupbodyfont[BodyFontT,rm,10pt] \starttext Das ist das Copyright-Symbol: \symbol[textcopyright]. \stoptext %%% gives the error: kpathsea: Running mktextfm TextSymbols /opt/TeXLive/texmf/web2c/mktexnam: Could not map source abbreviation T for TextSymbols. /opt/TeXLive/texmf/web2c/mktexnam: Need to update /opt/TeXLive/texmf/fontname/special.map? mktextfm: Running mf \mode:=ljfour; mag:=1; nonstopmode; input TextSymbols This is METAFONT, Version 2.7182 (Web2C 7.3.7x) kpathsea: Running mktexmf TextSymbols ! I can't find file `TextSymbols'. Why is there a problem? Why tries \getglyph{TextSymbols}{...} the font 'TextSymbols' directly instead of going to 'TextSymbolsSerif'. The symbols are defined according to the setup of the Adobe Euro fonts (symb-eur.tex). Thus it should work. Jens
Jens-Uwe Morawski
The following test file (using the attached typescripts): %%% % output=pdftex interface=en \enableregime[il1] \mainlanguage[de]
\usetypescriptfile[cts-at-test] \usetypescriptfile[cts-textsymbols]
\usetypescript[serif][AdobeTimes][all] [...] but this will not suffice, since \definesymbol[textdegree] [{\symbol[\currentencoding-textdegree]}] will expand the \currentencoding before it can be used. The symbol will print "default-textdegree". I don't know how to save the cs \currentencoding. Patrick
participants (2)
-
Jens-Uwe Morawski
-
Patrick Gundlach