texlive[73671] Master: lua-tinyyaml (1feb25)

commits+karl at tug.org commits+karl at tug.org
Sat Feb 1 21:41:32 CET 2025


Revision: 73671
          https://tug.org/svn/texlive?view=revision&revision=73671
Author:   karl
Date:     2025-02-01 21:41:32 +0100 (Sat, 01 Feb 2025)
Log Message:
-----------
lua-tinyyaml (1feb25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/README.md
    trunk/Master/texmf-dist/scripts/lua-tinyyaml/tinyyaml.lua
    trunk/Master/tlpkg/libexec/ctan2tds

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.pdf
    trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.tex

Modified: trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/README.md	2025-02-01 00:41:52 UTC (rev 73670)
+++ trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/README.md	2025-02-01 20:41:32 UTC (rev 73671)
@@ -1,15 +1,24 @@
 # lua-tinyyaml
 
-<https://github.com/api7/lua-tinyyaml>
+- Homepage: https://github.com/zepinglee/citeproc-lua
+- Author: Zeping Lee
+- Email: zepinglee AT gmail DOT com
+- License: MIT
 
-A tiny YAML (subset) parser for pure Lua.
+The `lua-tinyyam` package is a lightweight YAML parser
+written in pure Lua. It supports a subset of the YAML 1.2
+specifications. This package is a dependency for several other LuaTeX
+packages, including `markdown` and
+`citeproc-lua`.
 
 ## Usage
 
+To parse a YAML string into a Lua table, use the `parse` function:
+
 ```lua
-require('tinyyaml').parse(str)
+contents = require("tinyyaml").parse(str)
 ```
 
 ## License
 
-MIT License
+`lua-tinyyaml` is distributed under the MIT License.

Added: trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.pdf	2025-02-01 00:41:52 UTC (rev 73670)
+++ trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.pdf	2025-02-01 20:41:32 UTC (rev 73671)

Property changes on: trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.tex
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.tex	2025-02-01 20:41:32 UTC (rev 73671)
@@ -0,0 +1,48 @@
+\documentclass{l3doc}
+
+\usepackage{listings}
+
+
+\begin{document}
+
+\title{The tiny YAML Library}
+
+\author{%
+  Zeping Lee%
+  \thanks{%
+    E-mail:
+    \href{mailto:zepinglee at gmail.com}
+      {zepinglee at gmail.com}%
+  }%
+}
+
+\date{2025-02-01 v0.4.4}
+
+\maketitle
+
+\begin{documentation}
+
+\section{Introduction}
+
+The \textsf{lua-tinyyaml} package is a lightweight YAML parser written in pure Lua.
+It supports a subset of the YAML 1.2 specifications.
+This package is a dependency for several other LuaTeX packages, including \textsf{markdown} and \textsf{citeproc-lua}.
+
+
+\section{Usage}
+
+To parse a YAML string into a Lua table, use the \texttt{parse} function:
+
+\begin{lstlisting}[language={[5.3]Lua}, basicstyle=\ttfamily]
+contents = require("tinyyaml").parse(str)
+\end{lstlisting}
+
+
+\section{License}
+
+\texttt{lua-tinyyaml} is distributed under the MIT License.
+
+
+\end{documentation}
+
+\end{document}


Property changes on: trunk/Master/texmf-dist/doc/luatex/lua-tinyyaml/lua-tinyyaml.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/scripts/lua-tinyyaml/tinyyaml.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/lua-tinyyaml/tinyyaml.lua	2025-02-01 00:41:52 UTC (rev 73670)
+++ trunk/Master/texmf-dist/scripts/lua-tinyyaml/tinyyaml.lua	2025-02-01 20:41:32 UTC (rev 73671)
@@ -164,7 +164,6 @@
       return nil, line
     end
     -- Unescape repeated single quotes.
-    -- (https://yaml.org/spec/1.2.2/#single-quoted-style)
     while i < #line and ssub(line, i+1, i+1) == "'" do
       i = sfind(line, "'", i + 2, true)
       if not i then
@@ -232,7 +231,9 @@
     end
     line = ssub(line, 2)
   end
-  return rtrim(buf), line
+  buf = rtrim(buf)
+  local val = tonumber(buf) or buf
+  return val, line
 end
 
 local function isemptyline(line)
@@ -612,8 +613,10 @@
       error("did not find expected alphabetic or numeric character")
     elseif rest then
       -- Array entry with a value
+      local nextline = lines[1]
+      local indent2 = countindent(nextline)
       tremove(lines, 1)
-      tinsert(seq, self:parsescalar(rest, lines))
+      tinsert(seq, self:parsescalar(rest, lines, indent2))
     end
   end
   return seq

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2025-02-01 00:41:52 UTC (rev 73670)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2025-02-01 20:41:32 UTC (rev 73671)
@@ -2074,7 +2074,6 @@
  'texdraw',             'generic',
  'texsis',              'texsis',
  'textmerg',            'generic',
- 'tikzducks',		'generic',
  'tugboat-plain',       'plain',
  'ulem',                'generic',
  'uptex-base',		'uptex',
@@ -2937,7 +2936,6 @@
  'texsis',              'otherformats',
  'textmerg',            'generic',
  'textpath',            'metapost',
- 'tikzducks',		'generic',
  'timing',              'fonts',
  'tlmgr-intro-zh-cn',	'support',
  'tlmgrbasics',		'support',



More information about the tex-live-commits mailing list.