Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
sync with upstream experimental (again)
Browse files Browse the repository at this point in the history
git-svn-id: https://serveur-svn.lri.fr/svn/modhel/luatex/trunk@7337 0b2b3880-5936-4365-a048-eb17d2e5a6bf
  • Loading branch information
luigiScarso committed Apr 21, 2020
1 parent 7365363 commit 56f8b7a
Show file tree
Hide file tree
Showing 216 changed files with 67,292 additions and 2,264 deletions.
20 changes: 18 additions & 2 deletions manual/luatex-backend.tex
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@
\stoptyping

Another convenience command gives you the (bounding) box of a (normally page)
which can be inheritted from the document itself. An example of a valid box name
which can be inherited from the document itself. An example of a valid box name
is \type {MediaBox}.

\starttyping
Expand All @@ -690,13 +690,14 @@

\stopsubsection

\startsubsection[title={\type {get[string|integer|number|boolean|name]}}]
\startsubsection[title={\type {get[string|integer|number|boolean|name]}, \type{type}}]

\libindex {getstring}
\libindex {getinteger}
\libindex {getnumber}
\libindex {getboolean}
\libindex {getname}
\libindex {type}

Common values in dictionaries and arrays are strings, integers, floats, booleans
and names (which are also strings) and these are also normal \LUA\ objects:
Expand All @@ -707,8 +708,23 @@
n = getnumber (<pdfe array|dictionary>,index|key)
b = getboolean(<pdfe array|dictionary>,index|key)
n = getname (<pdfe array|dictionary>,index|key)
s = type (<pdfe array|dictionary|document|reference|stream)
\stoptyping

The \type {type} returns a string describing the type of the object,
i.e. "pdfe.array", "pdfe.dictionary", "pdfe",
"pdfe.reference", "pdfe.stream".

The \type {getstring} function has two extra variants:

\starttyping
s, h = getstring (<pdfe array|dictionary>,index|key,false)
s = getstring (<pdfe array|dictionary>,index|key,true)
\stoptyping

The first call returns the original string plus a boolean indicating if the
string is hex encoded. The second call returns the unencoded string.

\stopsubsection

\startsubsection[title={\type {get[from][dictionary|array|stream]}}]
Expand Down
23 changes: 23 additions & 0 deletions manual/luatex-enhancements.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,29 @@

\stopsubsection

\startsubsection[title={\prm {glyphdimensionsmode}}]

Already in the early days of \LUATEX\ the decision was made to calculate the
effective height and depth of glyphs in a way that reflected the applied vertical
offset. The height got that offset added, the depth only when the offset was
larger than zero. We can now control this in more detail with this mode
parameter. An offset is added to the height and|/|or subtracted from the depth.
The effective values are never negative. The zero mode is the default.

\starttabulate[|l|pl|]
\DB value \BC effect \NC\NR
\TB
\NC \type {0} \NC the old behaviour: add the offset to the height and only subtract
the offset only from the depth when it is positive \NC \NR
\NC \type {1} \NC add the offset to the height and subtract it from the depth \NC \NR
\NC \type {2} \NC add the offset to the height and subtract it from the depth but
keep the maxima of the current and previous results \NC \NR
\NC \type {3} \NC use the height and depth of the glyph, so no offset is applied \NC \NR
\LL
\stoptabulate

\stopsubsection

\stopsection

\startsection[title={Control and debugging}]
Expand Down
25 changes: 25 additions & 0 deletions manual/luatex-math.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,31 @@ \subsection{Scripts on extensibles}
font metrics are involved we have a different code path for traditional fonts end
\OPENTYPE\ fonts.

Sometimes you might want to act upon the size of a delimiter, something that is
not really possible because of the fact that they are calculated {\em after} most
has been typeset already. In the following example the all|-|zero specification
is the trigger to make a fake box with the last delimiter dimensions and shift.
It's an ugly hack but its relative simple and not intrusive implementation has no
side effects. Any other heuristic solution would not satisfy possible demands
anyway. Here is a rather low level example:

\startbuffer
\startformula
\Uleft \Udelimiter 5 0 "222B
\frac{\frac{a}{b}}{\frac{c}{d}}
\Uright \Udelimiter 5 0 "222B
\kern-2\fontcharwd\textfont0 "222B
\mathlimop{\Uvextensible \Udelimiter 0 0 0}_1^2 x
\stopformula
\stopbuffer

\typebuffer

The last line, by passing zero values, results in a fake operator that has the
dimensions of the previous delimiter. We can then backtrack over the (presumed)
width and the two numbers become limit operators. As said, it's not pretty but it
works.

\subsection{Fractions}

\topicindex {math+fractions}
Expand Down
Binary file modified manual/luatex.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion manual/luatex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
\startdocument
[manual=Lua\TeX,
status=stable,
version=1.12]
version=1.13]

\startnotmode[*export]
\component luatex-titlepage
Expand Down
4 changes: 4 additions & 0 deletions source/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2020-04-10 Karl Berry <[email protected]>

* version.ac: 2020/dev.

2020-03-27 Karl Berry <[email protected]>

