From: "luigi scarso" <luigi.scarso@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Missing greeks characters in texgyreheros
Date: Wed, 30 Apr 2008 11:37:11 +0200 [thread overview]
Message-ID: <fe8d59da0804300237i6e79c04eie20e26a127fc8feb@mail.gmail.com> (raw)
See also Missing character in texgyreheros
\startluacode
function greek_sub(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
\def\startfiltered{\ctxlua {callback.register('process_input_buffer',
greek_sub)}}
Of course, incomplete.
2008/4/29 Taco Hoekwater <taco@elvenkind.com>:
> This should also work (but untested)
>
> \catcode`\ώ=\active \def ώ{\buildtextaccent\textacute\greekomega}
I will give it a try
I'm not searching for the perfect way, just a way to print a greek pdf
Suggestions welcome.
--
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 reply other threads:[~2008-04-30 9:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-30 9:37 luigi scarso [this message]
2008-04-30 9:51 ` Thomas A. Schmitz
2008-04-30 10:06 ` luigi scarso
2008-04-30 10:13 ` Wolfgang Schuster
2008-04-30 10:25 ` luigi scarso
2008-04-30 10:52 ` Wolfgang Schuster
2008-04-30 12:49 ` Henning Hraban Ramm
2008-04-30 10:32 ` Thomas A. Schmitz
2008-04-30 10:47 ` luigi scarso
2008-04-30 12:29 ` Thomas A. Schmitz
2008-04-30 12:34 ` Wolfgang Schuster
2008-04-30 17:22 ` luigi scarso
2008-04-30 19:22 ` Henning Hraban Ramm
2008-04-30 10:34 ` Thomas A. Schmitz
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=fe8d59da0804300237i6e79c04eie20e26a127fc8feb@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).