[latex3-commits] [git/LaTeX3-latex3-luaotfload] asciiquotes-dev: Use ASCII quotes (35c36ef)
Marcel Fabian Krüger
tex at 2krueger.de
Sat Feb 8 02:31:28 CET 2020
Repository : https://github.com/latex3/luaotfload
On branch : asciiquotes-dev
Link : https://github.com/latex3/luaotfload/commit/35c36ef66d003e18ef9b89171da0d51d69a09b9c
>---------------------------------------------------------------
commit 35c36ef66d003e18ef9b89171da0d51d69a09b9c
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Sat Feb 8 02:31:28 2020 +0100
Use ASCII quotes
>---------------------------------------------------------------
35c36ef66d003e18ef9b89171da0d51d69a09b9c
src/luaotfload-database.lua | 6 +++---
src/luaotfload-init.lua | 16 ++++++++--------
src/luaotfload-loaders.lua | 10 +++++-----
src/luaotfload-main.lua | 18 +++++++++---------
4 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 5d772bc..d758798 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -2344,7 +2344,7 @@ local filter_out_pwd = function (dirs)
local dir = path_normalize (lpegmatch (stripslashes, dirs[i]))
if dir == "." or dir == pwd then
logreport ("both", 3, "db",
- "Path “%s” matches $PWD (“%s”), skipping.",
+ "Path \"%s\" matches $PWD (\"%s\"), skipping.",
dir, pwd)
else
result[#result+1] = dir
@@ -3356,12 +3356,12 @@ local collect_statistics = function (mappings)
pprint_top (families, 4, true)
logreport ("both", 0, "db",
- " · %d different “subfamily” kinds.",
+ " · %d different \"subfamily\" kinds.",
setsize (subfamily))
pprint_top (subfamily, 4)
logreport ("both", 0, "db",
- " · %d different “typographicsubfamily” kinds.",
+ " · %d different \"typographicsubfamily\" kinds.",
setsize (typographicsubfamily))
pprint_top (typographicsubfamily, 4)
diff --git a/src/luaotfload-init.lua b/src/luaotfload-init.lua
index 1f4b035..139f8c7 100644
--- a/src/luaotfload-init.lua
+++ b/src/luaotfload-init.lua
@@ -319,7 +319,7 @@ local function init_main(early_hook)
--- of our fontloader package. Perhaps something’s wrong with the status
--- file which contains the datestamped filename? In any case, it can’t
--- hurt reporting it as a bug.
- logreport ("both", 0, "init", "Fontloader substitution failed, got “default”.")
+ logreport ("both", 0, "init", "Fontloader substitution failed, got \"default\".")
logreport ("log", 4, "init", "Falling back to reference fontloader.")
load_fontloader_module (luaotfload.fontloader_package)
@@ -392,36 +392,36 @@ local function init_main(early_hook)
elseif lfsisdir (fontloader) and verify_context_dir (fontloader) then
logreport ("log", 0, "init",
- "Loading Context files under prefix “%s”.",
+ "Loading Context files under prefix \"%s\".",
fontloader)
load_context_modules (fontloader)
elseif lfs.isfile (fontloader) then
logreport ("log", 0, "init",
- "Loading fontloader from absolute path “%s”.",
+ "Loading fontloader from absolute path \"%s\".",
fontloader)
local _void = assert (loadfile (fontloader, nil, context_environment)) ()
elseif kpsefind_file (fontloader) then
local path = kpsefind_file (fontloader)
logreport ("log", 0, "init",
- "Loading fontloader “%s” from kpse-resolved path “%s”.",
+ "Loading fontloader \"%s\" from kpse-resolved path \"%s\".",
fontloader, path)
local _void = assert (loadfile (path, nil, context_environment)) ()
elseif kpsefind_file (("fontloader-%s.lua"):format(fontloader)) then
logreport ("log", 0, "init",
- "Using predefined fontloader “%s”.",
+ "Using predefined fontloader \"%s\".",
fontloader)
load_fontloader_module (fontloader)
else
logreport ("both", 0, "init",
- "No match for requested fontloader “%s”.",
+ "No match for requested fontloader \"%s\".",
fontloader)
fontloader = luaotfload.fontloader_package
logreport ("both", 0, "init",
- "Defaulting to predefined fontloader “%s”.",
+ "Defaulting to predefined fontloader \"%s\".",
fontloader)
load_fontloader_module (fontloader)
end
@@ -429,7 +429,7 @@ local function init_main(early_hook)
---load_fontloader_module "font-odv.lua" --- <= Devanagari support from Context
logreport ("log", 0, "init",
- "Context OpenType loader version “%s”",
+ "Context OpenType loader version \"%s\"",
fonts.handlers.otf.version)
callback.register = trapped_register
nodes = context_environment.nodes
diff --git a/src/luaotfload-loaders.lua b/src/luaotfload-loaders.lua
index 526ea64..261dbf8 100644
--- a/src/luaotfload-loaders.lua
+++ b/src/luaotfload-loaders.lua
@@ -39,7 +39,7 @@ local eval_reader = function (specification)
local eval = specification.eval
if not eval or type (eval) ~= "function" then return nil end
logreport ("both", 0, "loaders",
- "eval: found tfmdata for “%s”, injecting.",
+ "eval: found tfmdata for \"%s\", injecting.",
specification.name)
return eval ()
end
@@ -47,7 +47,7 @@ end
local unsupported_reader = function (format)
return function (specification)
logreport ("both", 4, "loaders",
- "font format “%s” unsupported; cannot load %s.",
+ "font format \"%s\" unsupported; cannot load %s.",
format, tostring (specification.name))
end
end
@@ -68,14 +68,14 @@ local install_formats = function ()
local aux = function (which, reader)
if not which or type (which) ~= "string"
or not reader or type (reader) ~= "function" then
- logreport ("both", 2, "loaders", "Error installing reader for “%s”.", which)
+ logreport ("both", 2, "loaders", "Error installing reader for \"%s\".", which)
return false
end
formats [which] = "type1"
readers [which] = reader
if not seqset [which] then
logreport ("both", 3, "loaders",
- "Extending reader sequence for “%s”.", which)
+ "Extending reader sequence for \"%s\".", which)
sequence [#sequence + 1] = which
seqset [which] = true
end
@@ -210,7 +210,7 @@ local purge_define_font = function ()
if d2 then --> issue warning
logreport ("both", 0, "loaders",
"Callback table for define_font contains multiple entries: \z
- { [%d] = “%s” } -- seems fishy.", i, d2)
+ { [%d] = \"%s\" } -- seems fishy.", i, d2)
end
logreport ("log", 0, "loaders",
"Entry ``%s`` present in define_font callback; overriding.", d)
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index 02bfccd..c2cc769 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -129,14 +129,14 @@ local make_loader_name = function (prefix, name)
end
if not name then
msg ("both", 0, "load",
- "Fatal error: make_loader_name (“%s”, “%s”).",
+ "Fatal error: make_loader_name (\"%s\", \"%s\").",
tostring (prefix), tostring (name))
return "dummy-name"
end
name = tostring (name)
if prefix == false then
msg ("log", 9, "load",
- "No prefix requested, passing module name “%s” unmodified.",
+ "No prefix requested, passing module name \"%s\" unmodified.",
name)
return tostring (name) .. ".lua"
end
@@ -196,7 +196,7 @@ end
local dummy_loader = function (name)
luaotfload.log.report ("log", 3, "load",
- "Skipping module “%s” on purpose.",
+ "Skipping module \"%s\" on purpose.",
name)
end
@@ -212,7 +212,7 @@ end
local context_loader = function (name, path)
luaotfload.log.report ("log", 3, "load",
- "Loading module “%s” from Context.",
+ "Loading module \"%s\" from Context.",
name)
local t_0 = osgettimeofday ()
local modname = make_loader_name (false, name)
@@ -220,12 +220,12 @@ local context_loader = function (name, path)
if path then
if lfs.isdir (path) then
luaotfload.log.report ("log", 3, "load",
- "Prepending path “%s”.",
+ "Prepending path \"%s\".",
path)
modpath = file.join (path, modname)
else
luaotfload.log.report ("both", 0, "load",
- "Non-existant path “%s” specified, ignoring.",
+ "Non-existant path \"%s\" specified, ignoring.",
path)
end
end
@@ -239,7 +239,7 @@ local context_loader = function (name, path)
--- something isn’t right, but against HH’s coding practices. We’ll
--- silently ignore this ever happening on lower log levels.
luaotfload.log.report ("log", 4, "load",
- "Module “%s” returned “%s”.", ret)
+ "Module \"%s\" returned \"%s\".", ret)
end
return ret
end
@@ -261,13 +261,13 @@ local install_loaders = function ()
local t_0 = osgettimeofday ()
if not init () then
logreport ("log", 0, "load",
- "Failed to load module “%s”.", name)
+ "Failed to load module \"%s\".", name)
return
end
local t_end = osgettimeofday ()
local d_t = t_end - t_0
logreport ("log", 4, "load",
- "Module “%s” loaded in %d ms.",
+ "Module \"%s\" loaded in %d ms.",
name, d_t)
timing_info.t_init [name] = d_t
end
More information about the latex3-commits
mailing list.