ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Missing greeks characters in texgyreheros
@ 2008-04-30  9:37 luigi scarso
  2008-04-30  9:51 ` Thomas A. Schmitz
  0 siblings, 1 reply; 14+ messages in thread
From: luigi scarso @ 2008-04-30  9:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-04-30 19:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-30  9:37 Missing greeks characters in texgyreheros luigi scarso
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

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).