ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XeTeX "tex-text" mapping problem
@ 2007-02-12  9:46 Oliver Buerschaper
  2007-02-12 11:12 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Buerschaper @ 2007-02-12  9:46 UTC (permalink / raw)
  To: mailing ConTeXt users list for

[-- Attachment #1: Type: text/plain, Size: 630 bytes --]

Hi all,

there seems to be a problem with the XeTeX engine and the  
"mapping:tex-text" feature for OpenType fonts. Try this:

---

\usetypescriptfile[type-minion]
\usetypescript[minion][uc]
\setupbodyfont[minion,13pt]

\starttext
There is --- without any doubt --- a tiny problem.
\stoptext

---

together with the attached typescript file. Unfortunately, "---" is  
not replaced by an em dash :-( Substituting works flawlessly for  
plain XeTeX examples. Of course, replacing "---" with the proper  
Unicode em dash in the above source solves the problem (by avoiding it).

Any hints as to what I've done wrong?

Best,
Oliver



[-- Attachment #2: type-minion.tex --]
[-- Type: application/octet-stream, Size: 1148 bytes --]

% Font-specific typescripts [family][typescript name][encoding]

\starttypescript[serif][minion][uc]
	\definefontsynonym[MinionRegular]   ["Minion Pro:mapping=tex-text;+onum"][encoding=uc]
	\definefontsynonym[MinionItalic]    ["Minion Pro/I:mapping=tex-text"]    [encoding=uc]
	\definefontsynonym[MinionCaps]      ["Minion Pro:mapping=tex-text;+smcp"][encoding=uc]
	\definefontsynonym[MinionBold]      ["Minion Pro/B:mapping=tex-text"]    [encoding=uc]
	\definefontsynonym[MinionBoldItalic]["Minion Pro/BI:mapping=tex-text"]   [encoding=uc]
\stoptypescript


% Map from font-specific names to ConTeXt-wide names

\starttypescript[serif][minion][name]
	\definefontsynonym[Serif]           [MinionRegular]
	\definefontsynonym[SerifItalic]     [MinionItalic]
	\definefontsynonym[SerifSlanted]    [MinionItalic]
	\definefontsynonym[SerifCaps]       [MinionCaps]
	\definefontsynonym[SerifBold]       [MinionBold]
	\definefontsynonym[SerifBoldItalic] [MinionBoldItalic]
	\definefontsynonym[SerifBoldSlanted][MinionBoldItalic]
\stoptypescript


\starttypescript[minion][uc]
	\definetypeface[minion][rm][serif][minion][default][encoding=uc]
\stoptypescript

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-12 13:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12  9:46 XeTeX "tex-text" mapping problem Oliver Buerschaper
2007-02-12 11:12 ` Hans Hagen
2007-02-12 13:14   ` Mojca Miklavec
2007-02-12 13:28   ` Oliver Buerschaper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).