Hi Hans,
On 2012-05-09 07:31, Meer, H. van der wrote:
> Indeed, the greek lowercase appears with \setupbodyfont[postscript].
> But not with the brandnew \setupbodyfont[lucidaot], which is
> quite a nuisance. Can it be remedied with a more generic mkiv
> solution?

if it’s generic enough for your purpose, you can take the glyphs
from the Computer Modern Unicode font instead. They can be an
appropriate match for LM.

········································································
\unprotect

\def\cmu_numerals#1#2{%
  \bgroup
  \setupbodyfont [computer-modern-unicode]
  \csname #1reeknumerals\endcsname{#2}%
  \egroup%
}
\defineconversion [cmu_greek] [\cmu_numerals{g}]
\defineconversion [cmu_Greek] [\cmu_numerals{G}]

\protect

\starttext

Before: τὸ γὰρ αὐτὸ νοεῖν ἐστίν τε καὶ εἶναι (no greek)

\startitemize[cmu_greek] \dorecurse{5}{\item foo} \stopitemize
\startitemize[cmu_Greek] \dorecurse{5}{\item bar} \stopitemize

After: τὸ γὰρ αὐτὸ νοεῖν ἐστίν τε καὶ εἶναι (no greek)

\stoptext
········································································

Nitpick: The macro names are a bit misleading here: these are not
in fact Greek numerals[1] but just the plain alphabetical
sequence of Greek letters, just like \characters for the Latin
alphabet. This sequence does not continue after it reaches ω. So
it might be more precise to call the macros \{g|G}reekcharacters.

[1] http://en.wikipedia.org/wiki/Greek_numerals

Regards
Philipp


> 
> Hans van der Meer
> 

> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Attachment: pgpNV9wFc6jn2.pgp
Description: PGP signature

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to