Skip to content

Releases

thai-docx 0.3.4

Choose a tag to compare

@sayam sayam released this 09 Oct 12:56
v0.3.4

No golden moves. A build writes the bytes 0.3.0 wrote from the same Markdown and flags, so what the five applications showed on 0.3.0's bytes holds (record). This release fixes what the reviews of the code and the documentation audit found. Each fix is held by a test that fails without it, and each C1 test by a mutant that shows it failing on every pull request and at the tag.

The main changes

  • repair counts the faults it would write, not their kinds. It writes nothing when its own checker finds one more fault of a code in a part than the input had; it had compared the codes of each part as a set.
  • A name a file supplies is shown as check shows one, everywhere. profile list no longer hands the agent a folder's file names, paths and titles as they are, and lists at most 100 rows of a place, counting the rest under omitted. profile import, repair's refusal of an element nested too deep, and repair's font warning show a name the same way, and a profile file named in bytes that are not UTF-8 no longer ends Python's profile list in an error.
  • check says a font's name that begins or ends with a space, once for one name in one place, and looks the name up without it.
  • SKILL.md says what an agent says. A setting asked for without a value ("add page numbers") takes its named default and is never asked about, and the answer after a repair names the new file and passes on the font and layout warnings repair gives, and only those.
  • The tag check reads PROMPT.th.md with the other pages that name the release archive.
  • The pages say what was seen: the Gemini app reads the skill's instructions but writes the Word file its own way, so the skill cannot make or check a file there; Word for the web rewrites an --auto-numbering document's list of figures as the table of contents; what repair keeps and what it reads from a part's bytes; and SECURITY.md sets a time to fix a confirmed vulnerability by its severity.
  • Model equivalence. On the sentence about a setting asked for without a value, Sonnet and Opus passed every case and Haiku asked the font alone in five runs of six, where it had asked where the page numbers go (record). On the sentence about the answer after a repair, run on Haiku alone, no run said a warning repair had not given in the eleven that repaired (record).

A Windows with no Thai language installed was not read for this release.

Verify a download with:

gh attestation verify thai-docx-0.3.4.zip --repo sayam/thai-docx-skill \
  --signer-workflow sayam/thai-docx-skill/.github/workflows/release.yml --source-ref refs/tags/v0.3.4

thai-docx 0.3.3

Choose a tag to compare

@sayam sayam released this 03 Oct 02:55
v0.3.3

No golden moves. A build writes the bytes 0.3.0 wrote from the same Markdown and flags, so what the five applications showed on 0.3.0's bytes holds (record). This release fixes what the review of the code and the documentation audit found. Each fix is held by a test that fails without it, and from this release on, by a mutant that shows it failing on every pull request and at the tag.

The main changes

  • A font's name is written without a space at either end, and said as given. A name cut to 31 characters no longer keeps the space it was cut at, and a name typed with a space at either end is written without it, from --font, a profile's font, a heading style's font-family and repair --font. The warning names the name given, the name written, and any space but U+0020 by its code point; the name given is shown as far as a font's name goes, then ….
  • repair --font is read back as given. A tab or a line break in the name is written as the build writes it, so the name read from the repaired file is the name given.
  • SKILL.md says what an agent does with a font and with a repaired file. A font the user names is built as named, whatever it is, with the build's warnings passed on; the file repair writes stays beside the user's own, never moved, renamed or copied over it, and is named in the answer.
  • Every C1 test is shown to fail on every pull request and at the tag. tools/mutants.yaml holds one change to one tracked file for each, and tools/run_mutants.py plants each in a copy of the tree; a mutant that survives fails the job (ADR 0042).
  • A commit is written under an address that signed it. The address in a commit's author field must be one of its sign-offs.
  • Every job runs on ubuntu-24.04, where the release zip and its attestation were proven, not on ubuntu-latest, which GitHub moves to Ubuntu 26 from 2026-10-19.
  • Model equivalence. Runs of Haiku, Sonnet and Opus on the text this release changed where an agent reads it: 23 of 23 files byte for byte, no run put a file over the user's own after a repair, no run asked which font when the user had named one (record).

