Skip to content

thai-docx 0.2.2

Choose a tag to compare

@sayam sayam released this 26 Sep 08:39
· 98 commits to main since this release
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 & 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.