ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XeTeX and built-in glyph generation
@ 2006-11-02 10:04 Philipp Reichmuth
  2006-11-02 10:48 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Philipp Reichmuth @ 2006-11-02 10:04 UTC (permalink / raw)


Hi,

I have a question regarding ConTeXt, XeTeX and the use of Unicode fonts 
with diacritic characters which I use quite a lot.  (Note also that I'm 
a novice user.)  Consider the following extreme example (using Gentium 
<http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=gentium>):

-------------------
\definetypeface[lucida][rm][Xserif][Lucida Bright]
\definetypeface[gentium][rm][Xserif][Gentium]
\setupbodyfont[gentium]

\starttext
Ṯḥíş ıš ā pìėçẹ ȯf ṭēxt.
\stoptext
-------------------

If you typeset this with 'texexec --xtx', you get very different results 
with Gentium vis-a-vis Lucida because of the different glyph repertoires 
of both fonts.  This is a bit unsatisfactory because ConTeXt has all the 
logic already in place to construct most of these these from base 
characters plus accents where needed.  Of course I can go through my 
Unicode text manually and change all the missing characters to something 
like \={e}, but that is not a good solution either; having to sift 
through your entire document because your publisher demands a different 
font makes you feel more than a bit stupid :)

Is there a way to tell ConTeXt what Unicode characters are available in 
a font and which ones it has to build using TeX's accent functions?  I 
guess in the above example it would be difficult because no regime gets 
loaded at all.  What would be ideal in my case would be a configurable 
UTF-8 regime where I could specify the following on a per-typeface basis:

- character[ range]s which get passed directly to the underlying engine 
(useful mainly with XeTeX and possibly with Aleph/Omega)
- character[ range]s which get constructed from accents
- character[ range]s which get used from a different typescript; for 
example if I have passages or quotations in a script which isn't 
available in my typescript, it would be nice to say that "all 
IPA/Greek/Old Church Slavonic" should come from a substitution 
typescript where these scripts are available and look good.

Is such a thing possible?

Philipp

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

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

end of thread, other threads:[~2006-11-02 11:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-02 10:04 XeTeX and built-in glyph generation Philipp Reichmuth
2006-11-02 10:48 ` Hans Hagen
2006-11-02 11:15   ` Philipp Reichmuth
2006-11-02 11:50     ` Philipp Reichmuth
2006-11-02 11:57     ` Hans Hagen

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).