Verify a download with:

gh attestation verify thai-docx-0.3.3.zip --repo sayam/thai-docx-skill \
  --signer-workflow sayam/thai-docx-skill/.github/workflows/release.yml --source-ref refs/tags/v0.3.3

thai-docx 0.3.2

Choose a tag to compare

@sayam sayam released this 30 Sep 01:03
v0.3.2

No golden moves. A build writes the bytes 0.3.0 wrote from the same Markdown and flags, so what the five applications showed on 0.3.0's bytes holds (record). This release fixes what 0.3.1 carried over. Each fix is held by a test that fails without it.

The main changes

  • A run's properties come in any order. The schema of reference is now named, ECMA-376 5th edition (2016), where a run's and a paragraph mark's properties are a choice in any order, and Word 365 for Windows uses every one whatever the order. check reports order there only when a tracked change's w:rPrChange is not last, and repair moves only that (record).
  • A font's name is cut to what Word reads, and said. A name longer than 31 characters, from --font, a profile's font, a heading style's font-family or repair --font, is written as its first 31. A warning names the name given and the name written. A name past 64 characters is refused as before.
  • grill sends a .docx to check. Its answer to a request about a .docx the user has now says so, as SKILL.md already did.
  • A profile is quieter. A profile's thai_language in a document with no Thai is no longer said to have "reached no run".
  • The checks of a release fail where they only warned. coverage combine fails on a data file it cannot read. package_skill.py --tag refuses a tag that the README and the install and command-line guides do not name alone.
  • Model equivalence. 48 runs of Haiku, Sonnet and Opus on the text this release changed where an agent reads it: 18 of 18 files byte for byte, no build on a request to check (record).

Verify a download with:

gh attestation verify thai-docx-0.3.2.zip --repo sayam/thai-docx-skill \
  --signer-workflow sayam/thai-docx-skill/.github/workflows/release.yml --source-ref refs/tags/v0.3.2

thai-docx 0.3.1

Choose a tag to compare

@sayam sayam released this 29 Sep 17:00
v0.3.1

No golden moves. A build writes the bytes 0.3.0 wrote from the same Markdown and flags, so what the five applications showed on 0.3.0's bytes holds (record). This release fixes what the reviews of 0.3.1 found in check, repair, profiles and the pages. Each fix is held by a test that fails without it.

The main changes

  • A flag that reaches nothing says so. --indent with no body paragraph "changed nothing"; --heading-numbers, --table-size and --thai-digits "reached no" heading, table or number, because each may still write what nothing uses. No byte of a built file changes.
  • A setting named without a value is asked. Asked to change the font without saying to what, the agent asks which in one line, and nothing else — in SKILL.md, in grill and in PROMPT.md alike. A request about a .docx the user has goes to check.
  • Security.
    • A profile folder that is a link (.thai-docx or .thai-docx/profiles) is refused, and nothing is written through it.
    • A font a .docx names with a sentence is shown to 31 characters in check's warning, as Word takes a name; a profile's unknown key and a compatibility mode's value are shown as names, never as instructions.
    • check reads 4,000 runs nested in each other in about a second, not 43.
  • repair writes each attribute into the start tag of an element closed with an end tag (<w:rFonts …></w:rFonts>), which it used to refuse with exit 1.
  • The release is bound to a signed tag. It is built only from a tag annotated and signed with a key in .github/allowed_signers that the maintainer's account lists; a v* tag cannot be moved or deleted. The tag is refused until the version's own reading record names each golden on its own line.
  • Every page 0.3.1 touched was checked against the code and its links before the tag.

Verify a download with:

gh attestation verify thai-docx-0.3.1.zip --repo sayam/thai-docx-skill \
  --signer-workflow sayam/thai-docx-skill/.github/workflows/release.yml --source-ref refs/tags/v0.3.1

and the tag with (in a clone):

git -c gpg.ssh.allowedSignersFile=.github/allowed_signers tag -v v0.3.1

