10 Commits

Author SHA1 Message Date
Cosimo Lupo
6248bbbd69 [unicode] attempt to import unicodedata2 backport module
As suggested by Adam @twardoch in https://github.com/behdad/fonttools/issues/83#issuecomment-139052095
2015-09-10 10:13:01 +01:00
Behdad Esfahbod
ff2dd56f86 Make unicode.py py23-compatible 2014-01-28 16:42:24 -05:00
Behdad Esfahbod
fea81ee2b3 Use Python's unicodedata.name() in fontTools.unicode
This removes our internal copy of Unicode names database!

Adds new API fontTools.unicode.setUnicodeData() that can be
called with a filename or file object corresponding to a
UnicodeData.txt file, which will consequently used for Unicode
character name mapping.  This is useful for using newer Unicode
database than the one that comes with the builtin Python module.

This also changes behavior such that control characters, Hangul
syllables, Han chars, etc, get no name with custom
UnicodeData.txt.  We may revisit this though.

Filed https://github.com/behdad/fonttools/issues/82 to add
option to ttx to pass custom UnicodeData.txt.

Fixes https://github.com/behdad/fonttools/issues/81
2014-01-15 23:38:08 +08:00
Behdad Esfahbod
e388db566b py23 Use new-style classes
Such that we get the same semantics in both Python 2 and 3.
2013-11-28 18:53:30 -05:00
Behdad Esfahbod
c226dc764d Update to Unicode 6.3.0d3 2013-09-18 20:04:12 -04:00
pabs3
bc7b74803d updated unicode module to unicode 5.2.0
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@570 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 11:00:00 +00:00
jvr
4d29ba1595 updated unicode module to unicode 5.1.0
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@558 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-17 09:21:49 +00:00
jvr
13325c613a [ 845172 ] Updating to Unicode 4.0.0
Instead of using a list internally, I now use a dict, since the unicode
mapping is quite sparse (lots of unused slots).


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@465 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 07:47:41 +00:00
Just
1c1d059219 updated to Unicode 3.0 by Antoine Leca.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@101 4cde692c-a291-49d1-8350-778aa11640f8
2000-03-28 10:33:58 +00:00
Just
7842e56b97 Created a new library directory called "FreeLib". All OpenSource RFMKII components will reside there, fontTools being the flagship.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@2 4cde692c-a291-49d1-8350-778aa11640f8
1999-12-16 21:34:53 +00:00