<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [XeTeX] Faking an accent when that glyph is
unavailabl</title></head><body>
<div>At 9:19 PM -0400 4/8/09, Henry de Valence wrote:</div>
<blockquote type="cite" cite>I'm writing a document using a font
(Aldus LT Std) that doesn't contain the<br>
character ‘ (U+0151, LATIN SMALL LETTER O WITH DOUBLE ACUTE).<br>
<br>
However I need to use the name "Erd‘s", and I don't want
to use just a normal<br>
umlaut, because that would be wrong. I have already tried using \H{o}
and<br>
simply '‘' in the source, but they don't work because the font is
missing that<br>
glyph. I found that the font does have a character for just the
accent<br>
(U+02DD), but I don't know how to get that character or how to put it
over top<br>
of the 'o'. Text-searchability isn't a big issue, because I'm just
going to<br>
print it anyways, so something that looks roughly correct would work
fine.<br>
<br>
I have tried the following:</blockquote>
<blockquote type="cite" cite>Erdo\XeTeXglyph"02dd" s<br>
but it just produces the following text:<br>
Erdo!dd› s</blockquote>
<blockquote type="cite" cite>which is clearly not what I
want.</blockquote>
<div><br></div>
<div><br></div>
<div>(Part of the problem above is that the hex letters are case
sensitive, and \XeTeXglyph doesn't do what you think it does. To
select a character by its hex code, you need to use the \char command
with the case sensitive hex code following one double quote (not
enclosed.))</div>
<div><br></div>
<div><br></div>
<div>Try the following. (based on code suggested by Enrico Gregorio on
comp.text.tex from a few years back.)</div>
<div><br></div>
<div>\newcommand{\hungo}{%<br>
\ooalign{o\crcr\hidewidth\char"02DD\hidewidth}}<br>
<br>
<br>
Erd\hungo s</div>
<div><br></div>
<div><br></div>
<div><br></div>
<div>Alan</div>
<div><br>
<br>
</div>
<div><br></div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div>Alan Munn<x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab><x-tab>
</x-tab>amunn@msu.edu<br>
Department of Linguistics<br>
and Germanic, Slavic, Asian and African Languages<x-tab>
</x-tab><x-tab>
</x-tab>Tel.<x-tab> </x-tab>517-355-7491<br>
Michigan State University, East Lansing MI 48824
USA<x-tab>
</x-tab>Fax<x-tab> </x-tab>517-432-2736</div>
</body>
</html>