Skip to content

Commit

Permalink
TL'19 LuaTeX changes
Browse files Browse the repository at this point in the history
Some of these are not documented at present:
to check with the LuaTeX team.
  • Loading branch information
josephwright committed Jun 18, 2019
1 parent f3cd126 commit 84fab86
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 23 deletions.
53 changes: 33 additions & 20 deletions base/ltluatex.dtx
Expand Up @@ -1311,6 +1311,7 @@ local callbacktypes = callbacktypes or {
% \changes{v1.0n}{2016/03/13}{insert\_local\_par added}
% \changes{v1.0n}{2016/03/13}{contribute\_filter added}
% \changes{v1.1h}{2018/08/18}{append\_to\_vlist\_filter is \texttt{exclusive}}
% \changes{v1.1j}{2019/06/18}{new\_graf added}
% \begin{macrocode}
contribute_filter = simple,
buildpage_filter = simple,
Expand All @@ -1330,38 +1331,50 @@ local callbacktypes = callbacktypes or {
kerning = simple,
insert_local_par = simple,
mlist_to_hlist = list,
new_graf = simple,
% \end{macrocode}
% Section 8.5: information reporting callbacks.
% \changes{v1.0m}{2016/02/11}{show\_warning\_message added}
% \changes{v1.0p}{2016/11/17}{call\_edit added}
% \changes{v1.1g}{2018/05/02}{finish\_synctex\_callback added}
% \begin{macrocode}
pre_dump = simple,
start_run = simple,
stop_run = simple,
start_page_number = simple,
stop_page_number = simple,
show_error_hook = simple,
show_warning_message = simple,
show_error_message = simple,
show_lua_error_hook = simple,
start_file = simple,
stop_file = simple,
call_edit = simple,
finish_synctex_callback = simple,
% \changes{v1.1j}{2019/06/18}{finish\_synctex\_callback renamed finish\_synctex}
% \changes{v1.1j}{2019/06/18}{wrapup\_run added}
% \begin{macrocode}
pre_dump = simple,
start_run = simple,
stop_run = simple,
start_page_number = simple,
stop_page_number = simple,
show_error_hook = simple,
show_warning_message = simple,
show_error_message = simple,
show_lua_error_hook = simple,
start_file = simple,
stop_file = simple,
call_edit = simple,
finish_synctex = simple,
wrapup_run = simple,
% \end{macrocode}
% Section 8.6: PDF-related callbacks.
% \changes{v1.1j}{2019/06/18}{page\_objnum\_provider added}
% \changes{v1.1j}{2019/06/18}{process\_pdf\_image\_content added}
% \begin{macrocode}
finish_pdffile = data,
finish_pdfpage = data,
finish_pdffile = data,
finish_pdfpage = data,
page_objnum_provider = simple,
process_pdf_image_content = simple,
% \end{macrocode}
% Section 8.7: font-related callbacks.
% \changes{v1.1e}{2017/03/28}{glyph\_stream\_provider added}
% \changes{v1.1g}{2018/05/02}{glyph\_not\_found added}
% \begin{macrocode}
define_font = exclusive,
glyph_not_found = exclusive,
glyph_stream_provider = exclusive,
% \changes{v1.1j}{2019/06/18}{make\_extensible added}
% \changes{v1.1j}{2019/06/18}{font\_descriptor\_objnum\_provider added}
% \begin{macrocode}
define_font = exclusive,
glyph_not_found = exclusive,
glyph_stream_provider = exclusive,
make_extensible = exclusive,
font_descriptor_objnum_provider = exclusive,
% \end{macrocode}
% \changes{v1.0m}{2016/02/11}{pdf\_stream\_filter\_callback removed}
% \begin{macrocode}
Expand Down
28 changes: 28 additions & 0 deletions base/testfiles/tlb-extraprimitives-001.luatex.tlg
Expand Up @@ -157,17 +157,21 @@ automatichyphenmode
automatichyphenpenalty
begincsname
bodydir
bodydirection
botmarks
boxdir
boxdirection
breakafterdirmode
catcodetable
clearmarks
clubpenalties
compoundhyphenmode
copyfont
crampeddisplaystyle
crampedscriptscriptstyle
crampedscriptstyle
crampedtextstyle
csstring
currentgrouplevel
currentgrouptype
currentifbranch
Expand All @@ -185,14 +189,17 @@ eTeXminorversion
eTeXrevision
eTeXversion
efcode
endlocalcontrol
etoksapp
etokspre
everyeof
exceptionpenalty
expanded
expandglyphsinfont
explicitdiscretionary
explicithyphenpenalty
firstmarks
fixupboxesmode
fontchardp
fontcharht
fontcharic
Expand All @@ -206,18 +213,23 @@ glueshrinkorder
gluestretch
gluestretchorder
gluetomu
gtoksapp
gtokspre
hjcode
hyphenationbounds
hyphenationmin
hyphenpenaltymode
ifabsdim
ifabsnum
ifcondition
ifcsname
ifdefined
iffontchar
ifincsname
ifprimitive
ignoreligaturesinfont
immediateassigned
immediateassignment
initcatcodetable
insertht
interactionmode
Expand All @@ -231,33 +243,44 @@ lastsavedimageresourcepages
lastxpos
lastypos
latelua
lateluafunction
leftghost
leftmarginkern
letcharcode
letterspacefont
linedir
linedirection
localbrokenpenalty
localinterlinepenalty
localleftbox
localrightbox
lpcode
luabytecode
luabytecodecall
luacopyinputnodes
luadef
luaescapestring
luafunction
luafunctioncall
luatexbanner
luatexrevision
luatexversion
marks
mathdelimitersmode
mathdir
mathdirection
mathdisplayskipmode
matheqnogapstep
mathflattenmode
mathitalicsmode
mathnolimitsmode
mathoption
mathpenaltiesmode
mathrulesfam
mathrulesmode
mathrulethicknessmode
mathscriptboxmode
mathscriptcharmode
mathscriptsmode
mathstyle
mathsurroundmode
Expand All @@ -275,13 +298,15 @@ outputbox
outputmode
pagebottomoffset
pagedir
pagedirection
pagediscards
pageheight
pageleftoffset
pagerightoffset
pagetopoffset
pagewidth
pardir
pardirection
parshapedimen
parshapeindent
parshapelength
Expand Down Expand Up @@ -332,6 +357,7 @@ suppressprimitiveerror
synctex
tagcode
textdir
textdirection
toksapp
tokspre
topmarks
Expand All @@ -347,3 +373,5 @@ unless
useboxresource
useimageresource
widowpenalties
xtoksapp
xtokspre
6 changes: 3 additions & 3 deletions base/testfiles/tlb-ltluatex-001.luatex.tlg
Expand Up @@ -5,9 +5,9 @@ Module luatexbase Error: Unable to create callback:
(luatexbase) valid callback name and type required on input line ...
stack traceback:
^^I[C]: in function 'error'
^^I./ltluatex.lua:...: in function 'module_error'
^^I./ltluatex.lua:...: in function 'luatexbase_error'
^^I./ltluatex.lua:...: in function 'create_callback'
^^I./ltluatex.lua:109: in upvalue 'module_error'
^^I./ltluatex.lua:116: in upvalue 'luatexbase_error'
^^I./ltluatex.lua:374: in field 'create_callback'
^^I[\directlua]:1: in main chunk.
l. ...}
The lua interpreter ran into a problem, so the
Expand Down

0 comments on commit 84fab86

Please sign in to comment.