From: "luigi scarso" <luigi.scarso@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Missing character in texgyreheros
Date: Tue, 29 Apr 2008 15:10:51 +0200 [thread overview]
Message-ID: <fe8d59da0804290610v47f8a2afx55ae4b11aca2e756@mail.gmail.com> (raw)
In-Reply-To: <fe8d59da0804280900g3961f742m6e2ee0a85125602a@mail.gmail.com>
2008/4/28 luigi scarso <luigi.scarso@gmail.com>:
> Sorry for the noise,
> but i'm in the middle between an old
> context mkii (2005) and mkiv stylesheet for a greek utf-encoded file
> and i'm a bit confused.
>
> While using Heros font, I have:
> Missing character: There is no ώ (974) in font
> /home/usr7/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf!
>
> But in enco-def.tex there is
> \definecharacter greekomegatonos {'w}
>
> so I believe that it's possible to replace missing glyph with {'w}
> Maybe some switch ?
>
> I'm using
> \usetypescript[postscript]
> \setupbodyfont[postscript,10pt,ss]
>
This works,
but nothing else.
\usetypescript[postscript]
\setupbodyfont[postscript,10pt,ss]
\startluacode
function add_ties (line)
line = line:gsub('ά','\\buildtextaccent\\textacute\\greekalpha')
line = line:gsub('έ','\\buildtextaccent\\textacute\\greekepsilon')
line = line:gsub('ή','\\buildtextaccent\\textacute\\greeketa')
line = line:gsub('ί','\\buildtextaccent\\textacute\\greekiota')
line = line:gsub('ό','\\buildtextaccent\\textacute\\greekomicron')
line = line:gsub('ύ','\\buildtextaccent\\textacute\\greekupsilon')
line = line:gsub('ώ','\\buildtextaccent\\textacute\\greekomega')
line = line:gsub('Ό',"'\\greekOmicron")
line = line:gsub("Ά","'\\greekAlpha")
line = line:gsub("Έ","'\\greekEpsilon")
line = line:gsub("Ή","'\\greekEta")
line = line:gsub("Ί","'\\greekIota")
line = line:gsub("ϊ","\\buildtextaccent\\textdiaeresis\\greekiota")
line = line:gsub("Ύ","'\\greekUpsilon")
line = line:gsub("Ώ","'\\greekOmega")
return line
end
\stopluacode
\setupcolors[state=start]
\def\startfiltered{\ctxlua {callback.register('process_input_buffer',
add_ties)}}
\def\stopfiltered{\ctxlua {callback.register('process_input_buffer', nil)}}
\language[gr]
\starttext
\startfiltered
%% see
%% http://www.lorem-ipsum.info/generator3
\input Greek-Lipsum.txt
\stopfiltered
\stoptext
--
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2008-04-29 13:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-28 16:00 luigi scarso
2008-04-29 13:10 ` luigi scarso [this message]
2008-04-29 13:52 ` Taco Hoekwater
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=fe8d59da0804290610v47f8a2afx55ae4b11aca2e756@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--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).