Skip to content
Prev 2266 / 12125 Next

[R-pkg-devel] Producing ß in help files.

And just writing it with a declared encoding in the Rd file des not work?

Section 2.14 in WRE tells us that \encoding{} can declare anm encoding 
and "For convenience, encoding names ?latin1? and ?latin2? are always 
recognized: these and
?UTF-8? are likely to work fairly widely. However, this does not mean 
that all characters in
UTF-8 will be recognized, and the coverage of non-Latin characters10 is 
fairly low. Using LATEX
inputenx (see ?Rd2pdf in R) will give greater coverage of UTF-8.
The \enc command (see Section 2.8 [Insertions], page 75) can be used to 
provide transliterations
which will be used in conversions that do not support the declared 
encoding."

And Secion 2.8 tells us

Text which might need to be represented differently in different 
encodings should be marked
by \enc, e.g. \enc{J?reskog}{Joreskog} (with no whitespace between the 
braces) where the
first argument will be used where encodings are allowed and the second 
should be ASCII (and
is used for e.g. the text conversion in locales that cannot represent 
the encoded form). (This is
intended to be used for individual words, not whole sentences or 
paragraphs.)



Hence a preamble with, e.g.
\encoding{latin1}
or
\encoding{UTF-8}
and later writing \enc{Wei?}{Weiss} seems most appropriate here.

Best,
Uwe Ligges
On 06.01.2018 04:41, Rolf Turner wrote: