Repository navigation
Releases
thai-docx 0.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
repaircounts 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
checkshows one, everywhere.profile listno 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 underomitted.profile import,repair's refusal of an element nested too deep, andrepair'sfontwarning show a name the same way, and a profile file named in bytes that are not UTF-8 no longer ends Python'sprofile listin an error. checksays 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
fontandlayoutwarningsrepairgives, and only those. - The tag check reads
PROMPT.th.mdwith 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-numberingdocument's list of figures as the table of contents; whatrepairkeeps and what it reads from a part's bytes; andSECURITY.mdsets 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
repairhad 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.4thai-docx 0.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'sfont, a heading style'sfont-familyandrepair --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 --fontis 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
repairwrites 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.yamlholds one change to one tracked file for each, andtools/run_mutants.pyplants 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 onubuntu-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.3thai-docx 0.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.
checkreportsorderthere only when a tracked change'sw:rPrChangeis not last, andrepairmoves 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'sfont, a heading style'sfont-familyorrepair --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. grillsends a .docx tocheck. 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_languagein 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 combinefails on a data file it cannot read.package_skill.py --tagrefuses 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
buildon 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.2thai-docx 0.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.
--indentwith no body paragraph "changed nothing";--heading-numbers,--table-sizeand--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
grilland in PROMPT.md alike. A request about a .docx the user has goes tocheck. - Security.
- A profile folder that is a link (
.thai-docxor.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. checkreads 4,000 runs nested in each other in about a second, not 43.
- A profile folder that is a link (
repairwrites 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_signersthat the maintainer's account lists; av*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.1and the tag with (in a clone):
git -c gpg.ssh.allowedSignersFile=.github/allowed_signers tag -v v0.3.1The full list is in CHANGELOG.md.
thai-docx 0.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-languagenames 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
thesisprofile centres a picture alone on its line and boxes its caption to it, never narrower than 3 inches. --align thaiis for the body alone: a table cell or a boxed caption no longer spreads its letters.
- A picture fits the line its paragraph leaves it, with
- 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.
checkandrepair.checksays which way a document's numbers are made (numbering:automatic,written,mixedornone), 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,
repairwarns 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.
grillreads 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.0The full list is in CHANGELOG.md.
thai-docx 0.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
checkreads the whole package.- It finds parts as Word does, by the package's relationships, so a first-page header named
headerFirst.xmlis 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.
repairputs right each of these.
- It finds parts as Word does, by the package's relationships, so a first-page header named
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 exportmakes no folders.- A run leaves one
.pycat most, and none underpython3 -B. - A
C:\…picture path is read as a path. - A refused picture is named.
repairsays it wrote a complex-script font only where it did.
- The build says when a flag reached nothing.
--force-cs-whole-docon a Thai-only document, and--thai-languagewith 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, andmailto:is part of its link. - An
&at a URL's end is left out of the link. ftp://andxmpp:stay text.- Footnote labels match in any case.
- A Thai domain (
- 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.2The full list is in CHANGELOG.md.
v0.2.1
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).
buildandrepairnever 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. -
repairreads 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 answeredok, 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,httpsormailto; 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 ownthesissays 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.yamlnaming its test.
The full list is in CHANGELOG.md.
v0.2.0
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-dockeeps the old shape
for a finished document read in one font. - The Thai language is written only when
--thai-languageasks (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-numberinghands 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
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 savereports"replaced", asprofile importalready 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 thatbuild,profile saveandprofile importreplace 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
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 holdsthai-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|PATHfor a build, andthai_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;exportwrites the
file to hand to someone,importtakes 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:andFigure:
paragraphs become captions numbered by chapter ("ตารางที่ 1-1");<!-- toc -->,
<!-- list-of-tables -->and<!-- list-of-figures -->place the lists;
--chapter-label,--table-label,--figure-labelchange the words;
<!-- appendices -->letters its headings "ภาคผนวก ก" and captions "ตารางที่ ก-1";
--front-page-numbersand--appendix-numberschoose 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, theHyperlinkstyle andNormalname the document's font, size and complex-script
flag, so an application that does not readw:docDefaultsstill 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-6take 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 TEXTand--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;equalstays 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 SETTINGgives a setting
of a profile back to its default, onbuild --profileandprofile 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--tocwould 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'sheading-nsets. --align thaispreads Thai lines only: a paragraph with no Thai stays left-aligned, and the
line before a hard break is not spread letter by letter.