Op 29 januari 2012 20:32 schreef Pablo Rodríguez <span dir="ltr"><<a href="mailto:oinos@web.de">oinos@web.de</a>></span> het volgende:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
there is a typographical tradition of typesetting Greek using different<br>
glyphs for initial and medial/final forms of beta, theta and phi.<br>
<br>
The forms are the following (initial and medial/final):<br>
<br>
        βϐ ϑθ ϕφ<br>
<br>
OpenType allows this feature to be enabled in the font, but many fonts<br>
which have both glyph forms lack the proper OpenType feature.<br>
<br>
I guess the substitution could be performed with a small luatex script<br>
that could be part of Lua(La)TeX or ConTeXt documents.<br>
<br>
I would like it to use it with small portions of text and with both the<br>
whole Greek Iliad and Odyssey.<br>
<br>
Could anyone explain how can I achieve this?<br>
<br></blockquote></div>There's something similar in `kpfonts` for 18-th century English.  There, it is not made automatic at all: `s` is medial by default, and you need `s=` for the final form.<br><br>But making it automatic is not easy.  Take a word like "ſatisfactory".  It takes a final "s" in a medial position because "satis facere" is two words in Latin.  So you will need hand editing or hyphenation-style exceptions even if you put a something like<br>
<br>    text:gsub("s(%s)","s= %1")<br><br>on every `text` you pass to TeX.<br>