Code: Select all
\usepackage{substitutefont}
\substitutefont{LGR}{\rmdefault}{udidot}
\newcommand{\textgreek}[1]{\begingroup\fontencoding{LGR}\selectfont#1\endgroup}
If it is at end of word it does the right thing and switches to end of word form.
If I want to force the end of word form (not that I ever need to) I can just type a "c" and it will do end of word form even when other letters come after it. I think in some historic ancient Greek texts they actually sometimes did that with compound words where first sub-word ended with a sigma, so maybe that's why that works.
However I can not figure out how to get a lower case sigma that is not end of word sigma when it doesn't have another letter after it.
Does anyone know how to turn off the detection of non-word characters after a sigma so it uses the sigma that is NOT end of word sigma?
Thank you for suggestions.