🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.internat
Article #672

Re: Language tagging

#672
From: H. Peter Anvin N9ITP
Date: Fri, 08 Jan 1993 08:18
35 lines
2061 bytes
In article <1ii6bkINNf6c@rodan.UU.NET> of comp.std.internat,
  avg@rodan.UU.NET (Vadim Antonov) writes:
> 
> >A pure locale-system clearly won't do in multilingual environments.
> >Nonetheless some things are, IMHO, best handled with locales.
> >Perhaps it should be possible to specify the default language (like,
> >in an environment variable) separately for each script one is
> >concerned with (setenv LANG 'LATIN:finnish;CYRILLIC:russian;HAN:chinese')
> >or whatever) and fall to a default in the rest.
> 
> It is not enough. Ukrain, say, use characters of both Cyrillic and
> Latin scripts, etc.
> 

I'd suggest some form of multiple locales, i.e. 
setenv LANG ukranian-swedish-ipa-greek-farsi-japanese

In this model, each of the sorting algorithms would assign sorting
values (integers, that may or may not be identical) to each character
recognized in that language.  Any character undefined (e.g. KANJI HITO
for Ukranian) is assigned MAXINT and thus is sorted last.  The sort
proceeds with the first language as the primary key, second language
as the secondary etc.  That means not only that the text in the
different languages will show up in approximately the order listed,
but also that multiscript languages can be easily accommodated.  There
are languages that use characters from at least three scripts, so the
need is there.

	/hpa

-- 
INTERNET:  hpa@nwu.edu   TALK:      hpa@delta.eecs.nwu.edu
BITNET:    HPA@NUACC     IBMNET:    16331@IBMX400
HAM RADIO: N9ITP         NeXTMAIL:  hpa@lenny.acns.nwu.edu
while ( 1 ) ; cp /dev/zero /dev/null & end
Technical Details
Message-ID: <1993Jan8.081830.15294@eecs.nwu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!hpa
References: <1iddeeINN58g@rodan.UU.NET> <TT.93Jan7085019@tarzan.jyu.fi> <1ii6bkINNf6c@rodan.UU.NET>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.internat
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!hpa
From: hpa@eecs.nwu.edu (H. Peter Anvin N9ITP)
Subject: Re: Language tagging
Message-ID: <1993Jan8.081830.15294@eecs.nwu.edu>
Reply-To: hpa@nwu.edu (H. Peter Anvin)
Organization: You must be kidding!
References: <1iddeeINN58g@rodan.UU.NET> <TT.93Jan7085019@tarzan.jyu.fi> <1ii6bkINNf6c@rodan.UU.NET>
Date: Fri, 8 Jan 1993 08:18:30 GMT
Lines: 35