[latex3-commits] [latex3/luaotfload] dev: fix small typos (a6e4cc0c)
github at latex-project.org
github at latex-project.org
Mon Nov 18 06:31:35 CET 2024
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/a6e4cc0c5f2b69cd34bfeca48e0007b57ce8cc17
>---------------------------------------------------------------
commit a6e4cc0c5f2b69cd34bfeca48e0007b57ce8cc17
Author: mbertucci47 <61854785+mbertucci47 at users.noreply.github.com>
Date: Mon Jun 3 17:34:19 2024 -0600
fix small typos
>---------------------------------------------------------------
a6e4cc0c5f2b69cd34bfeca48e0007b57ce8cc17
NEWS | 12 ++++++------
build.lua | 2 +-
buildinfo.txt | 4 ++--
doc/luaotfload-main.tex | 16 ++++++++--------
scripts/mkimport | 6 +++---
src/luaotfload-auxiliary.lua | 2 +-
src/luaotfload-bcp47.lua | 2 +-
src/luaotfload-colors.lua | 2 +-
src/luaotfload-database.lua | 10 +++++-----
src/luaotfload-fallback.lua | 2 +-
src/luaotfload-harf-plug.lua | 2 +-
src/luaotfload-harf-var-cff2.lua | 2 +-
src/luaotfload-harf-var-ttf.lua | 2 +-
src/luaotfload-init.lua | 2 +-
src/luaotfload-multiscript.lua | 6 +++---
src/luaotfload-parsers.lua | 4 ++--
src/luaotfload-resolvers.lua | 2 +-
src/luaotfload-tounicode.lua | 2 +-
src/luaotfload-unicode.lua | 2 +-
src/luaotfload.lua | 4 ++--
todoinfos/scriptcall.txt | 2 +-
21 files changed, 44 insertions(+), 44 deletions(-)
diff --git a/NEWS b/NEWS
index eae0df4b..a79658fb 100644
--- a/NEWS
+++ b/NEWS
@@ -24,7 +24,7 @@ luaotfload v3.25 has been skipped
precedence.
* Support xdvipsk in DVI mode
* Preserve soft-hyphens when dropping default ignorable characters
- * Hash cache keys to better support certain rather unflexible operating
+ * Hash cache keys to better support certain rather inflexible operating
systems
* Various bug fixes
@@ -159,7 +159,7 @@ luaotfload v3.25 has been skipped
2019-11-04 luaotfload v3.1
* added code to use the harfbuzz library of luahbtex ("mode=harf")
* fonts in ttc can now be indexed by name
- * remove a number of lua tables from the global enviroment (_G) to reduce the polution.
+ * remove a number of lua tables from the global environment (_G) to reduce the pollution.
Kept there are only the tables luaotfload, fonts and nodes.
* sync with context files from 2019-10-29
@@ -253,7 +253,7 @@ luaotfload v3.25 has been skipped
* Add ``--dumpconf`` option to luaotfload-tool for generating configuration
files.
* Move fontloader files to subtree src/fontloader.
- * New script ``mkimport`` facilitates maintainance of code imported from
+ * New script ``mkimport`` facilitates maintenance of code imported from
Context.
* Revised letterspacing, now utilizing the ``node.direct`` interface.
* Revized colorization of fonts, utilizing ``node.direct`` (Dohyun Kim).
@@ -333,7 +333,7 @@ luaotfload v3.25 has been skipped
backward-incompatible changes in the font structure. A
backward-compatibility layer has been added for the current
versions of fontspec, unicode-math and microtype, but it should
- disapear in a future version.
+ disappear in a future version.
* Synchronisation with ConTeXt is now easier and can be done by just
updating luaotfload-merged.lua (<= luatex-fonts-merged.lua from
the LuaTeX-Plain format)
@@ -372,7 +372,7 @@ luaotfload v3.25 has been skipped
2013/04/11, luaotfload v1.28:
* Adapting to LuaTeX 0.75
* Fix small documentation issues in mkluatexfontdb
- * Fix possible infite loop with fontconfig config files references
+ * Fix possible infinite loop with fontconfig config files references
* Adding semibold synonym for bold
* file:xxx syntax now uses the same search function as name: which
make more fonts recognized
@@ -475,7 +475,7 @@ luaotfload v3.25 has been skipped
2010/05/28, luaotfload v1.08:
* fix misc. bugs with system fonts scanning
- * parse fontconfig configuration directly, no longer dependant on 'fc-list'
+ * parse fontconfig configuration directly, no longer dependent on 'fc-list'
* now if no font names database is found, luaotfload will generate it, also
it will force an update of the database if the asked font can not be
found
diff --git a/build.lua b/build.lua
index 55940083..8a0aac2d 100644
--- a/build.lua
+++ b/build.lua
@@ -102,7 +102,7 @@ typesetsuppfiles = {"texmf.cnf"}
maxprintline=9999
--- exclude some text temporarly or in certain systems ...
+-- exclude some text temporarily or in certain systems ...
if os.env["CONTEXTPATH"] then
-- local system
-- excludetests = {"math"} -- because of adjdemerits bug
diff --git a/buildinfo.txt b/buildinfo.txt
index ac2d6fcc..45477e8a 100644
--- a/buildinfo.txt
+++ b/buildinfo.txt
@@ -17,7 +17,7 @@ bash--> texlua scripts/mkimport news "" $CONTEXTPATH
cmd --> texlua scripts/mkimport import "" %CONTEXTPATH%
bash--> texlua scripts/mkimport import "" $CONTEXTPATH
-This also imports the merged orginal file and saves it as
+This also imports the merged original file and saves it as
fontloader-reference.lua in src/fontloader/runtime
!! Check if luatex-fonts.lua has changed (indicates new files ...)
@@ -30,7 +30,7 @@ requirements char-def.lua and char-ini.lua
the file is created in src/auto by default!
25.12.2018: in the new code luaotfload-character.lua is no longer used.
-Perhaps it will be dropped completly.
+Perhaps it will be dropped completely.
cmd --> texlua scripts/mkcharacters %CONTEXTPATH%/tex/context/base/mkiv/
bash--> texlua scripts/mkcharacters $CONTEXTPATH/tex/context/base/mkiv/
diff --git a/doc/luaotfload-main.tex b/doc/luaotfload-main.tex
index 9fda61aa..4a6aebb5 100644
--- a/doc/luaotfload-main.tex
+++ b/doc/luaotfload-main.tex
@@ -74,7 +74,7 @@ Supported is the \identifier{luatex} versions of a current TeXLive 2019 (and a c
precedence.
\item Support xdvipsk in DVI mode
\item Preserve soft-hyphens when dropping default ignorable characters
- \item Hash cache keys to better support certain rather unflexible operating
+ \item Hash cache keys to better support certain rather inflexible operating
systems
\item Various bug fixes
\end{itemize}
@@ -239,7 +239,7 @@ for more than one script, see page~\pageref{multiscript}
officially by the LaTeX3 Project team.
\item Code to use the harfbuzz library of luahbtex has been added. See the description of the harf mode.
\item fonts in ttc-collections can now be indexed by name.
-\item To reduce the polution of the global lua enviroment a number of lua tables have been removed.
+\item To reduce the pollution of the global lua environment a number of lua tables have been removed.
Only the tables \identifier{luaotfload}, \identifier{fonts} and \identifier{nodes} have been kept there.
\item The fontloader has been synched with the context files from 2019-10-29.
@@ -346,7 +346,7 @@ On the other side there is a lot new:
\beginaltitem {Lualibs} The update of the fontloader files also required an update of the \identifier{Lualibs} package. This \identifier{Luaotfload} version needs version 2.6 of \identifier{Lualibs}.
\endaltitem
- \beginaltitem {Maintenance} As the current maintainer wasn't available and it was urgent to get a \identifier{Luaotfload} compatible with \LuaTeX\ 1.08/1.09 maintenance has been transfered to Ulrike Fischer and Marcel Krüger. The package was maintained and developed at \hyperlink{https://github.com/u-fischer/luaotfload}.
+ \beginaltitem {Maintenance} As the current maintainer wasn't available and it was urgent to get a \identifier{Luaotfload} compatible with \LuaTeX\ 1.08/1.09 maintenance has been transferred to Ulrike Fischer and Marcel Krüger. The package was maintained and developed at \hyperlink{https://github.com/u-fischer/luaotfload}.
\endaltitem
\beginaltitem {Documentation}
@@ -409,7 +409,7 @@ system conveniently by indexing the metadata.
\identifier{Luaotfload} is part of \hologo{LuaLaTeX}, the community-driven
project to provide a foundation for using the \LaTeX\ format with the
-full capabilites of the \LuaTeX\ engine.
+full capabilities of the \LuaTeX\ engine.
%
As such, the distinction between end users, contributors, and project
maintainers is intentionally kept less strict, lest we unduly
@@ -696,7 +696,7 @@ fall back to a \inlinecode {file:} lookup.
Lastly, if none of the above succeeded, attempt to resolve the request as a
\inlinecode {name:} lookup by searching the font index for \meta{font name}.
%
-The behavior of this “anonymous” lookup is configurable, see the configuation
+The behavior of this “anonymous” lookup is configurable, see the configuration
manpage for details.
Furthermore, \identifier{luaotfload} supports the slashed (shorthand)
@@ -1023,7 +1023,7 @@ obviously, \inlinecode{random}.
The keys in such a table are like above RGB colors with an optional transparency setting.
The values are either lists of glyph names or GID numbers.
- Both types are font dependant! Not every font use the same
+ Both types are font dependent! Not every font use the same
glyph names (or even glyph names at all). GID number are font specific anyway. The GID can be found
by looking up the \verb+["index"]+ entry in the lua file of a font.
@@ -1566,7 +1566,7 @@ Combinations are created by defining a font using the \luaident{combo:} prefix.
For example, the \identifier{Latin Modern} family of fonts does, as indicated
in the name, not provide Cyrillic glyphs. If Latin script dominates in the copy
-with interspersed Cyrillic, a fallback can be created from a similiar looking
+with interspersed Cyrillic, a fallback can be created from a similar looking
font like \identifier{Computer Modern Unicode}, taking advantage of the fact
that it too derives from Knuth’s original \identifier{Computer Modern} series:
@@ -2512,7 +2512,7 @@ callback functions:
When these functions aren't used, then the color is set based on colorstack 0.
By default a new colorstack is allocated for transparency, but alternatively an
-existsing colorstack for this prpose can be set:
+existing colorstack for this purpose can be set:
\beginfunctionlist
diff --git a/scripts/mkimport b/scripts/mkimport
index 0fb7d57f..74546106 100755
--- a/scripts/mkimport
+++ b/scripts/mkimport
@@ -119,7 +119,7 @@ local hmm = function (...)
--[[ sorta like an error but non-fatal ]]
io.stderr:write "[\x1b[1;31merror\x1b[0m] "
io.stderr:write (stringformat (...))
- io.stderr:write "; continuing nontheless.\n"
+ io.stderr:write "; continuing nonetheless.\n"
end
local emphasis = function (txt)
@@ -476,7 +476,7 @@ local strip_prefix = function (fname, prefix)
if not pfxlen[prefix] then pfxlen[prefix] = #prefix end
local len = pfxlen[prefix]
if #fname <= len + 2 then
- --- too short to accomodate prefix + basename
+ --- too short to accommodate prefix + basename
return
end
if string.sub (fname, 1, len) == prefix then
@@ -789,7 +789,7 @@ local search = function (target)
look_for = search_paths (target)
if look_for then goto found end
- --- seach the definitions
+ --- search the definitions
look_for = search_defs (target)
if look_for then goto found end
diff --git a/src/luaotfload-auxiliary.lua b/src/luaotfload-auxiliary.lua
index 5f918c11..9c6528f4 100644
--- a/src/luaotfload-auxiliary.lua
+++ b/src/luaotfload-auxiliary.lua
@@ -586,7 +586,7 @@ function aux.provides_language(font_id, asked_script, asked_language)
end
--[[doc--
-A function to check if a font is a variabe font with a given axis.
+A function to check if a font is a variable font with a given axis.
--doc]]--
function aux.provides_axis(font_id, asked_axis)
diff --git a/src/luaotfload-bcp47.lua b/src/luaotfload-bcp47.lua
index fc90c143..df7f99c9 100644
--- a/src/luaotfload-bcp47.lua
+++ b/src/luaotfload-bcp47.lua
@@ -1,4 +1,4 @@
--- Suport for parsing BCP47 based language tags into components
+-- Support for parsing BCP47 based language tags into components
local normalize_case, language_tag do
local l = lpeg or require'lpeg'
local function rep(base, num, max)
diff --git a/src/luaotfload-colors.lua b/src/luaotfload-colors.lua
index 9ae646ab..a7d805f1 100644
--- a/src/luaotfload-colors.lua
+++ b/src/luaotfload-colors.lua
@@ -155,7 +155,7 @@ local function sanitize_color_expression (digits)
end
local color_stack = 0
--- Beside maybe allowing {transpareny} package compatibility at some
+-- Beside maybe allowing {transparency} package compatibility at some
-- point, this ensures that the stack is only created if it is actually
-- needed. Especially important because it adds /TransGs1 gs to every page
local function transparent_stack()
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 92b7bc9b..e0f904f6 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -122,7 +122,7 @@ local lpeg = require "lpeg"
local P, lpegmatch = lpeg.P, lpeg.match
local log = luaotfload.log
-local logreport = log and log.report or print -- overriden later on
+local logreport = log and log.report or print -- overridden later on
local report_status = log.names_status
local report_status_start = log.names_status_start
local report_status_stop = log.names_status_stop
@@ -786,7 +786,7 @@ end
get_font_file -- Look up the file of an entry in the mappings
table. If the index is valid, pass on the name and subfont index
- after verifing the existence of the resolved file. This
+ after verifying the existence of the resolved file. This
verification differs depending the index entry’s ``location``
field:
@@ -821,7 +821,7 @@ end
--[[doc--
We need to verify if the result of a cached lookup actually exists in
the texmf or filesystem. Again, due to the schizoprenic nature of the
-font managment we have to check both the system path and the texmf.
+font management we have to check both the system path and the texmf.
--doc]]--
local function verify_font_file (basename)
@@ -1395,7 +1395,7 @@ local function find_closest (name, limit)
for n = 1, n_fonts do
local current = mappings[n]
--[[
- This is simplistic but surpisingly fast.
+ This is simplistic but surprisingly fast.
Matching is performed against the “fullname” field
of a db record in preprocessed form. We then store the
raw “fullname” at its edit distance.
@@ -1979,7 +1979,7 @@ do
--- windows and dos
if os_type == "windows" or os_type == "msdos" then
- --- ms platfom specific stuff
+ --- ms platform specific stuff
function path_normalize (path)
path = stringgsub(path, '\\', '/')
path = stringlower(path)
diff --git a/src/luaotfload-fallback.lua b/src/luaotfload-fallback.lua
index c8ceba5a..7133e9a4 100644
--- a/src/luaotfload-fallback.lua
+++ b/src/luaotfload-fallback.lua
@@ -103,7 +103,7 @@ local function dofallback(head, _, _, _, direction)
end
function luaotfload.add_fallback(name, fonts)
- define_font = define_font or luaotfload.define_font -- Lazy loading because this file get's loaded before define_font is defined
+ define_font = define_font or luaotfload.define_font -- Lazy loading because this file gets loaded before define_font is defined
if fonts == nil then
fonts = name
name = #fallback_table_fontnames + 1
diff --git a/src/luaotfload-harf-plug.lua b/src/luaotfload-harf-plug.lua
index a6f301cd..ed2e63e6 100644
--- a/src/luaotfload-harf-plug.lua
+++ b/src/luaotfload-harf-plug.lua
@@ -912,7 +912,7 @@ local function tonodes(head, node, run, glyphs)
-- fonts, so we don't want them to reach the backend as it will cause
-- a fatal error. We use `nullfont` instead. That is a hack, but I
-- think it is good enough for now. We could make the glyph virtual
- -- with empty commands suh that LuaTeX ignores it, but we still want
+ -- with empty commands such that LuaTeX ignores it, but we still want
-- a missing glyph warning.
-- We insert the glyph node and move on, no further work is needed.
setfont(node, 0)
diff --git a/src/luaotfload-harf-var-cff2.lua b/src/luaotfload-harf-var-cff2.lua
index 5c626d3c..f07b40ad 100644
--- a/src/luaotfload-harf-var-cff2.lua
+++ b/src/luaotfload-harf-var-cff2.lua
@@ -85,7 +85,7 @@ end
local function do_blend(result, vstore)
if not vstore then
- error'blend operator only allowed in Private disctionary of variable fonts'
+ error'blend operator only allowed in Private dictionary of variable fonts'
end
local vsindex = (result.vsindex or 0) + 1
local factors = vstore[vsindex]
diff --git a/src/luaotfload-harf-var-ttf.lua b/src/luaotfload-harf-var-ttf.lua
index fd36ac4a..8d23c835 100644
--- a/src/luaotfload-harf-var-ttf.lua
+++ b/src/luaotfload-harf-var-ttf.lua
@@ -238,7 +238,7 @@ local function parse_glyf(loca, glyf, gid)
end
last = last + value
point.y = last
- point.flags = flags & 0xC1 -- Discard all flags we aready used
+ point.flags = flags & 0xC1 -- Discard all flags we already used
end
-- assert (i == total_points)
end
diff --git a/src/luaotfload-init.lua b/src/luaotfload-init.lua
index ecdc8f28..cf22024a 100644
--- a/src/luaotfload-init.lua
+++ b/src/luaotfload-init.lua
@@ -206,7 +206,7 @@ local function verify_context_dir (pth)
end
end
logreport("both", 0, "init", "A directory name has been passed as \z
- fontloader name but this directory does not acutally seem to contain \z
+ fontloader name but this directory does not actually seem to contain \z
a font loader. I will try to interpret your fontloader name in another \z
way for now, but please fix your settings.")
return false
diff --git a/src/luaotfload-multiscript.lua b/src/luaotfload-multiscript.lua
index 8afc8a9b..ca317782 100644
--- a/src/luaotfload-multiscript.lua
+++ b/src/luaotfload-multiscript.lua
@@ -214,7 +214,7 @@ local function is_dominant_script(scripts, script, first, ...)
end
local function makecombifont(tfmdata, _, additional_scripts)
- define_font = define_font or luaotfload.define_font -- Lazy loading because this file get's loaded before define_font is defined
+ define_font = define_font or luaotfload.define_font -- Lazy loading because this file gets loaded before define_font is defined
local has_auto
additional_scripts = tostring(additional_scripts)
if additional_scripts:sub(1, 5) == "auto+" then
@@ -230,7 +230,7 @@ local function makecombifont(tfmdata, _, additional_scripts)
for k, v in next, t do if type(k) == "string" then
local l = string.lower(k)
if lower_t[l] ~= nil and lower_t[l] ~= v then
- error(string.format("Inconsistant multiscript table %q for script %s", additional_scripts, l))
+ error(string.format("Inconsistent multiscript table %q for script %s", additional_scripts, l))
end
lower_t[l] = v
end end
@@ -287,7 +287,7 @@ local function makecombifont(tfmdata, _, additional_scripts)
additional_scripts[iso_script] = spec.specification .. ';-multiscript;script=' .. script
---- FIXME: IMHO the following which just modiefies the spec
-- would be nicer, but it breaks font patching callbacks
- -- (except if we ignore them, but that would be inconsistant to
+ -- (except if we ignore them, but that would be inconsistent to
-- other fonts)
-- local new_raw_features = {}
-- local new_features = { raw = new_raw_features, normal = new_raw_features }
diff --git a/src/luaotfload-parsers.lua b/src/luaotfload-parsers.lua
index 5d4e2ce2..41c056ac 100644
--- a/src/luaotfload-parsers.lua
+++ b/src/luaotfload-parsers.lua
@@ -182,7 +182,7 @@ local p_cheapxml = header * root
--[[doc--
fonts_conf_scanner() handles configuration files.
- It is called on an abolute path to a config file (e.g.
+ It is called on an absolute path to a config file (e.g.
/home/luser/.config/fontconfig/fonts.conf) and returns a list
of the nodes it managed to extract from the file.
--doc]]--
@@ -431,7 +431,7 @@ local splitcomma = Ct((C(noncomma^1) + comma)^1)
where
<csname> is the control sequence that activates the font
<prefix> is either “file” or “name”, determining the lookup
- <identifer> is either a file name (no path) or a font
+ <identifier> is either a file name (no path) or a font
name, depending on the lookup
<features> is a list of switches or options, separated by
semicolons or commas; a switch is of the form “+” foo
diff --git a/src/luaotfload-resolvers.lua b/src/luaotfload-resolvers.lua
index 7a15c92b..033ddda2 100644
--- a/src/luaotfload-resolvers.lua
+++ b/src/luaotfload-resolvers.lua
@@ -57,7 +57,7 @@ local logreport = luaotfload.log.report
this is still short of the goal »\emphasis{it just works!}«.
When building the font database \identifier{luaotfload} scans
system font directories anyways, so we already have all the
- information for looking sytem fonts.
+ information for looking system fonts.
With the release version 2.2 the file names are indexed in the
database as well and we are ready to resolve \verb|file:| lookups
this way.
diff --git a/src/luaotfload-tounicode.lua b/src/luaotfload-tounicode.lua
index e613c8ba..ee6dc547 100644
--- a/src/luaotfload-tounicode.lua
+++ b/src/luaotfload-tounicode.lua
@@ -14,7 +14,7 @@ assert(luaotfload_module, "This is a part of luaotfload and should not be loaded
}
local overloads = {
- -- rougly based on texglyphlist-g2u.txt
+ -- roughly based on texglyphlist-g2u.txt
-- ff = { unicode = {0x0066, 0x0066} },
-- ffi = { unicode = {0x0066, 0x0066, 0x0069} },
diff --git a/src/luaotfload-unicode.lua b/src/luaotfload-unicode.lua
index 92724558..a53589a4 100644
--- a/src/luaotfload-unicode.lua
+++ b/src/luaotfload-unicode.lua
@@ -239,7 +239,7 @@ uppercase[0x00DF]['de-alt'] = uppercase[0x00DF]['de-x-eszett']
-- Special handling for Eastern Armenian based on Unicode document L2/20-143.
uppercase[0x0587]['hy'] = { _ = { 0x0535, 0x054E } }
--- Resore Unicode behavior. This entry is redundant, but we have to be aware of it
+-- Restore Unicode behavior. This entry is redundant, but we have to be aware of it
-- if we later start to ignore unknown private use tags
uppercase[0x0587]['hy-x-yiwn'] = { _ = uppercase[0x0587]._ }
diff --git a/src/luaotfload.lua b/src/luaotfload.lua
index cbba718b..63b32f05 100644
--- a/src/luaotfload.lua
+++ b/src/luaotfload.lua
@@ -118,7 +118,7 @@ end
\identifier{luatexbase} when this file is processed. In some cases
it is possible to trick it by putting dummies into place and
restoring the behavior from \identifier{luatexbase} after
- initilization. Other cases such as attribute allocation require
+ initialization. Other cases such as attribute allocation require
that we hook the functionality from \identifier{luatexbase} into
locations where they normally wouldn’t be.
@@ -244,7 +244,7 @@ local function context_loader (name, path)
modpath = file.join (path, modname)
else
luaotfload.log.report ("both", 0, "load",
- "Non-existant path %q specified, ignoring.",
+ "Non-existent path %q specified, ignoring.",
path)
end
end
diff --git a/todoinfos/scriptcall.txt b/todoinfos/scriptcall.txt
index f176b438..26c630f6 100644
--- a/todoinfos/scriptcall.txt
+++ b/todoinfos/scriptcall.txt
@@ -30,7 +30,7 @@ texlua scripts/mkimport news "" %CONTEXTPATH%
texlua scripts/mkimport import "" %CONTEXTPATH%
--- This also imports the merged orginal file and saves it as
+-- This also imports the merged original file and saves it as
-- fontloader-reference.lua in src/fontloader/runtime
-- Merged with the call
More information about the latex3-commits
mailing list.