[PATCH] Update the localedata/locales/translit_* files to Unicode 7.0.0
Mike FABIAN
mfabian@redhat.com
Tue Apr 28 16:22:00 GMT 2015
The attached file updates these translit files to Unicode 7.0.0:
locales/translit_circle
locales/translit_cjk_compat
locales/translit_combining
locales/translit_compat
locales/translit_font
locales/translit_fraction
It does *not* update these translit files:
locales/translit_cjk_variants
locales/translit_hangul
locales/translit_narrow
locales/translit_neutral
locales/translit_small
locales/translit_wide
because translit_cjk_variants is apparently not generated from Unicode
data.
The other files, translit_hangul, translit_narrow, translit_neutral,
translit_small, translit_wide are generated but they would not change
when using Unicode 7.0.0 data, nothing seems to have changed in Unicode
affecting these files. I could add scripts to generate these as well,
but they would just reproduce the current files. Maybe I should do that
nevertheless, just to be able to see if something changes in future
(quite unlikely, I think).
Some code was duplicated in utf8_gen.py and utf8_compatibility.py,
Alexandre Oliva had already suggested to split this into an extra file.
As the new generator scripts added by this patch needed this code
again I saw that Alexandre was right and did put the reusable code
into an extra file unicode_utils.py.
Not everything in the generated translit_* files could be reproduced
exactly from Unicode data, the were some manual additions in the files
(which were not mentioned in the comments on top of these files,
the âgrepâ and âsedâ expressions mentioned in the comments reproduce
most of the contents of these files but not everything).
Where the manual additions seemed to make sense, I added manual
hacks to the new generator scripts gen_translit_*.py to reproduce
these manual additons as well.
--
Mike FABIAN <mfabian@redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Update-the-translit-files-to-Unicode-7.0.0.patch
Type: text/x-patch
Size: 182508 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150428/54caeb5a/attachment.bin>
More information about the Libc-alpha
mailing list