Martin von Gagern | 2 Oct 22:22
Picon

LuaTeX and Poppler 0.18.x

Hi!

As you know from the mail by James Cloos, luatex doesn't support poppler
versions 0.17.0 and later. As my distribution, Gentoo, doesn't use the
poppler bundled with luatex, I wrote a patch to conditionally disable
those lua bindings which have been removed from the poppler api. Not
sure if you are interested at all in this, but I thought I'd let you
know. Patch attached, take it or ignore it, as you see fit. Also notice
the links given in the patch header for further information.

Greetings,
 Martin von Gagern
Make luatex compile against poppler 0.18.0.

API which has been removed from poppler will be removed from the LUA
bindings as well.  Replacement API isn't added by this patch, but should be
added when this patch or its equivalent is applied to the main luatex
sources, in order to officially support that new API.

2011-09-30 Martin von Gagern

References:
http://cgit.freedesktop.org/poppler/poppler/commit/?id=664865a2ddca9c20
http://cgit.freedesktop.org/poppler/poppler/commit/?id=2bf82f27bd9c8f97
http://cgit.freedesktop.org/poppler/poppler/commit/?id=04dfb2c984b3c994
https://bugs.gentoo.org/384875

Index: luatex-beta-0.70.1/source/texk/web2c/luatexdir/lua/lepdflib.cc
(Continue reading)

Hartmut Henkel | 3 Oct 18:06
Picon
Picon

Re: LuaTeX and Poppler 0.18.x

On Sun, 2 Oct 2011, Martin von Gagern wrote:

> As you know from the mail by James Cloos, luatex doesn't support
> poppler versions 0.17.0 and later. As my distribution, Gentoo, doesn't
> use the poppler bundled with luatex, I wrote a patch to conditionally
> disable those lua bindings which have been removed from the poppler
> api. Not sure if you are interested at all

interested, definitely!

> in this, but I thought I'd let you know. Patch attached, take it or
> ignore it, as you see fit. Also notice the links given in the patch
> header for further information.

thanks a lot for the patch. Seems it's still not too late just to remove
these few (non-essential) api functions, unconditionally.

Regards, Hartmut
Cron Daemon | 3 Oct 22:29
Picon
Favicon

Cron <luatex <at> boekplan> /var/www/luatex.org/www/bin/luatex-svn

------------------------------------------------------------------------
r4346 | hhenkel | 2011-10-03 21:28:17 +0200 (Mon, 03 Oct 2011) | 5 lines
Changed paths:
   M /trunk/source/libs/poppler/Makefile.am
   M /trunk/source/libs/poppler/Makefile.in
   M /trunk/source/libs/poppler/configure
   M /trunk/source/libs/poppler/configure.ac
   A /trunk/source/libs/poppler/cpp
   A /trunk/source/libs/poppler/cpp/Makefile.am
   A /trunk/source/libs/poppler/cpp/Makefile.in
   M /trunk/source/texk/web2c/luatexdir/image/epdf.h
   M /trunk/source/texk/web2c/luatexdir/lua/lepdflib.cc

apply patch from Martin von Gagern,
Date: Sun, 02 Oct 2011 22:22:19 +0200
Subject: [Dev-luatex] LuaTeX and Poppler 0.18.x
add poppler/cpp directory & Makefile.am, run reautoconf

------------------------------------------------------------------------
Cron Daemon | 4 Oct 12:28
Picon
Favicon

Cron <luatex <at> boekplan> /var/www/luatex.org/www/bin/luatex-svn

------------------------------------------------------------------------
r4347 | hhenkel | 2011-10-03 23:13:16 +0200 (Mon, 03 Oct 2011) | 3 lines
Changed paths:
   A /trunk/source/libs/poppler/poppler-0.18.0
   A /trunk/source/libs/poppler/poppler-0.18.0/AUTHORS
   A /trunk/source/libs/poppler/poppler-0.18.0/CMakeLists.txt
   A /trunk/source/libs/poppler/poppler-0.18.0/COPYING
   A /trunk/source/libs/poppler/poppler-0.18.0/ChangeLog
   A /trunk/source/libs/poppler/poppler-0.18.0/ConfigureChecks.cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/INSTALL
   A /trunk/source/libs/poppler/poppler-0.18.0/Makefile.am
   A /trunk/source/libs/poppler/poppler-0.18.0/Makefile.in
   A /trunk/source/libs/poppler/poppler-0.18.0/NEWS
   A /trunk/source/libs/poppler/poppler-0.18.0/README
   A /trunk/source/libs/poppler/poppler-0.18.0/README-XPDF
   A /trunk/source/libs/poppler/poppler-0.18.0/TODO
   A /trunk/source/libs/poppler/poppler-0.18.0/aclocal.m4
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/COPYING-CMAKE-SCRIPTS
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/FindCairo.cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/FindFontconfig.cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/FindGLIB.cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/FindGObjectIntrospection.cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/FindGTK.cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/FindIconv.cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/FindLCMS.cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/FindLIBOPENJPEG.cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/FindQt4.cmake
   A /trunk/source/libs/poppler/poppler-0.18.0/cmake/modules/GObjectIntrospectionMacros.cmake
(Continue reading)

Cron Daemon | 4 Oct 22:28
Picon
Favicon

