[XeTeX] Hyphenation around „ß“

Philip Taylor P.Taylor at Rhul.Ac.Uk
Wed Jan 15 14:13:18 CET 2014



Philip Taylor wrote:

> Jonathan Kew wrote:
> 
>> So IIRC, the alternative version works by setting the word into a
>> zero-width \vbox, and then extracting the resulting word fragments from
>> the list of (all overfull) lines in the paragraph and assembling them
>> into a line for display. Of course this could all be written from
>> scratch using tex primitives, but at the time it seemed easier to make
>> use of some higher-level tools.
> 
> OK, I like low-level TeX coding; I will attempt to replicate
> its functionality for Plain XeTeX users when I have a moment
> or two ...

Not as good as Knuth's, as it typesets the output rather than shewing
it in the log file, but may be of help in cases such as this :

> % !TeX Program=IniiXeTeX
> 
> % >>>>> file "de-1996.tex" <<<<<
> 
> \catcode `\{=1
> \catcode `\}=2
> \catcode `\# = 6
> \catcode `\% = 14
> \catcode `\	= \catcode `\ % tab !!!
> 
> \let \bgroup = {
> \let \egroup = }
> 
> \input unicode-letters.tex
> \input hyph-de-1996.tex
> 
> \font\tenrm = "Times New Roman" at 10pt
> \hyphenchar\tenrm=`\-
> \tenrm
> 
> \hsize=2in
> \vsize=8in
> \parfillskip=0pt
> 
> \def \shewhyphens #1%
> 	{%
> 		\setbox 0 = \vbox 
> 			\bgroup
> 				\parfillskip = 0 pt
> 				\hsize = 0 pt 
> 				\hfuzz = 16383.99999 pt 
> 				\tenrm 
> 				\pretolerance = -1 
> 				\tolerance = -1 
> 				\hbadness = \hfuzz
> 				\ #1%
> 			\egroup
> 		\copy 0
> 	}
> 	
> \shewhyphens {wußte geißeln}
> 
> \end


More information about the XeTeX mailing list