[XeTeX] ë e

Philip Taylor (Webmaster, Ret'd) P.Taylor at Rhul.Ac.Uk
Sat Jan 29 15:15:57 CET 2011



Hans van Maanen wrote:
> Good morning gurus,
>
> In Dutch, there's no dieresis after a hyphenation: tweeën becomes twee-en. I seem to remember this worked like a charm in LaTex and babel, but it does not work anymore in XeLaTex (and not in LaTex with babel, either, I think).

I'm sure there will be a "proper" ([Xe]LaTeXy) solution,
but in the meantime here is a raw TeX approach for your
consideration :

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[10pt]{article}
\usepackage{polyglossia}
\setmainlanguage[babelshorthands]{dutch}
\usepackage{fontspec, xunicode, xltxtra}
\usepackage[text={3.4cm,10cm}]{geometry}

\def \eë{\discretionary {e}{e}{eë}}
\def \eeë{\discretionary {ee}{e}{eeë}}

\begin{document}

kweeën kweeën kweeën

drieën drieën drieën

tweeën tweeën tweeën

kweeën kweeën kw\eeë n

drieën drieën dri\eë n

tweeën tweeën tw\eeë n

\end{document}

Philip Taylor
-- 
Not sent from my i-Pad, i-Phone, Blackberry, Blueberry, or any
such similar poseurs' toy, none of which would I be seen dead
with even if they came free with every packet of cornflakes.


More information about the XeTeX mailing list