diff options
| -rw-r--r-- | admin/notes/unicode | 21 | ||||
| -rw-r--r-- | lisp/international/ucs-normalize.el | 2 | ||||
| -rw-r--r-- | test/lisp/international/ucs-normalize-tests.el | 2 |
3 files changed, 15 insertions, 10 deletions
diff --git a/admin/notes/unicode b/admin/notes/unicode index ae94b5c0a3f..21ce2c4cda3 100644 --- a/admin/notes/unicode +++ b/admin/notes/unicode | |||
| @@ -97,18 +97,23 @@ might need to be updated because it knows about used and unused ranges | |||
| 97 | of Unicode codepoints, which a new release of the Unicode Standard | 97 | of Unicode codepoints, which a new release of the Unicode Standard |
| 98 | could change. | 98 | could change. |
| 99 | 99 | ||
| 100 | The data used by ucs-normalize.el might need to be updated. | 100 | Next, run the ucs-names test: |
| 101 | Specifically, the values of 'ucs-normalize-composition-exclusions' and | ||
| 102 | 'check-range", defined at the beginning of ucs-normalize.el, should be | ||
| 103 | verified against the latest Unicode data files. | ||
| 104 | |||
| 105 | Run the ucs-names test: | ||
| 106 | 101 | ||
| 107 | make -C test lisp/international/mule-tests | 102 | make -C test lisp/international/mule-tests |
| 108 | 103 | ||
| 109 | If it fails, the exclusion ranges of codepoints in | 104 | If it fails, the exclusion ranges of codepoints in |
| 110 | 'mule-cmds-tests--ucs-names-missing-names' may need to be updated to the | 105 | 'mule-cmds-tests--ucs-names-missing-names' may need to be updated to |
| 111 | added Unicode codepoints. | 106 | account for the added Unicode codepoints. |
| 107 | |||
| 108 | The data used by ucs-normalize.el might need to be updated. | ||
| 109 | Specifically, the values of 'ucs-normalize-composition-exclusions' and | ||
| 110 | 'check-range", defined at the beginning of ucs-normalize.el, should be | ||
| 111 | verified against the latest Unicode data files. But even if | ||
| 112 | ucs-normalize.el is not modified, make sure it has been byte-compiled | ||
| 113 | _after_ the lisp/international/uni-*.el files were regenerated, because | ||
| 114 | it depends on uni-decomposition.el and uni-combining.el. (We don't have | ||
| 115 | this dependency in lisp/Makefile.in because recompiling ucs-normalize.el | ||
| 116 | is expensive, and updates for a new Unicode version are rare.) | ||
| 112 | 117 | ||
| 113 | Next, test normalization functions against NormalizationTests.txt, | 118 | Next, test normalization functions against NormalizationTests.txt, |
| 114 | in the top-level directory run: | 119 | in the top-level directory run: |
diff --git a/lisp/international/ucs-normalize.el b/lisp/international/ucs-normalize.el index 169593f1575..a7738f16aae 100644 --- a/lisp/international/ucs-normalize.el +++ b/lisp/international/ucs-normalize.el | |||
| @@ -131,7 +131,7 @@ | |||
| 131 | #x1D1BF #x1D1C0) | 131 | #x1D1BF #x1D1C0) |
| 132 | "Composition Exclusion List. | 132 | "Composition Exclusion List. |
| 133 | This list is taken from | 133 | This list is taken from |
| 134 | https://www.unicode.org/Public/UNIDATA/15.0/CompositionExclusions.txt") | 134 | https://www.unicode.org/Public/UNIDATA/CompositionExclusions.txt") |
| 135 | 135 | ||
| 136 | ;; Unicode ranges where decompositions & combining characters are | 136 | ;; Unicode ranges where decompositions & combining characters are |
| 137 | ;; defined. Find them by running the following Awk program on | 137 | ;; defined. Find them by running the following Awk program on |
diff --git a/test/lisp/international/ucs-normalize-tests.el b/test/lisp/international/ucs-normalize-tests.el index ddc99afeaae..6e78a567670 100644 --- a/test/lisp/international/ucs-normalize-tests.el +++ b/test/lisp/international/ucs-normalize-tests.el | |||
| @@ -184,7 +184,7 @@ Must be called with `ucs-normalize-tests--norm-buf' as current buffer." | |||
| 184 | (should-not (ucs-normalize-tests--rule1-failing-for-partX 0))) | 184 | (should-not (ucs-normalize-tests--rule1-failing-for-partX 0))) |
| 185 | 185 | ||
| 186 | (defconst ucs-normalize-tests--failing-lines-part1 | 186 | (defconst ucs-normalize-tests--failing-lines-part1 |
| 187 | (list 2432)) | 187 | (list )) |
| 188 | 188 | ||
| 189 | ;; Keep a record of failures, for consulting afterwards (the ert | 189 | ;; Keep a record of failures, for consulting afterwards (the ert |
| 190 | ;; backtrace only shows a truncated version of these lists). | 190 | ;; backtrace only shows a truncated version of these lists). |