* tardate.ac (tex_live_tardate): 2020-03-27 for TL'20.
Expand Down
2 changes: 2 additions & 0 deletions source/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/kpse-cairo-flags.m4 \
$(top_srcdir)/m4/kpse-pixman-flags.m4 \
$(top_srcdir)/m4/kpse-pkgs.m4 \
$(top_srcdir)/m4/kpse-poppler-flags.m4 \
$(top_srcdir)/m4/kpse-pplib-flags.m4 \
$(top_srcdir)/m4/kpse-ptexenc-flags.m4 \
$(top_srcdir)/m4/kpse-setup.m4 \
$(top_srcdir)/m4/kpse-teckit-flags.m4 \
Expand All @@ -124,6 +125,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/kpse-cairo-flags.m4 \
$(top_srcdir)/texk/web2c/ac/web2c.ac \
$(top_srcdir)/texk/texlive/ac/withenable.ac \
$(top_srcdir)/texk/texlive/ac/texlive.ac \
$(top_srcdir)/libs/pplib/ac/withenable.ac \
$(top_srcdir)/libs/harfbuzz/ac/withenable.ac \
$(top_srcdir)/libs/graphite2/ac/withenable.ac \
$(top_srcdir)/libs/zziplib/ac/withenable.ac \
Expand Down
1 change: 1 addition & 0 deletions source/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,7 @@ m4_include([m4/kpse-options.m4])
m4_include([m4/kpse-pixman-flags.m4])
m4_include([m4/kpse-pkgs.m4])
m4_include([m4/kpse-poppler-flags.m4])
m4_include([m4/kpse-pplib-flags.m4])
m4_include([m4/kpse-ptexenc-flags.m4])
m4_include([m4/kpse-setup.m4])
m4_include([m4/kpse-teckit-flags.m4])
Expand Down
18 changes: 16 additions & 2 deletions source/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4223,6 +4223,7 @@ case $enable_luatex in #(
esac

test "x$enable_web2c:$enable_luatex" = xyes:yes && {
need_pplib=yes
need_libpng=yes
need_zziplib=yes
need_lua53=yes
Expand All @@ -4239,6 +4240,7 @@ case $enable_luajittex in #(
esac

test "x$enable_web2c:$enable_luajittex" = xyes:yes && {
need_pplib=yes
need_libpng=yes
need_zziplib=yes
need_luajit=yes
Expand All @@ -4255,6 +4257,7 @@ case $enable_luahbtex in #(
esac

test "x$enable_web2c:$enable_luahbtex" = xyes:yes && {
need_pplib=yes
need_libpng=yes
need_zziplib=yes
need_lua53=yes
Expand All @@ -4272,6 +4275,7 @@ case $enable_luajithbtex in #(
esac

test "x$enable_web2c:$enable_luajithbtex" = xyes:yes && {
need_pplib=yes
need_libpng=yes
need_zziplib=yes
need_luajit=yes
Expand Down Expand Up @@ -4497,6 +4501,9 @@ if test "${enable_linked_scripts+set}" = set; then :
fi


## libs/pplib/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/pplib/
## configure options and TL libraries required for pplib

## libs/harfbuzz/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/harfbuzz/
## configure options and TL libraries required for harfbuzz

Expand Down Expand Up @@ -19480,6 +19487,13 @@ if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
fi

if $PKG_CONFIG PPLIB; then
PPLIB_INCLUDES=`$PKG_CONFIG PPLIB --cflags`
PPLIB_LIBS=`$PKG_CONFIG PPLIB --libs`
elif test "x$need_PPLIB:$with_system_PPLIB" = xyes:yes; then
as_fn_error $? "did not find PPLIB" "$LINENO" 5
fi

##tldbg _KPSE_LIB_FLAGS_SYSTEM: libpaper (paper).
if test "x$with_libpaper_includes" != x && test "x$with_libpaper_includes" != xyes; then
LIBPAPER_INCLUDES="-I$with_libpaper_includes"
Expand Down Expand Up @@ -22777,11 +22791,11 @@ msg_compiling="$msg_compiling
test "x$srcdir" = x. || msg_compiling="$msg_compiling
from sources in $kpse_src"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
** Configuration summary for $PACKAGE_STRING (2020$with_banner_add):
** Configuration summary for $PACKAGE_STRING (2021/dev$with_banner_add):

$msg_compiling" >&5
$as_echo "
** Configuration summary for $PACKAGE_STRING (2020$with_banner_add):
** Configuration summary for $PACKAGE_STRING (2021/dev$with_banner_add):

$msg_compiling" >&6; }
case $kpse_src$kpse_bld in
Expand Down
2 changes: 2 additions & 0 deletions source/doc/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/kpse-cairo-flags.m4 \
$(top_srcdir)/m4/kpse-pixman-flags.m4 \
$(top_srcdir)/m4/kpse-pkgs.m4 \
$(top_srcdir)/m4/kpse-poppler-flags.m4 \
$(top_srcdir)/m4/kpse-pplib-flags.m4 \
$(top_srcdir)/m4/kpse-ptexenc-flags.m4 \
$(top_srcdir)/m4/kpse-setup.m4 \
$(top_srcdir)/m4/kpse-teckit-flags.m4 \
Expand All @@ -124,6 +125,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/kpse-cairo-flags.m4 \
$(top_srcdir)/texk/web2c/ac/web2c.ac \
$(top_srcdir)/texk/texlive/ac/withenable.ac \
$(top_srcdir)/texk/texlive/ac/texlive.ac \
$(top_srcdir)/libs/pplib/ac/withenable.ac \
$(top_srcdir)/libs/harfbuzz/ac/withenable.ac \
$(top_srcdir)/libs/graphite2/ac/withenable.ac \
$(top_srcdir)/libs/zziplib/ac/withenable.ac \
Expand Down
4 changes: 2 additions & 2 deletions source/doc/build-tools.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
autoconf (GNU Autoconf) 2.69
automake (GNU automake) 1.16.1
bison (GNU Bison) 3.5.2
automake (GNU automake) 1.16.2
bison (GNU Bison) 3.5.4
flex 2.6.0
ltmain.sh (GNU libtool) 2.4.6
m4 (GNU M4) 1.4.18
Expand Down
Loading

0 comments on commit 56f8b7a

Please sign in to comment.