From hin-tak.leung at cimr.cam.ac.uk  Tue Jun 27 20:22:21 2006
From: hin-tak.leung at cimr.cam.ac.uk (Hin-Tak Leung)
Date: Tue, 27 Jun 2006 19:22:21 +0100
Subject: [Rd] UTF-8 and .Rd files
In-Reply-To: <44A17269.5010803@pdf.com>
References: <148ed8180606270230s31e957e6r15fc346bf85183d7@mail.gmail.com>	<Pine.LNX.4.64.0606271103260.9176@gannet.stats.ox.ac.uk>	<148ed8180606270546m73d30f60yf8f1f33d8c874616@mail.gmail.com>
	<44A14925.3040707@cimr.cam.ac.uk> <44A17269.5010803@pdf.com>
Message-ID: <44A1775D.1020504@cimr.cam.ac.uk>

Spencer Graves wrote:
> Hello, G?ran:
> 
>       Have you considered the German solution:  "Goeran"?  (e.g., Wuertz 
> for W?rtz)?
> 
>       Be thankful that you aren't Russian or Greek or Arabic or Chinese, 
> etc., for which there may be no standard transliteration into the Latin 
> alphabet.

Well, I have to live with that, being of one of the above mentioned 
catergories. Where it is important to have my own name in native form
in documents, I keep around a png, a eps with postscript type 1
font embedded, and a pdf from the eps for the odd pdflatex occasions.

It is going to be very hack-ish, but I wonder if it is possible to
utilise the fact that latex comments (%) are not the same as html 
comments (<!-- -->) and vice versa, to make things work.

I seems to recall somewhere in the R-extension manual about being about 
to do \alternatives{latex stuff}{ascii stuff} for alternatives
which are destined to appear in different converted output types.
(Prof Ripley at this point would probably tell me the exact page
number and references...)

Hin-Tak

> 
>       Sorry I can't be more helpful.
> 
>       Spencer Graves
> p.s.  When I'm with native Spanish speakers who don't know English, I 
> pronounce my name very differently, like "Espencer Gra-ve", to match how 
> they would pronounce my name when they see it written.  Similarly, I 
> once heard a French Canadian take about his young son, Guillaume.  If 
> you ask him in English, "What's your name?" he replies, "Bill".  If you 
> ask the same question in French, he replies, "Guillaume".
> 
> Hin-Tak Leung wrote:
>> G?ran Brostr?m wrote:
>>> On 6/27/06, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
>>>> On Tue, 27 Jun 2006, G?ran Brostr?m wrote:
>>>>
>>>>> I have been converting to utf8 from latin1, and this gives me
>>>>> problems, some solved, but here is one unsolved: In my .Rd files, I
>>>>> have included '\encoding{UTF-8}' at the top. Despite this, the HTML
>>>>> help pages contains 'content="text/html; charset=iso-8859-1"', and my
>>>>> name is mangled. What can I do about this?
>>>> Reproducible example, please!  (I've just tried this and it works 
>>>> for me.)
>>>>
>>>> As described in my talk at UseR 2006, you may well not want to do 
>>>> this if
>>>> you intend to distribute the package.  Your name contains characters 
>>>> that
>>>> are not in the fonts used in UTF-8 in non-European locales, and Windows
>>>> users do no have ready access to UTF-8 viewers (even if they know the
>>>> files are UTF-8).
>>> Thanks for your answer! So this means that 'latin1' does not cause
>>> problems for non-European locales and Windows users, I take it.
>>>
>>> I really only need non-ascii to write the name ot the author (me)
>>> correctly. I tried LaTeX code ({\"o}), but that didn't work. Is there
>>> a way around this?
>>>
>>> G?ran
>>
>> The \"o character in my latin1 (iso 8859-1) man page says it is 0xF6
>>   F6 - LATIN SMALL LETTER O WITH DIAERESIS
>> The capital version is
>>   D6 -  LATIN CAPITAL LETTER O WITH DIAERESIS
>>
>> in html I think you need to do &#F6; or something for that character 
>> to appear?
>>
>> HTH
>>
>> HTL
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] UTF-8 and .Rd files
Hin-Tak Leung