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