aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/notes/unicode21
-rw-r--r--lisp/international/ucs-normalize.el2
-rw-r--r--test/lisp/international/ucs-normalize-tests.el2
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
97of Unicode codepoints, which a new release of the Unicode Standard 97of Unicode codepoints, which a new release of the Unicode Standard
98could change. 98could change.
99 99
100The data used by ucs-normalize.el might need to be updated. 100Next, run the ucs-names test:
101Specifically, the values of 'ucs-normalize-composition-exclusions' and
102'check-range", defined at the beginning of ucs-normalize.el, should be
103verified against the latest Unicode data files.
104
105Run the ucs-names test:
106 101
107 make -C test lisp/international/mule-tests 102 make -C test lisp/international/mule-tests
108 103
109If it fails, the exclusion ranges of codepoints in 104If 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
111added Unicode codepoints. 106account for the added Unicode codepoints.
107
108The data used by ucs-normalize.el might need to be updated.
109Specifically, the values of 'ucs-normalize-composition-exclusions' and
110'check-range", defined at the beginning of ucs-normalize.el, should be
111verified against the latest Unicode data files. But even if
112ucs-normalize.el is not modified, make sure it has been byte-compiled
113_after_ the lisp/international/uni-*.el files were regenerated, because
114it depends on uni-decomposition.el and uni-combining.el. (We don't have
115this dependency in lisp/Makefile.in because recompiling ucs-normalize.el
116is expensive, and updates for a new Unicode version are rare.)
112 117
113Next, test normalization functions against NormalizationTests.txt, 118Next, test normalization functions against NormalizationTests.txt,
114in the top-level directory run: 119in 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).