From fc358ce7332053945afe16ced2a271556cdccfb7 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 4 Feb 2020 03:01:28 +0000
Subject: CTAN sync 202002040301

---
 .../luatex/generic/luaotfload/luaotfload-latex.tex | 33 +++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

(limited to 'macros/luatex/generic/luaotfload/luaotfload-latex.tex')

diff --git a/macros/luatex/generic/luaotfload/luaotfload-latex.tex b/macros/luatex/generic/luaotfload/luaotfload-latex.tex
index 8a68efd035..cdcb26e26e 100644
--- a/macros/luatex/generic/luaotfload/luaotfload-latex.tex
+++ b/macros/luatex/generic/luaotfload/luaotfload-latex.tex
@@ -208,6 +208,7 @@
 %% one that we could map directly onto Latex’s \verb|…|.
 \usepackage{pdfpages}
 \usepackage {listings}
+\usepackage{csquotes}
 \usepackage {luatexbase}
 \lstset {
   basicstyle=\ttfamily,
@@ -280,7 +281,37 @@
     end
   end
 }
-
+\directlua{
+           luaotfload.add_colorscheme("myscheme",
+           {
+             ["00FFFF30"] = {"default"},
+             ["FF0000"] = {"kabeng"},
+             ["00FF00"] = {"ivowelsignbeng"},
+             ["0000FF"] = {369} %% 369 is the GID of "nadarabeng"
+           })
+           }
+
+ \directlua{
+     luaotfload.add_multiscript
+       ("cyrlgrekbeng",
+        {
+          cyrl = "DejaVuSans:mode=node;script=cyrl;color=FF0000;",
+          grek = "texgyreheros:mode=harf;script=grek;color=0000FF;",
+          beng = "NotoSansBengali:mode=harf;script=bng2;color=00FF00"
+        }
+       )
+      }
+ \directlua
+    {luaotfload.add_fallback
+     ("myfallback",
+       {
+        "DejaVuSans:mode=harf;script=grek;color=FF0000;",
+        "cmuserif:mode=node;script=cyrl;color=00FF00;",
+        "NotoSansBengali:mode=harf;script=bng2;color=0000FF;",
+        "NotoColorEmoji:mode=harf;"
+       }
+     )
+    }       
 \def \listingpar {\endgraf}
 
 \let \endlistingline \relax
-- 
cgit v1.2.3

