Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Updating with current master #1

Merged
merged 147 commits into from
Apr 23, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
5bba2ed
Handle missing names properly.
Ferada Oct 23, 2012
848fb9d
Merge pull request #1 from Ferada/master
eroux Apr 7, 2013
2e59059
fix redundancy in test alternate_sub
Oct 20, 2012
a38dcda
Fixing character escaping errors
eroux Apr 7, 2013
28eebe8
Fixing module loading in the script
eroux Apr 8, 2013
f71beac
remove merged files
Apr 9, 2013
f4111f6
rename otfl-font-def.lua -> otfl-fonts-def.lua
Apr 9, 2013
ed2b905
update basics-gen.lua
Apr 9, 2013
65481c5
update fonts-def
Apr 9, 2013
b3fe274
update fonts-ext
Apr 9, 2013
0db05fe
import fresh luatex-fonts.lua and luatex-fonts-merged.lua from Context
Apr 9, 2013
f936db4
otfl-fonts.lua: s/luatex-fonts-merged/otfl-fonts-merged/
Apr 9, 2013
07b9f18
preliminarily import l-dir -> otfl-lib-dir.lua to please otfl-font-nms
Apr 9, 2013
1e3f80d
preliminarily add luaotfload.lua, luaotfload-deferred.lua (move to dt…
Apr 9, 2013
c3f5cbf
truly add deferred
Apr 9, 2013
f27aa22
temporarily add luatotfload.sty
Apr 9, 2013
24b1bda
fix function names
Apr 9, 2013
e204300
Fixing issue #52
eroux Apr 9, 2013
d9475ae
Fixing issue #49
eroux Apr 9, 2013
e67643a
Adapting to Lua 5.2
eroux Apr 9, 2013
b4e51c8
new font loader initialization code (thanks Hans)
Apr 9, 2013
4222635
description of loading procedure
Apr 10, 2013
82141b6
make font definition callback wrapper work with current tfm object st…
Apr 10, 2013
223c4fb
make font patching work again with font definition wrapper
Apr 10, 2013
4645b26
update font-otc
Apr 10, 2013
3b03067
load font-otc; tlig seems to work
Apr 10, 2013
3918e10
choose less generic identifiers in font-ltx
Apr 10, 2013
b1db13a
circumvent the callback trap from luatexbase
Apr 10, 2013
45527a7
merge deferred functionality back into luaotfload.lua
Apr 10, 2013
a9b52bd
integrate changes from master; add otfl-features.lua
Apr 10, 2013
cf25e2f
fallback for earlier lualibs; move locals up in luaotfload.lua
Apr 10, 2013
284c5ae
cleanup font db script
Apr 10, 2013
6fbac59
make loglevel “-q” effective
Apr 10, 2013
b85a364
enable overrides for Context loggers
Apr 10, 2013
b1b1502
update gitignore
Apr 11, 2013
83af724
update .gitignore
Apr 11, 2013
23a527d
track otfl-features
Apr 11, 2013
1b17f5a
[dtx] fix typo
Apr 12, 2013
0266ebf
attempt at restoring KH’l OFM hack
Apr 13, 2013
83fc119
avoid loading of extended lualibs
Apr 13, 2013
a9107ee
move “config” to _G
Apr 13, 2013
9909991
add virtual font file lookup
Apr 14, 2013
7b65532
import from upstream
Apr 14, 2013
25444ac
rewrite filename logger
Apr 14, 2013
5a8c465
unify logging
Apr 14, 2013
283761c
finish move to new loggers
Apr 14, 2013
6db1231
cosmetic changes to luat-ovr
Apr 14, 2013
17893ca
make the “verbose” switch effective
Apr 14, 2013
ba7ad3c
us TFM reader for OFM (needs testing)
Apr 15, 2013
690cd37
avoid two calls to the file library
Apr 15, 2013
9e882b8
load Lua code the *right* way#
Apr 15, 2013
f3d01d6
clean font-pfb
Apr 15, 2013
05d201f
prefer locals in font-clr
Apr 15, 2013
2797002
remove node-inj (contaied in merge)
Apr 15, 2013
d4b6b18
update .gitignore
Apr 15, 2013
f48b174
raw import luaotfload.lua into luaotfload.dtx
Apr 15, 2013
3b5b837
bump version; keep luaotfload well-formed for dtxtool
Apr 15, 2013
ed31c97
restore section in doc
Apr 15, 2013
cf7d6ec
add fixes courtesy of Élie Roux to the database code
Apr 16, 2013
ad7e848
integrate luaotfload.lua into luaotfload.dtx
Apr 16, 2013
c909ab9
make mkluatexfontdb script more modular
Apr 16, 2013
0909225
make fonts.names.resolve() a local
Apr 16, 2013
5a8500f
Preventing loop-references in fontconfig files
eroux Apr 16, 2013
7192345
apply hotfix by Hans for bad clig substitution
Apr 16, 2013
6a552fe
organize font-nms
Apr 16, 2013
234ab2f
use more meaningful identifiers in font-nms
Apr 16, 2013
40357dc
add option --find="font name" to mkluatexfontdb.lua for querying the …
Apr 16, 2013
71555ee
remove attribute allocation hack
Apr 16, 2013
2c1dd88
import merged package from Context
Apr 16, 2013
e9e2d85
use locals for table.*
Apr 17, 2013
ac2b107
add approximate matching option for mkluatexfontdb.lua --find
Apr 17, 2013
aab09df
add graph of included files
Apr 17, 2013
0b74f53
comment code pertaining to lualatex-platform
Apr 17, 2013
94bd394
avoid calling table.contains()
Apr 17, 2013
fd90b57
log database version mismatch
Apr 17, 2013
341397f
expand docs
Apr 18, 2013
c4013ac
import luatex-fonts as of 2013-04-18
Apr 18, 2013
b0c2267
remove comments on dependencies (in dtx now)
Apr 18, 2013
a951046
Merge branch 'experimental' of phi-gamma/luaotfload into phi-gamma-ex…
eroux Apr 18, 2013
79fd3d9
fix font syntax parser
Apr 18, 2013
f01d69e
Merge pull request #3 from phi-gamma/experimental
eroux Apr 19, 2013
f10aeb6
Finishing to fix reference loop
eroux Apr 19, 2013
089dcf6
First try of a NEWS file for the new version
eroux Apr 19, 2013
bd7ed57
Not versioning the generated files (a bit confusing)
eroux Apr 19, 2013
e8fe5e1
A more simple loadmodule function
eroux Apr 19, 2013
4a13ae5
Documenting and simplifying ofm font bug handling
eroux Apr 19, 2013
3a59b8b
Less verbose output - first step
eroux Apr 19, 2013
c80fad6
basics-gen seems to be already present in the merged file
eroux Apr 19, 2013
80e5042
Verbosity reduction step 2
eroux Apr 19, 2013
89aaa92
Stop using module() in luaotfload.lua
eroux Apr 19, 2013
8d1a301
Making test files independent from ConTeXt files
eroux Apr 19, 2013
5c273b8
More tests independent from ConTeXt files
eroux Apr 19, 2013
f37183f
fix typo in font-nms
Apr 19, 2013
54fb044
revise doc
Apr 19, 2013
7f2b679
revise docs
Apr 20, 2013
267997e
Making the file method resolve fonts with the database
eroux Apr 20, 2013
488d7fd
Adding a little TODO for file lookup
eroux Apr 20, 2013
0d3168d
As a matter of fact, there was nothing to optimize...
eroux Apr 20, 2013
b1e675c
Making make check work on my system
eroux Apr 20, 2013
0736fb6
New version of marks test, nothing new
eroux Apr 20, 2013
11634a4
Adding fontspec test file
eroux Apr 20, 2013
c07fee9
Fixing outdated math test
eroux Apr 20, 2013
ea1bf45
Oops
eroux Apr 20, 2013
77576a1
Adding the .ltx files in the tests
eroux Apr 20, 2013
90cbb69
Renaming microtypography (.tex -> .ltx)
eroux Apr 20, 2013
e49d16d
Hmmm...
eroux Apr 20, 2013
1828aab
Adding a test for quite uncommon otf features
eroux Apr 20, 2013
d58de06
decrease verbosity of normal logging
Apr 20, 2013
b5b0f28
make mkluatexfontdb.lua behave differently if called as *fontdbutil*
Apr 20, 2013
56188a1
document behavior modes of fontdbutil
Apr 20, 2013
8f8e806
revise doc
Apr 21, 2013
e7b9824
A possible bug in otfl-fonts-merged.lua?
eroux Apr 21, 2013
cdd05ad
add --info arg to fontdbutil
Apr 21, 2013
f5cc8a1
document --info option
Apr 21, 2013
14b3ba0
Using caches.* functions from ConTeXt (fixes Issue #5)
eroux Apr 21, 2013
397c259
A wonderful bug fix
eroux Apr 21, 2013
908c644
Adding a little TODO and commenting a XXX
eroux Apr 21, 2013
7f0665e
Adding a test with absolute path in file: specification
eroux Apr 21, 2013
20e92df
Adding more technical details in the failing test
eroux Apr 21, 2013
3d9ffcf
fix docs
Apr 21, 2013
f95f877
merge from eroux
Apr 21, 2013
4386c09
sync with Context as of 2013-04-21
Apr 21, 2013
608b4d7
reduce verbosity of the font loader
Apr 21, 2013
17488f0
restore otfl-basics-gen.lua (needed in fontdbutil)
Apr 21, 2013
c170cba
Fixing backward compatibility with current released lualibs
eroux Apr 22, 2013
00358e4
Merge pull request #2 from eroux/master
Apr 22, 2013
655ab8e
remove luaotfload.lua from repo
Apr 22, 2013
4f07741
migrate files from ‘otfl’ to ‘luaotfload’ prefix
Apr 22, 2013
f4fa20a
Removing the init_prog line...
eroux Apr 22, 2013
30f83b7
make main files recognize the new ``luaotfload-`` prefix
Apr 22, 2013
b4ae5d2
A more simple loadmodule function
eroux Apr 19, 2013
9c57370
Documenting and simplifying ofm font bug handling
eroux Apr 19, 2013
406f05f
Merge branch 'master' of https://github.com/phi-gamma/luaotfload
Apr 22, 2013
4a90057
move everything relevant from luatex-fonts.lua into luaotfload.lua
Apr 22, 2013
e97db3a
extinguish obsolete luaotfload-fonts.lua
Apr 22, 2013
2be4a38
update documentation to reflect current state of files
Apr 22, 2013
e102132
update graph to current dependency structure
Apr 22, 2013
1faface
move to human-readable names 1
Apr 22, 2013
c6a89a3
combine luaotfload-font-ltx -> luaotfload-features
Apr 23, 2013
43b7ab7
update graph to reflect renamed files
Apr 23, 2013
4701d59
annihilate luaotfload-font-otc.lua
Apr 23, 2013
bd1c0d0
Merge branch 'master' of https://github.com/eroux/luaotfload into ero…
Apr 23, 2013
57b43df
update filegraph
Apr 23, 2013
43389fd
remove font-age.lua from tracking
Apr 23, 2013
96dd4e3
add script to generate ``font-age.lua``
Apr 23, 2013
25c75a5
update Makefile
Apr 23, 2013
80ab69f
update documentation with info about ``mkglyphlist``
Apr 23, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,14 @@ luaotfload.zip
# Temporary files in the tests directory
tests/*.log
tests/*.pdf
tests/*.lua
tests/*.otf
tests/*.aux
tests/phg-*.tex
tests/*.pfb
tests/*.afm
tests/*.tfm
tests/*.dvi
tests/*.ofm
tests/*.ovp
tests/*.ovf
64 changes: 41 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
# Makefile for luaotfload

NAME = luaotfload
DOC = $(NAME).pdf
DTX = $(NAME).dtx
OTFL = $(wildcard otfl-*.lua) otfl-blacklist.cnf font-age.lua
SCRIPT = mkluatexfontdb.lua
NAME = luaotfload
DOC = $(NAME).pdf
DTX = $(NAME).dtx
OTFL = $(wildcard otfl-*.lua) otfl-blacklist.cnf font-age.lua
SCRIPT = fontdbutil

GLYPHSCRIPT = mkglyphlist
GLYPHSOURCE = glyphlist.txt

GRAPH = filegraph
DOTPDF = $(GRAPH).pdf
DOT = $(GRAPH).dot

# Files grouped by generation mode
COMPILED = $(DOC)
UNPACKED = luaotfload.sty luaotfload.lua
GENERATED = $(COMPILED) $(UNPACKED)
SOURCE = $(DTX) $(OTFL) README Makefile NEWS $(SCRIPT)
GLYPHS = font-age.lua
GRAPHED = $(DOTPDF)
COMPILED = $(DOC)
UNPACKED = luaotfload.sty luaotfload.lua
GENERATED = $(GRAPHED) $(COMPILED) $(UNPACKED) $(GLYPHS)
SOURCE = $(DTX) $(OTFL) README Makefile NEWS $(SCRIPT) $(GLYPHSCRIPT)

# test files
TESTDIR = tests
TESTFILES = $(wildcard $(TESTDIR)/*.tex)
TESTFILES_SYS = $(TESTDIR)/systemfonts.tex $(TESTDIR)/fontconfig_conf_reading.tex
TESTFILES_TL = $(filter-out $(TESTFILES_SYS), $(TESTFILES))
TESTENV = env TEXINPUTS='.;..;$$TEXMF/tex/{luatex,plain,generic,}//' TEXMFVAR='../var'
TESTDIR = tests
TESTFILES = $(wildcard $(TESTDIR)/*.tex $(TESTDIR)/*.ltx)
TESTFILES_SYS = $(TESTDIR)/systemfonts.tex $(TESTDIR)/fontconfig_conf_reading.tex
TESTFILES_TL = $(filter-out $(TESTFILES_SYS), $(TESTFILES))

# Files grouped by installation location
SCRIPTFILES = $(SCRIPT)
SCRIPTFILES = $(SCRIPT) $(GLYPHSCRIPT)
RUNFILES = $(UNPACKED) $(OTFL)
DOCFILES = $(DOC) README NEWS
SRCFILES = $(DTX) Makefile
Expand All @@ -38,19 +46,29 @@ SRCDIR = $(TEXMFROOT)/source/$(FORMAT)/$(NAME)
TEXMFROOT = $(shell kpsewhich --var-value TEXMFHOME)

CTAN_ZIP = $(NAME).zip
TDS_ZIP = $(NAME).tds.zip
ZIPS = $(CTAN_ZIP) $(TDS_ZIP)
TDS_ZIP = $(NAME).tds.zip
ZIPS = $(CTAN_ZIP) $(TDS_ZIP)

DO_TEX = tex --interaction=batchmode $< >/dev/null
DO_LATEX = latexmk -pdf -pdflatex=lualatex -silent $< >/dev/null
DO_TEX = tex --interaction=batchmode $< >/dev/null
DO_LATEX = latexmk -pdf -pdflatex=lualatex -silent $< >/dev/null
DO_GRAPHVIZ = dot -Tpdf -o $@ $< > /dev/null
DO_GLYPHLIST = texlua ./mkglyphlist > /dev/null

all: $(GENERATED)
doc: $(COMPILED)
graph: $(GRAPHED)
doc: $(GRAPHED) $(COMPILED)
unpack: $(UNPACKED)
glyphs: $(GLYPHS)
ctan: check $(CTAN_ZIP)
tds: $(TDS_ZIP)
world: all ctan

$(GLYPHS): /dev/null
$(DO_GLYPHLIST)

$(GRAPHED): $(DOT)
$(DO_GRAPHVIZ)

$(COMPILED): $(DTX)
$(DO_LATEX)

Expand Down Expand Up @@ -85,9 +103,9 @@ install: $(ALL_FILES)

check: $(RUNFILES) $(TESTFILES_TL)
@rm -rf var
@cd $(TESTDIR); for f in $(TESTFILES_TL); do \
@for f in $(TESTFILES_TL); do \
echo "check: luatex $$f"; \
$(TESTENV) luatex --interaction=batchmode ../$$f \
luatex --interaction=batchmode $$f \
> /dev/null || exit $$?; \
done

Expand All @@ -109,5 +127,5 @@ clean:
@$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg *.out $(TESTDIR)/*.log

mrproper: clean
@$(RM) -- $(GENERATED) $(ZIPS) $(TESTDIR)/*.pdf
@$(RM) -- $(GENERATED) $(ZIPS) $(GLYPHSOURCE) $(TESTDIR)/*.pdf

17 changes: 17 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
Change History
--------------

2013/04/xx, luaotfload v2.2:
* Synchronisation with ConTeXt from TeXLive 2013, inducing
backward-incompatible changes in the font structure (fontspec and
unicode-math must be updated)
* Synchronisation with ConTeXt is now easier and can be done by just
updating otfl-fonts-merged.lua (available in ConTeXt)
* Improve documentation
* renaming mkluatexfontdb into fontdbutil, with more search functionalities

2013/04/11, luaotfload v1.28:
* Adapting to LuaTeX 0.75, keeping backward-compatibility
* Fix small documentation issues in mkluatexfontdb
* Fix possibility of infite 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

2011/04/21, luaotfload v1.25:
* Fix bug loading *.dfont fonts
* Misc. documentation fixes
Expand Down
178 changes: 178 additions & 0 deletions filegraph.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
strict digraph luaotfload_files { //looks weird with circo ...
compound = true;

// label = "Schematic of the files included in Luaotfload.";
// labelloc = "b";

fontsize = "14.4";
labelfontname = "Iwona Medium Regular";
fontname = "Iwona Light Regular";
size = "21cm";

rankdir = LR;
ranksep = 0.618;
nodesep = 1.618;

edge [
arrowhead = onormal,
fontname = "Iwona Cond Regular",
penwidth = 1.0,
];
node [
//penwidth = 0.7,
fontname = "Liberation Mono",
fontsize = 12,
];

/* ····································································
* file structure
* ································································· */
luaotfload -> otfl_fonts_merged [label="merged"]
luaotfload -> merged_lua_libs [label="unmerged", style=solid]
luaotfload -> merged_luatex_fonts [label="unmerged", style=solid]
luaotfload -> merged_context_libs [label="unmerged", style=solid]

luaotfload -> luaotfload_libs
luaotfload -> otfl_blacklist_cnf


otfl_fonts_merged -> merged_lua_libs [label="merged",
style=dotted,
lhead=cluster_merged]
otfl_fonts_merged -> merged_luatex_fonts [label="merged",
style=dotted,
lhead=cluster_merged]
otfl_fonts_merged -> merged_context_libs [label="merged",
style=dotted,
lhead=cluster_merged]



/* ····································································
* main files
* ································································· */

luaotfload [label = "luaotfload.lua",
shape = rect,
width = "3.2cm",
height = "1.2cm",
color = "#01012222",
style = "filled,rounded",
penwidth=2]
/*
*otfl_fonts [label = "luaotfload-fonts.lua",
* shape = rect,
* width = "3.2cm",
* height = "1.2cm",
* color = "#01012222",
* style = "filled,rounded",
* penwidth=2]
*/
otfl_fonts_merged [label = "luaotfload-merged.lua",
shape = rect,
width = "3.2cm",
height = "1.2cm",
color = "#01012222",
style = "filled,rounded",
penwidth=2]

/* ····································································
* luaotfload files
* ································································· */


otfl_blacklist_cnf [style = "filled,dashed",
shape = rect,
width = "3.2cm",
fillcolor = "#01012222",
color = grey40,
style = "filled,dotted,rounded",
label = "luaotfload-blacklist.cnf"]

luaotfload_libs [
shape = box,
style = "filled,rounded",
color = "grey90:goldenrod4",
fontsize = 10,
label = <
<table cellborder="0" bgcolor="#FFFFFFAA">
<th> <td colspan="2"> <font point-size="12" face="Iwona Italic">Luaotfload Libraries</font> </td> </th>
<tr> <td>luaotfload-lib-dir.lua</td> <td>luaotfload-features.lua</td> </tr>
<tr> <td>luaotfload-override.lua</td> <td>luaotfload-loaders.lua</td> </tr>
<tr> <td>luaotfload-database.lua</td> <td>luaotfload-color.lua</td> </tr>
</table>
>,
]

/* ····································································
* merged files
* ································································· */

subgraph cluster_merged {
node [style=filled, color=white];
style = "filled,rounded";
color = "grey90:dodgerblue4";
//nodesep = "3.0";
rank = same;
label = "Merged Libraries";
gradientangle=0;
merged_lua_libs;
merged_luatex_fonts;
merged_context_libs;
}

otfl_fonts_merged -> merged_lua_libs
otfl_fonts_merged -> merged_luatex_fonts
otfl_fonts_merged -> merged_context_libs

merged_lua_libs [
shape = box,
style = "filled,rounded",
color = "#FFFFFFAA",
fontsize = 10,
label = <
<table border="0">
<th> <td colspan="3"> <font point-size="12" face="Iwona Italic">Lua Libraries from Context</font> </td> </th>
<tr> <td>l-lua.lua</td> <td>l-lpeg.lua</td> <td>l-function.lua</td> </tr>
<tr> <td>l-string.lua</td> <td>l-table.lua</td> <td>l-io.lua</td> </tr>
<tr> <td>l-file.lua</td> <td>l-boolean.lua</td> <td>l-math.lua</td> </tr>
<tr> <td>util-str.lua</td> </tr>
</table>
>,
]

merged_luatex_fonts [
shape = box,
style = "filled,rounded",
color = "#FFFFFFAA",
fontsize = 10,
label = <
<table border="0">
<th> <td colspan="2"> <font point-size="12" face="Iwona Italic">Font Loader (LuaTeX-Fonts)</font> </td> </th>
<tr> <td>luatex-basics-gen.lua</td> <td>luatex-basics-nod.lua</td> </tr>
<tr> <td>luatex-fonts-enc.lua</td> <td>luatex-fonts-syn.lua</td> </tr>
<tr> <td>luatex-fonts-tfm.lua</td> <td>luatex-fonts-chr.lua</td> </tr>
<tr> <td>luatex-fonts-lua.lua</td> <td>luatex-fonts-def.lua</td> </tr>
<tr> <td>luatex-fonts-ext.lua</td> <td>luatex-fonts-cbk.lua</td> </tr>
</table>
>,
]

merged_context_libs [
shape = box,
style = "filled,rounded",
color = "#FFFFFFAA",
fontsize = 10,
label = <
<table border="0">
<th> <td colspan="3"> <font point-size="12" face="Iwona Italic"> Font and Node Libraries from Context </font> </td> </th>
<tr> <td>data-con.lua</td> <td>font-ini.lua</td> <td>font-con.lua</td> </tr>
<tr> <td>font-cid.lua</td> <td>font-map.lua</td> <td>font-oti.lua</td> </tr>
<tr> <td>font-otf.lua</td> <td>font-otb.lua</td> <td>node-inj.lua</td> </tr>
<tr> <td>font-ota.lua</td> <td>font-otn.lua</td> <td>font-def.lua</td> </tr>
</table>
>,
]
}

// vim:ft=dot:sw=4:ts=4:expandtab
Loading