[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Structuring.pm (sort_indices): give
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Structuring.pm (sort_indices): give the 'UCA' => 22 argument to Unicode::Collate to have a stable collation. |
Date: |
Fri, 30 Dec 2022 16:08:34 -0500 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new ba49ac7af7 * tp/Texinfo/Structuring.pm (sort_indices): give the 'UCA'
=> 22 argument to Unicode::Collate to have a stable collation.
ba49ac7af7 is described below
commit ba49ac7af7619d05ff075c2419cf3634eaf5d277
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Dec 30 22:08:24 2022 +0100
* tp/Texinfo/Structuring.pm (sort_indices): give the 'UCA' => 22
argument to Unicode::Collate to have a stable collation.
---
ChangeLog | 5 +++++
tp/Texinfo/Structuring.pm | 8 +++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 50c0439d95..bdfddc0ff5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-12-30 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Structuring.pm (sort_indices): give the 'UCA' => 22
+ argument to Unicode::Collate to have a stable collation.
+
2022-12-30 Patrice Dumas <pertusus@free.fr>
* tp/Makefile.am (test_files), tp/Makefile.tres, tp/t/09indices.t,
diff --git a/tp/Texinfo/Structuring.pm b/tp/Texinfo/Structuring.pm
index 3b42890358..64d7b3df36 100644
--- a/tp/Texinfo/Structuring.pm
+++ b/tp/Texinfo/Structuring.pm
@@ -1833,7 +1833,13 @@ sub sort_indices($$$;$)
# http://www.unicode.org/reports/tr10/#Variable_Weighting
#my $collator = Unicode::Collate::Locale->new('locale' => $documentlanguage,
# 'variable' => 'Non-Ignorable');
- my $collator = Unicode::Collate->new('variable' => 'Non-Ignorable');
+ # The Unicode::Collate sorting changes often, based on the UCA version.
+ # To get a reproducible sorting 'UCA' => 22 corresponding to the 6.0.0
+ # version of the DUCET/allkeys.txt file which is the reference for
+ # Unicode::Collate. This version is chosen to be old and may also correspond
+ # to a rather important change compared to theprevious versions.
+ my $collator = Unicode::Collate->new('variable' => 'Non-Ignorable',
+ 'UCA' => 22);
my $sorted_index_entries;
my $index_entries_sort_strings = {};
return $sorted_index_entries, $index_entries_sort_strings
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Structuring.pm (sort_indices): give the 'UCA' => 22 argument to Unicode::Collate to have a stable collation.,
Patrice Dumas <=
- Prev by Date:
branch master updated: * tp/Makefile.am (test_files), tp/Makefile.tres, tp/t/09indices.t, tp/tests/indices/Makefile.am (EXTRA_DIST), tp/tests/indices/list-of-tests: move index_table test to tp/t/09indices.t, move the texinfo file too.
- Next by Date:
branch master updated: * tp/Texinfo/Structuring.pm (sort_indices): add comments on how to test compatibility of Unicode::Collate with tests.
- Previous by thread:
branch master updated: * tp/Makefile.am (test_files), tp/Makefile.tres, tp/t/09indices.t, tp/tests/indices/Makefile.am (EXTRA_DIST), tp/tests/indices/list-of-tests: move index_table test to tp/t/09indices.t, move the texinfo file too.
- Next by thread:
branch master updated: * tp/Texinfo/Structuring.pm (sort_indices): add comments on how to test compatibility of Unicode::Collate with tests.
- Index(es):