[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Slightly cleaner parser (eddb000)

Marcel Fabian Krüger tex at 2krueger.de
Sun Feb 9 15:55:47 CET 2020


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

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

commit eddb0006b797194b12822c2ab1173112af59b7d4
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sun Feb 9 15:55:47 2020 +0100

    Slightly cleaner parser


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

eddb0006b797194b12822c2ab1173112af59b7d4
 src/luaotfload-parsers.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/luaotfload-parsers.lua b/src/luaotfload-parsers.lua
index 213da01..2c2527d 100644
--- a/src/luaotfload-parsers.lua
+++ b/src/luaotfload-parsers.lua
@@ -536,7 +536,7 @@ local featuresep = comma + semicolon
     we only support the shorthands for italic / bold / bold italic
     shapes, as well as setting optical size, the rest is ignored.
 --doc]]--
-local style_modifier    = (P"BI" + P"IB" + P"bi" + P"ib" + S"biBI")
+local style_modifier    = (S'bB' * S'iI'^-1 + S'iI' * S'bB'^-1)
                         / stringlower
 local size_modifier     = S"Ss" * P"="    --- optical size
                         * Cc"optsize" * C(decimal)





More information about the latex3-commits mailing list.