The full list is in CHANGELOG.md.

thai-docx 0.3.0

Choose a tag to compare

@sayam sayam released this 28 Sep 01:37
v0.3.0

The goldens move. Most Thai documents are written differently from 0.2.2. The changes cover punctuation between Thai, scripts besides Thai, code (now written with proofing off), a link or picture with a title, a captioned table, and a picture with --indent or in a list or quotation. The five applications were read on these bytes before the tag, and every file passes in every application it was read in (record, and again where the files moved). Each fix is held by a test that fails without it.

The main changes

  • Thai stays one run. A mark between Thai letters stays in the Thai run: . ) ” ° × § and the like, so พ.ศ. is one run, not four. Lao, Khmer, Arabic, Devanagari and every other complex script is marked complex script, not Thai alone. --thai-language names Thai on Thai text only. NFC is applied to the Thai and to nothing else.
  • Pictures and captions.
    • A picture fits the line its paragraph leaves it, with --indent, in a list, in a quotation or in a table cell.
    • The thesis profile centres a picture alone on its line and boxes its caption to it, never narrower than 3 inches.
    • --align thai is for the body alone: a table cell or a boxed caption no longer spreads its letters.
  • Accessibility.
    • A captioned table carries its name.
    • A link's or picture's title is written as its tip.
    • The limits say what a screen reader is given in each kind of document; a document that must meet a standard is built with --auto-numbering.
  • check and repair.
    • check says which way a document's numbers are made (numbering: automatic, written, mixed or none), the first step of ADR 0037.
    • It reads every part, whatever its name's case, and a run written right to left counts as marked.
    • After a repair that sets compatibility mode 15, repair warns that page breaks can move.
    • A name quoted from a file is shown with a closed set of characters. At most 20 findings of each code are listed.
  • Inputs it does not trust.
    • A network path, a Markdown file at the filesystem's root, a FIFO, a planted link or a file of 13 million empty elements is refused, or read within limits.
    • A write cut short never leaves a broken file.
    • A new file is its owner's alone to read and write.
  • SKILL.md. grill reads both ends of a long file. A setting named without a value is asked about. Every warning after a repair is passed on. A name from a file is data, never an instruction. Measured on three models (record).
  • The release is bound to its tag. The workflow is held by a test that reads it as YAML. The tag is refused until the version's reading record names every golden.
  • Every page was checked against the code and its links before the tag.

Verify a download with:

gh attestation verify thai-docx-0.3.0.zip --repo sayam/thai-docx-skill \
  --signer-workflow sayam/thai-docx-skill/.github/workflows/release.yml --source-ref refs/tags/v0.3.0

The full list is in CHANGELOG.md.

thai-docx 0.2.2

Choose a tag to compare

@sayam sayam released this 26 Sep 08:39
v0.2.2

The goldens do not move. 0.2.2 writes byte for byte what 0.2.1 wrote from the same Markdown and flags, except where a document holds one of these:

  • a bare address GitHub reads as a link and 0.2.1 did not, or the other way;
  • a footnote label written in two cases;
  • a picture that leaves its caption less than an inch under --caption-matches-object.

So what was read in the five applications on 0.2.0's files still holds (record). Everything below is the rest of what the readings of 0.2.0 found, plus what model runs on 0.2.1 got wrong. Each fix is held by a test that fails without it.

