Re: Replacement of charsetalias.properties file.

Jean-Marc Desperrier <[email protected]> Fri, 19 Nov 2010 15:07:34 +0100
Newsgroups gmane.comp.mozilla.internationalization
Message-ID <[email protected]>
Axel Hecht wrote:
> That moved into the compiled code,
> https://bugzilla.mozilla.org/show_bug.cgi?id=563536.
>
> No idea if there's anything left that allows you to tweak it.
>
> That said, is there a bug filed on what you're trying to fix? Add-ons
> like yours sound like something we shouldn't need.

It's not a great idea to have hard-coded those identifiers :-(

It's not just a matter of something that mozilla got wrong that's just 
need to be fixed. There will be some identifier that about nobody uses, 
that's it's a nonsense to include by defaut, and there will be a few 
case where things have been done wrong, so that it's useful to be able 
to override the default, even if the defaut is correct.

big5 is a case of a situation that can't quite be satisfyingly solved 
with a hard coded solution. http://en.wikipedia.org/wiki/Big5 list at 
least 10 different extensions to big5 that possibly could have been 
truly used when a page is tagged as big5.

Of those HKSCS is probably the only one that's a real standard and has 
currently a large usage. But what's if someone wants a warning when some 
of the characters are not truly big5 and use the hkscs extension ? (a 
taiwanese for exemple for whom hkscs is not a standard) And what if he 
is handling some old content, that's truly HKSCS incompatible, where 
he'd love to have big5 interpreted as something else than HKSCS ?

Having the identifiers defined in a ressource file that can be 
overwritten to change them makes the situation significantly easier.