From bb150cd0680f87de4522fbad6069b5dcc5db523b Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 5 May 2013 22:18:03 +0200 Subject: issue warning for incompletely supported Indic scripts --- luaotfload-features.lua | 26 +++++++++++++++++++++++--- luaotfload.dtx | 29 +++++++++++++++++++---------- 2 files changed, 42 insertions(+), 13 deletions(-) diff --git a/luaotfload-features.lua b/luaotfload-features.lua index 0665804..941373d 100644 --- a/luaotfload-features.lua +++ b/luaotfload-features.lua @@ -6,9 +6,9 @@ if not modules then modules = { } end modules ["features"] = { license = "see context related readme files" } -local format, insert = string.format, table.insert -local type, next = type, next -local lpegmatch = lpeg.match +local format, insert = string.format, table.insert +local type, next = type, next +local lpegmatch = lpeg.match ---[[ begin included font-ltx.lua ]] --- this appears to be based in part on luatex-fonts-def.lua @@ -97,6 +97,21 @@ defaults.tibt = defaults.khmr defaults.lao = defaults.thai +--[[doc-- + + As discussed, we will issue a warning because of incomplete support + when one of the scripts below is requested. + + Reference: https://github.com/lualatex/luaotfload/issues/31 + +--doc]]-- + +local support_incomplete = table.tohash({ + "deva", "beng", "guru", "gujr", + "orya", "taml", "telu", "knda", + "mlym", "sinh", +}, true) + --[[doc-- Which features are active by default depends on the script requested. --doc]]-- @@ -105,6 +120,11 @@ Which features are active by default depends on the script requested. local set_default_features = function (speclist) speclist = speclist or { } local script = speclist.script or "dflt" + if support_incomplete[script] then + report("log", 0, "load", + "support for the requested script: “%s” may be incomplete", + script) + end report("log", 0, "load", "auto-selecting default features for script: %s", diff --git a/luaotfload.dtx b/luaotfload.dtx index d8d1863..7e737b8 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -1,8 +1,12 @@ % \iffalse meta-comment % -% Copyright (C) 2009-2013 by Elie Roux -% and Khaled Hosny -% (Support: .) +% Copyright (C) 2009-2013 +% by Elie Roux +% and Khaled Hosny +% and Philipp Gesang +% +% Home: https://github.com/lualatex/luaotfload +% Support: . % % This work is under the CC0 license. % @@ -47,9 +51,13 @@ \preamble This is a generated file. -Copyright (C) 2009-2013 by by Elie Roux - and Khaled Hosny - (Support: .) +Copyright (C) 2009-2013 + by Elie Roux + and Khaled Hosny + and Philipp Gesang + + Home: https://github.com/lualatex/luaotfload + Support: . This work is under the CC0 license. @@ -119,7 +127,7 @@ and the derived files citecolor=\primarycolor, pdftitle={The luaotfload package}, pdfsubject={OpenType layout system for Plain TeX and LaTeX}, - pdfauthor={Elie Roux & Khaled Hosny}, + pdfauthor={Elie Roux & Khaled Hosny & Philipp Gesang}, pdfkeywords={luatex, lualatex, unicode, opentype} ]{hyperref} \usepackage{fontspec} @@ -196,9 +204,10 @@ and the derived files % \GetFileInfo{luaotfload.drv} % % \title{The \identifier{luaotfload} package} -% \date{2013/04/16 v2.2} -% \author{Elie Roux and Khaled Hosny\\ -% Support: \email{lualatex-dev@tug.org}} +% \date{2013/05/05 v2.2} +% \author{Elie Roux · Khaled Hosny · Philipp Gesang\\ +% Home: https://github.com/lualatex/luaotfload\\ +% Support: \email{lualatex-dev@tug.org}} % % \maketitle % -- cgit v1.2.3