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 14:16:20 +0200 [thread overview]
Message-ID: <20120509121620.GC18756@phlegethon> (raw)
In-Reply-To: <CALBOmsa1=kJTQ1VsvOqVBEmQm+sxZp60mPCREmD=DE0QLPgv5g@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3114 bytes --]
On 2012-05-09 13:50, Mojca Miklavec wrote:
> On Wed, May 9, 2012 at 12:39 PM, Philipp Gesang wrote:
> > On 2012-05-09 12:25, Mojca Miklavec wrote:
> >
> >> If he wants to use Lucida, this would look bad, but the Lucida font
> >> does have greek glyphs, however they are in the "math range".
> >
> > With unicode I thought this was an archaism.
>
> I'm sorry, I'm telling you nonsense. There are no Greek letters in
> LucidaBrightOT, but they are present in LucidaBrightMathOT. The italic
> version starts at 1D6FC and the regural one is in the "normal" Greek
> range.
>
> >> This is
> >> the case for LM, Lucida and probably a few more fonts. (Another option
> >> would be to define the counter to run through greek letters in math
> >> font.)
> >
> > Or to leave the counter untouched and wrap it into a substitution
> > function -- is there a chance you (or anyone else) could supply
> > me with a mapping of the “real” Greek code point to the “math
> > Greek” one?
>
> See math-map.lua. If you need any help or explanation, please ask. I
> believe that the following part might be relevant (but only if you
> need italic):
>
> lcgreek = {
> [0x03B1]=0x1D6FC, [0x03B2]=0x1D6FD, [0x03B3]=0x1D6FE,
> [0x03B4]=0x1D6FF, [0x03B5]=0x1D700,
> [0x03B6]=0x1D701, [0x03B7]=0x1D702, [0x03B8]=0x1D703,
> [0x03B9]=0x1D704, [0x03BA]=0x1D705,
> [0x03BB]=0x1D706, [0x03BC]=0x1D707, [0x03BD]=0x1D708,
> [0x03BE]=0x1D709, [0x03BF]=0x1D70A,
> [0x03C0]=0x1D70B, [0x03C1]=0x1D70C, [0x03C2]=0x1D70D,
> [0x03C3]=0x1D70E, [0x03C4]=0x1D70F,
> [0x03C5]=0x1D710, [0x03C6]=0x1D711, [0x03C7]=0x1D712,
> [0x03C8]=0x1D713, [0x03C9]=0x1D714,
> [0x03D1]=0x1D717, [0x03D5]=0x1D719, [0x03D6]=0x1D71B,
> [0x03F0]=0x1D718, [0x03F1]=0x1D71A,
> [0x03F4]=0x1D6F3, [0x03F5]=0x1D716,
> },
Yeah, appears to be the correct range. Couldn’t test with Lucida,
though.
> For regular variant of Lucida it should be enough to use Math font
> instead of the normal one, but I didn't test or write any code for it.
> For LM you would have to use the italic version since upright (without
> resorting to cm-unicode) looks horrible anyway.
But if there’s a math font, I’d go with the example that Wolfgang
posted; alternatively just wrap the converter into \mathematics:
········································································
\unprotect
\def\math_greek_characters#1{\mathematics{\greeknumerals{#1}}}
\defineconversion [mathgreek] [\math_greek_characters]
\protect
········································································
etc. It will depend on your choice of math font whether you get
italics or upright glyphs.
Philipp
--
() 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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-05-09 12:16 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
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 [this message]
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=20120509121620.GC18756@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).