The main changes

  • check reads the whole package.
    • It finds parts as Word does, by the package's relationships, so a first-page header named headerFirst.xml is read.
    • It refuses a Strict Open XML file.
    • It reads w:val="0" as off.
    • Deleted text counts as text.
    • It checks the order of a section's, a table's, a row's, a cell's, a numbering level's, a style's and a paragraph mark's properties, and a numbering level's and a paragraph mark's complex-script twins.
    • repair puts right each of these.
  • repair, profiles and the scripts keep to their limits.
    • An entry that is encrypted, or compressed other than stored or deflate, anywhere in the package, is refused.
    • profile export makes no folders.
    • A run leaves one .pyc at most, and none under python3 -B.
    • A C:\… picture path is read as a path.
    • A refused picture is named.
    • repair says it wrote a complex-script font only where it did.
  • The build says when a flag reached nothing. --force-cs-whole-doc on a Thai-only document, and --thai-language with no Thai text, each say so.
  • Captions never get less than an inch. A caption hanging indent that would leave less is refused.
  • Bare addresses and footnote labels are read as GitHub reads them.
    • A Thai domain (www.ตัวอย่าง.ไทย) is a link, and mailto: is part of its link.
    • An &amp; at a URL's end is left out of the link.
    • ftp:// and xmpp: stay text.
    • Footnote labels match in any case.
  • SKILL.md names the page-number positions, says the grill message goes untranslated, and says a missing picture is the user's to give — never deleted and never made up. Measured again on Haiku, Sonnet and Opus: eighteen files of eighteen exact (record).
  • The release keeps what it published.
    • An asset already attached is never replaced.
    • Only files git tracks are packed.
    • No CI checkout keeps its token.
    • Seven checks are required on main, plus CodeQL.
    • Release tags cannot be moved or deleted.
  • Every page was checked against what 0.2.2 does, and says what holds.

Verify a download with:

gh attestation verify thai-docx-0.2.2.zip --repo sayam/thai-docx-skill \
  --signer-workflow sayam/thai-docx-skill/.github/workflows/release.yml --source-ref refs/tags/v0.2.2

The full list is in CHANGELOG.md.

v0.2.1

Choose a tag to compare

@sayam sayam released this 26 Sep 04:39

No document changes. 0.2.1 writes byte for byte the files 0.2.0 wrote, so what was read in the five applications on 0.2.0's files holds for it (record). Everything below was found by reading 0.2.0 on the day it was released (record), and each fix is held by a test that fails without it.

The main changes

  • What every command reads, writes and accepts (ADR 0040). build and repair never write over their input. Only regular files are read, each to a ceiling — a FIFO no longer hangs a command. An argument in another encoding is refused the same way in both implementations. Any fault is one JSON line, never a trace.

  • repair reads XML as XML. A cut run keeps the space between Thai and English. A run holding a tab is marked whole. An invisible character inside a Thai word is not a place to cut. It compares the text of every part a reader sees, and writes nothing if its own checker finds a fault the input did not have. A file with nothing to repair is answered ok, with nothing written.

  • The checker judges a part on its bytes. A part in UTF-16 no longer gets past the DOCTYPE refusal. Every limit is tested at its value. A chain of 41 symbolic links can no longer reach a picture outside the Markdown's directory.

  • The build refuses what it would write wrongly: a link to anything but http, https or mailto; a format character or noncharacter; a caption label a field would misread. A list numbered from 0 starts at 0.

  • Profiles: a name is letters, digits, - and _. A save that hides the skill's own thesis says so.

  • The release is bound to its tag: it is built from refs/tags/<tag>, and verified against this workflow and that tag. Verify a download with:

    gh attestation verify thai-docx-0.2.1.zip --repo sayam/thai-docx-skill \
      --signer-workflow sayam/thai-docx-skill/.github/workflows/release.yml --source-ref refs/tags/v0.2.1
  • A finding is closed by the control that holds it (ADR 0041). Every fix is a row of tests/regressions.yaml naming its test.

The full list is in CHANGELOG.md.

v0.2.0

Choose a tag to compare

@sayam sayam released this 24 Sep 00:23

Every document's bytes change in this release, so the office applications of ADR 0012 were read
again. Word 365 for Windows, the reference, passes every item; WPS Writer and Google Docs
pass where they were read. Word for macOS has not been read on these files yet, and LibreOffice
Writer only in one document
: this release went out before those readings, as an exception recorded
in docs/evidence/2026-09-24-what-v0.2.0-was-read-in.md,
which lists what is owed. The rule itself is unchanged.

