ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Fallback for mathematical lowercase h and hyphen
@ 2014-01-09 22:00 Joshua Krämer
  0 siblings, 0 replies; only message in thread
From: Joshua Krämer @ 2014-01-09 22:00 UTC (permalink / raw)
  To: ntg-context-wvrSQK3plZs

Dear list!

(1) With the following example, only manually inserted hyphens are
replaced. How can I replace the hyphen automatically inserted at
linebreaks?

\definefontfeature[extended][default][extend=3]
\definefallbackfamily[mainface][serif][TeX Gyre Termes]
[range={0x0002d}, features=extended]
\definefontfamily[mainface][serif][Latin Modern Roman]
\setupbodyfont[mainface, 30pt]
\starttext
line-break \dorecurse{100}{linebreak }
\stoptext

I have added the feature "extended" only for better distinction.


(2) In the following example, the lowercase h is not replaced. I think
this may be because it is separately encoded as "Planck
constant" (U+210E) in math fonts.

\definefontfamily[mainface][serif][Latin Modern Roman]
\definefallbackfamily[mainface][math][Latin Modern Roman]
[preset=math:lowercaseitalic]
\definefontfamily[mainface][math][TeX Gyre Termes Math]
\setupbodyfont[mainface, 30pt]
\starttext
$ abch $
\stoptext

Kind regards,
Joshua Krämer


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-09 22:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-09 22:00 Fallback for mathematical lowercase h and hyphen Joshua Krämer

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