Re: translate_latin9

Lachlan Andrew <[email protected]>
Newsgroups gmane.comp.web.htdig.devel
Organization sourceforge
Message-ID <[email protected]>
Greetings Gabriele,

Thanks for your European point of view :)

The reason I was suggesting replacing  &not;  rather than  &currency;  
(which was another candidate I considered) was just that I thought it 
would be used less.  If ISO-8859-15 replaces  &currency;  by  &euro;  
then I'd vote for just making that substitution.

Regarding having a "translate_latin9" option, I would prefer to wait 
until we have a true unicode solution -- otherwise we could end up 
with scores of different config options.  If we adopt CLucene and its 
libraries, we'll probably use full unicode fairly soon.

$0.02
Lachlan

On Mon, 31 May 2004 05:48 pm, Gabriele Bartolini wrote:
>    I write as an european user. We are replacing the formers ISO
> LATIN 1 (ISO-8859-1)  character set with the ISO LATIN 9 charset
> (ISO-8859-15).
>
>    I guess the only way to solve the euro problem is to handle a
> ISO LATIN 9 translation, maybe by issuing the configuration
> parameter translate_latin9.
>
>    As far as the euro sign is concerned, in ISO LATIN 9 it
> corresponds to 164, which in ISO LATIN 1 was used for the
> 'currency' sign.
>
>    By looking at the HtSGMLCodec.cc file, given the user wants the
> ISO LATIN 9 charset, we should change for instance this row:
>
>   myTextFromString =
> "&nbsp;|&iexcl;|&cent;|&pound;|&curren;|&yen;|&brvbar;|&sec
>
> with:
>
>   myTextFromString =
> "&nbsp;|&iexcl;|&cent;|&pound;|&euro;|&yen;|&brvbar;|&sec
>
>   and in the same way the other 8 characters.
>
>   It should not be hard to implement this feature which at run-time
> switches to the right charset depending on the configuration.
>
>   The solutions are 2:
>
> 1) ignore the other characters and substitute the &curren; entity
> with &euro; - it is not perfect but may work in most of the cases;
> 2) issue the translate_latin9 configuration attribute and handle it
> in the HtSGMLCodec.cc file.
>
>   I am not aware of some possible bugs and misfunctionality with
> these approaches. Please tell me if you think of any.

-- 
[email protected]
ht://Dig developer DownUnder  (http://www.htdig.org)



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
ht://Dig Developer mailing list:
[email protected]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.