| 1 |
------------------------------------------------------------------------------- |
| 2 |
-- FILE: luaotfload-filelist.lua |
| 3 |
-- DESCRIPTION: part of luaotfload / list of files |
| 4 |
-- AUTHOR: Ulrike Fischer, <[email protected]> |
| 5 |
----------------------------------------------------------------------- |
| 6 |
|
| 7 |
if luaotfload_module then luaotfload_module { |
| 8 |
name = "luaotfload-filelist", |
| 9 |
version = "3.29", --TAGVERSION |
| 10 |
date = "2024-12-03", --TAGDATE |
| 11 |
description = "luaotfload submodule / filelist", |
| 12 |
license = "GPL v2.0" |
| 13 |
} end |
| 14 |
|
| 15 |
--[[doc-- |
| 16 |
|
| 17 |
luaotfload has tables with files list in many places: In the import scripts, |
| 18 |
in the init file, in the documentation. This makes maintenance difficult. |
| 19 |
This here is a try to get everything in one place. As the order how files are |
| 20 |
loaded during the merge matters the table is an array. Lists with other |
| 21 |
sorting should be created with functions. Ditto for subtables. |
| 22 |
|
| 23 |
Some redundancy can not be avoided for now if one want to avoid to have to change all sort of functions. |
| 24 |
|
| 25 |
## locations |
| 26 |
files can reside in up to three location (with perhaps different names) |
| 27 |
- context ctxdir |
| 28 |
- git gitdir |
| 29 |
- texmf texdir |
| 30 |
|
| 31 |
files don't need to exist in all locations but the direction of the flow is |
| 32 |
always from context over git to texmf: |
| 33 |
context-> git -> texmf |
| 34 |
so the "stations" of a file and its source can be deduced by the dirs recorded in the entries |
| 35 |
|
| 36 |
|
| 37 |
## "kind" |
| 38 |
the first four entries are from the original mkimport code and are important for the imports. |
| 39 |
the others are new. |
| 40 |
|
| 41 |
· *essential*: Files required at runtime. |
| 42 |
· *merged*: Files merged into the fontloader package. |
| 43 |
· *ignored*: Lua files not merged, but part of the format. |
| 44 |
· *tex*: TeX code, i.e. format and examples. |
| 45 |
· *lualibs*: Files imported, but also provided by the Lualibs package. |
| 46 |
· *library*: native luaotfload-files of type library |
| 47 |
· *core*: native core luaotfload files |
| 48 |
· *generated*: generated luaotfload files |
| 49 |
· *scripts*: scripts (mk-...) |
| 50 |
· *docu*: documentation (should perhaps be more refined |
| 51 |
|
| 52 |
## names |
| 53 |
|
| 54 |
The "real" name of a file in a location can be build |
| 55 |
|
| 56 |
- in the context location: ctxpref + name + ext |
| 57 |
- in the git location: (gitpref or "fontloader-") + (ours or name ) + ext |
| 58 |
- in the tex location: (gitpref or "fontloader-") + (texname or ours or name ) + ext |
| 59 |
|
| 60 |
## fields |
| 61 |
mkstatus: used to ignore some files in mkstatus |
| 62 |
|
| 63 |
|
| 64 |
## files which use the file names |
| 65 |
|
| 66 |
### mkimport |
| 67 |
|
| 68 |
mkimports needs an |
| 69 |
--> "import" table with two subtables: |
| 70 |
--> fontloader, with the files to get from generic, cond: ctxtype = "ctxgene" |
| 71 |
--> context, with the files to get from context, cond: ctxtype = "ctxbase" |
| 72 |
entries are subtables with {name=, ours=, kind= } |
| 73 |
|
| 74 |
and a |
| 75 |
--> "package" table with |
| 76 |
--> optional (probably unused) |
| 77 |
--> required = files of type kind_merged |
| 78 |
entries are the values of name |
| 79 |
|
| 80 |
### mkstatus |
| 81 |
|
| 82 |
this script has been already changed to use luaotfload-filelist.lua |
| 83 |
|
| 84 |
### luaotfload-init.lua |
| 85 |
|
| 86 |
luaotfload-init.lua needs a table |
| 87 |
--> context_modules |
| 88 |
with the (ordered) entries |
| 89 |
|
| 90 |
{false, "name"} -- kind_lualibs |
| 91 |
{ctxdir,"ctxprefix+name"} -- kind_essential or kind_merged |
| 92 |
|
| 93 |
The same list should be used in local init_main = function () |
| 94 |
but only without the prefix. |
| 95 |
it is unclear how fonts_syn should be handled!!!! |
| 96 |
|
| 97 |
### filegraph.tex |
| 98 |
has been already adapted |
| 99 |
|
| 100 |
### luaotfload-latex.tex/luaotfload-main.tex |
| 101 |
has been already adapted |
| 102 |
|
| 103 |
### build.lua |
| 104 |
??? |
| 105 |
|
| 106 |
--doc]]-- |
| 107 |
|
| 108 |
|
| 109 |
local kind_essential = 0 |
| 110 |
local kind_merged = 1 |
| 111 |
local kind_tex = 2 |
| 112 |
local kind_ignored = 3 |
| 113 |
local kind_lualibs = 4 |
| 114 |
local kind_library = 5 |
| 115 |
local kind_core = 6 |
| 116 |
local kind_generated = 7 |
| 117 |
local kind_script = 8 |
| 118 |
local kind_docu = 9 |
| 119 |
|
| 120 |
local kind_name = { |
| 121 |
[0] = "essential", |
| 122 |
[1] = "merged" , |
| 123 |
[2] = "tex" , |
| 124 |
[3] = "ignored" , |
| 125 |
[4] = "lualibs" , |
| 126 |
[5] = "library" , |
| 127 |
[6] = "core", |
| 128 |
[7] = "generated", |
| 129 |
[8] = "script", |
| 130 |
[9] = "docu" |
| 131 |
} |
| 132 |
|
| 133 |
|
| 134 |
local ctxdirbas = "tex/context/base/mkiv/" |
| 135 |
local ctxdirgen = "tex/generic/context/luatex/" |
| 136 |
|
| 137 |
local gitdirimp = "src/fontloader/misc/" -- imp=imported |
| 138 |
local gitdirsrc = "src/" |
| 139 |
local gitdiress = "src/fontloader/runtime/" |
| 140 |
local gitdirgen = "src/fontloader/auto/" |
| 141 |
local gitdirdoc = "doc/" |
| 142 |
local gitdirscr = "scripts/" |
| 143 |
local gitdirmain = "./" |
| 144 |
|
| 145 |
-- these here a not really pathes |
| 146 |
local texdirtex = "tex" |
| 147 |
local texdirscr = "scripts" |
| 148 |
local texdirdoc = "doc" |
| 149 |
local texdirman = "man" |
| 150 |
|
| 151 |
luaotfload = luaotfload or {} |
| 152 |
luaotfload.filelist = luaotfload.filelist or {} |
| 153 |
|
| 154 |
luaotfload.filelist.data = |
| 155 |
{ |
| 156 |
-- at first the source files from context |
| 157 |
{ name = "l-lua" , ours = "l-lua" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 158 |
{ name = "l-lpeg" , ours = "l-lpeg" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 159 |
{ name = "l-function" , ours = "l-function" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 160 |
{ name = "l-string" , ours = "l-string" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 161 |
{ name = "l-table" , ours = "l-table" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 162 |
{ name = "l-io" , ours = "l-io" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 163 |
{ name = "l-file" , ours = "l-file" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 164 |
{ name = "l-boolean" , ours = "l-boolean" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 165 |
{ name = "l-math" , ours = "l-math" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 166 |
{ name = "l-unicode" , ours = "l-unicode" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 167 |
|
| 168 |
{ name = "util-str" , ours = "util-str" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 169 |
{ name = "util-fil" , ours = "util-fil" , ext = ".lua", kind = kind_lualibs , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 170 |
|
| 171 |
{ name = "basics-gen" , ours = nil , ext = ".lua", kind = kind_essential , gitdir=gitdiress, texdir = texdirtex , ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 172 |
-- files merged in the fontloader. One file is ignored |
| 173 |
{ name = "data-con" , ours = "data-con" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 174 |
{ name = "basics-nod" , ours = nil , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 175 |
{ name = "basics-chr" , ours = nil , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 176 |
{ name = "font-ini" , ours = "font-ini" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 177 |
{ name = "fonts-mis" , ours = nil , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 178 |
{ name = "font-con" , ours = "font-con" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 179 |
{ name = "fonts-enc" , ours = nil , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 180 |
{ name = "font-cid" , ours = "font-cid" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 181 |
{ name = "font-map" , ours = "font-map" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 182 |
{ name = "fonts-syn" , ours = nil , ext = ".lua", kind = kind_ignored , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 183 |
{ name = "font-vfc" , ours = "font-vfc" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 184 |
{ name = "font-otr" , ours = "font-otr" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 185 |
{ name = "font-cff" , ours = "font-cff" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 186 |
{ name = "font-ttf" , ours = "font-ttf" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 187 |
{ name = "font-dsp" , ours = "font-dsp" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 188 |
{ name = "font-oti" , ours = "font-oti" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 189 |
{ name = "font-ott" , ours = "font-ott" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 190 |
{ name = "font-otl" , ours = "font-otl" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 191 |
{ name = "font-oto" , ours = "font-oto" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 192 |
{ name = "font-otj" , ours = "font-otj" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 193 |
{ name = "font-oup" , ours = "font-oup" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 194 |
{ name = "font-ota" , ours = "font-ota" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 195 |
{ name = "font-ots" , ours = "font-ots" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 196 |
{ name = "font-otc" , ours = "font-otc" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 197 |
{ name = "font-osd" , ours = "font-osd" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 198 |
{ name = "font-ocl" , ours = "font-ocl" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 199 |
{ name = "font-onr" , ours = "font-onr" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 200 |
{ name = "font-one" , ours = "font-one" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 201 |
{ name = "font-afk" , ours = "font-afk" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 202 |
{ name = "fonts-tfm" , ours = nil , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 203 |
{ name = "font-lua" , ours = "font-lua" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 204 |
{ name = "font-def" , ours = "font-def" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 205 |
{ name = "font-shp" , ours = "font-shp" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 206 |
{ name = "fonts-def" , ours = nil , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 207 |
{ name = "fonts-ext" , ours = nil , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 208 |
{ name = "font-imp-tex" , ours = "font-imp-tex" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 209 |
{ name = "font-imp-ligatures", ours = "font-imp-ligatures", ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 210 |
{ name = "font-imp-italics" , ours = "font-imp-italics" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 211 |
{ name = "font-imp-effects" , ours = "font-imp-effects" , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirbas, ctxtype = "ctxbase" }, |
| 212 |
{ name = "fonts-lig" , ours = nil , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 213 |
{ name = "fonts-gbn" , ours = nil , ext = ".lua", kind = kind_merged , gitdir=gitdirimp, texdir = texdirtex , ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 214 |
-- end of files merged |
| 215 |
|
| 216 |
{ name = "fonts-merged" , ours = "reference" , ext = ".lua", kind = kind_essential , gitdir=gitdiress, texdir = texdirtex , ctxdir= ctxdirgen ,ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
-- this two files are useful as reference for the load order but should not be installed |
| 221 |
{ name = "fonts" , ours = "load-order-reference", ext = ".lua", kind = kind_ignored , gitdir=gitdirimp, ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 222 |
{ name = "fonts" , ours = "load-order-reference", ext = ".tex", kind = kind_tex , gitdir=gitdirimp, ctxdir= ctxdirgen, ctxtype = "ctxgene" , ctxpref = "luatex-" }, |
| 223 |
|
| 224 |
-- the default fontloader. How to code the name?? |
| 225 |
{ name = "YYYY-MM-DD" , ext = ".lua", kind = kind_generated , gitdir = gitdirgen, texdir = texdirtex,mkstatus="auto" }, |
| 226 |
|
| 227 |
-- the luaotfload files |
| 228 |
{ name = "luaotfload" ,kind = kind_core, ext =".sty", gitdir=gitdirsrc, texdir=texdirtex, gitpref="",}, |
| 229 |
{ name = "main" ,kind = kind_core, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 230 |
{ name = "init" ,kind = kind_core, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 231 |
{ name = "log" ,kind = kind_core, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 232 |
{ name = "diagnostics" ,kind = kind_core, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 233 |
|
| 234 |
{ name = "tool" ,kind = kind_core, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 235 |
{ name = "blacklist" ,kind = kind_core, ext =".cnf", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 236 |
|
| 237 |
{ name = "filelist" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 238 |
{ name = "auxiliary" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 239 |
{ name = "colors" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 240 |
{ name = "configuration" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 241 |
{ name = "database" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 242 |
{ name = "features" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 243 |
{ name = "letterspace" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 244 |
{ name = "embolden" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 245 |
{ name = "notdef" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 246 |
{ name = "harf-define" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 247 |
{ name = "harf-plug" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 248 |
{ name = "loaders" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 249 |
{ name = "multiscript" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 250 |
{ name = "scripts" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 251 |
{ name = "szss" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 252 |
{ name = "fallback" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 253 |
{ name = "parsers" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 254 |
{ name = "resolvers" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 255 |
{ name = "unicode" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 256 |
{ name = "tounicode" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 257 |
{ name = "dvi" ,kind = kind_library, ext =".lua", gitdir=gitdirsrc, texdir=texdirtex, gitpref = "luaotfload-" }, |
| 258 |
|
| 259 |
{ name = "characters" ,kind = kind_generated, ext =".lua", gitdir=gitdirgen, texdir=texdirtex, gitpref = "luaotfload-", script="mkcharacter" }, |
| 260 |
{ name = "glyphlist" ,kind = kind_generated, ext =".lua", gitdir=gitdirgen, texdir=texdirtex, gitpref = "luaotfload-", script="mkglyphlist" }, |
| 261 |
{ name = "status" ,kind = kind_generated, ext =".lua", gitdir=gitdirgen, texdir=texdirtex, gitpref = "luaotfload-", script="mkstatus",mkstatus="ignore" }, |
| 262 |
|
| 263 |
-- scripts |
| 264 |
{ name = "mkimport" ,kind = kind_script, gitdir = gitdirscr, gitpref = "", ext=""}, |
| 265 |
{ name = "mkglyphlist" ,kind = kind_script, gitdir = gitdirscr, gitpref = "", ext=""}, |
| 266 |
{ name = "mkcharacters" ,kind = kind_script, gitdir = gitdirscr, gitpref = "", ext=""}, |
| 267 |
{ name = "mkstatus" ,kind = kind_script, gitdir = gitdirscr, gitpref = "", ext=""}, |
| 268 |
{ name = "mktests" ,kind = kind_script, gitdir = gitdirscr, gitpref = "", ext=""}, |
| 269 |
|
| 270 |
-- documentation (source dirs need perhaps coding ...) but don't overdo for now |
| 271 |
|
| 272 |
{ name = "latex" , kind= kind_docu, ext = ".tex", gitpref = "luaotfload-", gitdir = gitdirdoc, texdir= texdirdoc, typeset = true }, |
| 273 |
{ name = "main" , kind= kind_docu, ext = ".tex", gitpref = "luaotfload-", gitdir = gitdirdoc, texdir= texdirdoc, typeset = false }, |
| 274 |
{ name = "conf" , kind= kind_docu, ext = ".tex", gitpref = "luaotfload-", gitdir = gitdirdoc, texdir= texdirdoc, typeset = true , generated = true}, |
| 275 |
{ name = "tool" , kind= kind_docu, ext = ".tex", gitpref = "luaotfload-", gitdir = gitdirdoc, texdir= texdirdoc, typeset = true , generated = true}, |
| 276 |
{ name = "filegraph" , kind= kind_docu, ext = ".tex", gitpref ="", gitdir = gitdirdoc, texdir= texdirdoc, typeset = true , generated = true}, |
| 277 |
{ name = "conf" , kind= kind_docu, ext = ".rst", gitpref = "luaotfload.", gitdir = gitdirdoc, texdir= texdirdoc }, |
| 278 |
{ name = "conf" , kind= kind_docu, ext = ".5" , gitpref = "luaotfload.", gitdir = gitdirdoc, texdir= texdirman}, |
| 279 |
{ name = "tool" , kind= kind_docu, ext = ".rst", gitpref = "luaotfload-", gitdir = gitdirdoc, texdir= texdirdoc}, |
| 280 |
{ name = "tool" , kind= kind_docu, ext = ".1" , gitpref = "luaotfload-", gitdir = gitdirdoc, texdir= texdirman }, |
| 281 |
{ name = "README" , kind= kind_docu, texname = "README", gitpref="", ext = ".md" , gitdir = gitdirdoc, texdir= texdirdoc}, |
| 282 |
{ name = "COPYING" , kind= kind_docu, ext = "" , gitpref="", gitdir = gitdirmain, texdir= texdirdoc}, |
| 283 |
{ name = "NEWS" , kind= kind_docu, ext = "" , gitpref="", gitdir = gitdirmain , texdir= texdirdoc}, |
| 284 |
{ name = "README" , kind= kind_docu, gitpref="", ext = ".md" , gitdir = gitdirmain}, -- github readme |
| 285 |
|
| 286 |
} |
| 287 |
|
| 288 |
|
| 289 |
|
| 290 |
-- functions |
| 291 |
-- list of kind: |
| 292 |
--local kind_essential = 0 |
| 293 |
--local kind_merged = 1 |
| 294 |
--local kind_tex = 2 |
| 295 |
--local kind_ignored = 3 |
| 296 |
--local kind_lualibs = 4 |
| 297 |
--local kind_library = 5 |
| 298 |
--local kind_core = 6 |
| 299 |
--local kind_generated = 7 |
| 300 |
--local kind_script = 8 |
| 301 |
--local kind_docu = 9 |
| 302 |
|
| 303 |
|
| 304 |
-- some selections |
| 305 |
-- due to the history and setup of the other files, there are not always simple "kind" selections. |
| 306 |
-- ctx base files are splitted in two sets: |
| 307 |
-- 1. font & node |
| 308 |
function luaotfload.filelist.selectctxfontentries ( filetable ) |
| 309 |
local result = {} |
| 310 |
for i,v in ipairs (filetable) do |
| 311 |
if v.ctxtype == "ctxbase" and v.kind==1 then |
| 312 |
table.insert(result,v) |
| 313 |
end |
| 314 |
end |
| 315 |
return result |
| 316 |
end |
| 317 |
|
| 318 |
-- 2. lualibs libraries |
| 319 |
function luaotfload.filelist.selectctxlibsentries ( filetable ) |
| 320 |
local result = {} |
| 321 |
for i,v in ipairs (filetable) do |
| 322 |
if v.ctxtype == "ctxbase" and v.kind==4 then |
| 323 |
table.insert(result,v) |
| 324 |
end |
| 325 |
end |
| 326 |
return result |
| 327 |
end |
| 328 |
|
| 329 |
-- ctx generic files |
| 330 |
-- 1. ignored files are not in the list ... |
| 331 |
function luaotfload.filelist.selectctxgeneusedentries ( filetable ) |
| 332 |
local result = {} |
| 333 |
for i,v in ipairs (filetable) do |
| 334 |
if v.ctxtype == "ctxgene" and v.kind==1 then |
| 335 |
table.insert(result,v) |
| 336 |
end |
| 337 |
end |
| 338 |
return result |
| 339 |
end |
| 340 |
|
| 341 |
-- 2. ignored files are in the list |
| 342 |
function luaotfload.filelist.selectctxgeneentries ( filetable ) |
| 343 |
local result = {} |
| 344 |
for i,v in ipairs (filetable) do |
| 345 |
if v.ctxtype == "ctxgene" and (v.kind==1 or v.kind== 3) then |
| 346 |
table.insert(result,v) |
| 347 |
end |
| 348 |
end |
| 349 |
return result |
| 350 |
end |
| 351 |
|
| 352 |
-- luaotfload-files (lol) are splitted in essential (0), core (6), lib (5) and gene (7) and scr (scripts): |
| 353 |
-- luaoftload libraries |
| 354 |
|
| 355 |
function luaotfload.filelist.selectlolessentries (filetable) |
| 356 |
local result = {} |
| 357 |
for i,v in ipairs (filetable) do |
| 358 |
if v.kind == 0 then |
| 359 |
table.insert (result,v) |
| 360 |
end |
| 361 |
end |
| 362 |
return result |
| 363 |
end |
| 364 |
|
| 365 |
|
| 366 |
function luaotfload.filelist.selectlollibentries (filetable) |
| 367 |
local result = {} |
| 368 |
for i,v in ipairs (filetable) do |
| 369 |
if v.kind == 5 then |
| 370 |
table.insert (result,v) |
| 371 |
end |
| 372 |
end |
| 373 |
return result |
| 374 |
end |
| 375 |
|
| 376 |
-- luaoftload core |
| 377 |
|
| 378 |
function luaotfload.filelist.selectlolcoreentries (filetable) |
| 379 |
local result = {} |
| 380 |
for i,v in ipairs (filetable) do |
| 381 |
if v.kind == 6 then |
| 382 |
table.insert (result,v) |
| 383 |
end |
| 384 |
end |
| 385 |
return result |
| 386 |
end |
| 387 |
|
| 388 |
-- core and lib lua-files |
| 389 |
function luaotfload.filelist.selectlolsrcluaentries (filetable) |
| 390 |
local result = {} |
| 391 |
for i,v in ipairs (filetable) do |
| 392 |
if (v.kind == 5 or v.kind==6) and v.ext==".lua" then |
| 393 |
table.insert (result,v) |
| 394 |
end |
| 395 |
end |
| 396 |
return result |
| 397 |
end |
| 398 |
|
| 399 |
-- luaotfload generated |
| 400 |
function luaotfload.filelist.selectlolgeneentries (filetable) |
| 401 |
local result = {} |
| 402 |
for i,v in ipairs (filetable) do |
| 403 |
if v.kind == 7 then |
| 404 |
table.insert (result,v) |
| 405 |
end |
| 406 |
end |
| 407 |
return result |
| 408 |
end |
| 409 |
|
| 410 |
-- scripts |
| 411 |
function luaotfload.filelist.selectlolscrentries ( filetable ) |
| 412 |
local result = {} |
| 413 |
for i,v in ipairs (filetable) do |
| 414 |
if v.kind==8 then |
| 415 |
table.insert(result,v) |
| 416 |
end |
| 417 |
end |
| 418 |
return result |
| 419 |
end |