<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>speedata news</title>
    <link>https://news.speedata.de/</link>
    <description>Recent content on speedata news</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-en</language>
    <copyright>This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.</copyright>
    <lastBuildDate>Sun, 18 Oct 2026 15:00:00 +0200</lastBuildDate>
    
        <atom:link href="https://news.speedata.de/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>A page looks innocent: the algorithms behind a typeset page</title>
      <link>https://news.speedata.de/2026/10/18/anatomy-of-a-page/</link>
      <pubDate>Sun, 18 Oct 2026 15:00:00 +0200</pubDate>
      
      <guid>https://news.speedata.de/2026/10/18/anatomy-of-a-page/</guid>
      <description>&lt;p&gt;When you look at a page of a well-typeset book or catalog, you usually don&amp;rsquo;t notice anything special. There is some text, maybe a table, a picture or a footnote. But every line on such a page is the result of many small decisions. The algorithms behind them were invented decades ago, and people still work on them today.&lt;/p&gt;
&lt;p&gt;In this post I want to show what happens on a page. I start with the whole page and then go down step by step, until we are at the bytes in the PDF file. On each level I show how the &lt;a href=&#34;https://www.speedata.de&#34;&gt;speedata Publisher&lt;/a&gt; does it (it uses LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; in the background) and how &lt;a href=&#34;https://boxesandglue.dev&#34;&gt;boxes and glue&lt;/a&gt; does it. boxes and glue is the Go library I am writing as a foundation for the future. Both are open source, you find them on GitHub: &lt;a href=&#34;https://github.com/speedata/publisher&#34;&gt;speedata/publisher&lt;/a&gt; and &lt;a href=&#34;https://github.com/boxesandglue&#34;&gt;boxesandglue&lt;/a&gt;.&lt;/p&gt;
&lt;!-- intro.svg: page set with glu (Crimson Pro, A6-ish 100 x 148 mm),
converted with pdftocairo -svg, markers and legend added by a script. The
TJ excerpt and the glyph IDs are the real ones from that PDF. --&gt;

&lt;figure &gt;
    &lt;a href=&#34;intro.svg&#34;&gt;
        
        &lt;img src=&#34;https://news.speedata.de/2026/10/18/anatomy-of-a-page/intro.svg&#34; alt=&#34;A sample page with a heading, two paragraphs and a footnote. Six numbered markers point to the footnote, the first paragraph, a hyphenated word, the fi ligature, the letter g and the first words, with a legend that explains each level.&#34; /&gt;
        
    &lt;/a&gt;
    
    &lt;div class=&#34;caption&#34;&gt;
        &lt;p&gt;
        A page typeset with boxes and glue. The numbers are the sections of this post.
        
            
        
        &lt;/p&gt; 
    &lt;/div&gt;
    
&lt;/figure&gt;


&lt;h2 id=&#34;two-engines-one-set-of-problems&#34;&gt;Two engines, one set of problems&lt;/h2&gt;
&lt;p&gt;First a few words about the two engines.&lt;/p&gt;
&lt;p&gt;The speedata Publisher lets LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; do most of the typographic work. The Publisher decides &lt;em&gt;where&lt;/em&gt; things go on the page, LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; decides &lt;em&gt;how&lt;/em&gt; a paragraph is broken into lines, and it writes the PDF. The Publisher uses Lua callbacks to hook into LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt;. This works well, and because of this the Publisher had very good typography from the start. But LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; is one big program. If one part does not do what you need, you have to find a way around it.&lt;/p&gt;
&lt;p&gt;boxes and glue does the same work in separate Go modules. Each level in this post is its own package, and you can use it, test it or replace it on its own:&lt;/p&gt;
&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;Level&lt;/th&gt;
          &lt;th&gt;Question&lt;/th&gt;
          &lt;th&gt;speedata Publisher&lt;/th&gt;
          &lt;th&gt;boxes and glue&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
          &lt;td&gt;Page&lt;/td&gt;
          &lt;td&gt;What goes on which page?&lt;/td&gt;
          &lt;td&gt;Publisher (Lua), on top of LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; boxes&lt;/td&gt;
          &lt;td&gt;&lt;code&gt;htmlbag&lt;/code&gt;, &lt;code&gt;xts&lt;/code&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Paragraph&lt;/td&gt;
          &lt;td&gt;Where do the lines break?&lt;/td&gt;
          &lt;td&gt;LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; line breaker&lt;/td&gt;
          &lt;td&gt;&lt;code&gt;boxesandglue&lt;/code&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Word&lt;/td&gt;
          &lt;td&gt;Where may a word be hyphenated?&lt;/td&gt;
          &lt;td&gt;LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; patterns&lt;/td&gt;
          &lt;td&gt;&lt;code&gt;hyphenation&lt;/code&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Text run&lt;/td&gt;
          &lt;td&gt;Which glyphs, in which positions?&lt;/td&gt;
          &lt;td&gt;HarfBuzz, compiled into LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt;&lt;/td&gt;
          &lt;td&gt;&lt;code&gt;textshape&lt;/code&gt; (HarfBuzz ported to Go)&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Glyph&lt;/td&gt;
          &lt;td&gt;What is in the font file?&lt;/td&gt;
          &lt;td&gt;HarfBuzz, compiled into LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt;&lt;/td&gt;
          &lt;td&gt;&lt;code&gt;textshape&lt;/code&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;PDF&lt;/td&gt;
          &lt;td&gt;How is it written down?&lt;/td&gt;
          &lt;td&gt;LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; backend&lt;/td&gt;
          &lt;td&gt;&lt;code&gt;baseline-pdf&lt;/code&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Most of the algorithms are the same in both systems. The difference is the architecture, and this is more important than it looks at first.&lt;/p&gt;
&lt;h2 id=&#34;1-the-page&#34;&gt;1. The page&lt;/h2&gt;
&lt;p&gt;The first and largest question: what goes on which page?&lt;/p&gt;
&lt;p&gt;T&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; has a page builder. It collects lines until the page is full and then calls the &lt;em&gt;output routine&lt;/em&gt;. This is a piece of code that gets the material and decides what to do with it. It is very powerful, but also very hard to use. The speedata Publisher never used it. It has its own page model with a grid, areas and explicit positions.&lt;/p&gt;
&lt;p&gt;Some problems on this level:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Widows and orphans: a single line of a paragraph alone at the top or bottom of a page looks wrong. To avoid it, lines have to move to the next page, and then there is a gap on the current page.&lt;/li&gt;
&lt;li&gt;Tables across pages: if a table does not fit, it is split between two rows. The header is repeated on the next page, and perhaps there is a footer like &amp;ldquo;continued on next page&amp;rdquo;. The split should not leave a single row alone.&lt;/li&gt;
&lt;li&gt;Floats: an image should be near the text that refers to it, but not necessarily at the exact place.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;footnotes&#34;&gt;Footnotes&lt;/h3&gt;
&lt;p&gt;Footnotes look like the easiest thing on a page, but they are among the hardest. A footnote must be on the same page as its reference. But the footnote takes space from the main text, so maybe the line with the reference does not fit on the page anymore. Then the reference moves to the next page, and the footnote has to move with it. A long footnote sometimes has to be split across two pages, while the reference stays on the first one.&lt;/p&gt;
&lt;p&gt;T&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; solves this with &lt;em&gt;insertions&lt;/em&gt;. This is a separate mechanism next to the page builder that keeps track of the space the inserted material needs.&lt;/p&gt;
&lt;p&gt;In boxes and glue, footnotes are done in htmlbag, the HTML layer. There, the footnote is tied to the line with its number. If the line and the footnote don&amp;rsquo;t fit on the page together, both move to the next page. Splitting a long footnote across two pages is not possible yet.&lt;/p&gt;
&lt;h2 id=&#34;2-the-paragraph&#34;&gt;2. The paragraph&lt;/h2&gt;
&lt;p&gt;Now let&amp;rsquo;s look at one paragraph. Where should the lines break?&lt;/p&gt;
&lt;p&gt;The simple way is to fill a line until the next word does not fit, and then start a new line. Word processors do it like this. The result is that some lines are tight and others have big gaps between the words.&lt;/p&gt;
&lt;p&gt;In 1981 Donald Knuth and Michael Plass published a different method. It does not look at one line at a time, but at the whole paragraph. Each possible break point gets a cost: the &lt;em&gt;badness&lt;/em&gt; of the line that ends there, plus penalties for hyphens and for hyphens in consecutive lines. Then the algorithm searches for the break points with the lowest total cost, the &lt;em&gt;demerits&lt;/em&gt;. So a decision in the first line can depend on the last line.&lt;/p&gt;
&lt;p&gt;Knuth and Plass describe this as a graph. Each feasible break is a node, and each possible line between two breaks is an edge. The edge has the demerits of this line as its weight. The best paragraph is the cheapest path from the start to the end. Here is the graph for the first sentence of &amp;ldquo;The Frog King&amp;rdquo;, the fairy tale that is also used in their paper. boxes and glue computed the numbers:&lt;/p&gt;
&lt;!-- kp.svg: data from an instrumented copy of the boxes and glue line
breaker (scratch hook in mainLoop), Latin Modern 10pt, hsize 190pt,
tolerance r &lt;= 2, no hyphenation. --&gt;

&lt;figure &gt;
    &lt;a href=&#34;kp.svg&#34;&gt;
        
        &lt;img src=&#34;https://news.speedata.de/2026/10/18/anatomy-of-a-page/kp.svg&#34; alt=&#34;A graph of feasible line breaks. From start, paths lead through words like helped, one, daughters, all and beautiful to the end at face. The cheapest path is highlighted, next to it the six lines of the paragraph as set.&#34; /&gt;
        
    &lt;/a&gt;
    
    &lt;div class=&#34;caption&#34;&gt;
        &lt;p&gt;
        Feasible breaks for a 190 pt column in Latin Modern 10 pt. The cheapest path has a loose fifth line (107,969 demerits), because all other paths start with worse lines.
        
            
        
        &lt;/p&gt; 
    &lt;/div&gt;
    
&lt;/figure&gt;


&lt;p&gt;You can try it yourself. Change the width of the column and see how the line breaks move. Sometimes a line far away from the end changes:&lt;/p&gt;
&lt;!-- ?embed shows only the slider and the paragraph (linebreakweb, needs
rake deploy). The frame reports its height by postMessage, the script
below sizes the iframe. Further parameters set fields by id, e.g.
&amp;hsize=200&amp;language=de&amp;rendertext=... zoom defaults to 1.5 in embed
mode; a larger zoom lowers the maximum of the slider (198pt at zoom 2 in
the ~560px blog column). --&gt;
&lt;iframe id=&#34;linebreakdemo&#34; src=&#34;https://linebreak.boxesandglue.dev/?embed&amp;zoom=2&#34; width=&#34;100%&#34; height=&#34;320&#34; style=&#34;border:1px solid #ccc;display:block&#34; loading=&#34;lazy&#34; title=&#34;Interactive line breaking demo&#34;&gt;&lt;/iframe&gt;
&lt;script&gt;
window.addEventListener(&#34;message&#34;, function (e) {
    const frame = document.getElementById(&#34;linebreakdemo&#34;);
    if (e.origin !== &#34;https://linebreak.boxesandglue.dev&#34; || e.source !== frame.contentWindow) {
        return;
    }
    if (e.data &amp;&amp; e.data.linebreakHeight) {
        frame.style.height = e.data.linebreakHeight + &#34;px&#34;;
    }
});
&lt;/script&gt;
&lt;p&gt;The &lt;a href=&#34;https://linebreak.boxesandglue.dev/&#34;&gt;full version&lt;/a&gt; of the demo shows more of what the algorithm sees: for each line the adjustment ratio (how much the spaces are stretched or shrunk), the badness and the demerits. You can also change all the parameters that T&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; uses for the decision.&lt;/p&gt;
&lt;p&gt;Two more things make the result even better:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Font expansion: the glyphs can be made a little bit wider or narrower, so the line breaker has more freedom. I wrote about this in &lt;a href=&#34;https://news.speedata.de/2024/07/11/fontexpansion/&#34;&gt;Microtypography and font expansion&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Hanging punctuation: hyphens and quotes at the end of a line stick out into the margin a bit, so the edge looks straight to the eye.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;3-the-word&#34;&gt;3. The word&lt;/h2&gt;
&lt;p&gt;Now we go to a single word at the end of a line. Can it be hyphenated, and where?&lt;/p&gt;
&lt;p&gt;A dictionary with all hyphenations would be huge. T&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; uses patterns instead. This idea is from Frank Liang (1983). A pattern is a small part of a word with numbers between the letters. Odd numbers allow a break, even numbers forbid it, and the highest number wins. A few thousand patterns per language are enough for almost every word, even for words that did not exist when the patterns were made.&lt;/p&gt;
&lt;p&gt;Here is an example: the word &lt;em&gt;hyphenation&lt;/em&gt; with the US English patterns. Nine patterns match some part of the word. Each one puts its numbers into the gaps between the letters, and for each gap the highest number counts:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;   .   h   y   p   h   e   n   a   t   i   o   n   .
     0   0   3   0   0   |   |   |   |   |   |   |    hy3ph
     |   |   |   0   0   2   0   |   |   |   |   |    he2n
     |   |   |   0   0   0   0   4   |   |   |   |    hena4
     |   |   |   0   0   0   5   0   0   |   |   |    hen5at
     |   |   |   |   |   1   0   0   |   |   |   |    1na
     |   |   |   |   |   0   2   0   0   |   |   |    n2at
     |   |   |   |   |   |   |   1   0   0   0   |    1tio
     |   |   |   |   |   |   |   |   2   0   0   |    2io
     |   |   |   |   |   |   |   |   |   0   2   0    o2n
max: 0   0   3   0   0   2   5   4   2   0   2   0
final: h   y - p   h   e   n - a   t   i   o   n
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Only two gaps have an odd number, so the word can be broken as hy-phen-ation. The gap between &amp;ldquo;a&amp;rdquo; and &amp;ldquo;t&amp;rdquo; is interesting: &lt;code&gt;1tio&lt;/code&gt; would allow a break before &amp;ldquo;tion&amp;rdquo;, but &lt;code&gt;hena4&lt;/code&gt; has a higher, even number at the same place and so forbids the break. The patterns are careful on purpose. They miss some correct hyphens, but they almost never allow a wrong one.&lt;/p&gt;
&lt;p&gt;boxes and glue uses the same pattern files as T&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt;. The table above is the debug output of &lt;a href=&#34;https://github.com/speedata/hyphenation&#34;&gt;hyphenation&lt;/a&gt;, the Go port of the T&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt; algorithm that boxes and glue uses.&lt;/p&gt;
&lt;h2 id=&#34;4-the-text-run&#34;&gt;4. The text run&lt;/h2&gt;
&lt;p&gt;Now we are inside a line. The text is a sequence of Unicode characters. But a PDF does not contain characters, it contains &lt;em&gt;glyphs&lt;/em&gt;, the shapes from the font. The step from characters to glyphs is called &lt;em&gt;shaping&lt;/em&gt;, and it is much more than a simple table lookup:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Ligatures: &amp;ldquo;f&amp;rdquo; followed by &amp;ldquo;i&amp;rdquo; can become one glyph &amp;ldquo;ﬁ&amp;rdquo;.&lt;/li&gt;
&lt;li&gt;Kerning: the pair &amp;ldquo;AV&amp;rdquo; is moved closer together than &amp;ldquo;AH&amp;rdquo;.&lt;/li&gt;
&lt;li&gt;Contextual forms: in Arabic a letter has a different shape at the start, in the middle and at the end of a word.&lt;/li&gt;
&lt;li&gt;Reordering: in Devanagari a vowel sign can be written before the consonant, although it comes after it in the text.&lt;/li&gt;
&lt;li&gt;Direction: Hebrew and Arabic run from right to left, but numbers inside them from left to right (the &lt;em&gt;bidi&lt;/em&gt; algorithm).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All these rules are in the font itself, in the OpenType tables GSUB (substitution) and GPOS (positioning). The program that reads these tables and applies them is the shaper. The reference is HarfBuzz. It is used by browsers, LibreOffice and nowadays also by LuaT&lt;span class=&#34;TeX-e&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;TeX-x&#34;&gt;X&lt;/span&gt;, and so by the speedata Publisher. boxes and glue uses a Go port of HarfBuzz, so everything stays in Go.&lt;/p&gt;
&lt;p&gt;Here you can watch a shaper at work. The demo runs HarfBuzz in your browser and draws each glyph from its outline in the font. So you see exactly what the shaper decided. With the slider you go through the shaping step by step: first the Unicode characters, then the glyph IDs from the &lt;code&gt;cmap&lt;/code&gt; table, then each lookup that changed something. Look how &amp;ldquo;f&amp;rdquo;, &amp;ldquo;f&amp;rdquo; and &amp;ldquo;i&amp;rdquo; become one glyph, and how &amp;ldquo;A&amp;rdquo; and &amp;ldquo;V&amp;rdquo; move closer together. You can switch features on and off, or drop your own font on the box, for example an Arabic one.&lt;/p&gt;
&lt;link rel=&#34;stylesheet&#34; href=&#34;https://news.speedata.de/shapedemo/shapedemo.css&#34;&gt;
&lt;script type=&#34;module&#34; src=&#34;https://news.speedata.de/shapedemo/shapedemo.js&#34;&gt;&lt;/script&gt;
&lt;div class=&#34;shapedemo&#34; data-font=&#34;/shapedemo/CormorantGaramond-Regular.ttf&#34;&gt;
  &lt;div class=&#34;sd-row&#34;&gt;
    &lt;label class=&#34;sd-textlabel&#34;&gt;Text &lt;input class=&#34;sd-text&#34; type=&#34;text&#34; value=&#34;office AV To&#34; spellcheck=&#34;false&#34; autocomplete=&#34;off&#34;&gt;&lt;/label&gt;
  &lt;/div&gt;
  &lt;div class=&#34;sd-canvas&#34;&gt;&lt;svg class=&#34;sd-glyphs&#34; role=&#34;img&#34; aria-label=&#34;Shaped glyphs&#34;&gt;&lt;/svg&gt;&lt;/div&gt;
  &lt;div class=&#34;sd-info&#34;&gt;Loading HarfBuzz…&lt;/div&gt;
  &lt;div class=&#34;sd-row&#34;&gt;
    &lt;div class=&#34;sd-steps&#34;&gt;
      &lt;button type=&#34;button&#34; class=&#34;sd-prev&#34; aria-label=&#34;Previous step&#34;&gt;◀&lt;/button&gt;
      &lt;input class=&#34;sd-step&#34; type=&#34;range&#34; min=&#34;0&#34; max=&#34;0&#34; value=&#34;0&#34; aria-label=&#34;Shaping step&#34;&gt;
      &lt;button type=&#34;button&#34; class=&#34;sd-next&#34; aria-label=&#34;Next step&#34;&gt;▶&lt;/button&gt;
      &lt;button type=&#34;button&#34; class=&#34;sd-last&#34;&gt;Result&lt;/button&gt;
    &lt;/div&gt;
    &lt;div class=&#34;sd-steplabel&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&#34;sd-row&#34;&gt;
    &lt;div class=&#34;sd-features sd-features-main&#34;&gt;&lt;/div&gt;
    &lt;details class=&#34;sd-more&#34;&gt;&lt;summary&gt;More features of this font (&lt;span class=&#34;sd-morecount&#34;&gt;0&lt;/span&gt;)&lt;/summary&gt;
      &lt;div class=&#34;sd-features sd-features-more&#34;&gt;&lt;/div&gt;
    &lt;/details&gt;
  &lt;/div&gt;
  &lt;div class=&#34;sd-font&#34;&gt;
    Font: &lt;span class=&#34;sd-fontname&#34;&gt;&lt;/span&gt;
    &lt;button type=&#34;button&#34; class=&#34;sd-choosefont&#34;&gt;Choose file…&lt;/button&gt;
    &lt;button type=&#34;button&#34; class=&#34;sd-fontreset&#34; hidden&gt;Back to the default font&lt;/button&gt;
    &lt;input class=&#34;sd-fontfile&#34; type=&#34;file&#34; accept=&#34;.ttf,.otf,.ttc,font/ttf,font/otf,font/collection&#34; hidden&gt;
    &lt;div class=&#34;sd-fonthint&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;And here the same for Arabic. In the step with &lt;code&gt;cmap&lt;/code&gt;, every letter still has its isolated form. Then the features &lt;code&gt;init&lt;/code&gt;, &lt;code&gt;medi&lt;/code&gt; and &lt;code&gt;fina&lt;/code&gt; give each letter the form for its position in the word, and the letters connect:&lt;/p&gt;
