I am trying to put an ouml in an .Rd file with no success. Writing R Extensions suggests: Text which might need to be represented differently in different encodings should be marked by |\enc|, e.g. |\enc{J??reskog}{Joreskog}| 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). (Above may get mangled by the mail.) I have tried variations \enc{J"oreskog}{Joreskog} \enc{J\"oreskog}{Joreskog} \enc{Jo\"reskog}{Joreskog} \enc{Jo\"reskog}{Joreskog} \enc{J\"{o}reskog}{Joreskog} \enc{J\\"{o}reskog}{Joreskog} \enc{Jöoreskog}{Joreskog} all with no effect on the generated pdf file. Suggestions would be appreciated. Thanks, Paul Gilbert
It means what it says: you need to put the actual character in the file, and specify the encoding for the file via \encoding. (For you, UTF-8 or latin1, I would guess.) It's not a question of trying variations, rather of following instructions. On Fri, 6 Jan 2006, Paul Gilbert wrote:> I am trying to put an ouml in an .Rd file with no success. Writing R > Extensions suggests: > > Text which might need to be represented differently in different > encodings should be marked by |\enc|, e.g. |\enc{J?reskog}{Joreskog}| > 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). > > (Above may get mangled by the mail.) I have tried variations > > \enc{J"oreskog}{Joreskog} > \enc{J\"oreskog}{Joreskog} > \enc{Jo\"reskog}{Joreskog} > \enc{Jo\"reskog}{Joreskog} > \enc{J\"{o}reskog}{Joreskog} > \enc{J\\"{o}reskog}{Joreskog} > \enc{Jöoreskog}{Joreskog} > > all with no effect on the generated pdf file. Suggestions would be > appreciated. > > Thanks, > Paul Gilbert > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
(moved from r-help) Ok, UTF-8 works on some of my machines and latin1 on others. If I use one I get failure or spurious characters when I build on the wrong machine. Are .Rd files suppose to work on different platforms when there are special characters, or is this a known limitation? Paul Prof Brian Ripley wrote:> It means what it says: you need to put the actual character in the file, > and specify the encoding for the file via \encoding. (For you, UTF-8 or > latin1, I would guess.) > > It's not a question of trying variations, rather of following instructions. > > On Fri, 6 Jan 2006, Paul Gilbert wrote: > >> I am trying to put an ouml in an .Rd file with no success. Writing R >> Extensions suggests: >> >> Text which might need to be represented differently in different >> encodings should be marked by |\enc|, e.g. |\enc{J?reskog}{Joreskog}| >> 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). >> >> (Above may get mangled by the mail.) I have tried variations >> >> \enc{J"oreskog}{Joreskog} >> \enc{J\"oreskog}{Joreskog} >> \enc{Jo\"reskog}{Joreskog} >> \enc{Jo\"reskog}{Joreskog} >> \enc{J\"{o}reskog}{Joreskog} >> \enc{J\\"{o}reskog}{Joreskog} >> \enc{Jöoreskog}{Joreskog} >> >> all with no effect on the generated pdf file. Suggestions would be >> appreciated. >> >> Thanks, >> Paul Gilbert >> >> ______________________________________________ >> R-help at stat.math.ethz.ch mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide! >> http://www.R-project.org/posting-guide.html >> >