[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Add support for uppercasing with capital eszett (2f71dcb)

Marcel Fabian Krüger tex at 2krueger.de
Thu Apr 28 16:33:10 CEST 2022


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/2f71dcbea7131a57d42e8a73a88c04a9276941fd

>---------------------------------------------------------------

commit 2f71dcbea7131a57d42e8a73a88c04a9276941fd
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu Apr 28 16:33:10 2022 +0200

    Add support for uppercasing with capital eszett


>---------------------------------------------------------------

2f71dcbea7131a57d42e8a73a88c04a9276941fd
 src/luaotfload-case.lua | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/luaotfload-case.lua b/src/luaotfload-case.lua
index 20c5506..78051b7 100644
--- a/src/luaotfload-case.lua
+++ b/src/luaotfload-case.lua
@@ -37,6 +37,11 @@ local disc = node.id'disc'
 -- * The only languages with special mappings are Lithuanian (lt/"LTH "/lit), Turkish (tr/"TRK "/tur), and Azeri/Azerbaijani (az/"AZE "/aze)
 ]]
 
+-- Here we manipulate the uppercase table a bit to add the `de-alt` language using capital eszett.
+
+uppercase[0x00DF]['de-xeszett'] = { _ = { 0x1E9E } }
+uppercase[0x00DF]['de-alt'] = uppercase[0x00DF]['de-xeszett']
+
 local UPPER_MASK = 0x3FF
 local HAS_VOWEL = 0x200000
 local HAS_YPOGEGRAMMENI = 0x400000





More information about the latex3-commits mailing list.