[latex3-commits] [git/LaTeX3-latex3-latex3] master: Case-changing support for Greek (cb0ac4d75)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Feb 24 09:27:45 CET 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/cb0ac4d753d9cb7d39fa499df169632bd74caa5f
>---------------------------------------------------------------
commit cb0ac4d753d9cb7d39fa499df169632bd74caa5f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Feb 24 08:26:55 2020 +0000
Case-changing support for Greek
Currently just the core letters, accents may need a bit
of thought.
>---------------------------------------------------------------
cb0ac4d753d9cb7d39fa499df169632bd74caa5f
l3kernel/CHANGELOG.md | 2 +-
l3kernel/l3text-case.dtx | 33 +++++++++++++++++++++++++++++++++
l3kernel/testfiles/m3text002.tlg | 14 +++++++-------
l3kernel/testfiles/m3text002.uptex.tlg | 18 +++++++++---------
4 files changed, 50 insertions(+), 17 deletions(-)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 4710df549..995a4dde5 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -8,7 +8,7 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
### Changed
-- Extend case-changing encoding support to `T2` (Cyrillic)
+- Extend case-changing encoding support to Cyrillic and Greek
## [2020-02-21]
diff --git a/l3kernel/l3text-case.dtx b/l3kernel/l3text-case.dtx
index 76543e453..fe846d873 100644
--- a/l3kernel/l3text-case.dtx
+++ b/l3kernel/l3text-case.dtx
@@ -1440,6 +1440,39 @@
{ 042D } { 044D }
{ 042E } { 044E }
{ 042F } { 044F }
+% \end{macrocode}
+% Core Greek support: there may need to be a little more work here to
+% deal completely with accents.
+% \begin{macrocode}
+ { 0391 } { 03B1 }
+ { 0392 } { 03B2 }
+ { 0393 } { 03B3 }
+ { 0394 } { 03B4 }
+ { 0395 } { 03B5 }
+ { 0396 } { 03B6 }
+ { 0397 } { 03B7 }
+ { 0398 } { 03B8 }
+ { 0399 } { 03B9 }
+ { 039A } { 03BA }
+ { 039B } { 03BB }
+ { 039C } { 03BC }
+ { 039D } { 03BD }
+ { 039E } { 03BE }
+ { 039F } { 03BF }
+ { 03A0 } { 03C0 }
+ { 03A1 } { 03C1 }
+ { 03A3 } { 03C3 }
+ { 03A4 } { 03C4 }
+ { 03A5 } { 03C5 }
+ { 03A6 } { 03C6 }
+ { 03A7 } { 03C7 }
+ { 03A8 } { 03C8 }
+ { 03A9 } { 03C9 }
+ { 03D8 } { 03D9 }
+ { 03DA } { 03DB }
+ { 03DC } { 03DD }
+ { 03DE } { 03DF }
+ { 03E0 } { 03E1 }
\q_recursion_tail ?
\q_recursion_stop
\cs_set_protected:Npn \@@_tmp:w #1#2#3
diff --git a/l3kernel/testfiles/m3text002.tlg b/l3kernel/testfiles/m3text002.tlg
index 58a05e8f2..d5889d3c7 100644
--- a/l3kernel/testfiles/m3text002.tlg
+++ b/l3kernel/testfiles/m3text002.tlg
@@ -81,7 +81,7 @@ No problems
TEST 8: Unicode case changing
============================================================
^^c3^^a5^^c3^^a9^^c3^^ae^^c3^^b8^^e1^^bd^^ad^^d0^^b4^^ce^^b1^^c6^^90
-^^c3^^85^^c3^^89^^c3^^8e^^c3^^98^^e1^^bd^^ad^^d0^^94^^ce^^b1^^c6^^90
+^^c3^^85^^c3^^89^^c3^^8e^^c3^^98^^e1^^bd^^ad^^d0^^94^^ce^^91^^c6^^90
^^c3^^85^^c3^^a9^^c3^^ae^^c3^^b8^^e1^^bd^^ad^^d0^^b4^^ce^^b1^^c6^^90
^^c3^^85^^c3^^a9^^c3^^ae^^c3^^b8^^e1^^bd^^ad^^d0^^b4^^ce^^b1^^c6^^90
============================================================
@@ -96,13 +96,13 @@ Fu^^c3^^9fball
============================================================
TEST 10: The final sigma rule
============================================================
+^^e1^^bd^^88^^ce^^b4^^cf^^85^^cf^^83^^cf^^83^^ce^^b5^^ce^^8e^^cf^^83 (^^e1^^bd^^88^^ce^^b4^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^8e^^ce^^a3
+^^e1^^bd^^88^^ce^^b4^^cf^^85^^cf^^83^^cf^^83^^ce^^b5^^ce^^8e^^cf^^83
^^e1^^bd^^88^^ce^^94^^ce^^a5^^ce^^a3^^ce^^a3^^ce^^95^^ce^^8e^^ce^^a3
+^^e1^^bd^^88^^ce^^b4^^cf^^85^^cf^^83^^cf^^83^^ce^^b5^^ce^^8e^^cf^^83
^^e1^^bd^^88^^ce^^94^^ce^^a5^^ce^^a3^^ce^^a3^^ce^^95^^ce^^8e^^ce^^a3
============================================================
============================================================
@@ -124,8 +124,8 @@ TEST 13: Greek
============================================================
^^e1^^bd^^88^^ce^^94^^ce^^a5^^ce^^a3^^ce^^a3^^ce^^95^^ce^^8e^^ce^^a3
^^e1^^bd^^88^^ce^^94^^ce^^a5^^ce^^a3^^ce^^a3^^ce^^95^^ce^^8e^^ce^^a3
-^^e1^^bd^^88^^ce^^94^^ce^^a5^^ce^^a3^^ce^^a3^^ce^^95^^ce^^8e^^ce^^a3
-^^e1^^bd^^88^^ce^^94^^ce^^a5^^ce^^a3^^ce^^a3^^ce^^95^^ce^^8e^^ce^^a3
+^^e1^^bd^^88^^ce^^b4^^cf^^85^^cf^^83^^cf^^83^^ce^^b5^^ce^^8e^^cf^^83
+^^e1^^bd^^88^^ce^^b4^^cf^^85^^cf^^83^^cf^^83^^ce^^b5^^ce^^8e^^cf^^83
============================================================
============================================================
TEST 14: Turkish/Azeri
diff --git a/l3kernel/testfiles/m3text002.uptex.tlg b/l3kernel/testfiles/m3text002.uptex.tlg
index 3f6652853..985c2cf17 100644
--- a/l3kernel/testfiles/m3text002.uptex.tlg
+++ b/l3kernel/testfiles/m3text002.uptex.tlg
@@ -81,7 +81,7 @@ No problems
TEST 8: Unicode case changing
============================================================
^^e5^^e9^^ee^^f8ὭдαƐ
-^^c5^^c9^^ce^^d8ὭДαƐ
+^^c5^^c9^^ce^^d8ὭДΑƐ
^^c5^^e9^^ee^^f8ὭдαƐ
^^c5^^e9^^ee^^f8ὭдαƐ
============================================================
@@ -96,17 +96,17 @@ Fu^^dfball
============================================================
TEST 10: The final sigma rule
============================================================
+ὈδυσσεΎσ (ὈδυσσεΎσ) ὈδυσσεΎσ, ὈδυσσεΎσ{}
+ὈδυσσεΎσ\noop
ὈΔΥΣΣΕΎΣ (ὈΔΥΣΣΕΎΣ) ὈΔΥΣΣΕΎΣ, ὈΔΥΣΣΕΎΣ{}
ὈΔΥΣΣΕΎΣ\noop
+ὈδυσσεΎσ (ὈδυσσεΎσ) ὈδυσσεΎσ, ὈδυσσεΎσ{}
+ὈδυσσεΎσ\noop
ὈΔΥΣΣΕΎΣ (ὈΔΥΣΣΕΎΣ) ὈΔΥΣΣΕΎΣ, ὈΔΥΣΣΕΎΣ{}
ὈΔΥΣΣΕΎΣ\noop
-ὈΔΥΣΣΕΎΣ (ὈΔΥΣΣΕΎΣ) ὈΔΥΣΣΕΎΣ, ὈΔΥΣΣΕΎΣ{}
-ὈΔΥΣΣΕΎΣ\noop
-ὈΔΥΣΣΕΎΣ (ὈΔΥΣΣΕΎΣ) ὈΔΥΣΣΕΎΣ, ὈΔΥΣΣΕΎΣ{}
-ὈΔΥΣΣΕΎΣ\noop
-ὈΔΥΣΣΕΎΣ
-ὈΔΥΣΣΕΎΣ
+ὈδυσσεΎσ
ὈΔΥΣΣΕΎΣ
+ὈδυσσεΎσ
ὈΔΥΣΣΕΎΣ
============================================================
============================================================
@@ -128,8 +128,8 @@ TEST 13: Greek
============================================================
ὈΔΥΣΣΕΎΣ
ὈΔΥΣΣΕΎΣ
-ὈΔΥΣΣΕΎΣ
-ὈΔΥΣΣΕΎΣ
+ὈδυσσεΎσ
+ὈδυσσεΎσ
============================================================
============================================================
TEST 14: Turkish/Azeri
More information about the latex3-commits
mailing list.