Cron <luatex <at> boekplan> /var/www/luatex.org/www/bin/luatex-svn

------------------------------------------------------------------------
r4353 | hhenkel | 2011-10-04 21:00:21 +0200 (Tue, 04 Oct 2011) | 2 lines
Changed paths:
   M /trunk/source/libs/poppler/Makefile.am
   M /trunk/source/libs/poppler/Makefile.in
   M /trunk/source/libs/poppler/poppler-0.18.0/poppler/Page.cc
   D /trunk/source/libs/poppler/poppler-0.18.0-PATCHES/patch-01-PDF_PARSER_ONLY

poppler-0.18.0 is now pristine version, no local patches needed (for linux).

------------------------------------------------------------------------
Cron Daemon | 5 Oct 12:28
Picon
Favicon

Cron <luatex <at> boekplan> /var/www/luatex.org/www/bin/luatex-svn

------------------------------------------------------------------------
r4354 | hhenkel | 2011-10-04 23:20:10 +0200 (Tue, 04 Oct 2011) | 2 lines
Changed paths:
   M /trunk/source/texk/web2c/luatexdir/image/pdftoepdf.cc

simplify conv_double_to_pdffloat()

------------------------------------------------------------------------
Cron Daemon | 6 Oct 12:29
Picon
Favicon

Cron <luatex <at> boekplan> /var/www/luatex.org/www/bin/luatex-svn

------------------------------------------------------------------------
r4355 | hhenkel | 2011-10-05 22:51:01 +0200 (Wed, 05 Oct 2011) | 3 lines
Changed paths:
   M /trunk/source/texk/web2c/luatexdir/pdf/pdfgen.w
   M /trunk/source/texk/web2c/luatexdir/utils/utils.w

try to fix [luatex 0000725]: buglet pdfsetmatrix
& rm macro clutter

------------------------------------------------------------------------
r4356 | hhenkel | 2011-10-05 23:59:13 +0200 (Wed, 05 Oct 2011) | 33 lines
Changed paths:
   M /trunk/source/texk/web2c/Makefile.in
   M /trunk/source/texk/web2c/luatexdir/ChangeLog
   M /trunk/source/texk/web2c/luatexdir/am/libluatex.am
   M /trunk/source/texk/web2c/luatexdir/am/luatex.am
   M /trunk/source/texk/web2c/luatexdir/am/txt2zlib.am
   M /trunk/source/texk/web2c/luatexdir/lua/lkpselib.c
   M /trunk/source/texk/web2c/luatexdir/luatex.c
   M /trunk/source/texk/web2c/luatexdir/tex/inputstack.w
   M /trunk/source/texk/web2c/luatexdir/tex/printing.w
   M /trunk/source/texk/web2c/luatexdir/tex/stringpool.w

integrate TeX-Live patches from Peter, starting from TeX-Live SVN 22701,
up to SVN 24212:

2011-10-04  Peter Breitenlohner  <peb@...>

        * am/libluatex.am: Avoid to `clean' ../mplibdir/lmplib.c.

(Continue reading)

Heiko Oberdiek | 9 Oct 06:31

\ifincsname broken

Hello,

\ifincsname behaves different from pdfTeX:

\catcode`\{=1
\catcode`\}=2
\ifx\directlua\undefined
\else
  \directlua{tex.enableprimitives('',{'ifincsname'})}%
\fi
\def\empty{}
\edef\x{%
  \expandafter\noexpand\csname
    A\csname empty\endcsname\ifincsname A\else B\fi
  \endcsname
}
\immediate\write16{\meaning\x}
\csname @@end\endcsname\end

Result with pdfTeX 3.1415926-2.3-1.40.12 (TeX Live 2011): \AA
Result with LuaTeX beta-0.70.1-2011061416 (rev 4277):     \AB

It seems that in LuaTeX the true setting of \ifincsname
is cleared after the embedded \csname...\endcsname instead
of restoring the previous status of \ifincsname.

Yours sincerely
  Heiko Oberdiek
Taco Hoekwater | 10 Oct 13:36
Gravatar

Re: \ifincsname broken

On 10/09/2011 06:31 AM, Heiko Oberdiek wrote:
> Hello,
>
> \ifincsname behaves different from pdfTeX:

Thanks for the report, moved to

   http://tracker.luatex.org/view.php?id=728

Best wishes,
Taco
Picon

The explanation of \directlua in the manual

When I read this from the manual a long time ago:

The \directlua command is expandable: the results of the LUA code
become effective immediately.

I could not make sense of it, and actually cannot up to day. What are
"the results of the LUA code"? What does "become effective" mean? Now
I now the answers to those questions but not because of the
explanation given there. The example provided does not help much
either. Note that this comes very soon in the manual. I propose the
following wording:

The \directlua command is expandable. Since it passes Lua code to the
Lua interpreter its expansion from the TeX viewpoint is usually empty.
However, there are some Lua functions that produce material to be read
by TeX, the so called print functions. The most simple use of these is
tex.print(<string> s). The characters of the string s will be placed
on TeX input buffer, that is, "before TeX's eyes" to be read by TeX
immediately. For example:

\count10=20
a\directlua{tex.print(tex.count[10]+5)}b

expands to

a25b

Here is another example:

$\pi = \directlua{tex.print(math.pi)}$
(Continue reading)


Gmane