• CTAN update: luaxml

    From CTAN Announcements@21:1/5 to All on Sat Feb 24 20:03:32 2024
    Michal Hoftich submitted an update to the

    luaxml

    package.

    Version: 0.1r 2024-02-23
    License: other-free

    Summary description: Lua library for reading and serialising XML files

    Announcement text: --------------------------------------------------------------------------------

    New functions:

    - DOM_Object:traverse_elements(fn) - execute function on all elements in the DOM tree.
    - DOM_Object:strings() - get a table with strings of all text nodes in the DOM tree.
    - DOM_Object:stripped_strings() - same as the previous function, but with it
    removes leading and trailing spaces from each string.


    Bug fixes:

    - added support for uppercase void elements.
    - added support for CDATA in the DOM_Object:get_text() function.
    - fixed handling of verbatim rules in the luaxml-transform library.

    --------------------------------------------------------------------------------

    This package is located at
    https://mirrors.ctan.org/macros/luatex/generic/luaxml

    More information is at
    https://www.ctan.org/pkg/luaxml


    --------------------------------------------------------------------------------

    Thanks for the upload.

    For the CTAN Team
    Manfred Lotz


    CTAN is run entirely by volunteers and supported by TeX user groups.
    Please join a user group or donate to one, see https://ctan.org/lugs .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From CTAN Announcements@21:1/5 to All on Mon Jul 15 19:17:20 2024
    Michal Hoftich submitted an update to the

    luaxml

    package.

    Version: 0.2 2024-07-14
    License: other-free

    Summary description: Lua library for reading and serialising XML files

    Announcement text: --------------------------------------------------------------------------------

    New features:

    - LuaXML now includes an HTML parser, allowing HTML documents to be loaded into
    the LuaXML DOM. These documents can then be processed using the functions
    provided by LuaXML for working with the DOM.
    - added library for transcoding strings from 8-bit encoding to UTF-8. This can
    be useful for processing documents downloaded from the web, which often still
    use older encodings.

    --------------------------------------------------------------------------------

    This package is located at
    https://mirrors.ctan.org/macros/luatex/generic/luaxml

    More information is at
    https://www.ctan.org/pkg/luaxml


    --------------------------------------------------------------------------------

    Thanks for the upload.

    For the CTAN Team
    Manfred Lotz


    CTAN is run entirely by volunteers and supported by TeX user groups.
    Please join a user group or donate to one, see https://ctan.org/lugs .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From CTAN Announcements@21:1/5 to CTAN Announcements on Fri Oct 18 20:42:37 2024
    Michal Hoftich submitted an update to the

    luaxml

    package.

    Version: 0.2a 2024-10-17
    License: other-free

    Summary description: Lua library for reading and serialising XML files

    Announcement text: ----------------------------------------------------------------------

    New features:

    New LaTeX package:

    - added LaTeX package, luaxml.sty. It can process HTML and XML files
    using declared rules and insert the converted content into the document
    directly in the LuaLaTeX run.

    Example of conversion of incomplete HTML code to LaTeX:

    \LXMLRule{h1}|\section*{%s}|
    \LXMLRule[verbatim]{pre}|\begin{verbatim}

    \begin{LXMLCode*}{}
    <html>
    <h1>Something</h1>
    <pre>
    hello
    text
    multiline at the end
    \end{LXMLCode*}

    The result:

    \section*{Something}
    \begin{verbatim}

    hello
    text
    multiline at the end
    \end{verbatim}

    Other news:

    The luaxml-domobject library:

    - added new functions for inserting XML and HTML code into the
    DOM tree, inspired by JavaScript's Element:innerHTML() and
    Element:insertAdjacentHTML() methods.

    Bug fixes:

    The luaxml-mod-html library:

    - don't drop elements after incorrectly closed elements


    ----------------------------------------------------------------------

    The package’s Catalogue entry can be viewed at
    https://ctan.org/pkg/luaxml

    The package’s files themselves can be inspected at
    https://mirrors.ctan.org/macros/luatex/generic/luaxml/

    ------------------------------------------------------------------------

    Thanks for the upload.

    For the CTAN Team
    Petra Rübe-Pugliese

    ------------------------------------------------------------------------

    CTAN is run entirely by volunteers and supported by TeX user groups.
    Please join a user group or donate to one, see https://ctan.org/lugs

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From CTAN Announcements@21:1/5 to CTAN Announcements on Sat Nov 16 16:14:17 2024
    Michal Hoftich submitted an update to the

    luaxml

    package.

    Version: 0.2b 2024-11-14
    License: other-free

    Summary description: Lua library for reading and serialising XML files

    Announcement text: ----------------------------------------------------------------------

    New features:

    - added `luaxml-htmltemplates.lua` library.
    It contains rules for HTML to LaTeX transformation.

    - added the `default` option for the Luaxml package.
    It loads translation rules for converting HTML to LaTeX.
    These rules can be used in commands and environments
    provided by the package via the html option.

    ----------------------------------------------------------------------

    The package’s Catalogue entry can be viewed at
    https://ctan.org/pkg/luaxml

    The package’s files themselves can be inspected at
    https://mirrors.ctan.org/macros/luatex/generic/luaxml/

    ------------------------------------------------------------------------

    Thanks for the upload.

    For the CTAN Team
    Petra Rübe-Pugliese

    ------------------------------------------------------------------------

    CTAN is run entirely by volunteers and supported by TeX user groups.
    Please join a user group or donate to one, see https://ctan.org/lugs

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)