> > > > I'm not sure if I like this method or not, it would be trivial for me
> > > > to implement in tpserver-py, but it might be much harder to
> > > > tpserver-cpp.
> > >
> > > Not really too hard.
> >
> > ***
> > So using a filter is a good idea?
> > ***
> 
> How many languages are there? 
> 
> /me checks wikipedia
> 
> 6,000-7,000 languages (approx)
> 26^2 = 676 possible two char codes (ISO 639-1) (ie, EN, FR, etc.)
> 26^3 = 17576 possible three char codes (ISO 639-2) (ie, eng, fra, etc) (464 
> currently assigned)
> 10,000's two char plus location (ISO 3166) (ie en-AU, en-NZ, en-US, etc)
> (Start on the page on "Language Code")
> 
> 
> Feature space is 2^32.
> Assigned spaces are:
> 0xffff - 0xffffffff for optimisations
> 0x1000 - 0xffff for filters
> 7 individual assignments.
> 
> Filter space is 65536 - 4096 = 61440
> Two are assigned, range appears to be 0x1000 to 0x1fff, leaving 0x2000 to 
> 0xffff available, 57344
> 
> We would need a sane way to assign filter ids (feature ids) to languages, 
> preferably without having to keep a list ourselves. Either find a (ISO or 
> IETF) standard list giving integers and adding 0x2000, or mapping two or 
> three char (ISO) codes to integers in the range. I think I prefer the second 
> (less lookup/simpler conversion).
> 
> This doesn't address how i18n will be done for messages from the server, but 
> would give a way to set the language.
> 
> Given that 57344 > 7000 and your stated preference to use filters for this 
> purpose, I guess that will be fine.
> 
> > Mithro
> 
> Later
> Lee

Does anyone have more thoughts on this? Or is this proposal acceptable?

Nash, you had some objections?

Tim 'Mithro' Ansell

_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to