mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 02:31:03 -08:00
Fix 'ucs-normalize' tests following Unciode 17.0 import
* lisp/international/ucs-normalize.el (ucs-normalize-composition-exclusions): Doc fix. * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-tests--failing-lines-part1): Update to _really_ match Unicode 17.0. * admin/notes/unicode: Update instructions.
This commit is contained in:
parent
7cdaab61c4
commit
6f9a46f926
3 changed files with 15 additions and 10 deletions
|
|
@ -97,18 +97,23 @@ might need to be updated because it knows about used and unused ranges
|
||||||
of Unicode codepoints, which a new release of the Unicode Standard
|
of Unicode codepoints, which a new release of the Unicode Standard
|
||||||
could change.
|
could change.
|
||||||
|
|
||||||
The data used by ucs-normalize.el might need to be updated.
|
Next, run the ucs-names test:
|
||||||
Specifically, the values of 'ucs-normalize-composition-exclusions' and
|
|
||||||
'check-range", defined at the beginning of ucs-normalize.el, should be
|
|
||||||
verified against the latest Unicode data files.
|
|
||||||
|
|
||||||
Run the ucs-names test:
|
|
||||||
|
|
||||||
make -C test lisp/international/mule-tests
|
make -C test lisp/international/mule-tests
|
||||||
|
|
||||||
If it fails, the exclusion ranges of codepoints in
|
If it fails, the exclusion ranges of codepoints in
|
||||||
'mule-cmds-tests--ucs-names-missing-names' may need to be updated to the
|
'mule-cmds-tests--ucs-names-missing-names' may need to be updated to
|
||||||
added Unicode codepoints.
|
account for the added Unicode codepoints.
|
||||||
|
|
||||||
|
The data used by ucs-normalize.el might need to be updated.
|
||||||
|
Specifically, the values of 'ucs-normalize-composition-exclusions' and
|
||||||
|
'check-range", defined at the beginning of ucs-normalize.el, should be
|
||||||
|
verified against the latest Unicode data files. But even if
|
||||||
|
ucs-normalize.el is not modified, make sure it has been byte-compiled
|
||||||
|
_after_ the lisp/international/uni-*.el files were regenerated, because
|
||||||
|
it depends on uni-decomposition.el and uni-combining.el. (We don't have
|
||||||
|
this dependency in lisp/Makefile.in because recompiling ucs-normalize.el
|
||||||
|
is expensive, and updates for a new Unicode version are rare.)
|
||||||
|
|
||||||
Next, test normalization functions against NormalizationTests.txt,
|
Next, test normalization functions against NormalizationTests.txt,
|
||||||
in the top-level directory run:
|
in the top-level directory run:
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@
|
||||||
#x1D1BF #x1D1C0)
|
#x1D1BF #x1D1C0)
|
||||||
"Composition Exclusion List.
|
"Composition Exclusion List.
|
||||||
This list is taken from
|
This list is taken from
|
||||||
https://www.unicode.org/Public/UNIDATA/15.0/CompositionExclusions.txt")
|
https://www.unicode.org/Public/UNIDATA/CompositionExclusions.txt")
|
||||||
|
|
||||||
;; Unicode ranges where decompositions & combining characters are
|
;; Unicode ranges where decompositions & combining characters are
|
||||||
;; defined. Find them by running the following Awk program on
|
;; defined. Find them by running the following Awk program on
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ Must be called with `ucs-normalize-tests--norm-buf' as current buffer."
|
||||||
(should-not (ucs-normalize-tests--rule1-failing-for-partX 0)))
|
(should-not (ucs-normalize-tests--rule1-failing-for-partX 0)))
|
||||||
|
|
||||||
(defconst ucs-normalize-tests--failing-lines-part1
|
(defconst ucs-normalize-tests--failing-lines-part1
|
||||||
(list 2432))
|
(list ))
|
||||||
|
|
||||||
;; Keep a record of failures, for consulting afterwards (the ert
|
;; Keep a record of failures, for consulting afterwards (the ert
|
||||||
;; backtrace only shows a truncated version of these lists).
|
;; backtrace only shows a truncated version of these lists).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue