[XeTeX] Adressing the long s

Bernhard Fisseni bernhard.fisseni at uni-due.de
Sun Aug 10 12:01:07 CEST 2008


Hi Albert,

Scripsit Albert Kapune diē 10.8.2008 11:39:
> I have several fonts with a long s at position U+017F. Unfortunately, I
> did not find a way to use it in my documents via fontspec.sty.

I think the easiest is to use "ſ" (U+017F) directly (copying from a 
character table or so):

> The following example performs the normal »s«:
> 
> \documentclass{scrartcl}
> \usepackage{xunicode}
> \usepackage{xltxtra}
> \usepackage{fontspec}
> \setmainfont[Scale=MatchLowercase,Contextuals=Inner]{MS Mincho}
> \begin{document}
> Wassernuss, Wassernüsse

% to get (some) long "ſ"es
Waſſernuſs, Waſſernüſſe

> \end{document}

This works for me – and accidentally, the long s was what got me started 
with XeTeX.  The only problem may be that you need a console/editor font 
(e.g. from http://dejavu.sf.net) that supports the long s – on recent 
Macs and Linux PCs I have not had a problem with that.

Cheers,
Bernhard

-- 
Uni:
   Universität Duisburg-Essen
   Germanistik/Linguistik -- Fachbereich Geisteswissenschaften
   Universitätsstraße 12 -- D-45127 Essen -- V15 R04 H37
   +49-201-183-2939
zu Hause: Paulinenstr. 17 -- D-45130 Essen -- +49-201-8778114


More information about the XeTeX mailing list