&lt;!-- Noto Naskh Arabic (variable font, default instance), OFL, from
github.com/google/fonts ofl/notonaskharabic. Text: &#34;Hello world&#34;. --&gt;
&lt;link rel=&#34;stylesheet&#34; href=&#34;https://news.speedata.de/shapedemo/shapedemo.css&#34;&gt;
&lt;script type=&#34;module&#34; src=&#34;https://news.speedata.de/shapedemo/shapedemo.js&#34;&gt;&lt;/script&gt;
&lt;div class=&#34;shapedemo&#34; data-font=&#34;/shapedemo/NotoNaskhArabic.ttf&#34;&gt;
  &lt;div class=&#34;sd-row&#34;&gt;
    &lt;label class=&#34;sd-textlabel&#34;&gt;Text &lt;input class=&#34;sd-text&#34; type=&#34;text&#34; value=&#34;مرحبا بالعالم&#34; spellcheck=&#34;false&#34; autocomplete=&#34;off&#34;&gt;&lt;/label&gt;
  &lt;/div&gt;
  &lt;div class=&#34;sd-canvas&#34;&gt;&lt;svg class=&#34;sd-glyphs&#34; role=&#34;img&#34; aria-label=&#34;Shaped glyphs&#34;&gt;&lt;/svg&gt;&lt;/div&gt;
  &lt;div class=&#34;sd-info&#34;&gt;Loading HarfBuzz…&lt;/div&gt;
  &lt;div class=&#34;sd-row&#34;&gt;
    &lt;div class=&#34;sd-steps&#34;&gt;
      &lt;button type=&#34;button&#34; class=&#34;sd-prev&#34; aria-label=&#34;Previous step&#34;&gt;◀&lt;/button&gt;
      &lt;input class=&#34;sd-step&#34; type=&#34;range&#34; min=&#34;0&#34; max=&#34;0&#34; value=&#34;0&#34; aria-label=&#34;Shaping step&#34;&gt;
      &lt;button type=&#34;button&#34; class=&#34;sd-next&#34; aria-label=&#34;Next step&#34;&gt;▶&lt;/button&gt;
      &lt;button type=&#34;button&#34; class=&#34;sd-last&#34;&gt;Result&lt;/button&gt;
    &lt;/div&gt;
    &lt;div class=&#34;sd-steplabel&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&#34;sd-row&#34;&gt;
    &lt;div class=&#34;sd-features sd-features-main&#34;&gt;&lt;/div&gt;
    &lt;details class=&#34;sd-more&#34;&gt;&lt;summary&gt;More features of this font (&lt;span class=&#34;sd-morecount&#34;&gt;0&lt;/span&gt;)&lt;/summary&gt;
      &lt;div class=&#34;sd-features sd-features-more&#34;&gt;&lt;/div&gt;
    &lt;/details&gt;
  &lt;/div&gt;
  &lt;div class=&#34;sd-font&#34;&gt;
    Font: &lt;span class=&#34;sd-fontname&#34;&gt;&lt;/span&gt;
    &lt;button type=&#34;button&#34; class=&#34;sd-choosefont&#34;&gt;Choose file…&lt;/button&gt;
    &lt;button type=&#34;button&#34; class=&#34;sd-fontreset&#34; hidden&gt;Back to the default font&lt;/button&gt;
    &lt;input class=&#34;sd-fontfile&#34; type=&#34;file&#34; accept=&#34;.ttf,.otf,.ttc,font/ttf,font/otf,font/collection&#34; hidden&gt;
    &lt;div class=&#34;sd-fonthint&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;h2 id=&#34;5-the-glyph&#34;&gt;5. The glyph&lt;/h2&gt;
&lt;p&gt;One step further down: the font file. An OpenType font is like a small database. The &lt;code&gt;cmap&lt;/code&gt; table maps characters to glyph IDs, &lt;code&gt;hmtx&lt;/code&gt; has the widths, &lt;code&gt;glyf&lt;/code&gt; or &lt;code&gt;CFF&lt;/code&gt; has the outlines, and GSUB/GPOS have the rules from the last section. Variable fonts add axes like weight and width, and color fonts have their own tables for emoji.&lt;/p&gt;
&lt;p&gt;And what about &lt;em&gt;hinting&lt;/em&gt;? On a screen, each glyph is drawn with pixels. If there are many pixels per em, the shape is fine. If there are only a few, the shape breaks: one stem gets one pixel, the next one gets two, and a bowl is closed.&lt;/p&gt;
&lt;!-- hinting.svg: bilevel rasterization, a pixel is set when its center is
inside the outline (nonzero rule), no hints, no anti-aliasing. --&gt;

&lt;figure &gt;
    &lt;a href=&#34;hinting.svg&#34;&gt;
        
        &lt;img src=&#34;https://news.speedata.de/2026/10/18/anatomy-of-a-page/hinting.svg&#34; alt=&#34;The letter a over two pixel grids. On the fine grid the filled pixels follow the outline. On the coarse grid of 12 pixels per em the filled pixels hardly form a recognizable a.&#34; /&gt;
        
    &lt;/a&gt;
    
    &lt;div class=&#34;caption&#34;&gt;
        &lt;p&gt;
        The a of Crimson Pro. A pixel is black when its center is inside the outline. At 12 pixels per em and without hints, the letter breaks apart.
        
            
        
        &lt;/p&gt; 
    &lt;/div&gt;
    
&lt;/figure&gt;


&lt;p&gt;Try it yourself. Move the slider and see when the letter breaks. You can also type other letters. For example, at 13 pixels per em the &amp;ldquo;m&amp;rdquo; loses its middle stem completely. Or switch on anti-aliasing. Then a pixel gets a gray level for the part the outline covers. This is the other answer to the pixel problem, and it is the reason why macOS mostly ignores hints.&lt;/p&gt;
&lt;!-- rasterdemo (static/rasterdemo, outlines from harfbuzzjs in
static/shapedemo) is a prototype. Default font is Cormorant Garamond,
the figure above uses Crimson Pro. --&gt;
&lt;link rel=&#34;stylesheet&#34; href=&#34;https://news.speedata.de/rasterdemo/rasterdemo.css&#34;&gt;
&lt;script type=&#34;module&#34; src=&#34;https://news.speedata.de/rasterdemo/rasterdemo.js&#34;&gt;&lt;/script&gt;
&lt;div class=&#34;rasterdemo&#34; data-font=&#34;/shapedemo/CormorantGaramond-Regular.ttf&#34;&gt;
  &lt;div class=&#34;rd-controls&#34;&gt;
    &lt;label class=&#34;rd-label&#34;&gt;Text &lt;input class=&#34;rd-text&#34; type=&#34;text&#34; value=&#34;a&#34; maxlength=&#34;8&#34; spellcheck=&#34;false&#34; autocomplete=&#34;off&#34;&gt;&lt;/label&gt;
    &lt;label class=&#34;rd-label rd-ppemlabel&#34;&gt;Pixels per em &lt;input class=&#34;rd-ppem&#34; type=&#34;range&#34; min=&#34;6&#34; max=&#34;72&#34; step=&#34;1&#34; value=&#34;12&#34;&gt;&lt;/label&gt;
  &lt;/div&gt;
  &lt;div class=&#34;rd-ppeminfo&#34;&gt;&lt;/div&gt;
  &lt;div class=&#34;rd-canvas&#34;&gt;&lt;canvas class=&#34;rd-raster&#34; role=&#34;img&#34; aria-label=&#34;The text rasterized on a pixel grid&#34;&gt;&lt;/canvas&gt;&lt;/div&gt;
  &lt;div class=&#34;rd-options&#34;&gt;
    &lt;label&gt;&lt;input class=&#34;rd-aa&#34; type=&#34;checkbox&#34;&gt; Anti-aliasing (gray levels)&lt;/label&gt;
    &lt;label&gt;&lt;input class=&#34;rd-outline&#34; type=&#34;checkbox&#34; checked&gt; Show the outline&lt;/label&gt;
  &lt;/div&gt;
  &lt;div class=&#34;rd-font&#34;&gt;
    Font: &lt;span class=&#34;rd-fontname&#34;&gt;&lt;/span&gt;
    &lt;button type=&#34;button&#34; class=&#34;rd-choosefont&#34;&gt;Choose file…&lt;/button&gt;
    &lt;button type=&#34;button&#34; class=&#34;rd-fontreset&#34; hidden&gt;Back to the default font&lt;/button&gt;
    &lt;input class=&#34;rd-fontfile&#34; type=&#34;file&#34; accept=&#34;.ttf,.otf,.ttc,font/ttf,font/otf,font/collection&#34; hidden&gt;
    &lt;div class=&#34;rd-fonthint&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Hints are instructions in the font. They tell the rasterizer how to move the outline to the pixel grid at small sizes, so that all stems have the same width and the x-height is on a full pixel. The typesetting engine does not use them. It calculates everything in the design units of the font, and these do not depend on any device. When you look at the PDF on a screen, the PDF viewer can use the hints. On paper they don&amp;rsquo;t matter at all. So this is the one level in this post that the typesetter does not have to care about.&lt;/p&gt;
&lt;h2 id=&#34;6-the-pdf&#34;&gt;6. The PDF&lt;/h2&gt;
&lt;p&gt;Now we are at the bottom. What does a line of text look like inside the PDF?&lt;/p&gt;
&lt;p&gt;Here is the start of the first line of the sample page from the beginning. It is taken from the PDF, only decompressed and shortened where you see &amp;ldquo;&amp;hellip;&amp;rdquo;:&lt;/p&gt;
&lt;!-- From the intro sample page (glu, Crimson Pro), mutool clean -d.
F2 is UGTAGC+CrimsonPro-Regular. --&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;BT
/F2 10 Tf
1 0 0 1 34.02 350.2 Tm
[&amp;lt;0051015f0271&amp;gt; -154 &amp;lt;016a015401110118015f0271&amp;gt; -154
 &amp;lt;01a4013d015d011801980271&amp;gt; -154 ... &amp;lt;01a4013801180190&amp;gt; 21 &amp;lt;01180271&amp;gt; ...] TJ
