[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Fill in right codepoint (c0863b0)
Marcel Fabian Krüger
tex at 2krueger.de
Thu Apr 28 12:48:34 CEST 2022
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/c0863b0e924519bb362122337e81164fc2a24660
>---------------------------------------------------------------
commit c0863b0e924519bb362122337e81164fc2a24660
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Thu Apr 28 12:48:34 2022 +0200
Fill in right codepoint
>---------------------------------------------------------------
c0863b0e924519bb362122337e81164fc2a24660
src/luaotfload-case.lua | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/luaotfload-case.lua b/src/luaotfload-case.lua
index 838489b..e8291cf 100644
--- a/src/luaotfload-case.lua
+++ b/src/luaotfload-case.lua
@@ -62,6 +62,8 @@ local greek_diacritic = {
[0x0343] = HAS_OTHER_GREEK_DIACRITIC,
}
+-- Greek handling based on https://icu.unicode.org/design/case/greek-upper
+-- with smaller variations since we ant to preserve nodes whenever possible.
local function init_greek_data()
local NFD = require'lua-uni-normalize'.NFD
local data = {}
@@ -259,7 +261,7 @@ local function process(table, feature)
if not n then break end
local char, id = is_char(n, font)
if char then
- if greek and (char >= 0x0370 and char <= 0x03ff or char >= 0x1f00 and char <= 0x1fff or char == 0x1234) then --FIXME
+ if greek and (char >= 0x0370 and char <= 0x03ff or char >= 0x1f00 and char <= 0x1fff or char == 0x2126) then
local first_datum = greek[char] or 0
local datum = first_datum
local upper = datum & UPPER_MASK
More information about the latex3-commits
mailing list.