[tex-live] tl-pretest on x86_64 linux: lua glitches when using fontspec

George N. White III gnwiii at gmail.com
Sat Apr 13 03:00:30 CEST 2013


Here are my notes for an early, with some trivial patches to lua scripts
(due to the use of a more recent lua version) in case they  will help
others start testing more complex documents.

TeX Live 2013 pretest notes
===========================

Test platform: Fedora 18 (x86_64)

Install: nearly complete, but omitting non-english language docs
(assuming lots of churn as translations are updated).

## 2013-04-12

Simple documents (`story.tex`, `sample2e.tex`) can be formatted using
all 3 engines (pdftex, xetex, luatex).

### Versions

    $ for e in pdftex xetex luatex ; do echo ; $e --version ; done

    pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013)
    kpathsea version 6.1.1
    Copyright 2013 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
    There is NO warranty.  Redistribution of this software is
    covered by the terms of both the pdfTeX copyright and
    the Lesser GNU General Public License.
    For more information about these matters, see the file
    named COPYING and the pdfTeX source.
    Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh
(pdfTeX).
    Compiled with libpng 1.6.1; using libpng 1.6.1
    Compiled with zlib 1.2.7; using zlib 1.2.7
    Compiled with xpdf version 3.03

    XeTeX 3.1415926-2.5-0.9999.2-2013041011 (TeX Live 2013)
    kpathsea version 6.1.1
    Copyright 2013 SIL International and Jonathan Kew.
    There is NO warranty.  Redistribution of this software is
    covered by the terms of both the XeTeX copyright and
    the Lesser GNU General Public License.
    For more information about these matters, see the file
    named COPYING and the XeTeX source.
    Primary author of XeTeX: Jonathan Kew.
    Compiled with ICU version 51.1; using 51.1
    Compiled with zlib version 1.2.7; using 1.2.7
    Compiled with FreeType2 version 2.4.11; using 2.4.11
    Compiled with Graphite2 version 1.2.1; using 1.2.1
    Compiled with HarfBuzz version 0.9.15; using 0.9.15
    Compiled with fontconfig version 2.10.92; using 2.10.2
    Compiled with libpng version 1.6.1; using 1.6.1
    Compiled with poppler version 0.22.2

    This is LuaTeX, Version beta-0.76.0-2013041011  (TeX Live 2013)(rev
4627)

    Execute  'luatex --credits'  for credits and version details.

    There is NO warranty. Redistribution of this software is covered by
    the terms of the GNU General Public License, version 2. For more
    information about these matters, see the file named COPYING and
    the LuaTeX source.

    Copyright 2011 Taco Hoekwater, the LuaTeX Team.

I suppose the copyright notice should say 2013.

### fontspec issues with luatex

LaTeX documents using fontspac fail when formatted with lualatex due
minor glitches in the lua code.

The minimal example:

    \documentclass{article}
    \usepackage{fontspec}
    \begin{document}
    Some text.
    \end{document}

The details:

  1.  "package.loaders" is now "package.searchers"

    ! LuaTeX error ...ive/2013/texmf-dist/scripts/oberdiek/\
    oberdiek.luatex.lua:55: bad argument #1 to 'insert' \
    (table expected, got nil)

Workaround: added a small block to define package.loaders if
needed:

    $ d=/usr/local/texlive
    $ diff -C 3 $(find $d -name oberdiek.luatex.lua -type f)
    ***
/usr/local/texlive/2013/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua
2011-04-19 20:07:27.000000000 -0300
    ---
/usr/local/texlive/texmf-local/scripts/oberdiek/oberdiek.luatex.lua
2013-04-12 16:34:56.295818341 -0300
    ***************
    *** 2,7 ****
    --- 2,8 ----
      --  This is file `oberdiek.luatex.lua',
      --  generated with the docstrip utility.
      --
    + --  Define package.loaders for lua version
      --  The original source files were:
      --
      --  luatex.dtx  (with options: `lua')
    ***************
    *** 52,57 ****
    --- 53,61 ----
        end
        return "\n\t[oberdiek.luatex.kpse_module_loader] Search failed"
      end
    + if not package.loaders then
    +   package.loaders=package.searchers
    + end
      table.insert(package.loaders, kpse_module_loader)
      --
      --  End of File `oberdiek.luatex.lua'.

  1. invalid escape sequence

    ! LuaTeX error .../2013/texmf-dist/tex/luatex/luaotfload/\
    otfl-luat-dum.lua:65: invalid escape sequence near '\/'

The offending backslash was removed:

    $ diff -C 3 $(find $d -name otfl-luat-dum.lua -type f)
    ***
/usr/local/texlive/2013/texmf-dist/tex/luatex/luaotfload/otfl-luat-dum.lua
2011-04-22 21:58:21.000000000 -0300
    ---
/usr/local/texlive/texmf-local/tex/luatex/luaotfload/otfl-luat-dum.lua
2013-04-12 20:50:25.815579617 -0300
    ***************
    *** 62,68 ****
      }

      function resolvers.find_file(name,kind)
    !     name = string.gsub(name,"\\","\/")
          kind = string.lower(kind)
          return kpse.find_file(name,(kind and kind ~= "" and
(remapper[kind] or kind)) or file.extname(name,"tex"))
      end
    --- 62,68 ----
      }

      function resolvers.find_file(name,kind)
    !     name = string.gsub(name,"\\","/")
          kind = string.lower(kind)
          return kpse.find_file(name,(kind and kind ~= "" and
(remapper[kind] or kind)) or file.extname(name,"tex"))
      end

  1.  another invalid scape sequence

    ! LuaTeX error .../2013/texmf-dist/tex/luatex/luaotfload/\
    otfl-font-nms.lua:496: invalid escape sequence near '\.'

The fix:

    $ diff -C 3 $(find $d -name otfl-font-nms.lua -type f)
    ***
/usr/local/texlive/2013/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua
2012-03-27 19:02:29.000000000 -0300
    ---
/usr/local/texlive/texmf-local/tex/luatex/luaotfload/otfl-font-nms.lua
2013-04-12 20:55:01.122538033 -0300
    ***************
    *** 493,500 ****
          else
              logs.info("Scanning TEXMF and OS fonts...")
          end
    !     local fontdirs = expandpath("$OPENTYPEFONTS"):gsub("^\.", "")
    !     fontdirs = fontdirs .. expandpath("$TTFONTS"):gsub("^\.", "")
          if not fontdirs:is_empty() then
              for _,d in next, splitpath(fontdirs) do
                  scan_dir(d, fontnames, newfontnames, true)
    --- 493,500 ----
          else
              logs.info("Scanning TEXMF and OS fonts...")
          end
    !     local fontdirs = expandpath("$OPENTYPEFONTS"):gsub("^%.", "")
    !     fontdirs = fontdirs .. expandpath("$TTFONTS"):gsub("^%.", "")
          if not fontdirs:is_empty() then
              for _,d in next, splitpath(fontdirs) do
                  scan_dir(d, fontnames, newfontnames, true)


-- 
George N. White III <aa056 at chebucto.ns.ca>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-live/attachments/20130412/b715b5e4/attachment.html>


More information about the tex-live mailing list