The main changes

  • thai_docx repair IN.docx OUT.docx — fixes a Word file this skill did not write: the complex-script
    marks, proofing switched off, the missing twins, property order, and the compatibility mode where
    the file declares one. The
    text is never changed, and the file comes back about the size it was.
  • Correctly spelled English is no longer underlined (ADR 0039). A run is marked complex script
    only where its text is; code spans take their own font. --force-cs-whole-doc keeps the old shape
    for a finished document read in one font.
  • The Thai language is written only when --thai-language asks (ADR 0038). That one attribute
    is what made WPS Writer misplace ำ; by default the language now comes from the reader's machine.
  • The build writes every number itself — headings, lists, captions — the same in every
    application. --auto-numbering hands the counting to Word instead, for a document someone will go
    on editing there (ADR 0036).
  • What a file is handed over on is written down once, in references/limits.md, including
    what each application draws its own way. New this release: LibreOffice Writer takes the
    complex-script language from its own setting (Hindi on an English installation) and underlines
    every Thai word until it is set to Thai.
  • The release carries its attestation as a file, thai-docx-0.2.0.intoto.jsonl, to check offline.

The full list is in CHANGELOG.md.

v0.1.1

Choose a tag to compare

@sayam sayam released this 17 Sep 15:33

The documents the skill builds are byte for byte those of 0.1.0 (the goldens are unchanged), so the
checks of ADR 0012 in the office applications carry over.

Changed

  • SKILL.md and references/chapters.md: the optional thesis flags are named only by the words a
    user says for them, and a message that begins with the skill's name keeps those words when it is
    passed to the grill command.
  • profile save reports "replaced", as profile import already did: true when a profile of
    that name was there and the save took its place. Both then also carry a warning saying so. The
    guides warn that build, profile save and profile import replace without asking.
  • The skill's description is 195 characters (was 731), so the skill uploads in the Claude
    apps, which take 200, and ends with the repository's address.
  • Every source file of the skill opens with SPDX copyright and licence lines; the two files ported
    from commonmark.js name BSD-2-Clause and its author too.

Fixed

  • Reading a profile stops one byte past its 64 KiB limit instead of asking the file's size first,
    in both implementations. A file that grew between the two, or has no size at all (/dev/zero),
    made the command read without end; it is now refused as larger than 64 KiB.

thai-docx 0.1.0

Choose a tag to compare

@sayam sayam released this 17 Sep 00:17

The first version. Checked in Word 365 for Windows (desktop and web), Word for macOS, Google
Docs, LibreOffice Writer and WPS Writer (ADR 0012; docs/evidence/2026-09-16-office-check-five-applications.md,
docs/evidence/2026-09-17-word-for-macos.md).