ET
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;code&gt;BT&lt;/code&gt; and &lt;code&gt;ET&lt;/code&gt; start and end a text object. &lt;code&gt;/F2 10 Tf&lt;/code&gt; selects the font F2 (Crimson Pro) at 10 pt, and &lt;code&gt;Tm&lt;/code&gt; puts the start of the line 34.02 pt from the left and 350.2 pt from the bottom of the page. Then &lt;code&gt;TJ&lt;/code&gt; draws the line. The text in the angle brackets is not &amp;ldquo;In olden times&amp;rdquo;, it is glyph IDs with four hex digits each: &lt;code&gt;0051&lt;/code&gt; is the &amp;ldquo;I&amp;rdquo;, &lt;code&gt;015f&lt;/code&gt; the &amp;ldquo;n&amp;rdquo; and &lt;code&gt;0271&lt;/code&gt; the space. The numbers between the strings move the next glyph, in thousandths of the font size. &lt;code&gt;-154&lt;/code&gt; moves it 1.54 pt to the right. This is the extra space from the justification of the line. The &lt;code&gt;21&lt;/code&gt; inside &amp;ldquo;there&amp;rdquo; moves the last &amp;ldquo;e&amp;rdquo; 0.21 pt to the left, closer to the &amp;ldquo;r&amp;rdquo;. This is kerning from the font.&lt;/p&gt;
&lt;p&gt;The font is embedded, but only the glyphs that are used (a &lt;em&gt;subset&lt;/em&gt;). The text is written as glyph IDs, not as characters. This is why copying text from some PDFs gives you garbage: without a &lt;code&gt;ToUnicode&lt;/code&gt; table there is no way back from the glyph to the character. Ligatures make it even harder: the single glyph &amp;ldquo;ﬁ&amp;rdquo; has to be mapped back to two characters.&lt;/p&gt;
&lt;p&gt;For accessible PDF (PDF/UA) every piece of text also needs a tag with its role in the document: heading, paragraph, table cell, footnote. How you can check the result is described in &lt;a href=&#34;https://news.speedata.de/2026/06/05/pdfa11y/&#34;&gt;Checking PDF/UA without firing up a Windows VM&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you want to see this level in more detail: in my series &amp;ldquo;What is PDF?&amp;rdquo; I write a PDF file by hand. &lt;a href=&#34;https://news.speedata.de/2024/03/25/insidepdf-02/&#34;&gt;Part 2&lt;/a&gt; is about text and the &lt;code&gt;TJ&lt;/code&gt; operator with kerning, &lt;a href=&#34;https://news.speedata.de/2024/06/11/insidepdf-06/&#34;&gt;part 6&lt;/a&gt; about tagged PDF.&lt;/p&gt;
&lt;h2 id=&#34;zooming-out-again&#34;&gt;Zooming out again&lt;/h2&gt;
&lt;p&gt;So back to the page from the beginning. There are six levels, from the page down to the bytes, and each has its own algorithms. Some of them are older than the PDF format. The reader does not see any of this, and this is how it should be.&lt;/p&gt;
&lt;p&gt;But the levels are not really separate. A ligature from the shaper changes where a word can be hyphenated. A color change in the middle of a line can remove a space from the text in the PDF. In my experience the most interesting bugs are at the borders between the levels. This is one reason why boxes and glue has each level in its own package: if something goes wrong, you can look at one level at a time.&lt;/p&gt;
&lt;p&gt;Each of these levels could have its own post. Which one would you like to read first? Contact me on mastodon (&lt;a href=&#34;https://typo.social/@speedata&#34;&gt;speedata@typo.social&lt;/a&gt;)&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Version 5.8 released</title>
      <link>https://news.speedata.de/2026/08/17/version-5_8_released/</link>
      <pubDate>Mon, 17 Aug 2026 10:00:00 +0200</pubDate>
      
      <guid>https://news.speedata.de/2026/08/17/version-5_8_released/</guid>
      <description>&lt;p&gt;Version 5.8 of the &lt;a href=&#34;https://www.speedata.de/&#34;&gt;speedata Publisher&lt;/a&gt; is out. After the big 5.6 release this is a smaller one: mostly bug fixes, a few nice improvements, and some housekeeping in preparation for version 6.0.&lt;/p&gt;
&lt;h2 id=&#34;deprecations-luxor-and-fontforge&#34;&gt;Deprecations: luxor and fontforge&lt;/h2&gt;
&lt;p&gt;The most important thing first, because it might affect you: the old XPath parser (&lt;code&gt;luxor&lt;/code&gt;) and the old fontforge font handler are now deprecated and will be removed in version 6.0. Both have been replaced by better implementations (&lt;code&gt;lxpath&lt;/code&gt; and &lt;code&gt;harfbuzz&lt;/code&gt;) that have been the default for a while now.&lt;/p&gt;
&lt;p&gt;If your layout still uses one of the old variants, the Publisher writes a warning to the log with a hint on how to migrate. The chapter on compatibility with older versions in the manual shows what to do. If you run into something that works with luxor but not with lxpath, please &lt;a href=&#34;https://github.com/speedata/publisher/issues&#34;&gt;tell me&lt;/a&gt; — that is exactly the kind of feedback I need before 6.0.&lt;/p&gt;
&lt;h2 id=&#34;the-manual-is-now-included&#34;&gt;The manual is now included&lt;/h2&gt;
&lt;p&gt;The distribution ZIP files now contain the HTML manual. &lt;code&gt;sp doc&lt;/code&gt; serves it through a local web server and opens the browser, so the documentation matches exactly the version you have installed and works without an internet connection. Speaking of the manual: it got a &lt;a href=&#34;https://news.speedata.de/2026/08/13/diataxis-manual/&#34;&gt;complete restructuring&lt;/a&gt; recently, including a new how-to section with recipes.&lt;/p&gt;
&lt;h2 id=&#34;warnings-for-unknown-attributes&#34;&gt;Warnings for unknown attributes&lt;/h2&gt;
&lt;p&gt;A typo like &lt;code&gt;&amp;lt;Textblock widht=&amp;quot;...&amp;quot;&amp;gt;&lt;/code&gt; was silently ignored so far, which could cost you a lot of debugging time for something the software should have told you about. The Publisher now warns about attributes that a command does not know, with the name of the attribute and the element. Attributes from other namespaces (such as &lt;code&gt;xml:lang&lt;/code&gt; or your own annotations) are ignored as before.&lt;/p&gt;
&lt;h2 id=&#34;an-extra-page-between-the-parts-of-a-split-table&#34;&gt;An extra page between the parts of a split table&lt;/h2&gt;
&lt;p&gt;The new attribute &lt;code&gt;break-pagetype&lt;/code&gt; on &lt;code&gt;&amp;lt;Table&amp;gt;&lt;/code&gt; inserts an extra page between the two parts of a table that is split at a page break, for example for the back side of a sheet in duplex printing. The value is the name of a page type, and the content of the inserted page is created with &lt;code&gt;&amp;lt;AtPageCreation&amp;gt;&lt;/code&gt; as usual.&lt;/p&gt;
&lt;h2 id=&#34;better-column-balancing&#34;&gt;Better column balancing&lt;/h2&gt;
&lt;p&gt;When &lt;code&gt;&amp;lt;Output balance=&amp;quot;yes&amp;quot;&amp;gt;&lt;/code&gt; distributes content over two frames, the split position is now determined by the actual height of the lines, not by their number. And balanced tables now take the height of repeated table headers (&lt;code&gt;sethead=&amp;quot;yes&amp;quot;&lt;/code&gt;) into account. In both cases the columns end up visibly more even.&lt;/p&gt;
&lt;h2 id=&#34;bug-fixes&#34;&gt;Bug fixes&lt;/h2&gt;
&lt;p&gt;A selection of the fixes in this release:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Functions defined with &lt;code&gt;&amp;lt;Function&amp;gt;&lt;/code&gt; now return their result in all contexts, including attribute expressions and &lt;code&gt;concat()&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;XPath union expressions such as &lt;code&gt;a | b&lt;/code&gt; work with the new parser, as do &lt;code&gt;intersect&lt;/code&gt; and &lt;code&gt;except&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;upper-case()&lt;/code&gt; and &lt;code&gt;lower-case()&lt;/code&gt; now handle umlauts and other non-ASCII characters&lt;/li&gt;
&lt;li&gt;Collecting elements in a variable with &lt;code&gt;&amp;lt;Copy-of&amp;gt;&lt;/code&gt; works again&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;&amp;lt;Mark&amp;gt;&lt;/code&gt; inside a &lt;code&gt;&amp;lt;Paragraph&amp;gt;&lt;/code&gt; is no longer lost&lt;/li&gt;
&lt;li&gt;An empty &lt;code&gt;&amp;lt;Paragraph&amp;gt;&lt;/code&gt; now creates an empty line&lt;/li&gt;
&lt;li&gt;Pages output via &lt;code&gt;&amp;lt;SavePages&amp;gt;&lt;/code&gt; / &lt;code&gt;&amp;lt;InsertPages&amp;gt;&lt;/code&gt; get their trim and bleed boxes, as PDF/X demands&lt;/li&gt;
&lt;li&gt;Objects that move to the next page keep their requested grid column&lt;/li&gt;
&lt;li&gt;The letter spacing on &lt;code&gt;&amp;lt;Span&amp;gt;&lt;/code&gt; now scales with the font size&lt;/li&gt;
&lt;li&gt;Groups are no longer limited to ten page heights&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;As always, downloads are at &lt;a href=&#34;https://download.speedata.de&#34;&gt;download.speedata.de&lt;/a&gt;. The &lt;a href=&#34;https://doc.speedata.de/publisher/en/manual/changelog/version-5/#57&#34;&gt;detailed changelog&lt;/a&gt; is in the manual. If you find a regression, please open an &lt;a href=&#34;https://github.com/speedata/publisher/issues&#34;&gt;issue on GitHub&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>The manual was complete. Something was still missing.</title>
      <link>https://news.speedata.de/2026/08/13/diataxis-manual/</link>
      <pubDate>Thu, 13 Aug 2026 08:00:00 +0200</pubDate>
      
      <guid>https://news.speedata.de/2026/08/13/diataxis-manual/</guid>
      <description>&lt;p&gt;I have been writing the speedata Publisher manual for almost 17 years now, pretty much since the first lines of code in 2009. And from the beginning, completeness was the goal: every command documented, every attribute explained, every concept covered somewhere. Over the years the manual grew into hundreds of pages, in German and English, and whenever a user asked something that was not in there, that was a bug to me — the answer went in.&lt;/p&gt;
&lt;p&gt;And yet, for all those years, a nagging feeling never quite went away. The manual told you everything about the Publisher. But it did not really tell you how to &lt;em&gt;write a layout&lt;/em&gt;.&lt;/p&gt;
&lt;h2 id=&#34;knowing-all-the-commands-is-not-the-same-as-knowing-what-to-do&#34;&gt;Knowing all the commands is not the same as knowing what to do&lt;/h2&gt;
&lt;p&gt;The typical situation looks like this: someone wants to build a product catalog. They know their data, they have a design in mind, and they have a manual in front of them that explains &lt;code&gt;&amp;lt;Table&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;Group&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;PlaceObject&amp;gt;&lt;/code&gt; and two hundred other commands in detail. What the manual did not answer was the question they actually had: &lt;em&gt;which of these do I reach for?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Should the article list be a table or a set of groups? Should the data be transformed before the Publisher sees it, or handled in the layout? How do I get a &amp;ldquo;continued on next page&amp;rdquo; note under a table? These are the questions that come up in every real project — and the answers were scattered across concept chapters, example snippets and, honestly, my head.&lt;/p&gt;
&lt;p&gt;I knew something was structurally wrong, but I could not name it. So I did some reading on how others think about documentation, and that is how I found &lt;a href=&#34;https://diataxis.fr/&#34;&gt;Diátaxis&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;four-kinds-of-documentation&#34;&gt;Four kinds of documentation&lt;/h2&gt;
&lt;p&gt;Diátaxis, formulated by Daniele Procida, is a simple but sharp observation: &amp;ldquo;documentation&amp;rdquo; is not one thing. It is four things, serving four different needs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Tutorials: learning-oriented. Take a beginner by the hand and get them to a first success.&lt;/li&gt;
&lt;li&gt;How-to guides: task-oriented. Someone has a concrete goal and wants the way there.&lt;/li&gt;
&lt;li&gt;Reference: information-oriented. Precise, complete, made for looking things up.&lt;/li&gt;
&lt;li&gt;Explanation: understanding-oriented. Background, concepts, the &lt;em&gt;why&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&#34;inlinesvg&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 680 270&#34; style=&#34;width:100%;max-width:680px;height:auto&#34; role=&#34;img&#34;&gt;
&lt;title&gt;The Diátaxis model&lt;/title&gt;
&lt;desc&gt;A four-quadrant matrix. Axes: practical versus theoretical, while learning versus while working. The quadrants are Tutorial, How-to guide, Explanation and Reference.&lt;/desc&gt;
&lt;style&gt;
  text { font-family: &#39;sana&#39;, sans-serif; }
  .axis { font-size: 20px; font-weight: 400; fill: #5F5E5A; }
  .title-teal { font-size: 24px; font-weight: 700; fill: #085041; }
  .sub-teal { font-size: 20px; font-weight: 400; fill: #0F6E56; }
  .title-purple { font-size: 24px; font-weight: 700; fill: #3C3489; }
  .sub-purple { font-size: 20px; font-weight: 400; fill: #534AB7; }
&lt;/style&gt;

&lt;text class=&#34;axis&#34; x=&#34;257.5&#34; y=&#34;46&#34; text-anchor=&#34;middle&#34;&gt;while learning&lt;/text&gt;
&lt;text class=&#34;axis&#34; x=&#34;527.5&#34; y=&#34;46&#34; text-anchor=&#34;middle&#34;&gt;while working&lt;/text&gt;
&lt;text class=&#34;axis&#34; x=&#34;18&#34; y=&#34;106&#34; dominant-baseline=&#34;central&#34;&gt;practical&lt;/text&gt;
&lt;text class=&#34;axis&#34; x=&#34;18&#34; y=&#34;214&#34; dominant-baseline=&#34;central&#34;&gt;theoretical&lt;/text&gt;

&lt;rect x=&#34;130&#34; y=&#34;62&#34; width=&#34;255&#34; height=&#34;88&#34; rx=&#34;8&#34; fill=&#34;#E1F5EE&#34; stroke=&#34;#0F6E56&#34; stroke-width=&#34;0.5&#34;/&gt;
&lt;text class=&#34;title-teal&#34; x=&#34;257.5&#34; y=&#34;97&#34; text-anchor=&#34;middle&#34; dominant-baseline=&#34;central&#34;&gt;Tutorial&lt;/text&gt;
&lt;text class=&#34;sub-teal&#34; x=&#34;257.5&#34; y=&#34;125&#34; text-anchor=&#34;middle&#34; dominant-baseline=&#34;central&#34;&gt;Learning by doing&lt;/text&gt;

&lt;rect x=&#34;400&#34; y=&#34;62&#34; width=&#34;255&#34; height=&#34;88&#34; rx=&#34;8&#34; fill=&#34;#E1F5EE&#34; stroke=&#34;#0F6E56&#34; stroke-width=&#34;0.5&#34;/&gt;
&lt;text class=&#34;title-teal&#34; x=&#34;527.5&#34; y=&#34;97&#34; text-anchor=&#34;middle&#34; dominant-baseline=&#34;central&#34;&gt;How-to guide&lt;/text&gt;
&lt;text class=&#34;sub-teal&#34; x=&#34;527.5&#34; y=&#34;125&#34; text-anchor=&#34;middle&#34; dominant-baseline=&#34;central&#34;&gt;A recipe for a goal&lt;/text&gt;

&lt;rect x=&#34;130&#34; y=&#34;170&#34; width=&#34;255&#34; height=&#34;88&#34; rx=&#34;8&#34; fill=&#34;#EEEDFE&#34; stroke=&#34;#534AB7&#34; stroke-width=&#34;0.5&#34;/&gt;
&lt;text class=&#34;title-purple&#34; x=&#34;257.5&#34; y=&#34;205&#34; text-anchor=&#34;middle&#34; dominant-baseline=&#34;central&#34;&gt;Explanation&lt;/text&gt;
&lt;text class=&#34;sub-purple&#34; x=&#34;257.5&#34; y=&#34;233&#34; text-anchor=&#34;middle&#34; dominant-baseline=&#34;central&#34;&gt;Background and why&lt;/text&gt;

&lt;rect x=&#34;400&#34; y=&#34;170&#34; width=&#34;255&#34; height=&#34;88&#34; rx=&#34;8&#34; fill=&#34;#EEEDFE&#34; stroke=&#34;#534AB7&#34; stroke-width=&#34;0.5&#34;/&gt;
&lt;text class=&#34;title-purple&#34; x=&#34;527.5&#34; y=&#34;205&#34; text-anchor=&#34;middle&#34; dominant-baseline=&#34;central&#34;&gt;Reference&lt;/text&gt;
&lt;text class=&#34;sub-purple&#34; x=&#34;527.5&#34; y=&#34;233&#34; text-anchor=&#34;middle&#34; dominant-baseline=&#34;central&#34;&gt;Look it up, precise facts&lt;/text&gt;
&lt;/svg&gt;

    &lt;div class=&#34;caption&#34;&gt;&lt;p&gt;The four quadrants of Diátaxis: a tutorial teaches by doing, a how-to guide gets a concrete task done, reference is for precise lookup, and explanation provides the background. The columns distinguish the reader&amp;#39;s situation: acquiring skills versus applying them at work, the rows distinguish practical steps from theoretical knowledge. After Daniele Procida, diataxis.fr.&lt;/p&gt;&lt;/div&gt;
    
&lt;/figure&gt;


&lt;p&gt;The point of the model is not the taxonomy itself, but the insight that mixing these forms weakens all of them. A reference that tries to teach becomes chatty; a tutorial that tries to be complete becomes unusable.&lt;/p&gt;
&lt;p&gt;When I mapped the existing manual onto this grid, the diagnosis was suddenly obvious. Tutorial? There, &amp;ldquo;Hello, world!&amp;rdquo; does that job. Explanation? Plenty: the topic chapters on the grid, page types, tables, fonts are mostly explanation, and decent ones. Reference? Existed, but scattered: the command reference here, XPath functions there, command line and configuration buried in the setup chapter.&lt;/p&gt;
&lt;p&gt;And how-to guides? Essentially empty. That quadrant &lt;em&gt;was&lt;/em&gt; the nagging feeling. “How do I write a layout ruleset” is a task-oriented question, and the manual had no task-oriented part.&lt;/p&gt;
&lt;h2 id=&#34;the-new-structure&#34;&gt;The new structure&lt;/h2&gt;
&lt;p&gt;So I restructured the whole manual along these lines. The result is &lt;a href=&#34;https://doc.speedata.de/publisher/en/&#34;&gt;live now&lt;/a&gt;, in German and English.&lt;/p&gt;
&lt;p&gt;The reference material is consolidated in one place: the command reference, XPath and layout functions, the command line, configuration, the glossary and the appendix. New is a thematic command overview, so you can find a command by what it does, not only by its name.&lt;/p&gt;
&lt;p&gt;The manual chapters remain what they were good at – explanation and concepts – but with less duplication. Quite a bit of content existed twice in slightly different words; that is gone now, along with a pile of broken links that the reshuffling surfaced.&lt;/p&gt;
&lt;p&gt;The real news is the new &lt;a href=&#34;https://doc.speedata.de/publisher/en/howto/&#34;&gt;how-to section&lt;/a&gt;: recipes that each solve one concrete task from practice, with a runnable layout and data to reproduce it.&lt;/p&gt;
&lt;h2 id=&#34;the-recipes&#34;&gt;The recipes&lt;/h2&gt;
&lt;p&gt;There are seven recipes to start with: a table with automatic page breaking, controlling column widths, continuation heads and notes, breaking complex tables manually, the basic scaffold of a data sheet, a table of contents, and a keyword index. Two decision guides sit in front of them: should data be prepared up front or processed in the layout, and is a content block a table, a set of groups, or text flow?&lt;/p&gt;
&lt;p&gt;That is a start, not a finish line. Which recipes come next should not be up to me alone — I am hoping for input from you: if there is a task you keep solving from scratch in your layouts, &lt;a href=&#34;https://www.speedata.de/imprint/&#34;&gt;tell me&lt;/a&gt;, it is probably a good candidate.&lt;/p&gt;
&lt;h2 id=&#34;was-it-worth-it&#34;&gt;Was it worth it?&lt;/h2&gt;
&lt;p&gt;Ask me in a year. I hope that I can come up with more recipes in the future or extend existing ones. Every time I create a new layout for a customer, I will think how to turn this into a structured explanation.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;The restructured manual is online at &lt;a href=&#34;https://doc.speedata.de/publisher/en/&#34;&gt;doc.speedata.de&lt;/a&gt;, the how-to guides at &lt;a href=&#34;https://doc.speedata.de/publisher/en/howto/&#34;&gt;doc.speedata.de/publisher/en/howto&lt;/a&gt;. The Diátaxis model is documented at &lt;a href=&#34;https://diataxis.fr/&#34;&gt;diataxis.fr&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Checking PDF/UA without firing up a Windows VM</title>
      <link>https://news.speedata.de/2026/06/05/pdfa11y/</link>
      <pubDate>Fri, 05 Jun 2026 08:00:00 +0200</pubDate>
      
      <guid>https://news.speedata.de/2026/06/05/pdfa11y/</guid>
      <description>&lt;p&gt;A lot of what I do with the speedata Publisher ends up as accessible PDF. PDF/UA-1 is a common customer requirement, and the Publisher has been producing tagged PDFs for a while now. So I spend more time than I would like to admit checking PDFs for accessibility compliance.&lt;/p&gt;
&lt;p&gt;The de-facto tool for this is &lt;a href=&#34;https://pac.pdf-accessibility.org/en&#34;&gt;PAC&lt;/a&gt; from the PDF Association. It is good, it is free, and it is Windows-only. On macOS that means firing up a Windows VM every time I want to check a single file, and I started to dread it enough that I built my own.&lt;/p&gt;
&lt;p&gt;So there are now two new things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/speedata/pdfa11y&#34;&gt;pdfa11y&lt;/a&gt;, a command line PDF/UA conformance checker written in Go.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://pdfuacheck.speedata.de&#34;&gt;pdfuacheck.speedata.de&lt;/a&gt;, the same checker compiled to WebAssembly. You drop a PDF on the page, the check runs locally in your browser, the file never leaves the machine.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both run the same set of Matterhorn Protocol checks (the standard catalog of PDF/UA failure conditions). The current set covers around 19 conditions, which is far from the full 136 in the protocol, but it includes the ones that come up most often in practice: missing /ToUnicode maps, fonts that are not embedded, structure tree shape, untagged content, MCID consistency between the content stream and the structure tree, heading hierarchy, list structure, and a few more.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;screenshot-web.png&#34; alt=&#34;pdfuacheck.speedata.de in action&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;how-it-compares-to-pac&#34;&gt;How it compares to PAC&lt;/h2&gt;
&lt;p&gt;To get a feel for how close (or far) pdfa11y is to PAC, I run it against the &lt;a href=&#34;https://pdfa.org/techniques-for-accessible-pdf/&#34;&gt;pdfa.org technique sample PDFs&lt;/a&gt; (82 files at the time of writing, CC-BY-4.0). Current match rate is around 62%. The mismatches are almost all things that need a human to look at the page (is this paragraph really supposed to be a heading? does this figure represent text?) or that need deep glyph analysis to detect.&lt;/p&gt;
&lt;p&gt;Where pdfa11y disagrees with PAC, it tends to be stricter rather than more lenient. There are no known false positives on the corpus, just genuine failure conditions that pdfa11y currently does not detect.&lt;/p&gt;
&lt;h2 id=&#34;the-library-underneath&#34;&gt;The library underneath&lt;/h2&gt;
&lt;p&gt;To parse PDFs without dragging in a full-featured library, I split out the parsing layer as &lt;a href=&#34;https://github.com/speedata/pdfdisassembler&#34;&gt;pdfdisassembler&lt;/a&gt;. It is a read-only PDF parser focused on tooling: validators, accessibility checkers, debuggers. No writing, no rendering, no signing, no XFA. It handles classical xref and xref streams, the common stream filters, text-string decoding, the standard encryption handler, structure tree traversal, and a small content-stream tokenizer.&lt;/p&gt;
&lt;p&gt;The WASM build of pdfa11y is around 7.5 MB compressed. Most of that is the Go runtime; the actual PDF parsing code is small. Loading a 100-page document and running the full check set takes around half a second in the browser.&lt;/p&gt;
&lt;h2 id=&#34;what-it-does-not-do&#34;&gt;What it does not do&lt;/h2&gt;
&lt;p&gt;pdfa11y will not tell you whether your document is meaningful. It cannot decide whether the structure tree reflects the visual layout, whether the alt texts describe the figures, or whether the reading order makes sense. Those are exactly the things PAC also marks as &amp;ldquo;human checks&amp;rdquo; in the Matterhorn protocol. They need a human in the loop. The point of an automated checker is to clear the mechanical failures so you can focus on the judgment calls.&lt;/p&gt;
&lt;p&gt;The other thing it does not do is render the PDF. There is no preview, no contrast check, no visual diff. If you need that, PAC is still the answer, and on macOS the Windows VM still has to come out for the final pass. But for the everyday &amp;ldquo;does my Publisher output still pass&amp;rdquo; check, the browser tab is enough.&lt;/p&gt;
&lt;h2 id=&#34;try-it&#34;&gt;Try it&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://pdfuacheck.speedata.de&#34;&gt;pdfuacheck.speedata.de&lt;/a&gt; is the easiest way in. For batch use or CI, grab the Linux, macOS and Windows binary from the &lt;a href=&#34;https://github.com/speedata/pdfa11y/releases&#34;&gt;GitHub releases&lt;/a&gt; or &lt;code&gt;go install github.com/speedata/pdfa11y/cmd/pdfa11y@latest&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Bug reports and reference PDFs that produce surprising verdicts are very welcome on the &lt;a href=&#34;https://github.com/speedata/pdfa11y/issues&#34;&gt;issue tracker&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Version 5.6 released</title>
      <link>https://news.speedata.de/2026/06/03/version-5_6_released/</link>
      <pubDate>Wed, 03 Jun 2026 18:00:00 +0200</pubDate>
      
      <guid>https://news.speedata.de/2026/06/03/version-5_6_released/</guid>
      <description>&lt;p&gt;Version 5.6 of the &lt;a href=&#34;https://www.speedata.de/&#34;&gt;speedata Publisher&lt;/a&gt; is out. The last stable release (5.4) was at the end of February, so it has been about 100 days of work, 25 small patch releases in between, and quite a few new things. Get a coffee, there is a lot in this one.&lt;/p&gt;
&lt;p&gt;I have to admit that I sat on some of these changes a bit longer than planned. Originally I wanted a stable release after about six weeks, but then one feature led to the next. You fix one thing and suddenly see three other things that should also be done. So here we are, three months later, with changes in XPath, fonts, tables, accessibility, HTML, and a few internal things.&lt;/p&gt;
&lt;h2 id=&#34;xpath-got-serious&#34;&gt;XPath got serious&lt;/h2&gt;
&lt;p&gt;This is probably the biggest single change. The XPath engine now understands arrays and maps, the &lt;code&gt;||&lt;/code&gt; operator for string concatenation, and &lt;code&gt;fn:serialize()&lt;/code&gt;. If you have ever wanted to keep a small lookup table in your layout file without dropping into Lua. Now you can, directly in XPath:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;SetVariable&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;variable=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;prices&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;na&#34;&gt;select=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;map { &amp;#39;small&amp;#39;: 9.90, &amp;#39;medium&amp;#39;: 14.90, &amp;#39;large&amp;#39;: 19.90 }&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;Value&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;select=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;$prices(&amp;#39;medium&amp;#39;)&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Arrays and maps are real XPath 3.1 data types, so they work the way the spec says they should. For me this is something that was missing for a long time. Many layouts have a few constants that do not really belong in the data file, but you also do not want them as string literals all over the layout. Now you put them in a map at the top and that is it.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;||&lt;/code&gt; operator is a small thing but very nice in daily use:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;Value&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;select=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&amp;#39;Hello, &amp;#39; || $name || &amp;#39;!&amp;#39;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;concat()&lt;/code&gt; still works of course, but &lt;code&gt;||&lt;/code&gt; is nicer to read when you have just two or three parts.&lt;/p&gt;
&lt;h2 id=&#34;variable-fonts&#34;&gt;Variable fonts&lt;/h2&gt;
&lt;p&gt;The Publisher can now use variable fonts. Internally this works via harfbuzz subsetting (which is included in LuaTeX 1.24, see below). You specify the axis values, and harfbuzz produces the instance for you. This means one font file gives you the full design space of weight, width, optical size, whatever the font supports.&lt;/p&gt;
&lt;p&gt;I wanted this for a long time and finally did it. Variable fonts are everywhere now (Inter, Recursive, all the new releases), and not supporting them felt more and more like a real gap.&lt;/p&gt;
&lt;h2 id=&#34;a-new-match-attribute-on-record&#34;&gt;A new &lt;code&gt;match&lt;/code&gt; attribute on Record&lt;/h2&gt;
&lt;p&gt;If you have written XSLT, you know how &lt;code&gt;match&lt;/code&gt; works on &lt;code&gt;&amp;lt;xsl:template&amp;gt;&lt;/code&gt;: you write a pattern, and the engine picks the right template for each node. The &lt;code&gt;&amp;lt;Record&amp;gt;&lt;/code&gt; element in the Publisher now has the same thing:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;Record&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;match=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;product[@type=&amp;#39;discount&amp;#39;]&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    ...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/Record&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;So far you had to write &lt;code&gt;&amp;lt;Record element=&amp;quot;product&amp;quot;&amp;gt;&lt;/code&gt; and then check inside the record what kind of product you are dealing with. Now you can split the cases at the top level. Much cleaner for catalogs with many different record types.&lt;/p&gt;
&lt;h2 id=&#34;tables-small-things-that-add-up&#34;&gt;Tables: small things that add up&lt;/h2&gt;
&lt;p&gt;A few table changes worth mentioning:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;colspan=&amp;quot;*&amp;quot;&lt;/code&gt; means &amp;ldquo;use the rest of the row&amp;rdquo;. No need to count columns when you just want a cell to go to the end.&lt;/li&gt;
&lt;li&gt;Alternating row colors now restart on each page. This was really a bug. On long tables the colors could drift, so the first row of page 2 had the wrong color if page 1 ended on the wrong row. Now it resets where the table continues.&lt;/li&gt;
&lt;li&gt;HTML tables support &lt;code&gt;colspan&lt;/code&gt; and &lt;code&gt;rowspan&lt;/code&gt;. Yes, you might say, of course they do, but until now, no, they did not. Now they do.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Td&lt;/code&gt; rotation keeps images inside the cell instead of letting them escape. That one was fun to debug.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;None of these are huge, but if you build tables every day, you notice.&lt;/p&gt;
&lt;h2 id=&#34;progress-bar&#34;&gt;Progress bar&lt;/h2&gt;
&lt;p&gt;You can now run &lt;code&gt;sp --progress&lt;/code&gt; and get a small progress bar instead of looking at a terminal that seems to do nothing:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sp --progress
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For large jobs this is a much better experience. Before this, if you had a 500-page catalog, you basically had to trust that the Publisher was working and not stuck somewhere. Now you see something happen.&lt;/p&gt;
&lt;h2 id=&#34;placeholder-images&#34;&gt;Placeholder images&lt;/h2&gt;
&lt;p&gt;A small but very useful one: you can now use &lt;code&gt;placeholder://&lt;/code&gt; as a pseudo-URL for image sources:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;Image&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;file=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;placeholder://400x300&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This gives you a grey placeholder of the requested size. Useful when you want to lay out a page before the final images are there, or for testing layout behaviour with images you do not have yet. No more folder full of &lt;code&gt;dummy.jpg&lt;/code&gt; files.&lt;/p&gt;
&lt;h2 id=&#34;pdfua-accessibility&#34;&gt;PDF/UA accessibility&lt;/h2&gt;
&lt;p&gt;Accessibility is better now. The structure tree handling for &lt;code&gt;Output/Text&lt;/code&gt; works properly, and &lt;code&gt;InsertPages&lt;/code&gt; / &lt;code&gt;SavePages&lt;/code&gt; (the trial typesetting commands) no longer break the structure tree. If you make accessible PDFs, this release fixes some real problems.&lt;/p&gt;
&lt;h2 id=&#34;memory-and-performance&#34;&gt;Memory and performance&lt;/h2&gt;
&lt;p&gt;Memory usage for data files is reduced. If you process big XML data files, you should notice. Also a few stack overflow issues with origin references in tables (&lt;code&gt;&amp;lt;Tr&amp;gt;&lt;/code&gt;) are gone. Those were causing slowdowns on very large tables.&lt;/p&gt;
&lt;h2 id=&#34;sp-filter-now-runs-on-lua-54&#34;&gt;sp filter now runs on Lua 5.4&lt;/h2&gt;
&lt;p&gt;If you use &lt;code&gt;sp filter&lt;/code&gt; for preprocessing, your scripts now run on Lua 5.4 instead of Lua 5.1. This is a big jump version-wise (integer/float distinction, goto, bitops, &amp;hellip;). For most filter scripts nothing changes, but if you do anything tricky with numbers you may want to test.&lt;/p&gt;
&lt;p&gt;The change is that filter mode switched from &lt;code&gt;gopher-lua&lt;/code&gt; (5.1) to &lt;code&gt;go-lua&lt;/code&gt; (5.4). The Publisher itself still runs LuaTeX with its own Lua 5.3, so this only affects the filter mode.&lt;/p&gt;
&lt;h2 id=&#34;luatex-1240&#34;&gt;LuaTeX 1.24.0&lt;/h2&gt;
&lt;p&gt;Updated to the current LuaTeX. Mostly invisible from the layout side, but everything runs on top of it. Needed for variable fonts.&lt;/p&gt;
&lt;h2 id=&#34;new-api-version-v1&#34;&gt;New API version (v1)&lt;/h2&gt;
&lt;p&gt;There is now a v1 of the HTTP API. The old v0 still works, so existing integrations keep running. v1 has cleaner endpoint naming and better error reporting. If you are starting a new integration, use v1.&lt;/p&gt;
&lt;h2 id=&#34;things-that-are-gone&#34;&gt;Things that are gone&lt;/h2&gt;
&lt;p&gt;Two things got dropped:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Debian package: I am not packaging &lt;code&gt;.deb&lt;/code&gt; files anymore. The binary tarball works everywhere and the Debian package was too much extra work for what it gave. If you are on Debian/Ubuntu, just extract the tarball.&lt;/li&gt;
&lt;li&gt;macOS Intel binaries: Apple Silicon has been the default for a while now, and keeping Intel builds for the few users still on Intel was not worth it. If you still need Intel, you can run the ARM binary via Rosetta, or build from source.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If either of these affects you, let me know: I want to hear it.&lt;/p&gt;
&lt;h2 id=&#34;new-documentation&#34;&gt;New documentation&lt;/h2&gt;
&lt;p&gt;The documentation has been rebuilt. New look, better search, and the changelog entries now link directly to the commits. The static site is now generated with Hugo (was something custom before), which makes contributing much easier. If you find something wrong in the docs, the source files are markdown/adoc and you can open a PR.&lt;/p&gt;
&lt;p&gt;There were also a &lt;em&gt;lot&lt;/em&gt; of small things going into the documentation: spelling fixes, better examples, more cross-links. Boring work, but it adds up.&lt;/p&gt;
&lt;h2 id=&#34;plus-all-the-small-stuff&#34;&gt;Plus all the small stuff&lt;/h2&gt;
&lt;p&gt;Things that did not get their own section but are in the release:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Better error messages in several places (data.xml not found, splib loading failures, end-of-document)&lt;/li&gt;
&lt;li&gt;Box border, box height in lines, vertical alignment for images and boxes in paragraphs&lt;/li&gt;
&lt;li&gt;CSS &lt;code&gt;::marker&lt;/code&gt; pseudo-element support&lt;/li&gt;
&lt;li&gt;&lt;code&gt;--generate-completion&lt;/code&gt; flag for shell completion (bash, zsh, fish)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;jardir&lt;/code&gt; option for system-provided Java JARs (Saxon integration)&lt;/li&gt;
&lt;li&gt;A bunch of XPath fixes: &lt;code&gt;ForAll&lt;/code&gt; with empty selections, &lt;code&gt;matches()&lt;/code&gt; with 3 arguments, the legacy &lt;code&gt;xpath.lua&lt;/code&gt; getting nil handling right&lt;/li&gt;
&lt;li&gt;And quite a few small bug fixes that you can find in the &lt;a href=&#34;https://doc.speedata.de/publisher/en/manual/changelog/version-5/#56&#34;&gt;detailed changelog&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;Downloads as always at &lt;a href=&#34;https://download.speedata.de&#34;&gt;download.speedata.de&lt;/a&gt;. The full &lt;a href=&#34;https://doc.speedata.de/publisher/en/manual/changelog/version-5/#56&#34;&gt;changelog&lt;/a&gt; is in the manual.&lt;/p&gt;
&lt;p&gt;If you find a regression, please open an &lt;a href=&#34;https://github.com/speedata/publisher/issues&#34;&gt;issue on GitHub&lt;/a&gt;. With 135 commits since the last stable release, there is always a chance that something slipped through.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Version 5.4 released</title>
      <link>https://news.speedata.de/2026/02/24/version-5_4_released/</link>
      <pubDate>Tue, 24 Feb 2026 10:00:00 +0100</pubDate>
      
      <guid>https://news.speedata.de/2026/02/24/version-5_4_released/</guid>
      <description>&lt;p&gt;Version 5.4 of the &lt;a href=&#34;https://www.speedata.de/&#34;&gt;speedata Publisher&lt;/a&gt; is now available. This is a solid update with speed improvements, better HTML support, and a few nice additions. Here is what changed since 5.2.&lt;/p&gt;
&lt;h2 id=&#34;speed&#34;&gt;Speed&lt;/h2&gt;
&lt;p&gt;This version is noticeably faster. Several internal optimizations — grid allocation, paragraph post-processing, and general typesetting — add up to a real difference, especially for larger documents. There is also a new option &lt;code&gt;html=&amp;quot;off&amp;quot;&lt;/code&gt; on text elements to skip the HTML parser when you do not need it, which speeds things up further.&lt;/p&gt;
&lt;h2 id=&#34;letterspacing&#34;&gt;Letterspacing&lt;/h2&gt;
&lt;p&gt;You can now set letter spacing in &lt;code&gt;&amp;lt;Textformat&amp;gt;&lt;/code&gt;. This has been requested a few times, especially for headings and display text.&lt;/p&gt;
&lt;h2 id=&#34;section-element&#34;&gt;Section element&lt;/h2&gt;
&lt;p&gt;A new &lt;code&gt;&amp;lt;Section&amp;gt;&lt;/code&gt; element lets you group parts of your layout file. It does not affect the output — it is purely for organization. The new &lt;a href=&#34;https://marketplace.visualstudio.com/items?itemName=speedata.vscode-speedata&#34;&gt;vscode-speedata extension&lt;/a&gt; uses it for code folding and outline navigation. More about this in the &lt;a href=&#34;https://news.speedata.de/2026/02/23/section-element/&#34;&gt;previous blog post&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;html-and-css&#34;&gt;HTML and CSS&lt;/h2&gt;
&lt;p&gt;Many improvements in this area:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Better table handling (borders, splitting, empty tables)&lt;/li&gt;
&lt;li&gt;More list style types&lt;/li&gt;
&lt;li&gt;Font family normalization&lt;/li&gt;
&lt;li&gt;CSS font size setting via &lt;code&gt;cssfontsize&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Various border and color fixes&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;bug-fixes&#34;&gt;Bug fixes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Fix margin protrusion values&lt;/li&gt;
&lt;li&gt;Fix infinite loops in HTML tables and paragraph post-processing&lt;/li&gt;
&lt;li&gt;Fix &lt;code&gt;ForAll&lt;/code&gt; context loss with the new XPath parser&lt;/li&gt;
&lt;li&gt;Fix absolute positioning height calculation&lt;/li&gt;
&lt;li&gt;Fix &lt;code&gt;Until&lt;/code&gt; with new XPath mode&lt;/li&gt;
&lt;li&gt;Set correct exit code when errors occur&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;vscode-extension&#34;&gt;VSCode extension&lt;/h2&gt;
&lt;p&gt;The new &lt;a href=&#34;https://marketplace.visualstudio.com/items?itemName=speedata.vscode-speedata&#34;&gt;vscode-speedata&lt;/a&gt; extension replaces the older RedHat XML setup. It brings proper syntax support, validation, autocomplete, and the Section-based code folding mentioned above.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;As always, downloads are at &lt;a href=&#34;https://download.speedata.de&#34;&gt;download.speedata.de&lt;/a&gt;. The &lt;a href=&#34;https://doc.speedata.de/publisher/en/changelog/#ch-changelog&#34;&gt;detailed changelog&lt;/a&gt; is in the manual.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Structuring layouts with the new Section element</title>
      <link>https://news.speedata.de/2026/02/23/section-element/</link>
      <pubDate>Mon, 23 Feb 2026 09:00:00 +0100</pubDate>
      
      <guid>https://news.speedata.de/2026/02/23/section-element/</guid>
      <description>&lt;p&gt;Layout files in the speedata Publisher can get long. Really long. A product catalog with conditional page types, fallback logic, index generation, and a dozen different record types easily grows to a few hundred lines of XML. And at that point, scrolling through the file becomes a chore.&lt;/p&gt;
&lt;p&gt;I have been wanting a way to organize layout code into logical groups for a while — something like regions or sections that you can collapse and navigate. The problem: any new element in the layout language usually &lt;em&gt;does&lt;/em&gt; something. It affects the output, it changes behavior, it needs to be documented and tested and maintained.&lt;/p&gt;
&lt;p&gt;So I added an element that does nothing.&lt;/p&gt;
&lt;h2 id=&#34;the-section-element&#34;&gt;The Section element&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;Section&amp;gt;&lt;/code&gt; is a new element in the speedata Publisher layout language. It has one attribute: &lt;code&gt;name&lt;/code&gt;. It wraps other elements. And that is all it does.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;Layout&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;na&#34;&gt;xmlns=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:speedata.de:2009/publisher/en&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;na&#34;&gt;xmlns:sd=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:speedata:2009/publisher/functions/en&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;Section&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;Font definitions&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;LoadFontfile&lt;/span&gt; &lt;span class=&#34;err&#34;&gt;...&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;DefineFontfamily&lt;/span&gt; &lt;span class=&#34;err&#34;&gt;...&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Section&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;Section&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;Page types&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;Pagetype&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;test=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;true()&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      ...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Pagetype&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Section&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;Section&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;Data processing&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;Record&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;element=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;catalog&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      ...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Record&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Section&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/Layout&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The speedata Publisher simply ignores &lt;code&gt;&amp;lt;Section&amp;gt;&lt;/code&gt; during processing. It does not create a scope, it does not affect variables, it does not change page handling or anything else. The PDF output is identical whether you use sections or not.&lt;/p&gt;
&lt;p&gt;So why bother?&lt;/p&gt;
&lt;h2 id=&#34;code-folding-and-outline&#34;&gt;Code folding and outline&lt;/h2&gt;
&lt;p&gt;The real benefit shows up in the editor. The new &lt;a href=&#34;https://marketplace.visualstudio.com/items?itemName=speedata.vscode-speedata&#34;&gt;vscode-speedata&lt;/a&gt; extension for Visual Studio Code understands &lt;code&gt;&amp;lt;Section&amp;gt;&lt;/code&gt; elements and uses them for two things:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Code folding.&lt;/strong&gt; You can collapse a section and hide everything inside it. When your layout has 2000 lines and you are working on the data processing part, you can fold away the font definitions, the page types, and whatever else you are not interested in right now.&lt;/p&gt;

&lt;figure &gt;
    
        
        &lt;img src=&#34;https://news.speedata.de/2026/02/23/section-element/codefolding.png&#34;  /&gt;
        
    
    
&lt;/figure&gt;


&lt;p&gt;&lt;strong&gt;Outline symbols.&lt;/strong&gt; The VS Code outline panel (and the breadcrumb bar) shows your sections as a navigable tree. Instead of scrolling through the file looking for the right &lt;code&gt;&amp;lt;Record&amp;gt;&lt;/code&gt; element, you click on &amp;ldquo;Data processing&amp;rdquo; in the outline and jump right there.&lt;/p&gt;

&lt;figure &gt;
    
        
        &lt;img src=&#34;https://news.speedata.de/2026/02/23/section-element/outline.png&#34;  /&gt;
        
    
    
&lt;/figure&gt;


&lt;p&gt;This is a small thing, but it makes a noticeable difference when you work with larger layouts. You spend less time navigating and more time actually editing.&lt;/p&gt;
&lt;h2 id=&#34;the-speedata-vscode-extension&#34;&gt;The speedata-vscode extension&lt;/h2&gt;
&lt;p&gt;The Section support is part of the new &lt;a href=&#34;https://marketplace.visualstudio.com/items?itemName=speedata.vscode-speedata&#34;&gt;vscode-speedata&lt;/a&gt; extension, which replaces the older RedHat XML mode. Besides sections, it brings proper syntax support, validation, and autocomplete for the speedata Publisher layout language. If you use VS Code for editing your layouts, it is worth installing.&lt;/p&gt;
&lt;h2 id=&#34;do-i-need-to-restructure-my-layouts&#34;&gt;Do I need to restructure my layouts?&lt;/h2&gt;
&lt;p&gt;No. &lt;code&gt;&amp;lt;Section&amp;gt;&lt;/code&gt; is entirely optional. Existing layouts work exactly as before. You can add sections gradually, wherever you feel they help — or not at all. There is no performance cost and no behavioral change.&lt;/p&gt;
&lt;p&gt;If you do want to add them, I would suggest starting with the obvious top-level groups: font definitions, page types, and record handlers. That alone gives you a nice outline and makes folding useful immediately.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;The Section element is available in the current development version of the speedata Publisher. The vscode-speedata extension is available on the &lt;a href=&#34;https://marketplace.visualstudio.com/items?itemName=speedata.vscode-speedata&#34;&gt;VS Code Marketplace&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>I benchmarked 6 PDF engines — the fastest is not the one I’d pick</title>
      <link>https://news.speedata.de/2026/02/10/typesetting-benchmark/</link>
      <pubDate>Tue, 10 Feb 2026 15:02:22 +0100</pubDate>
      
      <guid>https://news.speedata.de/2026/02/10/typesetting-benchmark/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m building a typesetting engine for a living (&lt;a href=&#34;https://www.speedata.de&#34;&gt;speedata Publisher&lt;/a&gt;). People keep asking me &amp;ldquo;why not just use Typst?&amp;rdquo; or &amp;ldquo;isn&amp;rsquo;t WeasyPrint good enough?&amp;rdquo; and I never had a good answer with real numbers. Just gut feeling. So I decided to actually measure it.&lt;/p&gt;
&lt;p&gt;I set up a simple benchmark, same document with all six tools. And what I learned was maybe not what I expected.&lt;/p&gt;
&lt;h2 id=&#34;the-setup&#34;&gt;The setup&lt;/h2&gt;
&lt;p&gt;The task is simple: a mail merge. You have an XML file with name and address records, you fill in a letter template, and you get a PDF out. One page per letter, with a logo, sender info, recipient address, and some body text. Nothing special, really every tool should be able to do this.&lt;/p&gt;
&lt;p&gt;I tested with 1 record and with 500 records. All templates produce more or less the same visual output. Same A4 page, same Helvetica (or the similar TeX Gyre Heros clone), same logo, same layout with the sender on the right side and body text at 105mm width with hyphenation turned on.&lt;/p&gt;
&lt;p&gt;The tools:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;speedata Publisher (sp) — my own engine, written in Go, Lua which uses LuaTeX in the background&lt;/li&gt;
&lt;li&gt;Typst — the new kid, written in Rust, has native XML support&lt;/li&gt;
&lt;li&gt;pdflatex — the classic, with Python/Jinja2 for the templating&lt;/li&gt;
&lt;li&gt;LuaLaTeX — basically pdflatex but with Lua scripting and a more modern font system, also with Python/Jinja2&lt;/li&gt;
&lt;li&gt;WeasyPrint — HTML/CSS to PDF, Python based&lt;/li&gt;
&lt;li&gt;Apache FOP — the enterprise XML/XSL-FO thing, Java&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All benchmarks ran with &lt;a href=&#34;https://github.com/sharkdp/hyperfine&#34;&gt;hyperfine&lt;/a&gt; on a macBook air M4 (16 GB). You can find the full setup &lt;a href=&#34;https://github.com/speedata/typesetting-benchmark&#34;&gt;on GitHub&lt;/a&gt; if you want to try it yourself.&lt;/p&gt;
&lt;h2 id=&#34;the-numbers&#34;&gt;The numbers&lt;/h2&gt;
&lt;h3 id=&#34;1-page&#34;&gt;1 page&lt;/h3&gt;
&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;Tool&lt;/th&gt;
          &lt;th&gt;Time&lt;/th&gt;
          &lt;th&gt;Relative&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
          &lt;td&gt;sp&lt;/td&gt;
          &lt;td&gt;95 ms&lt;/td&gt;
          &lt;td&gt;1.0x&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Typst&lt;/td&gt;
          &lt;td&gt;106 ms&lt;/td&gt;
          &lt;td&gt;1.1x&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;pdflatex&lt;/td&gt;
          &lt;td&gt;329 ms&lt;/td&gt;
          &lt;td&gt;3.5x&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;WeasyPrint&lt;/td&gt;
          &lt;td&gt;335 ms&lt;/td&gt;
          &lt;td&gt;3.5x&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;LuaLaTeX&lt;/td&gt;
          &lt;td&gt;519 ms&lt;/td&gt;
          &lt;td&gt;5.5x&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Apache FOP&lt;/td&gt;
          &lt;td&gt;532 ms&lt;/td&gt;
          &lt;td&gt;5.6x&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;With one page, sp and Typst are basically the same. Both under 110ms. Everything else is 3.5 to 5.6 times slower.&lt;/p&gt;
&lt;h3 id=&#34;500-pages&#34;&gt;500 pages&lt;/h3&gt;
&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;Tool&lt;/th&gt;
          &lt;th&gt;Time&lt;/th&gt;
          &lt;th&gt;Per page&lt;/th&gt;
          &lt;th&gt;Relative&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
          &lt;td&gt;Typst&lt;/td&gt;
          &lt;td&gt;157 ms&lt;/td&gt;
          &lt;td&gt;0.3 ms&lt;/td&gt;
          &lt;td&gt;1.0x&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;pdflatex&lt;/td&gt;
          &lt;td&gt;712 ms&lt;/td&gt;
          &lt;td&gt;1.4 ms&lt;/td&gt;
          &lt;td&gt;4.5x&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Apache FOP&lt;/td&gt;
          &lt;td&gt;1.6 s&lt;/td&gt;
          &lt;td&gt;3.2 ms&lt;/td&gt;
          &lt;td&gt;10x&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;LuaLaTeX&lt;/td&gt;
          &lt;td&gt;2.4 s&lt;/td&gt;
          &lt;td&gt;4.7 ms&lt;/td&gt;
          &lt;td&gt;15x&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;sp&lt;/td&gt;
          &lt;td&gt;4.4 s&lt;/td&gt;
          &lt;td&gt;8.7 ms&lt;/td&gt;
          &lt;td&gt;28x&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;WeasyPrint&lt;/td&gt;
          &lt;td&gt;8.7 s&lt;/td&gt;
          &lt;td&gt;17.3 ms&lt;/td&gt;
          &lt;td&gt;55x&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;OK so this is where it gets interesting. Typst does 500 pages in 157 milliseconds. That is not a typo. Once it is running, it spends about 0.3ms per page. sp, which was basically equal at one page, needs 4.4 seconds — 28 times slower.&lt;/p&gt;
&lt;p&gt;At one page they are tied, at 500 pages it is not even close. Typst has maybe 60ms startup cost, and after that it just flies. The per-page cost of sp is roughly 28 times higher.&lt;/p&gt;
&lt;p&gt;Also worth noting: WeasyPrint really does not scale well. It goes from &amp;ldquo;ok&amp;rdquo; at one page to &amp;ldquo;maybe go get a coffee&amp;rdquo; at 500. pdflatex on the other hand scales surprisingly well — the per-page cost is only about 0.8ms if you subtract the startup.&lt;/p&gt;
&lt;p&gt;So if speed is all you care about, just use Typst, right?&lt;/p&gt;
&lt;h2 id=&#34;but-look-at-the-actual-output&#34;&gt;But look at the actual output&lt;/h2&gt;
&lt;p&gt;This is where it gets more complicated. Open the PDFs next to each other and look at the body text:&lt;/p&gt;

&lt;figure &gt;
    
        
        &lt;img src=&#34;https://news.speedata.de/2026/02/10/typesetting-benchmark/fourtexts.png&#34;  /&gt;
        
    
    
&lt;/figure&gt;


&lt;p&gt;You see the difference? The justified text looks different. Not because of different fonts — the &lt;em&gt;decisions&lt;/em&gt; are different. Where to break the lines, where to hyphenate, how to distribute the whitespace.&lt;/p&gt;
&lt;p&gt;pdflatex and sp use algorithms based on Knuth &amp;amp; Plass (the TeX line breaking algorithm). They look at the whole paragraph at once and find the best set of breakpoints for all lines together. The result is even word spacing, no rivers of white, and good hyphenation.&lt;/p&gt;
&lt;p&gt;&lt;del&gt;Typst&lt;/del&gt;, WeasyPrint, and FOP seemingly use a much simpler algorithm. It looks like they go line by line from top to bottom and decide for each line separately. This is faster — and that is probably part of the reason why Typst scales so well. But you can see it. Some lines are too loose, some too tight. Hyphenation sometimes feels a bit random.
&lt;strong&gt;Edit&lt;/strong&gt; Typst&amp;rsquo;s author &lt;a href=&#34;https://mastodon.social/@typst/116048436705560152#.&#34;&gt;has clarified&lt;/a&gt;:  “However, one thing we noticed is your assertion in the justification section that Typst is not using Knuth-Plass – we do, by default when justification is enabled. The only thing of the original paper we don&amp;rsquo;t implement are tightness classes to prevent a very tight line and a very wide line directly next to each other.”&lt;/p&gt;
&lt;p&gt;For a simple letter, honestly both are fine. But try a narrow column with a technical text full of long words, and then you really see the difference. The Knuth-Plass output looks like a properly typeset book. The first-fit output looks like a web page that somebody printed.&lt;/p&gt;
&lt;p&gt;A benchmark cannot capture this.&lt;/p&gt;
&lt;h2 id=&#34;what-benchmarks-cannot-measure&#34;&gt;What benchmarks cannot measure&lt;/h2&gt;
&lt;p&gt;Here is what actually matters in production, and it has nothing to do with milliseconds: what happens when the content does not fit?&lt;/p&gt;
&lt;p&gt;Think of a product catalog. Each product gets one page: a data table at the top, product photos at the bottom. Simple enough. But then product number 47 has a table with 30 rows instead of 10. Now what?&lt;/p&gt;
&lt;p&gt;In Typst, you can use &lt;code&gt;measure()&lt;/code&gt; to get the height of the table and compare it with the available space. That is a reasonable approximation. But Typst cannot do a real trial layout across page breaks — it measures content in a single frame only.&lt;/p&gt;
&lt;p&gt;In the speedata Publisher, you can do this:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;SavePages&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;attempt&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;PlaceObject&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;Table&amp;gt;&lt;/span&gt;...&lt;span class=&#34;nt&#34;&gt;&amp;lt;/Table&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;/PlaceObject&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/SavePages&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;Switch&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;Case&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;test=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;sd:number-of-pages(&amp;#39;attempt&amp;#39;) &amp;gt; 2&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;c&#34;&gt;&amp;lt;!-- does not fit — shrink font, split differently, whatever --&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Case&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;Otherwise&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;InsertPages&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;attempt&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Otherwise&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/Switch&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is real trial typesetting. It actually lays out the full content, with real page breaks, counts how many pages it needs, and then you decide: keep it, or throw it away and try with different settings. No other tool in this benchmark can do that.&lt;/p&gt;
&lt;p&gt;Is this slower than just going through the content without looking back? Of course. And maybe that is part of why sp is 28 times slower at 500 pages — it is built for &lt;em&gt;careful&lt;/em&gt; layout, not for &lt;em&gt;fast&lt;/em&gt; layout. But the alternative is that a human opens each PDF and manually checks if page 47 looks right. That is not a millisecond problem, that is a &amp;ldquo;you need to hire someone&amp;rdquo; problem.&lt;/p&gt;
&lt;h2 id=&#34;a-real-world-example-the-product-catalog-page&#34;&gt;A real-world example: the product catalog page&lt;/h2&gt;
&lt;p&gt;Here is an actual page from a spare parts catalog, built with the speedata Publisher. This is a very typical use case for a product catalog.&lt;/p&gt;

&lt;figure &gt;
    
        
        &lt;img src=&#34;https://news.speedata.de/2026/02/10/typesetting-benchmark/adaptivelayout.png&#34;  /&gt;
        
    
    
&lt;/figure&gt;


&lt;p&gt;Look at what is happening on this page. The data table grows from top to bottom — model by model, row by row. The product images at the bottom grow from bottom to top, in rows of up to four. The table and the images share the same page, and neither is allowed to overlap the other. The number of table rows varies per page, the number of product images varies per page, and the layout has to figure out on its own how to divide the available space.&lt;/p&gt;
&lt;p&gt;This is not a fixed template. It is an adaptive layout. The engine places the table, measures how much room is left, and fills the remaining space with as many product images as will fit — bottom-aligned, in rows of four. If a page has fewer products, you get two images in the last row instead of four. If the table is longer, the images get pushed to the next page. All of this happens automatically, without a human touching any page.&lt;/p&gt;
&lt;p&gt;How would you do this with the other tools?&lt;/p&gt;
&lt;p&gt;In Typst, you could get close. You would &lt;code&gt;measure()&lt;/code&gt; the table height, calculate the remaining space, and manually arrange images in a grid at the bottom. But you are doing layout math by hand, and if the table happens to break across pages, things get complicated fast. Typst has no built-in way to say &amp;ldquo;fill the rest of this page from the bottom up.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;In pdflatex or LuaLaTeX, you enter the world of TeX float placement — &lt;code&gt;\vfill&lt;/code&gt;, &lt;code&gt;\bottomrule&lt;/code&gt;, maybe a &lt;code&gt;minipage&lt;/code&gt; at the bottom. For a single page with a known table height, you could hack something together. But for hundreds of pages where the table height varies? You would likely write a Lua callback in LuaLaTeX that inspects the page after layout and inserts the images. Possible, but painful.&lt;/p&gt;
&lt;p&gt;In WeasyPrint, this is essentially not possible. CSS has no concept of &amp;ldquo;fill the remaining page from the bottom.&amp;rdquo; You would have to pre-calculate the table height outside of the rendering engine and generate custom CSS per page. At that point, you are not really using a layout engine anymore — you are the layout engine.&lt;/p&gt;
&lt;p&gt;In Apache FOP, XSL-FO has some support for this kind of thing with &lt;code&gt;region-after&lt;/code&gt; and &lt;code&gt;fo:block-container&lt;/code&gt;, but in practice FOP&amp;rsquo;s implementation is limited. You might get a rough approximation, but the automatic &amp;ldquo;grow from bottom&amp;rdquo; behavior is not something FOP handles well.&lt;/p&gt;
&lt;p&gt;In the speedata Publisher, this is roughly a dozen lines of layout XML. Place the table, ask how much space is left, arrange the images in the remaining area. It is exactly the kind of problem the tool was built for.&lt;/p&gt;
&lt;h2 id=&#34;the-difficulty-ladder&#34;&gt;The difficulty ladder&lt;/h2&gt;
&lt;p&gt;The real comparison is not &amp;ldquo;which tool is the fastest at a trivial task.&amp;rdquo; It is &amp;ldquo;which tool can even handle the task.&amp;rdquo;&lt;/p&gt;
&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;Task&lt;/th&gt;
          &lt;th&gt;Typst&lt;/th&gt;
          &lt;th&gt;sp&lt;/th&gt;
          &lt;th&gt;WeasyPrint&lt;/th&gt;
          &lt;th&gt;FOP&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
          &lt;td&gt;Simple mail merge&lt;/td&gt;
          &lt;td&gt;fast&lt;/td&gt;
          &lt;td&gt;fast&lt;/td&gt;
          &lt;td&gt;medium&lt;/td&gt;
          &lt;td&gt;slow&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Justified text quality&lt;/td&gt;
          &lt;td&gt;ok&lt;/td&gt;
          &lt;td&gt;excellent&lt;/td&gt;
          &lt;td&gt;ok&lt;/td&gt;
          &lt;td&gt;ok&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&amp;ldquo;Does this fit on 2 pages?&amp;rdquo;&lt;/td&gt;
          &lt;td&gt;approximate&lt;/td&gt;
          &lt;td&gt;exact&lt;/td&gt;
          &lt;td&gt;no&lt;/td&gt;
          &lt;td&gt;no&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Dynamic layout fallbacks&lt;/td&gt;
          &lt;td&gt;manual&lt;/td&gt;
          &lt;td&gt;built-in&lt;/td&gt;
          &lt;td&gt;no&lt;/td&gt;
          &lt;td&gt;limited&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;200-page product catalog with conditional layouts&lt;/td&gt;
          &lt;td&gt;in theory&lt;/td&gt;
          &lt;td&gt;core use case&lt;/td&gt;
          &lt;td&gt;no&lt;/td&gt;
          &lt;td&gt;sort of&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;For a mail merge, use Typst. Seriously. It is fast, the source files are nice to write, and the output looks good enough.&lt;/p&gt;
&lt;p&gt;But once your layout needs go beyond &amp;ldquo;fill in a template, output PDF&amp;rdquo; — once you need the software to actually make &lt;em&gt;decisions&lt;/em&gt; — things change. And that is where tools like sp become worth it, even if they need a few hundred milliseconds more per page.&lt;/p&gt;
&lt;h2 id=&#34;what-i-actually-learned&#34;&gt;What I actually learned&lt;/h2&gt;
&lt;p&gt;I went into this benchmark hoping that sp would be fastest at everything. It is not. Typst is 28 times faster at 500 pages, and I cannot really argue with that — they have done amazing engineering work.&lt;/p&gt;
&lt;p&gt;But I also realized that the benchmark I set up — a simple mail merge — is exactly the kind of task where the strengths of sp do not show up at all. It is like you compare a sports car and a pickup truck on a flat highway. Sure, the sports car is faster. But that is not what you bought the truck for.&lt;/p&gt;
&lt;p&gt;The right question is not &amp;ldquo;how many pages per second.&amp;rdquo; It is &amp;ldquo;how many pages until you need a human to check.&amp;rdquo; And that is much harder to measure.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;The complete benchmark setup (all templates, scripts, and data) is on &lt;a href=&#34;https://github.com/speedata/typesetting-benchmark&#34;&gt;GitHub&lt;/a&gt;. Run &lt;code&gt;./benchmark.sh&lt;/code&gt; to reproduce on your own machine.&lt;/em&gt;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Fixing macOS notarization issues in the speedata Publisher 5.2.0</title>
      <link>https://news.speedata.de/2025/11/24/macossigningerror/</link>
      <pubDate>Mon, 24 Nov 2025 10:10:32 +0100</pubDate>
      
      <guid>https://news.speedata.de/2025/11/24/macossigningerror/</guid>
      <description>&lt;p&gt;I have rebuilt the macOS packages of the speedata Publisher and released them as version 5.2.1.
The Windows and Linux packages remain at 5.2.0, because the changes are macOS-specific.&lt;/p&gt;
&lt;p&gt;This post is a short write-up of what broke, how I debugged it, and which tools I used along the way. If you ever need to get a macOS command line tool notarized, this might save you some time (or at least a bit of frustration).&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;the-initial-problem&#34;&gt;The initial problem&lt;/h2&gt;
&lt;p&gt;The first hint that something was wrong came from a helpful macOS error message: the &lt;code&gt;sp&lt;/code&gt; binary from the downloaded ZIP refused to run and macOS complained about signature / security issues.&lt;/p&gt;
&lt;p&gt;At first glance, everything looked fine:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;codesign -dv --verbose&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;4&lt;/span&gt; bin/sp
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;showed a valid Developer ID Application signature with hardened runtime, the correct team identifier, and a recent timestamp. So far, so good.&lt;/p&gt;
&lt;p&gt;However, Gatekeeper (the actual decision-maker on whether something is allowed to run) disagreed:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;spctl -a -vvv bin/sp
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;returned:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;bin/sp: rejected
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;source=Unnotarized Developer ID
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;origin=Developer ID Application: PATRICK GUENTER GUNDLACH (3Y98DLKYBJ)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In other words:
“Nice signature, but this binary (or rather the package it lives in) is not notarized. Rejected.”&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;the-usual-suspects-quarantine-signature-notarization&#34;&gt;The usual suspects: quarantine, signature, notarization&lt;/h2&gt;
&lt;p&gt;There are a few common reasons why macOS complains:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The file still has the quarantine attribute from the browser download:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;xattr bin/sp
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;xattr -d com.apple.quarantine bin/sp
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;The binary is unsigned or only ad-hoc signed.&lt;/li&gt;
&lt;li&gt;The binary is signed, but the archive is not notarized.&lt;/li&gt;
&lt;li&gt;The wrong artifact was notarized (e.g. a different build or a different ZIP).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In my case, the binary itself was correctly signed. The problem appeared at the notarization step.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;looking-at-the-notarization-log&#34;&gt;Looking at the notarization log&lt;/h2&gt;
&lt;p&gt;The key tool here is Apple’s notarization service and its logs.&lt;/p&gt;
&lt;p&gt;I submitted my ZIP for notarization using:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;xcrun notarytool submit speedata-publisher-macos-arm64-5.2.0.zip &lt;span class=&#34;se&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;se&#34;&gt;&lt;/span&gt;    --apple-id &lt;span class=&#34;s2&#34;&gt;&amp;#34;...&amp;#34;&lt;/span&gt; &lt;span class=&#34;se&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;se&#34;&gt;&lt;/span&gt;    --team-id 3Y98DLKYBJ &lt;span class=&#34;se&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;se&#34;&gt;&lt;/span&gt;    --keychain-profile &lt;span class=&#34;s2&#34;&gt;&amp;#34;...&amp;#34;&lt;/span&gt; &lt;span class=&#34;se&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;se&#34;&gt;&lt;/span&gt;    --wait
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The result:
&lt;code&gt;status: Invalid&lt;/code&gt; – the archive contained “critical validation errors”.&lt;/p&gt;
&lt;p&gt;The interesting part is in the JSON log, which looks roughly like this (simplified):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;status&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Invalid&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;statusSummary&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Archive contains critical validation errors&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;issues&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;severity&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;error&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;path&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;speedata-publisher-macos-arm64-5.2.0.zip/.../jline-2.14.6.jar/META-INF/native/osx/libjansi.jnilib&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;message&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;The binary is not signed.&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;architecture&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;x86_64&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is where the real debugging starts.&lt;/p&gt;
&lt;p&gt;The important insight:
Apple doesn’t just inspect your main executable (&lt;code&gt;bin/sp&lt;/code&gt;), it walks through the whole archive and looks at every Mach-O binary it can find:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;.dylib&lt;/code&gt;, &lt;code&gt;.so&lt;/code&gt;, &lt;code&gt;.jnilib&lt;/code&gt;, helper executables, and so on&lt;/li&gt;
&lt;li&gt;even native libraries inside JAR files&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If any of those are unsigned or signed incorrectly, notarization fails.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;the-unexpected-culprit-jline-2146jar&#34;&gt;The unexpected culprit: &lt;code&gt;jline-2.14.6.jar&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;One of the problematic paths stood out:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;.../jline-2.14.6.jar/META-INF/native/osx/libjansi.jnilib
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is a native library (&lt;code&gt;libjansi.jnilib&lt;/code&gt;) embedded inside the JLine 2 JAR, originally used by Saxon for its interactive “Gizmo” tool. It contained old macOS code and was not signed at all.&lt;/p&gt;
&lt;p&gt;For the Publisher, I don’t actually need this library:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The Publisher uses Saxon for XML/XSLT processing.&lt;/li&gt;
&lt;li&gt;The interactive JLine-based console is not part of the normal Publisher workflow.&lt;/li&gt;
&lt;li&gt;Shipping that native library is therefore unnecessary.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once I realized that, the simplest solution was: remove JLine from the macOS package.&lt;/p&gt;
&lt;p&gt;That avoids the need to sign &lt;code&gt;libjansi.jnilib&lt;/code&gt; at all, and it removes old native code that is irrelevant on modern macOS systems (especially on arm64).&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;making-sure-the-remaining-binaries-are-signed&#34;&gt;Making sure the remaining binaries are signed&lt;/h2&gt;
&lt;p&gt;The notarization log also showed which other binaries Apple considers interesting in the archive, for example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;.../bin/sp&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.../bin/sdluatex&lt;/code&gt; (a universal binary in my case)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.../share/lib/libsplib.so&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.../share/lib/luaglue.so&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All of these need a proper Developer ID Application signature.&lt;/p&gt;
&lt;p&gt;Instead of manually calling &lt;code&gt;codesign&lt;/code&gt; on every single file, I use &lt;a href=&#34;https://github.com/mitchellh/gon&#34;&gt;gon&lt;/a&gt; to automate this. Gon lets you define a configuration file that lists:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;which binaries to sign&lt;/li&gt;
&lt;li&gt;which certificate to use&lt;/li&gt;
&lt;li&gt;and how to submit the final ZIP for notarization&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So the process for a macOS release looks like this now:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Build the binaries and shared libraries.&lt;/li&gt;
&lt;li&gt;Run gon with my configuration:
&lt;ul&gt;
&lt;li&gt;it calls &lt;code&gt;codesign&lt;/code&gt; with hardened runtime and timestamp&lt;/li&gt;
&lt;li&gt;it signs all relevant Mach-O binaries&lt;/li&gt;
&lt;li&gt;it submits the ZIP to Apple for notarization&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wait for the notarization result from &lt;code&gt;notarytool&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After removing JLine and letting gon sign all the relevant binaries, I rebuilt the ZIP and resubmitted it to Apple.&lt;/p&gt;
&lt;p&gt;This time the log looked much nicer:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;status&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Accepted&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;statusSummary&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Ready for distribution&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;ticketContents&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;path&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;speedata-publisher-macos-arm64-5.2.1.zip/.../bin/sp&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;arch&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;arm64&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;path&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;speedata-publisher-macos-arm64-5.2.1.zip/.../bin/sdluatex&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;arch&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;x86_64&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;path&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;speedata-publisher-macos-arm64-5.2.1.zip/.../bin/sdluatex&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;arch&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;arm64&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;path&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;speedata-publisher-macos-arm64-5.2.1.zip/.../share/lib/libsplib.so&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;arch&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;arm64&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;path&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;speedata-publisher-macos-arm64-5.2.1.zip/.../share/lib/luaglue.so&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;arch&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;arm64&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;“Accepted / Ready for distribution” is exactly what you want to see.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;final-check-with-gatekeeper&#34;&gt;Final check with Gatekeeper&lt;/h2&gt;
&lt;p&gt;After downloading and unpacking the ZIP on a fresh system, the final sanity check is:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;spctl -a -vvv speedata-publisher/bin/sp
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now the result is:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;speedata-publisher/bin/sp: accepted
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;source=Notarized Developer ID
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;origin=Developer ID Application: PATRICK GUENTER GUNDLACH (3Y98DLKYBJ)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;At that point, macOS is happy and the package is ready to be used without scary warnings.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;summary&#34;&gt;Summary&lt;/h2&gt;
&lt;p&gt;For macOS users of the speedata Publisher:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The macOS package is now 5.2.1 and properly notarized.&lt;/li&gt;
&lt;li&gt;Windows and Linux stay at 5.2.0 for this release.&lt;/li&gt;
&lt;li&gt;The changes are purely about:
&lt;ul&gt;
&lt;li&gt;removing an unnecessary native library (JLine / &lt;code&gt;libjansi.jnilib&lt;/code&gt;), and&lt;/li&gt;
&lt;li&gt;making sure all relevant Mach-O binaries are correctly signed and notarized.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For anyone fighting similar issues:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;codesign -dv --verbose=4&lt;/code&gt; helps you inspect signatures.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;spctl -a -vvv&lt;/code&gt; tells you what Gatekeeper thinks.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;xcrun notarytool submit ... --wait&lt;/code&gt; plus the JSON log tell you exactly which file is causing notarization to fail.&lt;/li&gt;
&lt;li&gt;Using a tool like &lt;strong&gt;gon&lt;/strong&gt; makes it much easier to consistently sign and notarize all the right files.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And sometimes the best fix is not to sign more, but to ship less.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Version 5.2 released</title>
      <link>https://news.speedata.de/2025/10/14/version-5_2_released/</link>
      <pubDate>Tue, 14 Oct 2025 14:41:48 +0200</pubDate>
      
      <guid>https://news.speedata.de/2025/10/14/version-5_2_released/</guid>
      <description>&lt;h1 id=&#34;big-improvements-under-the-hood&#34;&gt;Big Improvements Under the Hood&lt;/h1&gt;
&lt;p&gt;We’re happy to announce a new development snapshot of the &lt;em&gt;speedata Publisher&lt;/em&gt;!
This release comes with major internal improvements, cleaner architecture, and a bunch of small but meaningful user-facing enhancements.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;rewritten-xml-parser&#34;&gt;Rewritten XML Parser&lt;/h2&gt;
&lt;p&gt;The XML parser has been completely reimplemented in Go, with a stronger focus on &lt;strong&gt;correctness&lt;/strong&gt;, &lt;strong&gt;performance&lt;/strong&gt;, and &lt;strong&gt;test coverage&lt;/strong&gt;.
It now keeps track of the originating file when using &lt;strong&gt;XInclude&lt;/strong&gt;, which makes debugging and error reporting much easier.&lt;/p&gt;
&lt;p&gt;We’ve also added a comprehensive set of automated tests to ensure the parser behaves consistently across all edge cases.
This rewrite lays the foundation for future extensions such as XML entity support and better error recovery.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;smarter-xpath-engine&#34;&gt;Smarter XPath Engine&lt;/h2&gt;
&lt;p&gt;XPath support has grown significantly:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;New functions: &lt;code&gt;translate()&lt;/code&gt; and &lt;code&gt;distinct-values()&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Improved numeric functions like &lt;code&gt;format-number()&lt;/code&gt; and &lt;code&gt;round-half-to-even()&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;doc()&lt;/code&gt; function now returns the &lt;strong&gt;document node&lt;/strong&gt;, aligning better with the XPath standard&lt;/li&gt;
&lt;li&gt;More consistent boolean logic across the board&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This means fewer surprises and more predictable results when working with complex expressions.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;typographic-and-language-support&#34;&gt;Typographic and Language Support&lt;/h2&gt;
&lt;p&gt;We’ve added &lt;strong&gt;initial Japanese typesetting support&lt;/strong&gt;, refined character fallback logic, and improved handling of multi-character glyphs.
These changes improve the Publisher’s internationalization capabilities and text layout quality — especially for multilingual projects.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;better-html-and-css-handling&#34;&gt;Better HTML and CSS Handling&lt;/h2&gt;
&lt;p&gt;The internal HTML/CSS engine continues to evolve:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Support for pseudo-class selectors (like &lt;code&gt;:first-child&lt;/code&gt;, &lt;code&gt;:last-child&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Improved border and padding calculations in tables and blocks&lt;/li&gt;
&lt;li&gt;&lt;code&gt;list-style-position: inside|outside&lt;/code&gt; now supported&lt;/li&gt;
&lt;li&gt;&lt;code&gt;font-family&lt;/code&gt; accepts multiple fallback fonts&lt;/li&gt;
&lt;li&gt;Better behavior with custom &lt;code&gt;@font-face&lt;/code&gt; and relative font sizes (&lt;code&gt;rem&lt;/code&gt;, &lt;code&gt;px&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These refinements bring the output closer to what designers expect from modern HTML/CSS rendering.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;polished-pdf-output&#34;&gt;Polished PDF Output&lt;/h2&gt;
&lt;p&gt;PDF metadata has been updated to use ISO-formatted dates, and new metadata fields such as &lt;em&gt;Producer&lt;/em&gt; and default color profiles have been added automatically.
These subtle improvements help ensure better interoperability with other PDF tools and workflows.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;reliability-logging--maintenance&#34;&gt;Reliability, Logging &amp;amp; Maintenance&lt;/h2&gt;
&lt;p&gt;You’ll notice better diagnostic information throughout:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;More descriptive log messages&lt;/li&gt;
&lt;li&gt;Multi-run jobs now continue even when earlier runs fail (useful for large builds)&lt;/li&gt;
&lt;li&gt;Safer handling of file attachments and image conversions&lt;/li&gt;
&lt;li&gt;Additional debugging details for developers and power users&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Under the hood, we also performed many small cleanups and documentation improvements to make the Publisher more maintainable in the long run.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;whats-next&#34;&gt;What’s Next&lt;/h2&gt;
&lt;p&gt;We’re already working on the next big milestones:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Rewrite of the dynamic Go runtime library in Rust&lt;/strong&gt; — this will remove the last remaining &lt;code&gt;cgo&lt;/code&gt; dependency, improving performance and portability.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;More unit testing and refactoring&lt;/strong&gt; to keep the core stable and future-proof.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Speed improvements&lt;/strong&gt; across XML, XPath, and rendering.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Extended HTML/CSS support&lt;/strong&gt; for modern layout features.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;More XPath functions&lt;/strong&gt; to make data processing even more powerful.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&#34;thank-you&#34;&gt;Thank You&lt;/h2&gt;
&lt;p&gt;A big thanks to everyone using and testing the speedata Publisher!
Your feedback and real-world examples help guide our development and make the tool better every day.&lt;/p&gt;
&lt;p&gt;If you’d like to follow ongoing work, check out the &lt;a href=&#34;https://github.com/speedata/publisher&#34;&gt;GitHub repository&lt;/a&gt; — and as always, happy publishing!&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>billingcat – invoicing software powered by the speedata Publisher</title>
      <link>https://news.speedata.de/2025/10/07/billingcat/</link>
      <pubDate>Tue, 07 Oct 2025 13:17:04 +0200</pubDate>
      
      <guid>https://news.speedata.de/2025/10/07/billingcat/</guid>
      <description>&lt;p&gt;It has been a while since my last post on this blog.
This time I would like to introduce a project that is a bit different in scope but technically closely related to the speedata Publisher:
billingcat – an open-source application for invoicing and simple customer relationship management.&lt;/p&gt;
&lt;h2 id=&#34;what-is-billingcat&#34;&gt;What is billingcat?&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://billingcat.de&#34;&gt;billingcat&lt;/a&gt; is an open-source project that combines two essential tasks for freelancers and small businesses:
creating invoices (including ZUGFeRD support) and managing customer data in a lightweight CRM.&lt;/p&gt;
&lt;p&gt;The project is currently in the alpha stage and only available in German, but already allows users to create invoices, manage clients, and use their own letterheads for invoices.&lt;/p&gt;

&lt;figure &gt;
    
        
        &lt;img src=&#34;https://news.speedata.de/2025/10/07/billingcat/dashboard.png&#34;  /&gt;
        
    
    
    &lt;div class=&#34;caption&#34;&gt;
        &lt;p&gt;Screenshot billingcat dashboard&lt;/p&gt;
        
    &lt;/div&gt;
    
&lt;/figure&gt;


&lt;h2 id=&#34;connection-to-the-speedata-publisher&#34;&gt;Connection to the speedata Publisher&lt;/h2&gt;
&lt;p&gt;Under the hood, billingcat uses the speedata Publisher to generate ZUGFeRD-compliant PDF/A invoices.
The Publisher handles the PDF generation, embedding of XML data, and layout rendering.&lt;/p&gt;
&lt;p&gt;In the future, billingcat will also use the Publisher for other PDF outputs to take full advantage of its layout and automation features while keeping a simple web-based interface for end users.&lt;/p&gt;

&lt;figure &gt;
    
        
        &lt;img src=&#34;https://news.speedata.de/2025/10/07/billingcat/screenshot-standard-invoice.png&#34;  /&gt;
        
    
    
    &lt;div class=&#34;caption&#34;&gt;
        &lt;p&gt;Screenshot example invoice&lt;/p&gt;
        
    &lt;/div&gt;
    
&lt;/figure&gt;


&lt;h2 id=&#34;looking-ahead&#34;&gt;Looking ahead&lt;/h2&gt;
&lt;p&gt;billingcat is still in its early stages, but the feedback from the first alpha testers has already been very encouraging.
For me, this project is also a great example of how the speedata Publisher can be integrated into other systems to produce high-quality document output – even as part of modern web applications.&lt;/p&gt;
&lt;p&gt;In an upcoming post, I plan to write about a brand-new feature in billingcat: the Letterhead Editor.
It allows users to design their own letterheads and upload custom font files, making it possible to generate personalized layouts without additional coding effort.&lt;/p&gt;
&lt;p&gt;More on that soon here on the blog.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;More information about the project: &lt;a href=&#34;https://billingcat.de&#34;&gt;billingcat.de&lt;/a&gt;&lt;br&gt;
Source code on GitHub: &lt;a href=&#34;https://github.com/billingcat&#34;&gt;github.com/billingcat&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>High speed PDF generation with boxes and glue</title>
      <link>https://news.speedata.de/2025/05/27/highspeedpdfgeneration/</link>
      <pubDate>Tue, 27 May 2025 08:28:23 +0200</pubDate>
      
      <guid>https://news.speedata.de/2025/05/27/highspeedpdfgeneration/</guid>
      <description>&lt;p&gt;This article is not up to date anymore, I will leave it online. Risor is not supported anymore Lua is now the choice of scripting language. I will post a follow-up soon.&lt;/p&gt;
&lt;p&gt;I have been playing with electronic invoices (especially the German and French &lt;a href=&#34;https://www.ferd-net.de/en/&#34;&gt;ZUGFeRD/Factur-X&lt;/a&gt; format) for a while now. The &lt;a href=&#34;https://www.speedata.de/de/&#34;&gt;speedata Publisher&lt;/a&gt; has support for ZUGFeRD since 2017.&lt;/p&gt;
&lt;p&gt;The next step is to make (my other PDF generation software) &lt;a href=&#34;https://boxesandglue.dev&#34;&gt;boxes and glue&lt;/a&gt; work with electronic invoices. For that, I use the new &lt;a href=&#34;https://github.com/boxesandglue/cli&#34;&gt;command line interface&lt;/a&gt; for boxes and glue (which I will describe in a future blog post).&lt;/p&gt;
&lt;p&gt;There only a few things that need to be done to make this work:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You need an XML file that contains the invoice data. This is usually generated by an accounting software. This must be conformant to the ZUGFeRD XML schema (EN 16931-1).&lt;/li&gt;
&lt;li&gt;Attach the XML to the generated PDF.&lt;/li&gt;
&lt;li&gt;Create a visual representation of the invoice data in the PDF.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There is an example of the script at &lt;a href=&#34;https://github.com/boxesandglue/boxesandglue-examples/tree/main/commandline/zugferdinvoice&#34;&gt;GitHub&lt;/a&gt;. Get the software as described on &lt;a href=&#34;https://github.com/boxesandglue/cli&#34;&gt;https://github.com/boxesandglue/cli&lt;/a&gt; and run&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;bag main.rsr
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Which generates a file &lt;code&gt;out0.pdf&lt;/code&gt; from the sample &lt;code&gt;zugferd.xml&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;The console output is something like&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Define font family (name=text,id=0)
Load image (filename=img/logo.pdf)
Load font (filename=../../fonts/crimsonpro/CrimsonPro-Regular.ttf)
Load font (filename=../../fonts/crimsonpro/CrimsonPro-Bold.ttf)
Add attachment (filename=factur-x.xml)
Write image to PDF (filename=img/logo.pdf)
Write font to PDF (filename=../../fonts/crimsonpro/CrimsonPro-Regular.ttf,psname=CrimsonPro-Regular)
Write font to PDF (filename=../../fonts/crimsonpro/CrimsonPro-Bold.ttf,psname=CrimsonPro-Bold)
Output written (filename=out0.pdf,bytes=28073)
finished in 26.91ms
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;27 milliseconds (on my 2021 MacBook Pro) for a PDF is not bad, I guess.
This includes loading fonts and the PDF logo, parsing the XML file and writing the PDF, subsetting and including fonts and attaching the XML file.&lt;/p&gt;
&lt;p&gt;The 27 milliseconds include some startup time, so let me check what happens when I run the script 1000 times (set maxdocuments in the script to 1000):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
finished in 14224.74ms
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is about 14 milliseconds for one document or approximately 70 documents per second.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Version 5 Released</title>
      <link>https://news.speedata.de/2025/03/12/version-5-released/</link>
      <pubDate>Wed, 12 Mar 2025 14:43:15 +0100</pubDate>
      
      <guid>https://news.speedata.de/2025/03/12/version-5-released/</guid>
      <description>&lt;p&gt;Almost five years after releasing version 4.0 of the &lt;a href=&#34;https://www.speedata.de/&#34;&gt;speedata Publisher&lt;/a&gt;, it is time for version 5.0. This is a short announcement, since most changes have been covered before.&lt;/p&gt;
&lt;p&gt;The speedata Publisher looks the same since its beginning, but there have been major changes under the hood since version 4:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Integration of HarfBuzz for left to right and right to left text layout, even mixed (bidirectional) typesetting. Support for all kinds of fonts and font features.&lt;/li&gt;
&lt;li&gt;Full accessibility support.&lt;/li&gt;
&lt;li&gt;A rewritten XML and XPath 2.0 parser.&lt;/li&gt;
&lt;li&gt;Attachment of ZUGFeRD invoices.&lt;/li&gt;
&lt;li&gt;Greatly enhance enhance various subsystems such as HTML, MetaPost integration and paragraph builder.&lt;/li&gt;
&lt;li&gt;SAAS available with the speedata Pro plan.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There have been a few entries here in the blog (&lt;a href=&#34;https://news.speedata.de/2024/01/08/new_version_4_16/&#34;&gt;4.16&lt;/a&gt;, &lt;a href=&#34;https://news.speedata.de/2024/04/22/release-speedata-publisher-4-18/&#34;&gt;4.18&lt;/a&gt;, &lt;a href=&#34;https://news.speedata.de/2025/01/15/version-4-20-release/&#34;&gt;4.20&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Some statistics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;There are 246 black box tests to check that all existing layouts keep working as before. This is 132 more than in version 4.&lt;/li&gt;
&lt;li&gt;A bit more than 220 development releases and 10 stable releases between 4.0 and 5.0&lt;/li&gt;
&lt;li&gt;906 commits since 4.0&lt;/li&gt;
&lt;li&gt;Git stat tells me: 989 files changed, 66328 insertions, 18099 deletions&lt;/li&gt;
&lt;li&gt;More than 250 closed bug reports.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This would not be possible without all the bug reports and helpful comments from the users. So thank you very much!&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>speedata Publisher and AI</title>
      <link>https://news.speedata.de/2025/02/04/speedatapublisherai/</link>
      <pubDate>Mon, 03 Feb 2025 20:58:20 +0100</pubDate>
      
      <guid>https://news.speedata.de/2025/02/04/speedatapublisherai/</guid>
      <description>&lt;p&gt;Don&amp;rsquo;t worry, the speedata Publisher will not gain any half-baked, annoying artificial intelligence features.
This post is about chatting with some of the more famous AI chats (ChatGPT, Google Gemini, DeepSeek).
I have tried to find out how good these AI chats know the speedata Publisher and if they can help users to generate a layout.&lt;/p&gt;
&lt;p&gt;There is still a long road ahead, but read on. A big &lt;strong&gt;warning&lt;/strong&gt; upfront: None the following outputs work. Do not use them. I post abbreviated transcripts of the chats.&lt;/p&gt;
&lt;p&gt;Table of contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#chat-gpt&#34;&gt;Chat GPT&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#google-gemini&#34;&gt;Google Gemini&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#deepseek&#34;&gt;DeepSeek&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#conclusion&#34;&gt;Conclusion&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;chat-gpthttpschatgptcom&#34;&gt;&lt;a href=&#34;https://chatgpt.com&#34;&gt;Chat GPT&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;me&lt;/strong&gt;: Do you know the speedata Publisher?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ChatGPT:&lt;/strong&gt; Yes! Speedata Publisher is an open-source automated publishing system designed for high-volume and complex document generation, especially for structured data like catalogs, financial reports, and technical documents. It uses XML and Lua to define document layouts and logic, making it highly customizable for professional publishing needs.&lt;/p&gt;
&lt;p&gt;It’s particularly useful when you need precise typography and layout control, similar to tools like TeX or InDesign scripting, but optimized for structured data.&lt;/p&gt;
&lt;p&gt;Are you considering using it for a project?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;me:&lt;/strong&gt; can you generate a simple layout for the speedata publisher just printing a &amp;ldquo;hello chatgpt&amp;rdquo;?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ChatGPT:&lt;/strong&gt; Sure! Here’s a simple Speedata Publisher layout file that prints &amp;ldquo;Hello ChatGPT&amp;rdquo; on a page. Save this as an XML file and run it with Speedata Publisher.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;document&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;https://www.speedata.de/2012/publisher/en&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;setup&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;pagelayout&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;mainlayout&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;lt;positioningarea&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;width=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;210mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;height=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;297mm&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                &lt;span class=&#34;nt&#34;&gt;&amp;lt;text&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;top=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;50mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;left=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;50mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;fontsize=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;20pt&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                    Hello ChatGPT
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                &lt;span class=&#34;nt&#34;&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;lt;/positioningarea&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;/pagelayout&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/setup&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;record&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;page&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;lt;usepagelayout&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;mainlayout&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;/page&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/record&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/document&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Explanation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Defines a page layout (mainlayout) of A4 size.&lt;/li&gt;
&lt;li&gt;Places &amp;ldquo;Hello ChatGPT&amp;rdquo; at 50mm from the top and left.&lt;/li&gt;
&lt;li&gt;Creates a record that generates a page using the defined layout.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Would you like to extend this with styles, different fonts, or dynamic content? 🚀&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;me:&lt;/strong&gt;
The speedata Publisher needs a data file, can you show it to me as well?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ChatGPT:&lt;/strong&gt; You&amp;rsquo;re absolutely right! Speedata Publisher requires a data file along with the layout. Here’s a minimal data file to use with the previous layout:&lt;/p&gt;
&lt;p&gt;data.xml&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;data&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;text&amp;gt;&lt;/span&gt;Hello ChatGPT&lt;span class=&#34;nt&#34;&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/data&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Updated Layout File (layout.xml)&lt;/p&gt;
&lt;p&gt;Now, let&amp;rsquo;s modify the layout to fetch data dynamically instead of hardcoding the text:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;document&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;https://www.speedata.de/2012/publisher/en&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;setup&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;pagelayout&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;mainlayout&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;lt;positioningarea&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;width=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;210mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;height=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;297mm&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                &lt;span class=&#34;nt&#34;&gt;&amp;lt;text&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;top=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;50mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;left=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;50mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;fontsize=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;20pt&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                    &lt;span class=&#34;nt&#34;&gt;&amp;lt;value&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;select=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                &lt;span class=&#34;nt&#34;&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;lt;/positioningarea&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;/pagelayout&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/setup&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;record&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;element=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;data&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;page&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;lt;usepagelayout&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;mainlayout&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;/page&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/record&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/document&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;How it Works:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;data.xml contains the text inside a &lt;code&gt;&amp;lt;text&amp;gt;&lt;/code&gt; element.&lt;/li&gt;
&lt;li&gt;The layout file dynamically fetches the text using &lt;code&gt;&amp;lt;value select=&amp;quot;text&amp;quot;/&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;When you run Speedata Publisher with both files, it will output &amp;ldquo;Hello ChatGPT&amp;rdquo;.&lt;/li&gt;
&lt;/ol&gt;
&lt;!--
Would you like any modifications, such as custom fonts or multiple text elements? 😊

**me:** How do I start the speedata Publisher?

**ChatGPT:** To start Speedata Publisher, follow these steps:

1. Download &amp; Install Speedata Publisher
 *	Get it from the official site: https://www.speedata.de/en/publisher/download
 *	Extract or install it based on your OS (Windows, macOS, Linux).

2. Prepare Your Files

Make sure you have:
 *	layout.xml (your layout file)
 *	data.xml (your data file)

Both should be in the same folder.

3 Run Speedata Publisher

Open a terminal or command prompt and navigate to the folder where your files are stored. Then run:

```sh
speedata-publisher layout.xml
```

or if installed locally:

```sh
./speedata-publisher layout.xml
```
4 Check the Output

* By default, it generates a PDF file in the same folder.
* Open the generated PDF and verify the result.

--&gt;
&lt;p&gt;&amp;hellip;&lt;/p&gt;
&lt;h2 id=&#34;google-geminihttpsgeminigooglecomapp&#34;&gt;&lt;a href=&#34;https://gemini.google.com/app&#34;&gt;Google Gemini&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;me:&lt;/strong&gt; do you know the speedata Publisher?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gemini:&lt;/strong&gt; Yes, I do!&lt;/p&gt;
&lt;p&gt;Speedata Publisher is a powerful and versatile typesetting software that&amp;rsquo;s particularly well-suited for creating complex documents with a high degree of automation. It&amp;rsquo;s known for its ability to handle large volumes of data and produce professional-quality output.  &lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s what I know about Speedata Publisher:&lt;/p&gt;
&lt;p&gt;[&amp;hellip;]&lt;/p&gt;
&lt;!--
*	Focus on Automation: Speedata excels at automating the typesetting process. It can take data from various sources (like databases or XML files) and automatically generate documents like catalogs, reports, and brochures.  
*	Rule-Based Typesetting: It uses a rule-based approach, allowing you to define precise formatting rules that are applied consistently throughout your documents. This ensures a uniform look and feel, even with large amounts of data.  
*	XML-Based: Speedata works with XML as its primary input format, making it ideal for workflows that involve structured data.
*	Open Source: It&#39;s open-source software, which means it&#39;s free to use and modify. This also fosters a strong community around the software.  
*	Command-Line Interface: Speedata is primarily used through a command-line interface, giving you a lot of control and making it easy to integrate into automated workflows.  
Do you have any specific questions about Speedata Publisher that I can help you with? For example, I can try to answer questions about:
*	Its features and capabilities
*	How it compares to other typesetting software
*	Where to find documentation and support
*	Use cases and examples
--&gt;
&lt;p&gt;I&amp;rsquo;m ready to assist you further! Just let me know what you&amp;rsquo;d like to know.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;me:&lt;/strong&gt; can you generate a simple layout for the speedata publisher just printing a &amp;ldquo;hello gemini&amp;rdquo;?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gemini:&lt;/strong&gt;&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-8&amp;#34;?&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;document&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;http://speedata.org/2021/03/speedata&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;layout&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;page&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;lt;frame&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;x=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;1cm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;y=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;1cm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;width=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;10cm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;height=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;2cm&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;text&amp;gt;&lt;/span&gt;Hello Gemini&lt;span class=&#34;nt&#34;&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;lt;/frame&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/page&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;/layout&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/document&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Explanation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;/code&gt;: Standard XML declaration.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;document xmlns=&amp;quot;http://speedata.org/2021/03/speedata&amp;quot;&amp;gt;&lt;/code&gt;: The root element, declaring the Speedata namespace. This is crucial.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;layout&amp;gt;&lt;/code&gt;: Contains the layout definition.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;page&amp;gt;&lt;/code&gt;: Defines a single page. You can have multiple &lt;code&gt;&amp;lt;page&amp;gt;&lt;/code&gt; elements for multi-page documents.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;frame x=&amp;quot;1cm&amp;quot; y=&amp;quot;1cm&amp;quot; width=&amp;quot;10cm&amp;quot; height=&amp;quot;2cm&amp;quot;&amp;gt;&lt;/code&gt;: Defines a rectangular area on the page.
&lt;ul&gt;
&lt;li&gt;x and y attributes specify the top-left corner&amp;rsquo;s position (1cm from the left and 1cm from the top).&lt;/li&gt;
&lt;li&gt;width and height define the dimensions of the frame.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;text&amp;gt;Hello Gemini&amp;lt;/text&amp;gt;&lt;/code&gt;: The content to be printed within the frame.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;How to use this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Save: Save this code as an XML file (e.g., hello.xml).&lt;/li&gt;
&lt;li&gt;Run Speedata: Open a terminal or command prompt and navigate to the directory where you saved the file. Then, run Speedata Publisher using the command: &lt;code&gt;speedata hello.xml&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;This will generate a PDF file (usually named hello.pdf) containing your &amp;ldquo;Hello Gemini&amp;rdquo; text.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Key improvements and considerations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Namespace: The xmlns attribute in the &lt;code&gt;&amp;lt;document&amp;gt;&lt;/code&gt; tag is essential for Speedata to understand the XML structure.&lt;/li&gt;
&lt;li&gt;Units: Using units like cm (centimeters) is good practice for defining sizes and positions. Speedata supports various units (mm, in, pt, etc.).&lt;/li&gt;
&lt;li&gt;Frame: The &lt;code&gt;&amp;lt;frame&amp;gt;&lt;/code&gt; element is important for positioning content precisely. Without it, the text might be placed at the default position.&lt;/li&gt;
&lt;li&gt;Error Handling: If you encounter errors, double-check the XML syntax and make sure Speedata is installed correctly. The command-line output will often provide clues about the problem.
This example provides a very basic layout. Speedata Publisher is capable of much more complex layouts with sophisticated formatting, data integration, and conditional rules. If you have more specific layout requirements, let me know, and I&amp;rsquo;ll do my best to help you create the appropriate Speedata code.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;deepseekhttpswwwdeepseekcom&#34;&gt;&lt;a href=&#34;https://www.deepseek.com&#34;&gt;DeepSeek&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;me:&lt;/strong&gt; do you know the speedata publisher?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DeepSeek:&lt;/strong&gt; Yes, Speedata Publisher is a specialized software tool designed for automated typesetting and layout generation, particularly for complex documents like catalogs, directories, and price lists. It uses a data-driven approach, allowing users to define layouts through XML or JSON data and templates. This makes it highly efficient for handling large datasets and generating consistent, high-quality layouts.&lt;/p&gt;
&lt;p&gt;Key features of Speedata Publisher include:&lt;/p&gt;
&lt;p&gt;[&amp;hellip;]&lt;/p&gt;
&lt;!--
Data-Driven Layouts: It processes structured data (e.g., XML or JSON) to generate layouts, making it ideal for repetitive or data-heavy documents.
Automation: It automates the typesetting process, reducing manual effort and ensuring consistency across large documents.
Customizable Templates: Users can create templates to define the design and structure of the document.
PDF Output: It generates print-ready PDFs, suitable for professional publishing.
Open Source: Speedata Publisher is open-source, allowing users to modify and extend its functionality.
It’s particularly popular in industries like retail, e-commerce, and publishing, where managing large volumes of product data and generating catalogs or price lists is a common requirement. If you have specific questions about its usage or features, feel free to ask!
--&gt;
&lt;p&gt;&lt;strong&gt;me:&lt;/strong&gt; can you generate a simple layout for the speedata publisher just printing a &amp;ldquo;hello deepseek&amp;rdquo;?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DeepSeek:&lt;/strong&gt; Certainly! Below is a simple example of how you can create a layout in Speedata Publisher to print &amp;ldquo;Hello Deepseek&amp;rdquo;. This example assumes you have a basic understanding of XML and how Speedata Publisher works.
Step 1: Create the Data File (data.xml)
This file contains the data you want to display in your layout.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-8&amp;#34;?&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;data&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;message&amp;gt;&lt;/span&gt;Hello Deepseek&lt;span class=&#34;nt&#34;&gt;&amp;lt;/message&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/data&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Step 2: Create the Layout File (layout.xml)
This file defines the layout and how the data should be displayed.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-8&amp;#34;?&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;Layout&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;xmlns=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:speedata.de:2009/publisher/en&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;na&#34;&gt;xmlns:sd=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:speedata:2009/publisher/functions/en&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;c&#34;&gt;&amp;lt;!-- Define a page template --&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;Pageformat&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;width=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;210mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;height=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;297mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt; &lt;span class=&#34;c&#34;&gt;&amp;lt;!-- A4 size --&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;DefinePage&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;main&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;width=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;210mm&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;height=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;297mm&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;PlaceObject&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;column=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;1&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;row=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;1&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;lt;Textblock&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                &lt;span class=&#34;nt&#34;&gt;&amp;lt;Paragraph&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                    &lt;span class=&#34;nt&#34;&gt;&amp;lt;Value&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;select=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;/data/message&amp;#34;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt; &lt;span class=&#34;c&#34;&gt;&amp;lt;!-- Insert the message from the data file --&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Paragraph&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Textblock&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;/PlaceObject&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/DefinePage&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;c&#34;&gt;&amp;lt;!-- Start the layout with the &amp;#34;main&amp;#34; page --&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;Record&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;element=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;data&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;ClearPage&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;UsePage&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;main&amp;#34;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Record&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/Layout&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Step 3: Run Speedata Publisher&lt;/p&gt;
&lt;p&gt;To generate the PDF, run the Speedata Publisher command with the data and layout files:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sp data.xml layout.xml
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will produce a PDF file with &amp;ldquo;Hello Deepseek&amp;rdquo; printed on an A4-sized page.
Explanation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;data.xml: Contains the message &amp;ldquo;Hello Deepseek&amp;rdquo; in a structured format.&lt;/li&gt;
&lt;li&gt;layout.xml: Defines the layout, including the page size (A4) and where the message should be placed (column 1, row 1).&lt;/li&gt;
&lt;li&gt;Speedata Command: The sp command processes the data and layout files to generate the PDF.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;conclusion&#34;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;The correct answer would be something like this:&lt;/p&gt;
&lt;p&gt;The data.xml file:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;data&amp;gt;&lt;/span&gt;Hello world!&lt;span class=&#34;nt&#34;&gt;&amp;lt;/data&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;and the layout file (layout.xml)&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;Layout&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;na&#34;&gt;xmlns=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:speedata.de:2009/publisher/en&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;na&#34;&gt;xmlns:sd=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;urn:speedata:2009/publisher/functions/en&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;Record&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;element=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;data&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;PlaceObject&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;lt;Textblock&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;Paragraph&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;          &lt;span class=&#34;nt&#34;&gt;&amp;lt;Value&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;select=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;.&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Paragraph&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Textblock&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/PlaceObject&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;lt;/Record&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;/Layout&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;and to run the speedata Publisher, just call &lt;code&gt;sp&lt;/code&gt;  on the command line.&lt;/p&gt;
&lt;p&gt;To be honest: all three chat AI gave really bad answers. The ChatGPT and the Gemini answers were totally useless, the DeepSeek AI gave a bit better answer, at least it outputs some commands that are actually part of the speedata Publisher layout language.&lt;/p&gt;
&lt;p&gt;I know that the speedata Publisher is a niche product where you cannot find many examples on the web. So it is hard for the limited AI data models to output anything useful. I was impressed by DeepSeek that it outputs at least a few sensible speedata Publisher commands. I should re-visit the chats in a few years and update this blog entry.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Electronic invoices</title>
      <link>https://news.speedata.de/2025/01/21/einvoicing/</link>
      <pubDate>Tue, 21 Jan 2025 11:34:52 +0100</pubDate>
      
      <guid>https://news.speedata.de/2025/01/21/einvoicing/</guid>
      <description>&lt;p&gt;&lt;em&gt;The following text is written from a German perspective. This should apply to all parts of the European Union, although with likely differences in other countries.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Since the beginning of 2025, all companies in Germany have had to send and receive electronic invoices (with overriding deadlines and a few exceptions). This affects me too, so I asked myself (out of curiosity), what is an electronic invoice and how can I process it?&lt;/p&gt;
&lt;h2 id=&#34;e-invoice&#34;&gt;E-invoice&lt;/h2&gt;
&lt;p&gt;An e-invoice is defined in the EN 16931 standard. This consists of several parts:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;the first part of the standard describes in general terms how an invoice must be structured. For example, a seller must be specified, the types of VAT are defined and the necessary and optional contents of an invoice are described. There is also a series of (business) rules that check the semantic validity of an invoice.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The second part consists of an analysis of various existing XML standards with regard to compatibility with the first part of the standard. The result of this analysis is that there are two allowed XML standards: CII and UBL (which are two different standards but &lt;a href=&#34;https://groups.oasis-open.org/higherlogic/ws/public/document?document_id=57887&#34;&gt;have the same roots&lt;/a&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;the third part describes an assignment of the invoice terms to the XML elements of the CII or UBL implementations.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;zugferd-and-factur-x--cii&#34;&gt;ZUGFeRD and Factur-X / CII&lt;/h2&gt;
&lt;p&gt;The German &lt;a href=&#34;https://www.ferd-net.de&#34;&gt;ZUGFeRD&lt;/a&gt; and the French &lt;a href=&#34;https://fnfe-mpe.org&#34;&gt;Factur-X&lt;/a&gt; are identical standards that are based on CII (cross industry invoice). These are hybrid formats that have a human-readable and a machine-readable part, implemented as a PDF document with an XML attachment. The invoice visible in the PDF is also saved as XML in the attachment:&lt;/p&gt;

&lt;figure &gt;
    
        
        &lt;img src=&#34;https://news.speedata.de/2025/01/21/einvoicing/theyarethesamepicture@0.5x.png&#34;  /&gt;
        
    
    
&lt;/figure&gt;


&lt;h2 id=&#34;ubl&#34;&gt;UBL&lt;/h2&gt;
&lt;p&gt;UBL based invoices (&lt;a href=&#34;https://groups.oasis-open.org/communities/tc-community-home2?CommunityKey=556949c8-dac8-40e6-bb16-018dc7ce54d6&#34;&gt;Universal Busines Language&lt;/a&gt;, defined in ISO 19845 by OASIS) is a different approach to electronic invoicing. Many countries have ULB based invoices (or a subset of it), for example Denmark has OIOUBL, Norways EHF and you can find many more such examples.&lt;/p&gt;
&lt;p&gt;In Germany, UBL based invoices are popular in government agencies, not so much among b2b invoices.&lt;/p&gt;
&lt;h2 id=&#34;xrechnung&#34;&gt;XRechnung&lt;/h2&gt;
&lt;p&gt;There is yet another invoicing standard in Germany which might lead to confusion. The &lt;a href=&#34;https://en.e-rechnung-bund.de&#34;&gt;XRechnung standard&lt;/a&gt; is based on both ZUGFeRD CII and UBL format. It also defines some further business rules which are important for government agencies.&lt;/p&gt;
&lt;h2 id=&#34;peppol&#34;&gt;Peppol&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://en.wikipedia.org/wiki/PEPPOL&#34;&gt;Peppol (Pan-European Public Procurement OnLine)&lt;/a&gt; is a set of applications which includes electronic invoicing (based on the UBL standard). Many countries around the world implement the Peppol standard, see the &lt;a href=&#34;https://peppol.org/learn-more/country-profiles/&#34;&gt;country profiles list&lt;/a&gt; on &lt;a href=&#34;https://peppol.org&#34;&gt;peppol.org&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;other-countries&#34;&gt;Other Countries&lt;/h2&gt;
&lt;p&gt;There are several sites on the internet that show the standards for electronic invoicing regulations for a lot of countries around the world, for example the page at &lt;a href=&#34;https://edicomgroup.com/electronic-invoicing/&#34;&gt;edicomgroup.com/electronic-invoicing&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;zugferd-and-ubl-based-xml&#34;&gt;ZUGFeRD (and UBL based) XML&lt;/h2&gt;
&lt;p&gt;How does an XML for the ZUGFeRD/Factur-X format look like? This is described in detail in the documentation which can be downloaded from &lt;a href=&#34;https://www.ferd-net.de/download-zugferd&#34;&gt;ferd-net&lt;/a&gt;. ZUGFeRD comes in several “conformance levels” (profiles), the EN16931 level should be used for electronic invoices. There are some examples at &lt;a href=&#34;https://github.com/ZUGFeRD/corpus/tree/master/XML-Rechnung/CII&#34;&gt;https://github.com/ZUGFeRD/corpus/tree/master/XML-Rechnung/CII&lt;/a&gt;. See the other directories for UBL based invoices.&lt;/p&gt;
&lt;h2 id=&#34;attaching-an-electronic-invoice-to-a-pdf&#34;&gt;Attaching an electronic invoice to a PDF&lt;/h2&gt;
&lt;p&gt;The ZUGFeRD format is (as described) a PDF with an attached XML. The PDF must conform to the PDF/A-3 standard and also include some special metadata. Both are described in the ZUGFeRD documentation.&lt;/p&gt;
&lt;p&gt;Attaching a ZUGFeRD invoice with the speedata Publisher is very easy. Just call &lt;code&gt;&amp;lt;AttachFile&amp;gt;&lt;/code&gt;  with the type &lt;code&gt;ZUGFeRD invoice&lt;/code&gt; and the speedata Publisher does the rest automatically. See the&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;AttachFile&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;description=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;Electronic invoice&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;na&#34;&gt;type=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;ZUGFeRD invoice&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;na&#34;&gt;filename=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;invoice.pdf&amp;#34;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;development&#34;&gt;Development&lt;/h2&gt;
&lt;p&gt;I have setup the site &lt;a href=&#34;https://erechnung.berlin&#34;&gt;erechnung.berlin&lt;/a&gt; (in German) mainly for my own purposes to &lt;a href=&#34;https://erechnung.berlin/check/&#34;&gt;check and visualize&lt;/a&gt; ZUGFeRD files and to show a hierarchical &lt;a href=&#34;https://erechnung.berlin/cii/&#34;&gt;list of all allowed XML elements&lt;/a&gt; and their cardinality. The checker uses &lt;a href=&#34;https://github.com/speedata/einvoice&#34;&gt;a Go library&lt;/a&gt; to read the XML file and is implemented as a WASM program, so it runs in the browser and does not transfer any data to a server.&lt;/p&gt;
&lt;h2 id=&#34;conclusion&#34;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;The whole topic “e-invoices” looks complicated, but once the sender and the receiver have setup a process for these XML files, many new applications for automation can be developed. As a simple example, the banking account number and the due payable amount are stored in well known fields, so you might be able to drop an electronic invoice on the banking software which creates a money transfer template for you.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>