Charles de Miramon wrote: > Reuben Thomas wrote: > >> What's the easiest way to type oe ligatures in French? I was a bit >> surprised to find this wasn't an automatic ligature in LaTeX when >> using French given it's almost always what you want. >> > You have to do it in a manual fashion with the \oe macro because in > French, the ligature oe is not automatic and depends on the > pronunciation. For example : > oeuf (with ligature) but coexistence (without ligature). The number > of words using the oe ligature in French is rather limited but some > are used a lot. It would be nice to have a script adding the > ligature for this limited set (oeil, oeuvre, soeur, boeuf, > manoeuvre, coeur, choeur, voeu, moeurs, noeud)
Write a wrapper 'my_latex' and re-define the latex -> dvi converter to use it. For example, something like: #! /bin/sh test #$ -gt 1 || exit 1 tmp=tmp$$ sed 's/oeil/\oe{}il/g; s/oeuvre/\oe{}uvre/g; s/soeur/s\oe{}ur/g; s/boeuf/b\oe{}uf/g ' $1 > $tmp cmp -s $1 $tmp && rm -f $tmp || mv -f $tmp $1 latex "$@" -- Angus