ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Philipp Gesang <gesang@stud.uni-heidelberg.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: greek items broken:
Date: Wed, 9 May 2012 11:54:16 +0200	[thread overview]
Message-ID: <20120509095416.GA18756@phlegethon> (raw)
In-Reply-To: <3FEC6871-2CE2-49B4-8206-86D09BBC45D6@uva.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2395 bytes --]

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 #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

  parent reply	other threads:[~2012-05-09  9:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08 17:32 Meer, H. van der
2012-05-08 20:25 ` Wolfgang Schuster
2012-05-09  7:31   ` Meer, H. van der
2012-05-09  9:15     ` Hans Hagen
2012-05-09  9:50       ` Meer, H. van der
2012-05-09 10:35         ` Wolfgang Schuster
2012-05-09  9:54     ` Philipp Gesang [this message]
2012-05-09 10:25       ` Mojca Miklavec
2012-05-09 10:39         ` Philipp Gesang
2012-05-09 11:50           ` Mojca Miklavec
2012-05-09 12:16             ` Philipp Gesang
2012-05-09 15:14             ` Mojca Miklavec
2012-05-09 15:56               ` Khaled Hosny
2012-05-09 10:39       ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120509095416.GA18756@phlegethon \
    --to=gesang@stud.uni-heidelberg.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).