[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: more multiscript trial (b197b76)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Jan 21 22:47:32 CET 2020
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/b197b76fa7df1cec04707551436636fa404a9ded
>---------------------------------------------------------------
commit b197b76fa7df1cec04707551436636fa404a9ded
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Jan 21 22:47:32 2020 +0100
more multiscript trial
>---------------------------------------------------------------
b197b76fa7df1cec04707551436636fa404a9ded
trials/multiscript-fallback.pdf | Bin 53455 -> 53638 bytes
trials/multiscript-fallback.tex | 34 ++++++++++++++++++++++++----------
2 files changed, 24 insertions(+), 10 deletions(-)
diff --git a/trials/multiscript-fallback.pdf b/trials/multiscript-fallback.pdf
index 8e9479e..74d3c4b 100644
Binary files a/trials/multiscript-fallback.pdf and b/trials/multiscript-fallback.pdf differ
diff --git a/trials/multiscript-fallback.tex b/trials/multiscript-fallback.tex
index 277e81f..95e634a 100644
--- a/trials/multiscript-fallback.tex
+++ b/trials/multiscript-fallback.tex
@@ -1,3 +1,4 @@
+% !Mode:: "TeX:DE:UTF-8:Main"
\documentclass{article}
\usepackage{fontspec}
@@ -5,9 +6,9 @@
{luaotfload.add_fallback
("myfallback",
{
- "DejaVuSans:mode=harf;script=greek;",
- "Cambria:mode=node;script=cyrl;",
- "NotoSansBengali:mode=harf;script=bng2"
+ "DejaVuSans:mode=harf;script=grek;color=FF0000;",
+ "Cambria:mode=node;script=cyrl;color=FF0000;",
+ "NotoSansBengali:mode=harf;script=bng2;color=FF0000;"
}
)
@@ -21,16 +22,23 @@
luaotfload.add_fallback
("mycyrlfallback",
{
- "Cambria:mode=node;script=cyrl;",
+ "Cambria:mode=node;script=cyrl;color=FFFF00;",
+ }
+ )
+
+ luaotfload.add_multiscript
+ ("cyrl",
+ {
+ cyrl = "Cambria:mode=node;script=cyrl;color=00FFFF",
}
)
luaotfload.add_multiscript
("cyrl_grek_beng",
{
- cyrl = "Cambria:mode=node;script=cyrl",
- grek = "DejaVuSans:mode=harf;script=grek",
- beng = "NotoSansBengali:mode=harf;script=beng"
+ cyrl = "Cambria:mode=node;script=cyrl;color=0000FF",
+ grek = "DejaVuSans:mode=harf;script=grek;color=0000FF;",
+ beng = "NotoSansBengali:mode=harf;script=beng;color=0000FF"
}
)
@@ -38,13 +46,14 @@
luaotfload.add_multiscript
("cyrl_grek_bng2",
{
- cyrl = "Cambria:mode=node;script=cyrl",
- grek = "DejaVuSans:mode=harf;script=grek",
- bng2 = "NotoSansBengali:mode=harf;script=bng2"
+ cyrl = "Cambria:mode=node;script=cyrl;color=00FF00;",
+ grek = "DejaVuSans:mode=harf;script=grek;color=00FF00;",
+ bng2 = "NotoSansBengali:mode=harf;script=bng2;color=00FF00;"
}
)
}
\begin{document}
+red= fallback, green = bng2 multiscript, blue= beng multiscript.
\begin{itemize}
\item a!? π!? a БѨ!? a \char"0995\char"09BF
@@ -73,6 +82,11 @@ a!? π!? a БѨ!? \char"0995\char"09BF
\fontspec{Latin Modern Roman}[RawFeature={multiscript=cyrl_grek_bng2,fallback=myfallback}]
a!? π!? a БѨ!? \char"0995\char"09BF
+\item \verb+{multiscript=cyrl,fallback=myfallback}+:
+
+\fontspec{Latin Modern Roman}[RawFeature={multiscript=cyrl,fallback=myfallback}]
+a!? π!? a БѨ!? \char"0995\char"09BF
+
\item \verb+{multiscript=auto,fallback=myfallback}+:
-- Why is the last !? in latin modern?
More information about the latex3-commits
mailing list