gbranden pushed a commit to branch master
in repository groff.
commit a9c72e050c5fb25552ca56430384521233a7aaf5
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Aug 29 00:10:52 2024 -0500
Update with respect to Unicode 15.1.0.
* src/libs/libgroff/uniuni.cpp:
* src/utils/afmtodit/afmtodit.tables: Regenerate.
Fixes <https://savannah.gnu.org/bugs/?64683>.
---
ChangeLog | 9 +++++++++
src/libs/libgroff/uniuni.cpp | 23 ++++++++++++++---------
src/utils/afmtodit/afmtodit.tables | 6 +++---
3 files changed, 26 insertions(+), 12 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a797675a3..482bc4fa6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -80,6 +80,15 @@
* src/roff/troff/input.cpp (usage): Sync language with troff(1).
+2024-08-28 G. Branden Robinson <[email protected]>
+
+ Update with respect to Unicode 15.1.0.
+
+ * src/libs/libgroff/uniuni.cpp:
+ * src/utils/afmtodit/afmtodit.tables: Regenerate.
+
+ Fixes <https://savannah.gnu.org/bugs/?64683>.
+
2024-08-28 G. Branden Robinson <[email protected]>
* src/libs/libgroff/make-uniuni: Fix code style nits. Permit
diff --git a/src/libs/libgroff/uniuni.cpp b/src/libs/libgroff/uniuni.cpp
index e3b270832..a60a0ee33 100644
--- a/src/libs/libgroff/uniuni.cpp
+++ b/src/libs/libgroff/uniuni.cpp
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2024 Free Software Foundation, Inc.
Written by Werner Lemberg <[email protected]>
This file is part of groff.
@@ -18,8 +17,8 @@ You should have received a copy of the GNU General Public
License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
// This code has been algorithmically derived from the file
-// UnicodeData.txt, version 7.0.0, available from unicode.org,
-// on 2014-12-16.
+// UnicodeData.txt, version 15.1.0, available from unicode.org,
+// on 2024-08-29.
#include "lib.h"
#include "stringclass.h"
@@ -36,7 +35,8 @@ implement_ptable(unicode_decompose)
PTABLE(unicode_decompose) unicode_decompose_table;
-// the first digit in the composite string gives the number of composites
+// The first digit in the composite string gives the number of
+// characters in the decomposed sequence of simple characters.
struct S {
const char *key;
@@ -1547,6 +1547,7 @@ struct S {
{ "114BE", "2114B9_114BD" },
{ "115BA", "2115B8_115AF" },
{ "115BB", "2115B9_115AF" },
+ { "11938", "211935_11930" },
{ "1D15E", "21D157_1D165" },
{ "1D15F", "21D158_1D165" },
{ "1D160", "31D158_1D165_1D16E" },
@@ -2112,11 +2113,9 @@ static struct unicode_decompose_init {
unicode_decompose_init::unicode_decompose_init()
{
- for (unsigned int i = 0;
- i < sizeof(unicode_decompose_list)/sizeof(unicode_decompose_list[0]);
- i++) {
+ for (size_t i = 0; i < array_length(unicode_decompose_list); i++) {
unicode_decompose *dec = new unicode_decompose[1];
- dec->value = (char *)unicode_decompose_list[i].value;
+ dec->value = const_cast<char *>(unicode_decompose_list[i].value);
unicode_decompose_table.define(unicode_decompose_list[i].key, dec);
}
}
@@ -2126,3 +2125,9 @@ const char *decompose_unicode(const char *s)
unicode_decompose *result = unicode_decompose_table.lookup(s);
return result ? result->value : 0;
}
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
diff --git a/src/utils/afmtodit/afmtodit.tables
b/src/utils/afmtodit/afmtodit.tables
index 16e3647ec..2a2f140e0 100644
--- a/src/utils/afmtodit/afmtodit.tables
+++ b/src/utils/afmtodit/afmtodit.tables
@@ -1,6 +1,6 @@
# This table was algorithmically derived from the file 'UnicodeData.txt'
-# for Unicode 15.0.0, available from unicode.org,
-# on 2022-10-09.
+# for Unicode 15.1.0, available from unicode.org,
+# on 2024-08-28.
my %unicode_decomposed = (
"00C0", "0041_0300",
"00C1", "0041_0301",
@@ -2067,7 +2067,7 @@ my %unicode_decomposed = (
# This table was algorithmically derived from the Adobe Glyph List (AGL)
# file 'glyphlist.txt' from the GitHub Adobe Type Tools agl-aglfn
-# project, on 2022-10-09.
+# project, on 2024-08-28.
#
# See "groff:" comments for altered mappings.
my %AGL_to_unicode = (
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit