[issue16684] Unicode property value abbreviated names and long names

2019-09-20 Thread Greg Price
Greg Price added the comment: I've gone and implemented a version of this that's integrated into Tools/unicode/makeunicodedata.py , and into the unicodedata module. Patch attached. Demo: >>> import unicodedata, pprint >>> pprint.pprint(unicodedata.property_value_aliases) {'bidirectional':

[issue16684] Unicode property value abbreviated names and long names

2018-06-20 Thread Ned Deily
Change by Ned Deily : -- nosy: +benjamin.peterson versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mail

[issue16684] Unicode property value abbreviated names and long names

2018-06-20 Thread Pander
Pander added the comment: Since June 2018, Unicode version 11.0 is out. Perhaps that could help move this forward. -- ___ Python tracker ___ _

[issue16684] Unicode property value abbreviated names and long names

2017-01-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue16684] Unicode property value abbreviated names and long names

2017-01-11 Thread Pander
Pander added the comment: Any updates or ideas on how to move this forward? Meanwhile, should the issue relate to version 3.6? Thanks. Ah, see also https://bugs.python.org/issue6331 please -- ___ Python tracker _

[issue16684] Unicode property value abbreviated names and long names

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: The script should probably be integrated in Tools/unicode/makeunicodedata.py. -- ___ Python tracker ___ __

[issue16684] Unicode property value abbreviated names and long names

2012-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that the prototype file works in 2.7.3. I rewrote it for 3.3 using a refactored approach (and discovered that the site sometimes times out). -- Added file: http://bugs.python.org/file28411/bc_ea_gc.py ___

[issue16684] Unicode property value abbreviated names and long names

2012-12-23 Thread Pander
Pander added the comment: Attached is the requested proof-of-concept script. -- Added file: http://bugs.python.org/file28405/create-unicodedata-dicts-prop-value-alias-20121223.py ___ Python tracker ___

[issue16684] Unicode property value abbreviated names and long names

2012-12-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: This seems like a plausible request to me. The three dicts comprise 70 code-alias pairs. If unicodedata had a Python version (should it?), the simplest thing would be to add bididict, eawdist, and gcdict to that version (and not to the C version). I don't know

[issue16684] Unicode property value abbreviated names and long names

2012-12-14 Thread Pander
Pander added the comment: I myself have a lot of Python applications that process font files and interact with fonttools and FontForge, which are both written in Python too. As you also have your own dict for this purpose and probably other people too, it would be justified to add these three

[issue16684] Unicode property value abbreviated names and long names

2012-12-14 Thread Ezio Melotti
Ezio Melotti added the comment: > for certain applications it is important to be able to get the from > abbreviated name to the long name and vice versa. What kind of application? I have a module where I defined my own dict that maps categories with their full names, but I'm not sure this fea

[issue16684] Unicode property value abbreviated names and long names

2012-12-14 Thread Pander
New submission from Pander: The package unicodedata http://docs.python.org/3/library/unicodedata.html offers looking up of property values in terms of general category, bidirectional class and east asian width for Unicode characters unicodedata.category(unichr) unicodedata.bidirectional(un