summaryrefslogtreecommitdiff
path: root/luaotfload-features.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-05 22:18:03 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-05 22:18:03 +0200
commitbb150cd0680f87de4522fbad6069b5dcc5db523b (patch)
tree940ed31f4d63f1124b1b18cee7b9fd883922425b /luaotfload-features.lua
parent4d710465b3ee51293a0f4154f14f26b951351819 (diff)
downloadluaotfload-bb150cd0680f87de4522fbad6069b5dcc5db523b.tar.gz
issue warning for incompletely supported Indic scripts
Diffstat (limited to 'luaotfload-features.lua')
-rw-r--r--luaotfload-features.lua26
1 files changed, 23 insertions, 3 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
@@ -98,6 +98,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",