[issue34053] Support localization of unicode descriptions

2019-02-19 Thread Pander


Pander  added the comment:

As discussed on python-ideas, created scripts at 
https://github.com/OpenTaal/python-unicodedata_l10n that provide a starting 
point.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34053] Support localization of unicode descriptions

2018-07-05 Thread STINNER Victor


STINNER Victor  added the comment:

> Thanks, posted it at 
> https://groups.google.com/forum/#!topic/python-ideas/g2jj4WRVDFA

Thanks!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34053] Support localization of unicode descriptions

2018-07-05 Thread Pander


Pander  added the comment:

Thanks, posted it at 
https://groups.google.com/forum/#!topic/python-ideas/g2jj4WRVDFA

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34053] Support localization of unicode descriptions

2018-07-05 Thread STINNER Victor


STINNER Victor  added the comment:

I don't think that such feature belongs to the stdlib. I suggest you to start a 
project on PyPI and comes back once the module is popular enough to justify to 
be added to the stdlib.

Moreover, IMHO python-ideas is a better place, than this bug tracker, to 
propose to idea.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34053] Support localization of unicode descriptions

2018-07-05 Thread Pander

New submission from Pander :

Please, support localization for Unicode block description and character 
description.

Translations are available from 
https://github.com/unicode-table/unicode-table-data/tree/master/loc If 
possible, use a gettext approach similar to https://pypi.org/project/pycountry/

Implementing this feature will allow users to read Unicode descriptions in 
their own language, other than English.

For example, now is possible only in English:

from unicodedata import name
print(name('ß'))
LATIN SMALL LETTER SHARP S

So unicodedata could provide a way to translate LATIN SMALL LETTER SHARP S to 
e.g. German with:

from unicodedata import name, LOCALED_DIR
from gettext import translation
german = translation('UnicodeData' LOCALED_DIR, languages=['de'])
german.install()
print(_(name('ß')))
LATEINISCHER KLEINBUCHSTABE SCHARFES S

and something similar for unicodedata.category

--
components: Unicode
messages: 321095
nosy: PanderMusubi, ezio.melotti, vstinner
priority: normal
severity: normal
status: open
title: Support localization of unicode descriptions
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com