Added

  • thai_docx build IN.md OUT.docx: Markdown (CommonMark with GitHub's tables,
    strikethrough, autolinks, task lists and footnotes) to a .docx that avoids the five
    causes of broken Thai in Word (ADR 0004). The build refuses to write a package that
    fails its own checker or differs from the Markdown by one character (ADR 0023).
  • thai_docx check FILE.docx: reports each of the five causes, invisible characters
    and unreadable or unsafe packages, for a .docx from any generator (ADR 0006, 0017).
  • Two implementations with byte-identical output: Python 3.11+ with the standard
    library only, and one JavaScript file for Node.js or a sandbox (ADR 0008).
  • Default settings announced after every build; grill mode asks nine fixed questions,
    each with fixed choices, first (ADR 0026, restating 0019).
  • thai_docx grill --said "MESSAGE": the script, not the agent, says which mode a request
    is in — the interview starts only when the user's own message holds thai-docx grill
    (ADR 0026).
  • --indent IN: a first-line indent for body paragraphs, none by default (ADR 0026).
  • --page-numbers [top-right|top-center|bottom-center]: where the page number goes;
    top right when no position is given.
  • Profiles (ADR 0024): --profile NAME|PATH for a build, and thai_docx profile list | show | save | export | import. A profile is a JSON file of settings, checked as
    the flags are, found in the project, the user's home or the skill; export writes the
    file to hand to someone, import takes theirs. Grill mode's ninth question keeps the
    answers as one. The script limits are restated for it (ADR 0025, superseding 0011).
  • Reports and theses (ADR 0021): <!-- front -->, <!-- chapters -->, <!-- back -->
    make a next-page section of the cover, every # and each region, front pages counted
    ก ข ค and chapters from 1; chapter headings read "บทที่ 1"; Table: and Figure:
    paragraphs become captions numbered by chapter ("ตารางที่ 1-1"); <!-- toc -->,
    <!-- list-of-tables --> and <!-- list-of-figures --> place the lists;
    --chapter-label, --table-label, --figure-label change the words;
    <!-- appendices --> letters its headings "ภาคผนวก ก" and captions "ตารางที่ ก-1";
    --front-page-numbers and --appendix-numbers choose the number styles.
  • Lists carry their entries (ADR 0027): a table of contents, tables or figures written by
    the build already holds its lines, so Word on the web, Google Docs, LibreOffice Writer and
    WPS Writer show them without a field update; page numbers still need one. Every numbering
    level, the Hyperlink style and Normal name the document's font, size and complex-script
    flag, so an application that does not read w:docDefaults still draws Thai correctly.
  • --chapter-title-on-new-line: "บทที่ 1" keeps its own line and the chapter's title starts
    the next, in the chapters and the appendices; the lists still read one line.
  • Heading styles in the front matter: heading-1 … heading-6 take CSS-like declarations —
    font, size, colour, weight, style, underline, alignment, indents, spacing, page break
    (ADR 0020).
  • --heading-numbers: headings numbered by Word from # down (1., 1.1, 1.1.1), in Thai
    digits with --thai-digits; the heading text is not changed.
  • --header TEXT and --footer TEXT: a line of text centred at the top or bottom of every
    page, above the page number when it shares the place; kept on a first page without
    its number.
  • --no-page-number-first: with --page-numbers, the first page (a cover, or the first
    page of a letter) has no number; the second page shows 2.
  • --paper f14: 8.5 × 13 in (folio) paper, beside A4 and Letter.
  • --landscape: the paper turned sideways; margins keep their sides, and tables and
    images take the wider text width.
  • --thai-digits: page numbers, the table of contents' page numbers, numbered lists and
    footnote marks in Thai digits (๑ ๒ ๓); digits in the text are never changed.
  • --line-spacing N: line spacing from 1 to 3 times single, single by default; code blocks
    and footnotes stay single.
  • --table-size PT: the size of the text in table cells, the body size by default.
  • --table-widths auto: table columns sized by the longest text each holds, every column
    at least a quarter of an equal share; equal stays the default.
  • --no-repeat-table-header: a table's header row appears once instead of at the top
    of every page it runs onto; by default it repeats (ADR 0022).
  • A release archive holding only the skill directory; the gates travel with forks and
    hold every pull request at merge (ADR 0018).
  • Grill from a profile and save as another (ADR 0029): thai-docx grill from thesis save to thesis-v1 (or จาก, บันทึกเป็น; only/เฉพาะ to ask some questions) starts the
    interview from a profile's answers; the grill command gives the questions, the choice each
    setting holds now, and the flags each choice means. --default SETTING gives a setting
    of a profile back to its default, on build --profile and profile save --from.
  • A flag that changed nothing is said out loud (ADR 0028): the build warns when a table,
    caption, region or thesis flag has nothing in the document to act on — exactly when the
    file is the same with the flag as without — and when --toc would add a second table of
    contents beside <!-- toc -->.
  • references/settings.md: every setting, its default and an example flag, generated from
    the settings registry.
  • Step-by-step user guides for thirteen scenarios, from a plain request to editing a saved
    profile, in Thai and English (docs/guide/, linked from the README).
  • The number Word draws for a heading — "บทที่ 1", "1.1", "ภาคผนวก ก" — takes its heading's
    size, font, weight and colour, including what the front matter's heading-n sets.
  • --align thai spreads Thai lines only: a paragraph with no Thai stays left-aligned, and the
    line before a hard break is not spread letter by letter.