diff options
| author | Eli Zaretskii | 2014-06-24 19:58:06 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-06-24 19:58:06 +0300 |
| commit | 2394ef283c781297f3a1da79c8c8c92ca9d1b5e5 (patch) | |
| tree | 52b14c05786745bc47a72722ac8ed75c2a0d3370 /admin/notes | |
| parent | b950752961eb3d9207e4b4bd61a57071cdbe31eb (diff) | |
| download | emacs-2394ef283c781297f3a1da79c8c8c92ca9d1b5e5.tar.gz emacs-2394ef283c781297f3a1da79c8c8c92ca9d1b5e5.zip | |
admin/notes/unicode: Some notes about what to do when a new Unicode version is imported.
Diffstat (limited to 'admin/notes')
| -rw-r--r-- | admin/notes/unicode | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/admin/notes/unicode b/admin/notes/unicode index 654580639f7..cff619fd8b8 100644 --- a/admin/notes/unicode +++ b/admin/notes/unicode | |||
| @@ -3,6 +3,39 @@ | |||
| 3 | Copyright (C) 2002-2014 Free Software Foundation, Inc. | 3 | Copyright (C) 2002-2014 Free Software Foundation, Inc. |
| 4 | See the end of the file for license conditions. | 4 | See the end of the file for license conditions. |
| 5 | 5 | ||
| 6 | Importing a new Unicode Standard version into Emacs | ||
| 7 | ------------------------------------------------------------- | ||
| 8 | |||
| 9 | Emacs uses the following files from the Unicode Character Database | ||
| 10 | (a.k.a. "UCD): | ||
| 11 | |||
| 12 | . UnicodeData.txt | ||
| 13 | . BidiMirroring.txt | ||
| 14 | . IVD_Sequences.txt | ||
| 15 | |||
| 16 | First, these files need to be copied into admin/unidata/, and then | ||
| 17 | Emacs should be rebuilt for them to take effect. Rebuilding Emacs | ||
| 18 | updates several derived files elsewhere in the Emacs source tree, | ||
| 19 | mainly in lisp/international/. | ||
| 20 | |||
| 21 | When Emacs is rebuilt for the first time after importing the new | ||
| 22 | files, pay attention to any warning or error messages. In particular, | ||
| 23 | admin/unidata/unidata-gen.el will complain if UnicodeData.txt defines | ||
| 24 | new bidirectional attributes of characters, because unidata-gen.el, | ||
| 25 | bidi.c and dispextern.h need to be updated in that case; failure to do | ||
| 26 | so will cause aborts in redisplay. | ||
| 27 | |||
| 28 | Next, review the changes in UnicodeData.txt vs the previous version | ||
| 29 | used by Emacs. Any changes, be it introduction of new scripts or | ||
| 30 | addition of codepoints to existing scripts, need corresponding changes | ||
| 31 | in the data used for filling char-script-table, see characters.el | ||
| 32 | around line 1300. Other databases and settings in characters.el, such | ||
| 33 | as the data for char-width-table, might also need changes. | ||
| 34 | |||
| 35 | Any new scripts added by UnicodeData.txt will also need updates to | ||
| 36 | script-representative-chars defined in fontset.el. Other databases in | ||
| 37 | fontset.el might also need to be updated as needed. | ||
| 38 | |||
| 6 | Problems, fixmes and other unicode-related issues | 39 | Problems, fixmes and other unicode-related issues |
| 7 | ------------------------------------------------------------- | 40 | ------------------------------------------------------------- |
| 8 | 41 | ||