From 9c4119959f4fb6e8e6b1741cc039c9e6123be768 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Thu, 21 Apr 2022 22:33:34 +1200 Subject: [PATCH] fix: Don't attempt to select initials when fullname contains non Latin characters --- tests/input/draft-v3-features.xml | 2 ++ tests/valid/draft-v3-features.prepped.xml | 8 ++++++-- tests/valid/draft-v3-features.text | 6 +++++- tests/valid/draft-v3-features.v3.py36.html | 13 ++++++++++--- tests/valid/draft-v3-features.v3.py37.html | 13 ++++++++++--- tests/valid/draft-v3-features.v3.py38.html | 13 ++++++++++--- tests/valid/elements.bom.text | 4 ++-- tests/valid/elements.pages.text | 4 ++-- tests/valid/elements.text | 4 ++-- tests/valid/elements.v3.py36.html | 6 +++--- tests/valid/elements.v3.py37.html | 6 +++--- tests/valid/elements.v3.py38.html | 6 +++--- tests/valid/elements.wip.text | 4 ++-- xml2rfc/util/name.py | 13 ++++++++----- 14 files changed, 68 insertions(+), 34 deletions(-) diff --git a/tests/input/draft-v3-features.xml b/tests/input/draft-v3-features.xml index b7fa591cb..dc816370e 100644 --- a/tests/input/draft-v3-features.xml +++ b/tests/input/draft-v3-features.xml @@ -32,6 +32,8 @@ + + diff --git a/tests/valid/draft-v3-features.prepped.xml b/tests/valid/draft-v3-features.prepped.xml index eb0d27152..0ea03c9ef 100644 --- a/tests/valid/draft-v3-features.prepped.xml +++ b/tests/valid/draft-v3-features.prepped.xml @@ -1,6 +1,6 @@ - - + + @@ -31,6 +31,8 @@ + + @@ -4312,6 +4314,8 @@ foo = bar + + diff --git a/tests/valid/draft-v3-features.text b/tests/valid/draft-v3-features.text index 6bc9e6ded..edb0135f5 100644 --- a/tests/valid/draft-v3-features.text +++ b/tests/valid/draft-v3-features.text @@ -4,8 +4,9 @@ Network Working Group J. Reschke, Ed. Internet-Draft -Intended status: Experimental Π. Ὁ. Σάμιος (P. O. Samos) +Intended status: Experimental Πυθαγόρας ὁ Σάμιος (P. O. Samos) Expires: October 17, 2017 Εργαστήριο γεωμετρία (Geometry Labs) + A. Bergström April 15, 2017 @@ -1508,3 +1509,6 @@ Authors' Addresses Εργαστήριο γεωμετρία 831 03 Πυθαγόρειο Ελλάδα + + + Armin Bergström diff --git a/tests/valid/draft-v3-features.v3.py36.html b/tests/valid/draft-v3-features.v3.py36.html index 191505f31..23a2f81b4 100644 --- a/tests/valid/draft-v3-features.v3.py36.html +++ b/tests/valid/draft-v3-features.v3.py36.html @@ -7,12 +7,13 @@ xml2rfc V3 Feature Tests + - + @@ -28,7 +29,7 @@ April 2017 -Reschke & Samos +Reschke, et al. Expires October 17, 2017 [Page] @@ -56,10 +57,13 @@
-Π. Ὁ. Σάμιος (P. O. Samos)
+Πυθαγόρας ὁ Σάμιος (P. O. Samos)
Εργαστήριο γεωμετρία (Geometry Labs)
+
+
A. Bergström
+
@@ -5274,6 +5278,9 @@

Ελλάδα
+
+
Armin Bergström
+