Versions

What changed, and what will not.

Every word on this page comes out of node_modules/truecopy/CHANGELOG.md, the release notes of the version this site itself installs. There is no second copy to fall behind.

npm install truecopy@2.0.29

Every change a caller could notice, and why it was made. The format follows Keep a Changelog; what each number means and when one is published is RELEASING.md.

Entries land here under ## [Unreleased], with no version and no date. A release PR is what stamps them.

[Unreleased]

[2.0.29] - 2026-11-30

Added

  • readTable(file, { sure: true }) says which figures need no second look, into Table.sure. One answer per cell out of everything that can vouch for it: a sum printed on the page that holds exactly, and the confidence at or above CONFIDENT_ABOVE. Neither sums nor confidence has to be on. With figureEdges and pairedParentheses both on, a second model adds to the first: the cut those options make holds cells the first model never learned on, read right and not served. The second one learned on that cut, from the same geometry plus the text of the neighbouring cells, and only ever adds a cell. Measured on 386 tables of annual reports it was never tuned on, with both options: the cells served or proven go from 94.51 % to 96.77 %, right 99.94 % of the time against 99.93 %, and none of the 544 cells added is wrong. It moves no cell, and a reading without the option is unchanged.

[2.0.28] - 2026-11-28

Added

  • readTable(file, { figureEdges: true }) parts two columns of figures the cut left in one cell. A bracket printed apart from its figure fills the gap between two columns set close together, and “( 7,604 ) 3,372” lands in one cell on every row; a column of note references does the same to the figures it sits next to. With the option, a void that comes back ahead of a figure, after a value that was already complete, opens a column - never inside a number printed in groups of three. Measured on 386 tables of annual reports the rule was never tuned on: the cells read wrong and not served fall from 874 to 343, and the cells served or proven by a sum go from 92.00 % to 93.84 %, right 99.93 % of the time against 99.88 %. It moves cells, so it is an option and the default cut is unchanged.

[2.0.27] - 2026-11-27

Added

  • readTable(file, { sums: true }) says which figures a sum printed on the page holds. A table of accounts checks itself: a total is printed under its terms, or to their right, and a misread cell breaks the equality. The option adds sums, each sum that holds exactly with its page, its line, its terms and its total, and proven, laid out like pages: true for a term or a total of one of them. It reads the cells and nothing else, so it works on a PDF, a paste or a CSV alike, and it moves no cell: the reading is the same with it on or off. A proven subtotal stands for its terms, so a grand total is proven over its subtotals.

    What a sum cannot see, it does not prove. It still holds when all its cells change sign together, so it does not answer for a sign that only a detached dash carries. It still holds when the same note reference is glued in front of its total and of a term, so a sum that adds up with and without that leading group proves nothing. A charge printed without its sign makes a sum that holds only once a term is subtracted: that one is believed when a second column holds the same sum on the same rows, a third row for a sum along a row. A total under three digits proves nothing.

    The rule was set on 1,992 tables and then measured once on 386 tables from 87 annual reports gleaned afterwards. There, a sum holds 7,827 of the 21,818 figures and none of them is wrong. Among the 2,050 figures the confidence does not serve, 304 are proven and none is wrong, which takes the figures served or proven from 90.6 % to 92.0 %. On the tuning tables, 43,180 figures proven and 5 marked wrong, all five read right and absent from the tagged truth. Like the confidence, this was measured on annual-report tables rendered to PDF with the default cut.

[2.0.26] - 2026-11-27

Added

  • verify(file, claims) checks the values another reader returned, without reading in its place. A model reading the page image, an extraction API: each value is handed over under the label of its row and gets a standing. confirmed: a row the label names prints the figure. contradicted: the rows that open on the label print other figures, every one read at or above CONFIDENT_ABOVE. not-found: neither, which is not a verdict on the value. verifyValues(table, claims) does the same on a reading you already hold, both are exported from truecopy/verify, and the MCP server carries the check as verify_values. A label is read letter by letter, because a text layer prints Inventor ies; a label of one or two characters names nothing; a torn bracket, a figure grouped two ways at once and a figure printed on a row without a label contradict nothing. It cannot see the column: a figure confirmed on its row may be last year’s.

    Measured on 150 tables from 129 annual reports that no tuning had seen, each transcribed from its page image by two models, every value judged against the tagged figures of the published report. On the 9,829 values of the first model: 7,618 confirmed, 7,615 of them right (99.96 %), and 1 of its 4 wrong values not confirmed. On the 9,797 values of the second: 7,599 confirmed, all right, and its 3 wrong values not confirmed. Under a label, none of the 14,922 confirmations of the two models was wrong; the 3 wrong confirmations were values handed over with no label. A wrong value from a good reader is rare, so right values were also deformed three known ways (one digit, the row above, the sign): of 27,765 and 27,673 such values, 97.40 % were not confirmed for either model. What the check costs: it confirms 77.5 % and 77.6 % of the right values and answers not-found for most of the rest, and it contradicted 9 of 9,825 right values for the first model and 11 of 9,794 for the second (0.09 % and 0.11 %), all in the same two tables, where the cut glued columns of figures grouped by spaces into one cell that was scored as sure. Nothing past that is claimed: annual-report tables rendered to PDF, the default cut, labels as a model reads them.

Fixed

  • verify no longer contradicts a figure a cell prints among others it was glued to. Where thousands are grouped by a space, the space between two columns is the same sign: 253 238 258 024 is this year beside the last, and 23 704 may be the note 23 before 704. A claim that is a run of whole groups of such a cell is now not-found, never contradicted and never confirmed; a negative claimed without its brackets is still contradicted; and a row holding three digits alone behind a zero (075, the tail of a figure the cut tore) contradicts nothing. The rule was written from the 20 right values contradicted above, so those tables do not measure it. On the 240 other tables read by the same two models, no right value was contradicted before or after, and of the 30,730 deformed values contradicted before, 30,697 still are.

[2.0.25] - 2026-11-20

Added

  • readTable(file, { confidence: true }) scores every figure, cell by cell. The doubts speak for a page or a column, and a reading that raises none can still carry a wrong figure. confidence[i][j][k] is about pages[i][j][k]: a number from 0 to 1 for a cell that carries a digit, read off the geometry the cell was built from by a model learned once on cells whose true value was known, then frozen. CONFIDENT_ABOVE is the threshold a figure is served as sure at, fixed before the tables it was judged on were collected. On those tables, 179 from 41 annual reports published outside France, this release serves 9,717 of 10,850 figures as sure and 13 of them are wrong (99.87 % right, 99.76 to 99.95 across issuers), where 463 of the 10,850 are wrong. Off by default, and it moves no cell and no finding. It claims nothing past what was measured: annual-report tables rendered to PDF, cut with the default options. A page that is not a PDF page, a page with no column and a column the cut merged get null, which is no confidence at all and not a low one; with numberEdges none is computed.

Fixed

  • A bracketed figure followed by a minus reads at its own size. The closing bracket stayed in the number, so (123,45)- read -12345 instead of -123,45, with the hyphen as with the minus sign U+2212. The minus outside the brackets now comes off first.

[2.0.24] - 2026-11-14

Fixed

  • The typographic minus sign U+2212 is read as a minus. A statement typeset with it lost its sign: a debit of 123,45 printed that way read as a credit of 123,45, and carriesNumber could then certify it. The number token takes U+2212 wherever it takes the hyphen, leading or trailing. A reading that relied on the old, wrong sign changes, which is the point of the fix.

[2.0.23] - 2026-11-10

Fixed

  • An OpenDocument cell after a merge DOWN stays in its own column. The covered place a vertical merge leaves on the rows below opened no column, so the next value slid under the merged heading: 200 below 100 came out one column left. Covered places are now counted.
  • A .docx run Word hides (w:vanish) is left out of the text. It was read like any other, so a figure the page does not show could be quoted. A vanish switched off (w:val="0", in any quoting) is still read, and so is a vanish a tracked change replaced (w:rPrChange). Hiding inherited from a style is not read here.
  • findRowAnomalies passes over a column first seen after the learning sample instead of throwing on its missing profile, and a PDF refused as not-opened keeps the engine failure in cause, so a broken engine can be told apart from a broken file.
  • truecopy-mcp refuses a tool named constructor or toString as an unknown tool. The name was looked up on a plain object, so it reached a function of Object and the request got no answer at all.
  • npx truecopy refuses a file over the size limit without reading it. The command read the whole file into memory before the library could refuse it from its size, so a file of several gigabytes cost that memory first, or failed with a Node error instead of the too-big refusal. It now hands the library a blob backed by the file, as truecopy-mcp does, and refuses a pipe or a device, which has no size to check and could hold it for ever.
  • truecopy-mcp refuses a message over 1 MiB and a queue over 32 waiting readings. A line that never ended grew in memory for ever, and calls sent faster than they were read piled up with their arguments, without a single document opened. Both are now refused with a JSON-RPC error, and the server goes on answering.
  • The MCP instructions no longer promise that nothing leaves the machine. The file is read locally and truecopy makes no network call, but the rows a tool returns go to the client and, from there, wherever the host sends them. The instructions and the README now say where that boundary is.
  • check_citations refuses a figure JSON wrote with an exponent. 1e-7 was read from its first digit, so any cited row printing 1 carried it. A document writes no exponent, so such a value is now never carried.
  • An empty label match on an astral character ends. labelledSpans with a unicode pattern that can match nothing stepped one UTF-16 unit, landed inside the surrogate pair, and the engine went back to its start for ever. It now steps the whole code point.
  • npx truecopy --json says when the reading is partial. Past maximumPages the CLI dropped the unread count and exited 0; the JSON now carries complete and pagesUnread.

[2.0.22] - 2026-11-05

Fixed

  • validateWith knows a promise by its shape. A schema whose validator answers a promise from another realm (a worker, a vm context) is no instanceof Promise here, so its result read as one with no issue and an unchecked record was counted as conforming. Any thenable is now refused with the same TypeError, and its rejection is absorbed.
  • A profile pattern that quantifies a group of alternatives is refused. ^(a|aa)+$ slipped past the nested-quantifier guard and backtracks exponentially: 35 letters and a ! cost 1.7 s on one call, a few more hang the thread. Such a pattern now compiles to NEVER_MATCHES, like the nested quantifier; no built-in profile carries one.

[2.0.21] - 2026-11-02

Added

  • readDecimal reads a number out exactly, as text. A number holds fifteen significant digits, so readNumber('9007199254740993') and readNumber('9007199254740992') are equal, and a check built on that equality certifies a figure the page does not print - sixteen digits is a card number, a reference, a transaction identifier. readDecimal reads the same token the same way and stops before the conversion: readDecimal('1 234,50') is '1234.5', readDecimal('(123,45)') is '-123.45', two tokens naming the same quantity give the same text in whatever notation. readNumber reads exactly as before.
  • Notation.strictDates reads a date only where the page writes one whole. On: a date written with its year that makes no calendar day is refused rather than re-read without its year against yearWhenMissing (29/02/2025 against 2024 read as 29 February 2024, with a length that stopped before the year), and a digit glued to either end keeps a run from being a date (2026-01-250 read as 25 January, readDate('112/05/2026') found 12 May). Off unless asked for: no reading moves.

Fixed

  • carriesNumber compares the figures as written, not as numbers. 9007199254740993 cited against a page printing 9007199254740992 was carried: the one check that exists to catch a retyped figure let a figure retyped by one digit through. Below sixteen significant digits the two equalities agree, so no verdict moves there.

  • A .docx no longer prints a paragraph written inside an XML comment. The Word reader looked for its tags everywhere in document.xml, comments included, so <!-- <w:p><w:r><w:t>999,00</w:t></w:r></w:p> --> came back as a line no editor shows. Word never writes a comment there, so no file it saved reads differently; the OpenDocument reader already stepped over them.

  • truecopy-mcp opens the path it checked against TRUECOPY_MCP_ROOT. The confinement was judged on the resolved path but the file was reopened by the path as given, through its links: a link swapped between the two led outside the root. The resolved path is what is opened now; the file keeps the name it was asked by. No reading moves.

[2.0.20] - 2026-10-27

Added

  • openDocument takes rotatedPages: true, which places every item where the page displays it, the page’s own /Rotate applied. A landscape table is often printed sideways on a portrait page that carries /Rotate 90: every viewer turns it upright, but the text content keeps the content stream’s coordinates, so a whole displayed column shares one baseline and comes back as ONE item, and the rows of the page are its columns. Measured on the fee annexes of a life-insurance contract, 199 such pages and 11 283 holdings: not one row held its own figures; the same pages read in the displayed frame, 968 rows of 973 did. On, x and y are read in the displayed frame, y still rising up the page, which width and height of the page already were; a page that carries no rotation reads to exactly the same numbers; an engine whose viewport reports no transform leaves the items where they were. positionedItems takes the frame as a second argument, DisplayedFrame, for a caller driving the engine itself. Off unless asked for: no reading moves. The kit’s pdfWithPages takes { rotate } to build such a page.

Fixed

  • truecopy-mcp refuses a from, limit or maximumPages its schema does not admit, by name. A limit over 2000 was cut down to 2000 and a from of 0, a fraction or a string read as the default, all in silence: a caller that asked for rows 0 to 5000 got rows 1 to 2000 under a reliable verdict, with nothing to say the window was not the one it asked for. The three now answer as decimals and year already did, read_table: limit must be a whole number from 1 to 2000., on every tool. A call within its schema reads exactly as before.
  • Every tool’s outputSchema declares the refusal it can answer with. A file that will not open answers { verdict: 'unreadable', reason? } and nothing else, and the schema required rows, file and the counts of it, so a client validating structuredContent rejected the one answer that says “do not lean on this”. The schema now admits the refusal and still requires the whole reading of a reliable or doubtful verdict; reason is declared. No answer changes.

[2.0.19] - 2026-10-26

Added

  • readTable takes numberEdges: true, which cuts a figure from the label printed one space after it, in every column where that recurs. A portfolio page prints 240.000,00 ABC ARBITRAGE as one run of text, so no geometry sees a gutter inside it; measured on the portfolio pages of two Luxembourg fund reports, 103 and 43 holdings, every quantity came back welded to its name and the reading was vouched for on one of them. With the option, 103 of 103 and 40 of 43 rows read right, and no reading is vouched for wrongly. A number followed by a number is never split, so a figure printed in groups stays whole; a signed quantity (-240 ABC) and a name opening on digits or a parenthesis (240 3M, 240 (ABC)) split like the others, and so does a figure set off by a doubled, no-break or thin space. A column splits only where the pattern holds at least half of what it carries, so two street numbers in a column of names stay put. A split column has no edge of its own, so boundaries stays the cut it was and the rows of that page are wider than it. Off unless asked for: no reading moves.

[2.0.18] - 2026-10-23

Added

  • check_citations takes cells: 'apart', the MCP side of citedText(..., 'apart'). The server joined the cited cells with a space, so two cells 12 and 345 still carried 12345 for any model checking its records over MCP, with no way to ask otherwise. Left out, the check reads as before; 'apart' reads no number and no word across two cells. Any other value is refused by name.

Fixed

  • truecopy-mcp no longer reads a file into memory before its size is checked. The path is handed to the library as a blob backed by the file, so a file over the 20 MB limit is refused from its size alone instead of being read whole first. No reading moves.
  • truecopy-mcp runs two readings at a time and queues the rest. A burst of tool calls opened every document at once; ping and the other requests are still answered as they arrive.

[2.0.17] - 2026-10-22

Added

  • citedText(rows, cited, first, 'apart') keeps the cells of the cited rows apart, with | between cells and between rows. Joined by a space, the default, two cells 12 and 345 read as 12 345, and carriesNumber then accepted 12345, a figure neither cell printed. Apart, no number is read across a cell, and a figure the cut split in two is no longer carried, which is why it arrives as a choice and not as a new default. CellJoin names the two values.
  • checkExtraction(document, { ..., absentFigures: 'review' }) lets a row carrying a figure printed nowhere decide the verdict. Left out, such a row is listed in rowsToReview and the verdict follows the total alone, so 40 + 60 against a page printing only 100 came back read. With 'review' it comes back needs-review. Opt in, because it moves the verdict of a caller whose rows carry figures it computed.
  • document.pagesUnread counts the pages maximumPages left unopened, among those keepPage wanted, and is absent when the whole PDF was read. A reading cut at the bound looked exactly like a document ending there. explainDocument (and so the command and read_table) says the reading is partial, and read_table returns pagesUnread beside more, which speaks of rows only. Over MCP such a reading is never reliable: its verdict is doubtful, and the verdict line names the pages left. No reading moves: pages, rows and cells are untouched.
  • read_table and check_citations return the digest of the bytes they read, and take it back. Each call opens the path again, so a second page or a check could land on a file replaced in between, with row numbers that belonged to the first. Given a digest, either tool refuses a file that no longer has it. Optional: a caller that sends none is answered as before. No reading moves.

Fixed

  • An archive entry that does not match its CRC-32 or its declared size is refused (entry-corrupt). A damaged byte inside a stored .docx or .odt part is still well formed XML, so a changed digit read as a figure the document never printed. openDocument now refuses such a file as not-opened. A file an editor wrote is untouched: no reading moves.
  • A PDF read stopped by the deadline now stops the engine too. withDeadline only abandoned the wait: the loading task kept running, and a caller that retried piled engines up. The loading task is destroyed on expiry, and no further page is opened. withDeadline takes an optional onExpire callback for a caller bounding its own work the same way. An engine that finishes loading after the deadline is never handed the document, a cancel that throws still yields the too-slow refusal (the throw rides as its cause), and a page count far past maximumPages is no longer walked page by page when no keepPage is given; with one, the walk lets the deadline in every 4 096 pages. A page the engine hands back after the deadline (an engine whose cancel leaves it in flight) is not asked for its text or laid out. The refusal is settled before the cancel runs, so a cancel that settles the work at once cannot win the race with the work’s own error, and a cancel returning a promise that rejects rides on the refusal as its cause instead of escaping.
  • A table wider than any spreadsheet (16 384 columns) is refused as too-big rather than allocated. A span in an .odt or a .docx is the file’s word and sized the grid directly, so a few bytes could take the memory of a tab.
  • The MCP registry entry of 2.0.16 was refused: its description ran over the registry’s 100 characters, and nothing before the tag had checked it. npm run skill now checks the length with the versions, and mcp-registry.yml takes a ref to replay an entry from a commit that fixed it, the tag staying where it points. The listing check that follows a publish reads the entry by exact name and version, with a few retries: the search index lagged the publish and reported a published entry as missing.

[2.0.16] - 2026-10-21

Added

  • The MCP server opens every answer with a verdict, reliable, doubtful or unreadable, and serves two more tools, find_amounts and find_dates. An assistant reading a PDF and getting a figure wrong without knowing it is the failure this package exists to prevent, and a tool that only listed rows left the judgement to the model. Now read_table, find_amounts and find_dates carry verdict in their data and as their first line of text, with what reliable is not; a file that does not open answers unreadable with its reason. find_amounts lists the figures written with a given number of decimals (two by default), find_dates the cells that start with a date in the day-month order stated, each with the row and column a citation names. check_citations carries the verdict of the reading it checked against, so a citation confirmed on a doubtful page is confirmed on a doubtful page. npx truecopy mcp starts the same server as truecopy-mcp, and server.json registers it with the MCP registry as io.github.truecopydev/truecopy once a version is on npm. An argument the schema does not admit (decimals: 2.5, dateOrder: "mdy", a year out of range) is refused by name rather than rounded, defaulted or dropped: a figure found under a guessed argument reads exactly like one found under the stated one.

[2.0.15] - 2026-10-14

Added

  • openDocument names the file it read: document.digest is the SHA-256 of the exact bytes it was given, in lowercase hex. A reading, an anchor or a citation kept for years has to say which file it was made on, and a file name says nothing once the issuer replaces the document under the same name. With the digest, the reading points at one set of bytes, and an archive that keeps the file under that digest can hand back the very document the reading was made on.

    const document = await openDocument(file);
    document.digest; // 'ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad' for a file holding "abc"

    Web Crypto computes it, in the browser as in Node, with no new dependency. Same bytes, same digest, whatever the file is called. No reading moves: rows, cells and findings are untouched. A document built from a string (documentFromText) has no file and carries none.

[2.0.14] - 2026-10-08

Added

  • readTable(file, { pairedParentheses: true }) keeps a hanging closing parenthesis in the cell of the figure it closes. An accounts table sets its figures flush right and hangs the ) of a negative past that edge, so the ) starts after its column ends and the cut, which reads left edges, hands it to the next column: ( 1,234 beside ) ( 5,678 ). A negative loses its bracket, its neighbour gains one, and no check sees it, because every digit is still there in the right order - the reading is wrong and nothing in findings says so.

    On, an item goes back to the cell before it when three things hold on the page: it is only closing parentheses; it touches that cell’s last item (the same quarter-of-a-character gap measuredSpaces reads); and that cell has a parenthesis still open. A ) printed a space apart, one that closes nothing, or one followed by more text stays where its left edge puts it. The column boundaries are not touched; only which cell such a ) joins.

    Measured over 1 380 tables and pages of published annual reports, each with a reading taken from the structured filing it was printed from: 114 more tables read right (494 instead of 397 on 876 tables, 239 instead of 222 on 316 positioned pages), 1 175 more rows, and not one table or row that read right before reads wrong after. Cells with unbalanced parentheses fall from 5 618 to 1 660. Where the ) sat alone in a column of its own, that column is left nearly empty and now raises thin-column, which is true: 24 tables that passed silently are now doubted. All 24 read wrong before; 14 read right now and still raise it, 10 still read wrong and are now caught. On issuer-printed fund reports, which do not hang their brackets, one table of 188 moves.

    It moves cell text, so it arrives as a knob and not as a new default: a reader adopts it when its own bench is green. rowToCells and cellsOf take the same flag.

  • readNumber and carriesNumber take a brackets argument, so a page that prints asides in brackets is no longer read as a page of negatives. readNumber('(75016)') is -75016, and so is a footnote marker (1): the accounting convention, applied to an address. A caller that cited the postal code exactly as 8 rue Bellini (75016) Paris prints it was told the page does not carry it, because +75016 met the -75016 the reader returned (#70).

    readNumber('(75016)'); // -75016, unchanged
    readNumber('(75016)', null, 'punctuation'); // 75016
    carriesNumber('8 rue Bellini (75016) Paris', '75016', ','); // false, unchanged
    carriesNumber('8 rue Bellini (75016) Paris', '75016', ',', 'punctuation'); // true

    Nothing in a token tells the two conventions apart: on 270 quarterly reports, 4 176 figures closed in brackets, 2 637 of them at the head of a cell, which is exactly where an accounting negative sits too. So the caller says which page it holds, the way decimalMarkOf lets it say which mark is decimal, and the default stays 'sign': no reading moves under an existing consumer. A minus is a minus under both, so (-12,00) still reads -12. The new Brackets type is exported beside DecimalMark.

    carriesText takes the same argument: (75016) is one word by default, and with 'punctuation' the brackets that open or close a word are dropped on both sides, so 8 rue Bellini (75016) Paris carries 75016 and Bellini 75016 Paris.

[2.0.13] - 2026-09-08

Fixed

  • truecopy/anchor reads a figure that a full stop, a comma or a slash glues to a word. findNumbers('alignement de la R.D.13') returns NOTHING AT ALL, and so do UBb,15% and (L=H/2): the reader never opens a match after one of those marks, so missingFigures reported figures the sentence prints in full as absent.

    That guard earns its keep on a figures column - it is what stops a reading from starting inside 1 234,56 or 12/05/2026 and coming back with 56 or with 5. In prose the same mark does something else: it ends an abbreviation, separates a clause, writes a ratio.

    The rule follows the difference exactly, and only inside this module: the mark steps aside when a non-digit precedes it, because inside a number the character before the mark is always a digit.

    missingFigures("a l'alignement de la R.D.13", '6 m de la RD 13'); // ['6'], was ['6', '13']
    missingFigures("le secteur UBb,15% de l'unite", '15 %'); // [], was ['15']
    missingFigures('(L=H/2) de la construction', 'H/2 au minimum'); // [], was ['2']
    
    missingFigures('7.3 Dispositions en zone 1AUD', '3 m minimum'); // ['3'], unchanged
    missingFigures('un solde de 1 234,56 EUR', '56', ','); // ['56'], unchanged

    7.3 still reads as one number, and that is the point. A regulation numbers its paragraphs, a quoted sentence opens on that number, and a check that read a digit run rather than a number took the 3 of 7.3 for the three metres a rule announces - measured on the same corpus, 115 served values whose proof was the paragraph number.

    Measured over 55 planning codes and 10 191 served values, against the same check written locally: the two readings disagreed on 18 values before this and on 5 after, and none of the 5 is this library - two are the caller’s own masking, two are a formula the compiled value reformats, and in one the library is right and the local check is wrong.

    notation, cite and every other entry point read exactly as before.

[2.0.12] - 2026-09-08

Fixed

  • truecopy/anchor no longer reads the bullet of a list as a minus sign. missingFigures and proofSpan reported the 1 of - 1 place minimum par logement as MISSING: findNumbers takes the dash and the space that follow it for a sign and hands back minus one, which is not the figure the value announces. An absence is a claim in this module, so a false one is worse than no check at all.

    MEASURED on the corpus the module was written for, and it is not an edge: 55 planning codes, 10 191 served values, 199 of them came back unproved that the sentence beside them prints in full. A bulleted list is not one document family’s layout - a regulation, an agreement and a contract all write one.

    missingFigures('- 1 place minimum par logement', '1 place'); // [], was ['1']
    proofSpan('- 1 place minimum', '1 place'); // points at the 1, was null

    The number reader is right for the documents it was written on and is untouched: -1 234,56 and 1 234,56- are how a statement prints a negative, and both still read negative. What no statement does is separate a minus from its digits by a space while a list does it on every item, so the rule is narrow: inside this module only, a dash that no digit precedes and that whitespace follows is not a sign. notation, cite and every other entry point read exactly as before.

[2.0.11] - 2026-09-08

Added

  • truecopy/anchor: the passage a stored value came from, found again in the document. A document read ONCE, offline, into values a site then serves for months cannot re-run its extraction per reader, so what proves such a value is not the extraction. It is the sentence, stored nowhere, found again at display time from a short anchor kept beside the value: nothing recopies the text, so the value cannot drift from it, and a revised document announces itself by the anchor no longer falling.

    Two applications wrote this separately before it was here, on document families with nothing in common - a planning code printed as a PDF, a collective agreement published as marked-up text - and the second lost a lesson the first had already paid for. That is what says it belongs here.

    const passage = anchoredPassage(article, 'hauteur maximale de 9', { depth: 'outline' });
    // { heading: ['1.1- Dans une bande de 15 metres :'], line: '- zone UA : 9 metres.', opened: [] }
    
    const quoted = [...passage.heading, passage.line, ...passage.opened].join(' ');
    missingFigures(quoted, '35 m', { decimal: ',' }); // ['35'] - the anchor fell, the value did not
    proofSpan(quoted, '9 m'); // { start, end }: how far a reader travels to the proof

    Passage has three parts rather than one string, and each is a defect already paid for. A paragraph quoted WITHOUT its ancestors is exact and says nothing: -- de moins de 2 ans : 1 mois has lost - pour les ETAM, which is half the rule, and reads as everyone’s notice period. A heading quoted without the list it opens costs as much: l'employeur complete : followed by two items says that something is topped up and never what. Which of the three a narrow screen sheds is a display decision, so the join stays the caller’s.

    missingFigures is the check an anchor cannot make. An anchor that still falls proves the paragraph exists, never what it SAYS: measured on one planning code, a rule displayed as 35 m de l'axe sat beside a sentence about the same road reading un recul minimum de 10 metres, with every mechanical check green. proofSpan is the second half, and it exists because a citation is bounded twice and the two bounds do not talk: of 610 values whose citation did carry the announced figure, 331 put it past the cut of a phone screen, and the gate called all 331 correct.

    units and depth are separate and neither is guessed, because both mistakes are silent: reading depth off a source that does not mark it returns a passage with no ancestors, which is the exact failure the module exists to prevent, and returns it looking like a success. What stays the caller’s is the join, the crop, and any masking a domain needs before its figures can be counted - a planning code writes 50 m2, which announces fifty and not two. Mask without changing length and the extents stay indices into your own string.

  • Extent, and it is not Span. labels already exports a Span that carries the text it found; this one carries only two indices, because what sits between them is a stretch of the caller’s own string.

[2.0.10] - 2026-08-31

Fixed

  • A figure between brackets that never close is read, and read positive. readNumber returned null for (185,74, so findNumbers dropped the figure and carriesNumber answered false about a number the page prints. The token deliberately takes an opening bracket, because (123,45) is how accounting writes a negative; when the closing one falls outside the token, the bracket stays in the body and reaches parseFloat as (185.74, which is NaN.

    The shape this hits is the standard French way of printing a per-share value beside its total, and it is not rare: 24 values across 14 quarterly reports in one consumer’s corpus, all of the form below. The total was found, the per-share value was not, and the consumer recorded the difference as the document does not carry this figure - a silent absence in the place where an absence is a claim.

    A bracket that never closes opened a phrase; the accounting form closes tight around its digits and never around a unit, so what sits between the digits and the closing bracket is prose, and prose carries no sign.

    readNumber('(185,74'); // 185.74, was null
    findNumbers('1 516 388 206 € (185,74 €/part)'); // both figures, was only the total
    carriesNumber('… € (185,74 €/part)', '185,74', ','); // true, was false
    
    readNumber('(123,45)'); // -123.45, unchanged
    readNumber('(    123,45)'); // -123.45, unchanged
  • A delimited date reads its year across the space a broken text layer leaves, and refuses three contiguous digits. readDate and readLeadingDate matched the year as \d{2,4}, so a page printing 12/05/2026 whose text layer hands over 12/05/202 6 was read as the year 202 - a confident date off by eighteen centuries, on the date shape every statement and every invoice goes through. The named-month path was taught this run and its plausible band in 2.0.9; the delimited path was not, and a guard that lives in one of two twins is the sign the danger is real rather than that the other is safe.

    A CALLER COULD HAVE RELIED ON THE OLD READING, and this changes it by name: readDate('12/05/202') returned the year 202 and now returns null. Three contiguous digits are no year anyone writes; refusing them is what lets the four-digit branch read across a space without also inventing dates out of truncated runs.

    The length moves with it. 12/05/202 6 GROCERIES used to report 9, leaving 6 at the head of the wording the caller keeps; it now reports 11.

    readDate('12/05/202 6', french); // 2026-05-12, was the year 202
    readDate('12/05/202', french); // null, was the year 202
    readDate('25/01/26 1 234,56', french); // 2026-01-25, unchanged
    readDate('12/05/1 234,56', french); // null: 1234 is not a year a row means

    A run gathered across a space is held to the same 1900-2099 band the named-month path uses, and contiguous digits are not - that asymmetry is what keeps 25/01/26 1 234,56 reading as 2026 instead of gathering 26 1 2 across the amount.

[2.0.9] - 2026-08-29

Added

  • superscripts reads a raised ordinal as part of its line, instead of as a line of its own. A superscript sits a few points above the line it belongs to - more than the tolerance that groups items into rows - so it became a row of its own, and rows come out top to bottom: it was emitted BEFORE the words it belongs to. An AMF filing read er Resultat du 1 semestre 2026; with the option it reads Resultat du 1er semestre 2026. A second shape is a column defect rather than a row one - the er sat inside the tolerance and the cut put a boundary between 1 and it, giving 1 ersemestre - and the same option covers it, because the mark is taken on the assembled row. Off unless asked for: it moves row text, and a reader whose patterns learned the split form keeps it until its own bench says otherwise. Widening the row tolerance instead would weld genuinely neighbouring lines together, which is why this is recognition and not a looser threshold.
  • PositionedItem carries the glyph height when the engine measured one. It is what separates a superscript from a line of its own. The field is left OFF when no height is reported, so a paste, a CSV, a .docx and any caller comparing an exact item are untouched.

[2.0.8] - 2026-08-28

Fixed

  • A thousands group is exactly three digits, so four decimals are decimals. readNumber('24,9000') returned two hundred and forty-nine thousand. The comma was taken for a thousands separator, which it cannot be: no notation groups thousands by four.

    MEASURED on a share buyback filing, where the weighted average daily price is printed to four, five or six decimals by the form that carries it. 77,482934 came back as seventy-seven million, 159,9567 as one and a half million - silently, on figures that close every arithmetic they enter.

    readNumber('24,9000'); // 24.9, was 249000
    readNumber('77,482934'); // 77.482934, was 77482934
    readNumber('27.800'); // 27800, unchanged

    The two halves of notation.ts disagreed. decidedBy already stated the rule the right way round - “used once before anything but three digits it is the decimal mark itself” - while normaliseSeparators said “anything but one or two digits is a thousands mark”. They now agree. Three digits behind still reads as thousands, and only the document can say otherwise, which is what the decimal argument is for.

    One mark, and one only, and that guard was bought by a measurement rather than by taste. A token carrying the same mark twice is a date or a version, which decidedBy already refuses a vote to. Read as decimals, 31.12.2025 comes out as 3112.2025 - which looks far more like an amount than the 31122025 it used to give, and making a misread plausible is the one failure this library exists to prevent. The first version of this fix moved 1 154 dates on one consumer’s data; the guard puts them all back, and 1.4.1 still reads 14.1.

    Readings move, and here is which ones. Any token whose last separator is followed by four digits or more, when the caller passes no decimal mark. Replayed over one consumer’s 404 431 number tokens: 565 move, and each one is the defect - 3,81379 was 381 379, 99,9998 was 999 998, 511,4445 was 5 114 445. A caller who passes decimalMarkOf(document.text) was never affected: that path already read them right.

    Benches replayed before the merge, as AGENTS.md requires for a change to the notation: fidalo, titelia and the corpus green; murparmur measured token by token instead, its working tree being busy; relevedecarriere red on the published 2.0.7 as well, for its file-door test doubling text() where the door has read arrayBuffer() since 2.0.6.

[2.0.7] - 2026-08-26

Added

  • An OpenDocument text file is read, on the same grid as a Word one. openDocument opens a .odt, and document.origin says 'odt'. Until now it was refused as a container - by name and correctly, but refused all the same.

    MEASURED on the French collective agreements the DILA publishes: 4 767 agreements out of 395 581 came back without a citation for no other reason than their document being a .odt. Fifty-nine of them, taken from one weekly deposit, now read: fifty-nine out of fifty-nine.

    const document = await openDocument(new File([bytes], 'agreement.odt'));
    document.origin; // 'odt'

    The two formats share one reading model, and that is the part worth stating: paragraphs and rows of cells on a grid, one page, the index ruler. What a reader gets does not depend on which editor wrote the file.

    Three things the reader refuses to print, each because printing them would put in a citation something the page does not show: a tracked deletion, which ODF keeps in the file; an annotation; and the title or description a drawing carries for a screen reader. A footnote body is left out for the same family of reasons and is a known limit, written where the code is.

    The trap this cost, and it is the one to know if you write a reader for this format: OpenDocument prints the characters BETWEEN tags, not the contents of a run element. A lexer that matched only the elements it knew copied <draw:custom-shape svg:x="0.47708in" ...> into the document as the first line of an agreement. It now matches every tag and prints none of them, and it takes character data only inside a paragraph - so the indentation of a pretty-printed content.xml never lands in a row either.

[2.0.6] - 2026-08-25

Added

  • A Word document is read, and a container is no longer decoded as text. openDocument opens a .docx, and refuses by name everything it cannot read instead of handing it to the text reader.

    The refusal is the half that matters. A .docx is a ZIP, so the previous door decoded it as UTF-8 and returned 1 147 rows of mojibake, confidently, with no doubt raised anywhere - the exact failure this library exists to prevent, met on a real corpus of French collective agreements. Any binary did the same: an image, a program, a spreadsheet. They now raise the new binary reason, which names what the file is rather than what is missing from it.

    const document = await openDocument(new File([bytes], 'agreement.docx'));
    document.origin; // 'docx'

    What is read is what the document already declares: paragraphs, and table cells on their own grid. Nothing votes on a boundary here - a .docx writes its rows and cells down, unlike a page, where the cut has to work them out - so the ruler is index, the one a CSV is read with. A cell left empty stays an empty field in its own column, because closing that gap is how the third value of a row ends up under the second header. A cell spanning several columns holds the place of all of them.

    One page, always: Word paginates when it renders, on the fonts and the paper of whoever opens it, so numbering pages off the stored breaks would put a page in a citation that the next reader cannot find.

    No dependency: a ZIP is inflated with DecompressionStream, which Node 20 and every browser already have. An entry is bounded as it inflates rather than on its declared size, so a small archive holding a very large part is refused rather than handed to a tab.

    Known limit, and deliberate: a cell merged DOWN a column (w:vMerge) reads as empty on the rows that continue it. Word writes the value once, so repeating it would put a value on rows where the document prints none.

  • docxWithBody and docxWithText in the kit. A real archive, a real CRC, both compression methods - the same reasoning as pdfWithText: a test that hands the parser a string of XML proves nothing about the container the person actually attached.

Changed

  • A file that is not a PDF is now read through arrayBuffer(), where it used to be read through text(). Nothing else could be true of a door that has to tell a container from a sentence: the ZIP signature and the byte order mark are bytes, and text() has already thrown them away. A real File carries both methods, so no application changes. A test that stubs text() alone stops being exercised, silently: relevedecarriere has one, met on the consumer bench the day this shipped, and it now resolves where it used to reject. Stub arrayBuffer() there instead.

Fixed

  • The MCP server advertised three origins where a reading can carry four. read_table passes origin straight through, so a client validating against the advertised schema would have rejected a perfectly good .docx reading. The list is now declared once, as ORIGINS in document.ts, and both the type and the schema derive from it: the next origin cannot be added to one and forgotten in the other.

  • A text file that declares UTF-16 is decoded as UTF-16. It used to be decoded as UTF-8, which turns a perfectly good export into one line of NUL-riddled mojibake - and, from this release on, would have made it a binary refusal instead. The byte order mark is the only thing a plain text file says about itself, so it is now believed.

  • explainDocument no longer says a delimiter cut a document that has none. Two very different documents are measured by index: a CSV, where a delimiter decided, and a Word document, where nothing decided and the cells were copied as the file declares them.

[2.0.5] - 2026-08-24

Fixed

  • A tab no longer groups thousands, and a grouped number now closes on a non-digit. Both halves of one defect, both met on a pension record on 2026-08-13, both silent: the welded value is well formed, so every arithmetic it enters closes and nothing downstream can see it.

    findNumbers("2018	4	23000")   before  [2018, 4230]        after  [2018, 4, 23000]
    findNumbers("4 19000")          before  [4190] (00 lost)    after  [4, 19000]
    findNumbers("1 358 522")        before  [1358522]           after  [1358522]

    A tab never groups, it delimits - no typesetter puts one between two groups of thousands, an export puts one between two COLUMNS. And a group of thousands is followed by another group or by nothing, never by loose digits, so 4 19000 was never a French number. Read as single figures they showed zero quarters for a full year of work, and the site called it a CERTAIN anomaly with a letter of claim ready to send: 24 of them on a 39-line career.

    The consumer that met it hardened its OWN pattern that day and this library never learned it, so every other consumer kept the defect - including cite.carriesNumber, the check that exists to catch a model inventing a figure.

Added

  • labelledSpans: the value that goes with a label, on a run of TEXT. labelledValues needs a grid, and a caller who has prose has neither rows nor columns - which is what an API field, an OCR pass or a text-layer dump hands over. The question does not go away with the geometry, so the rule this file exists for had to be written a fourth time by a fourth caller, and that caller got it wrong.

    labelledSpans(notice, /exercice clos le d{1,2} p{L}+ d{4}/giu, /d{1,4},d{2} euros/g);

    Same contract as its sibling, minus a dimension: the caller says what a label looks like and what a value looks like, the walk stops at the NEXT label, and it hands back candidates rather than picking one. A value overlapping its own label is not a candidate - the year inside “exercice clos le 31 decembre 2024” is part of the label, not the figure it announces.

    What it was written against: a French dividend table prints the PAYMENT DATE between each exercice and its amount, and a caller walking from year to year let the payment year collect the amount. A whole published series came out shifted by one year, every value in it well formed.

[2.0.4] - 2026-08-23

Added

  • truecopy-mcp: the reading as an MCP server, over stdio. An agent with a terminal already had npx truecopy, and one that can import a module had the library. Neither is what most assistants are: a host that speaks MCP reaches a tool call and nothing else, so the pipeline was unreachable from the place it is most needed - the model that has just been handed somebody’s statement and has no way to check what it read.

    {
    	"mcpServers": {
    		"truecopy": {
    			"command": "npx",
    			"args": ["-y", "-p", "truecopy", "-p", "pdfjs-dist", "truecopy-mcp"]
    		}
    	}
    }

    Two tools. read_table turns a PDF, a CSV, a TSV or a saved paste into rows and reports what the reading could not vouch for, bounded at 200 rows a call with what it left COUNTED rather than dropped. check_citations takes the records a model claims to have read, each citing the rows it came from, and says which values the cited rows do not print: a JSON number is checked as a figure with the document’s own decimal mark, a JSON string as its words in order. Neither description stops at what its tool does - a description is the prompt a host puts in front of a model, and one that says “reads tables from PDFs” has taught the opposite of this library.

    OVER STDIO AND NOT OVER HTTP, which is the whole design and not a limitation. A statement, a payslip and a career record are the worst documents there are to upload, and there is nothing a server could compute on them that this does not compute where the file already sits: the reading is deterministic and makes no network call, so an endpoint would add a copy of somebody’s document to the world and buy nothing with it. TRUECOPY_MCP_ROOT confines what may be opened when the host is not to be trusted with a path, on the resolved path so that a link inside the root cannot walk back out of it.

    Two generations of the protocol are in service and this answers both. Up to 2025-11-25 a client opens with initialize; from 2026-07-28 the protocol is stateless, that method is gone from the schema, and a client either probes server/discover or simply calls. Answering only the newer one would go silent against every client shipped before July 2026, and none of the three costs anything to keep.

  • truecopy/mcp, for a server of your own. TOOLS are the descriptors and respond answers one JSON-RPC message, given a way to turn a path into a File. The module touches no filesystem, no stream and no clock: bin/truecopy-mcp.mjs is the half that talks to the world, and it is thin enough to read in one sitting. Same split as the parsers, and for the same reason - what decides is tested, and what touches the world is small.

  • explainReading(table) and describeDoubts(warnings). A READING explained, where explainDocument explains a DOCUMENT: the difference is the cut, since readTable cuts on what recurs rather than on the page’s own spread of x, and explaining a result without those boundaries makes the heading and the cells tell two different stories. describeDoubts words the doubts, including the two sentences an EMPTY list gets - “nothing looked wrong from the shape of this page” and “that is not the same as this reading is right” - which existed only inside bin/truecopy.mjs until now. The command and the MCP server print the same two functions, so the sentence a person is left with cannot depend on which surface printed it.

Changed

  • ExplainOptions.boundariesOf may return undefined, and a page it returns nothing for keeps its own cut. A widening: every existing implementation still satisfies the type, and it removes a fallback no caller could reach.

Fixed

  • npx truecopy a-statement.pdf does not read a PDF, and the README said it did. Measured against the published tarball on npm: pdfjs-dist is an optional peer dependency, npm does not install one on its own, and the command answers no-engine - correctly, and against a page promising “no install, no project, no line of code”. The engine is named on the command line now, npx -y -p truecopy -p pdfjs-dist truecopy a-statement.pdf, and the CSV form that genuinely needs nothing is shown beside it. The claim was false in the README and in llms.txt, which is the file a model reads before writing the command for somebody.

[2.0.3] - 2026-08-20

Added

  • readTable(file, { measuredSpaces: true }) spaces a cell as the page printed it. An engine hands one cell over as several items, and nothing in them says which ones were printed apart: a filing draws 1 207 773 393 as five items, because the run breaks wherever glyph spacing changes. One space between all of them reads 1 2 07 773 393 - a number no reader parses and no check catches, since every digit is there in the right order.

    The two joins in layout.ts disagreed about it and both were wrong on the same page: joinRow glues everything, so the date one row up reads 31juillet; rowToCells spaces everything, so the figure comes out ungrouped. Neither had anything to go on. The page does, in the gap between where one item ends and the next begins - measured on that filing at 0,00 point where glyphs touch and 3,6 to 3,8 where a thousands separator or a word space stands, on characters 6,7 points wide. A quarter of a character clears both by a wide margin and, unlike a fixed number of points, does not depend on the font size.

    No width is no measurement: a row assembled without geometry - a paste, a CSV, an OCR line handed over whole - keeps its one space between items, having no gaps to read. document.text is not touched at all; the option moves cell text only, which is why it is a knob and not a new default.

  • truecopy/cite: the rows a model cited, and whether they really carry each value. A model that turns cells into records fails one invisible way: it returns a plausible value the document never printed - a town deduced from a postcode, a rounded figure - and that reads exactly like a successful extraction. The deterministic answer is a protocol, and it now ships instead of being rewritten by every consumer: numberedRows gives the model rows it can cite, citedText assembles what a record claims to have read, and carriesText / carriesNumber look every value up in THOSE rows and nowhere else. The model cannot produce a fact; it can only point at one.

    Checking against the whole document was already possible and is the trap this closes: on a two-hundred-page document almost any figure is printed somewhere, so checkExtraction’s document-wide lookup validates values the cited rows never carried. It stays what it is - the arithmetic check against what the document declares - and the citation check now stands beside it.

    Both lookups ship in the exact shape their naive forms failed in, measured on a real corpus. carriesText wants all the words IN ORDER but never one contiguous substring: a layout throws the tail of a name past the figure columns, and the contiguous form refused 104 of one document’s 111 records. It cuts hyphens on both sides - a hyphenated town arrives in two halves a whole row apart - and folds case, whitespace and curly apostrophes while refusing to fold accents (two neighbouring towns) or digits (the rounded figure is the catch). carriesNumber reads the page’s own numbers via findNumbers with the document’s decimal mark, never a flattened digit soup, in which a surface was found three times in a row that carries no such figure.

  • Right edges can be declined: readTable(file, { rightEdges: false }) is the cut exactly as it was before 2.0.1. Reading right edges inside a band cuts a page finer, and a finer cut is not free for every reader: one that learned the WIDER cells - splitting a shared cell itself, on pages printing two tables side by side - loses the row it relied on when a cut lands inside it. Measured on a real fund report of that shape: six sections that closed on the wider cells stopped closing on the finer ones, because the row carrying one position of EACH table came back as neither.

    So the finer cut is declinable, and the refusal it will never grow a second cut still holds: same vote, same bands, same thresholds - false only skips the cuts inside a band, it never adds a third behaviour. boundariesFromRecurrence takes the same flag. The default does not move; a change in how a page is cut never arrives as a new default, it arrives as an option a consumer adopts when its own bench is green.

  • A cut row and the row it was cut from are now the same row, in writing. pages[i][j] is document.pages[i].rows[j]: the same row in two shapes, one in cells and one in placed fragments. That has always been true - the cut maps over page.rows and drops nothing - but it was true by accident of the code rather than by promise, so no caller could lean on it without reading the source and hoping.

    It is worth promising because some questions have no answer in the cells at all. Which of two records does a stray line of text belong to? Nothing in the line says so. The answer is which baseline it sits closer to, and reaching that baseline means going from a cut row to document.pages[i].rows[j].y - which is only safe if the two are known to line up.

    Measured on a property schedule that prints each address above AND below its figures, so that every record’s label straddles its own numbers: 291 of its 556 published buildings had no street at all, because the reader could not tell whether a lone 25 avenue Henri belonged to the record above it or the one below. Placed by baseline - 4,2 points to one, 15,1 to the other - all 616 came back.

    A test pins it: every page’s cut rows are counted against its geometric rows, so a future change that filters a row out fails there rather than silently moving somebody’s labels onto the wrong record.

Fixed

  • A cut inside a band could fall between two groups of a thousand. A cut needs a gutter: no row may start printing just right of it, and that window opened one point past the cut rather than at it - which exempted the tightest adjacency a page can print, the one most certainly not a gutter. A PDF draws 1 358 522 as three items, and the space between two groups of a thousand is a few tenths of a point wide; the rows agreed on the right edge of 358, nothing was printed across it, and the boundary landed inside the number.

    The window now opens AT the cut. Measured over 125 annual reports, 398 989 rows, counting only the pairs that cannot be read any other way - a cell already split by thousands, followed by a group of three:

    before right edges 2.0.2 this
    filled cells 736 181 761 595 758 884
    cells holding several glued numbers 20 852 15 475 15 431
    numbers cut in two 593 1 242 762

    The gain of 2.0.2 on glued cells is kept, and 480 of the 649 numbers it cut are given back.

[2.0.2] - 2026-08-19

Fixed

  • A cluster of right edges is not one edge, and its far end belongs to the header. 2.0.1 taught the cut to read right edges inside a band. It then took the cut at the far end of the recurring cluster - and a cluster is every right edge no column gap apart, so the widest thing over a column joins it. The widest thing over a column of figures is never one of its values: it is the word that names them. A header label overhangs its figures, a footnote mark sits past the last of them, and both push the cluster’s end into the next column. The cut then lands where the neighbour is already printing, the four conditions correctly refuse it, and the two columns stay welded - the exact failure 2.0.1 set out to fix.

    Measured on page 13 of a real property schedule, 93 rows. Two surface columns, “Surface habitation” and “Surface totale”. Their figures end at 502 and 535, each on 29 rows. Between them: the header’s own words, ending at 508 and 511, and a footnote at 520 - one row each. The cluster ran from 502 to 520, so the cut was proposed at 520, by which point the right column has been printing for nine points; the condition that nothing may start just after a cut then refused it, and every one of that document’s 635 rows carried both surfaces in one cell, as 240 240.

    So the candidates are walked from the right, and the first one that is a gutter wins. The walk stops as soon as too few rows reach the candidate at all: below that point no column ends, and a cut needs a column on each side of it. Nothing else changes - the four conditions are the same four, applied to more than one candidate.

    Measured over the same 125 annual reports, 398 989 rows: 8 441 more values come back as cells of their own (753 154 filled cells become 761 595), and cells holding several glued numbers fall from 16 356 to 15 475. The widest row of the corpus does not move, at 25 columns: no page gains a column it did not have. In the application reading them, that one schedule’s surface column went from 97 097 545 against a printed total of 256 338 - three hundred and seventy-nine times its own total, because two three-digit surfaces read as one six-digit number - to 254 214, within 0.83 % of what the document prints.

[2.0.1] - 2026-08-19

Fixed

  • A column of figures is set flush right, and the cut could not see it. boundariesFromRecurrence voted on the left edge of every item, and the doc comment said why: a real column’s left edge recurs. That is true of a date, a label, an address. It is false of a column of figures, whose left edge moves with the digit count - so it never recurs, and two such columns fall into ONE band as soon as the widest value of the second reaches back towards the first. Nothing in the left edges tells them apart afterwards.

    This is the cause of the merged-column doubt this library already raises. Measured on page 27 of a real property schedule, 72 rows: the right edges of its five figure columns come back on 62 to 65 rows each, at 351, 394, 448, 502 and 556, while the left edges of the same columns scatter over seven bands, none reaching 31. The cut missed the boundary near 395, so a surface and a price came back in one cell - 896 2 415 065 where the page prints 896 m2 and 2 415 065 EUR - on 126 of that document’s 233 rows.

    And notation cannot repair geometry. 93 580 000 is a perfectly well formed number, and it is also 93 followed by 580 000. findNumbers returns one, and it is right to. The answer is not in the text: it is in the fact that no character is printed between the two on any row of the page.

    So the right edge is read too, and only inside a band. Four conditions, each one keeping a real failure out: the right edge has to recur on as many rows as a band does; nothing may be printed ACROSS the cut; nothing may START just after it, which is what separates a column from a run of words; and a column has to begin at or after the cut. The cut sits exactly where the left column’s text ends, which is safe because columnAt places a cell by its left edge and nothing else.

    Measured over 125 real annual reports, 398 989 rows: cells holding several glued numbers fall from 20 852 to 16 356, a fifth of them, and 16 973 values that were welded to their neighbour come back as cells of their own (736 181 filled cells become 753 154). The widest row of the corpus does not move, at 25 columns: no page gains a column it did not have. The worst document goes from 1 444 glued cells to 312.

    What was tried first, and what it cost, because the shape of this fix is not obvious. Letting right edges form the bands themselves - the direct reading of “vote on both edges” - welds a page into two columns: a text column of varying width ends at a different x on every row, and those ends are dense enough to bridge every gap. Measured on the same corpus, that lost 127 458 of 736 181 filled cells, and the application reading them fell from 69 documents read to 40. Reading right edges only where the left edges already agreed keeps that impossible: the bands, and therefore every boundary between them, are exactly what they were.

[2.0.0] - 2026-08-19

Removed

  • Five exports nobody imports leave the public surface: compilePatterns, dominantKinds, toRawPatterns, discrepancyOf, requirementHolds. 65 values became 60; no type was touched. Every one of the five was measured against six repositories that install this package, and none of them names any of the five. The three plural helpers were one-line loops over a singular that stays - compilePattern, toRawPattern, dominantKind - and map writes them in the caller’s own file. The other two are steps inside a public function and are still there, unexported: classifyDocument runs the requirement, readDocument picks the closest announced total.

    This is why the first digit moved, and it is the only reason: code importing one of those five names stops compiling. Nothing reads differently, no default changed, and every other name is where it was. An application that imports none of the five upgrades by changing the number.

    What the same measurement did NOT justify, and it is the more useful half: 81 of 123 exports were imported by nobody, and 49 of those 81 are types. A type is annotated, never called, so counting imports says nothing about whether it can go. Asked of the compiler instead - which types a living export’s signature drags in behind it - 38 of the 49 came back reachable. OpenOptions is in that list: it is the options type of readTable and of openDocument, the two most used entries of the package. Removing types on the strength of the import count would have taken the middle out of the library.

Added

  • few-spines: almost nothing was grouped, and now it says so. A spine belongs to a TABLE, and a whole document handed to recordsFrom flat has its width set by the widest row printed anywhere in it. Measured on a real annual report: 3115 rows, a widest row of eight, and SEVEN records - while the same document read page by page gives eleven hundred. The answer came back almost empty and said nothing, which is the one failure this library exists to prevent.

    The threshold is measured on 20 real reports, both ways round: handed a document flat the share of rows reaching the full width is 0,5 % at the median and under two per cent on 90 % of them, handed one page at a time it is 30 % at the median and under two on 3 % of them. A doubt that misfires on three pages in a hundred is the right trade against silence on an empty answer.

Changed

  • Nine exports now say where they stop. No behaviour moved; the sentence above the declaration did. Two of the nine are worth reading before the next upgrade, because both bounds were measured against a real corpus of 125 annual reports rather than reasoned out:

    • columnOfHeader reads ONE table, not a whole document. Handed the flattened rows of a 43-page report it answers null far more often than it should: the heading is reprinted on pages the cut does not align, the same logical column lands at several indices, and several matching columns is exactly what it refuses. Of 125 reports, 24 carried a heading a caller could find and this refused 12 of them. Cut the document with Table.pages and ask once per page.
    • recordsFrom groups a table, never a document located by what it says. The spine is a WIDTH. Against a reader that walks the same 125 files by their addresses instead: 2 309 records here, 2 900 there. When the entries are found by an address, a heading or a date rather than by how wide the row is, this is not the mechanism - and it does not raise a doubt about it, it just returns fewer.

    The other seven: DEFAULT_LIMITS (sized for a browser tab, refuses an ingestion corpus), columnCount, countMatches (non-overlapping), sharesByKind, thresholdsFor (sets share and nothing else), describeAnomaly (one cell, never a verdict on the row), conforms (one record, not the count a schema demands), placeOf (no height, and the page’s own unit).

Fixed

  • A lone zero in front of a mark is a decimal point, not a group of thousands. readNumber('0,280') came back as two hundred and eighty. The rule that decides the mark is counting - three digits behind it is a group of thousands - and three digits is exactly what 0,280 shows. No group of thousands begins with a zero, which is the rule wellGrouped already states one field over, and it settles this without counting anything.

    A thousandfold error, on money, and silent: 280 is a well formed figure that closes every arithmetic it enters, so nothing downstream can catch it. Met on a fidelity premium a listed company prints as 0,280 euro par action, in a document that prints its ordinary dividend as 2,80 two lines above.

  • A year the text layer broke across spaces is still a year. 28 mai 202 6 is what readTable produced on a real filing, from a page that prints 28 mai 2026, and readLeadingDate read it as no date at all. IN_NUMBER exists one field over for exactly this and readNumber('202 6') has always returned 2026, so the date was inconsistent with the number rather than careful.

    Digits gathered across a space are held to 1900-2099 and contiguous ones are not, and that asymmetry is the whole safety of it: 25 janv. 1 234,56 is a statement row carrying an amount and no year, its four digits make 1234, and trusting a repaired run as far as a whole one would turn every amount printed after a month name into a date. Contiguous digits behave exactly as before, so no reading that was right comes back different.

  • A day carrying its ordinal is a date. readLeadingDate('1er janvier 2026') returned null, and so did 1st January 2026: the pattern let the day be followed by whitespace and by nothing else. The ordinal is a suffix on the day and can never be a month, so reading it is not guessing - and refusing it loses a date the page states plainly. The Spanish and Portuguese 1º is the same shape and is deliberately left out: nothing measured carries it, and a pattern nobody has exercised is a pattern nobody has checked.

Added

  • few-spines: almost nothing was grouped, and now it says so. A spine belongs to a TABLE, and a whole document handed to recordsFrom flat has its width set by the widest row printed anywhere in it. Measured on a real annual report: 3115 rows, a widest row of eight, and SEVEN records - while the same document read page by page gives eleven hundred. The answer came back almost empty and said nothing, which is the one failure this library exists to prevent.

    The threshold is measured on 20 real reports, both ways round: handed a document flat the share of rows reaching the full width is 0,5 % at the median and under two per cent on 90 % of them, handed one page at a time it is 30 % at the median and under two on 3 % of them. A doubt that misfires on three pages in a hundred is the right trade against silence on an empty answer.

[1.0.4] - 2026-08-12

Added

  • standardFontDataUrl and cMapUrl reach pdf.js. PdfEngine.getDocument could not carry them, so no reader could pass them whatever it did. They go through untouched, and a key the caller left out is left out rather than passed as undefined: pdf.js takes the key as given and resolves it against a base that does not exist outside a browser.

    And what it does not do, because the warning invites the mistake. Measured on 125 real annual reports: pdf.js prints Ensure that the standardFontDataUrl API parameter is provided on every one, three come back with genuinely broken text, and passing the pack changes not one character of any of them. The corruption is a subsetted font whose ToUnicode map is absent or wrong - the glyphs are embedded, their mapping to characters is not - and a pack of STANDARD fonts has nothing to say about a custom one. This option silences a warning and serves a document that really does use an unmapped standard font. It rescues nothing that is already lost at the source.

  • A merged column says so: the merged-column finding. The opposite failure to thin-column, and the dangerous one. A column the cut never separated is filled on every row, exactly like a good one, so no fill rate can see it: the reading is wrong and silent about being wrong. Read as one figure, one such column produced 97 wrong values out of 162 on a real property schedule, and the merged money column of the corpus loan schedule had been pinned since August 3 with the note that nothing warns.

    It fires only when a cell CERTAINLY holds two values: nothing but numbers and separators, and every number carrying its own decimal mark. Without that second condition two integers separated by a space are indistinguishable from ONE number, the space being exactly what French notation puts between thousands - measured, the loose rule fires on 48 % of a column that is perfectly well cut and the strict one on none of it. On the two real geometries of the corpus: 93 to 94 % on the column that really is two, on each of the four table pages, and not one finding anywhere else.

  • wellGrouped: is this number grouped the way its document groups thousands? readNumber throws the separators away, which is right for reading one number and wrong for deciding where two of them meet: 000 106 236 000,00 reads as a perfectly good hundred and six million, so a cut made there is well formed and still leaves 1 300 where the report prints 1 300 000. The value closes its sector either way, so no arithmetic catches it, and a quantity nothing cross-checks is where a wrong figure survives. Met on a real fund report by a consumer that had to write this itself.

  • labels: which cells could be the value a label announces. contract.ts states the need in as many words and answered none of it - SelfCheck.declared is a LIST because “a document may announce several candidate values when its layout scattered a label from its number” - and three consumer applications wrote the search separately: four lines under a heading, the first amount to its right, a column index read out of a header cell. Same question, three geometries, no domain word in any of them.

    labelledValues(rows, isLabel, isValue) returns each label with the cells that could be its value, closest first, walking the row and the column. columnOfHeader(rows, isHeader) answers the third geometry and refuses when several columns match, because two of them is exactly the document nobody should read on a hunch.

    It will not pick. Handing back one value would decide between two readings of a layout, which is the plausible-but-wrong answer argued against everywhere else here. The list feeds SelfCheck.declared and discrepancyOf keeps the one that fits, so the document decides rather than a rule about how far a number usually sits from its heading.

    One rule costs a reading when it is missing, and it was met on a real pension record: a search stops at the next label. Two headings printed close together let the second one’s figure count for the first as well - a doubled total, a false proof, and a refusal on a reading that was right.

    Unlike records, this one cannot be measured on the de-identified corpus: the mask replaces every wording, and the wording is what a label IS. Its cases come from the three consumers that met them, and its home for regression is the synthetic corpus, where the meaning is chosen.

[1.0.3] - 2026-08-12

Added

  • records: which rows belong to the same record, when a row is not one. The ninth mechanism, and the one three consumer applications had each written separately. In a great many real documents a record occupies two or three PRINTED rows - a street on one line, the figures on the next, the postcode on a third - and every mechanism here worked on the printed row, so one row per record undercounts by three to five times without a word.

    recordsFrom(rows) returns records, loose and findings. What joins two rows is one sentence: a table has a SPINE, the rows carrying its full width, and a narrower row joins the nearest spine it fits BESIDE - every column it fills being a column that spine leaves empty.

    That second half is the whole difference from the rule everyone writes first, and a count cannot see it. Attaching each fragment to its nearest spine gets the same number of records on both measured documents and swallows twenty- three page-furniture rows INTO records on one of them: a page header sits one row from a spine, so proximity takes it. It cannot fill a column the spine leaves empty, so compatibility refuses it.

    Nothing is ever grouped away: every row comes back in a record or in loose. On a table where a record IS a row it returns one record per row and changes nothing, which is the case it was measured against. And it says spine-not-sharp rather than guess when a record that leaves a column empty is as wide as a rich fragment - a real property of some documents that no threshold removes, and the point at which a caller who knows its document takes over.

    Measured in truecopydev/corpus, npm run banc-records, on two real geometries whose judged answers are opposite.

  • accentFree, which was already here in private. Lower-cases a text and strips its accents, so two spellings of one label compare equal. It served the month-name lookup and nothing else could reach it, yet every reader that compares a label read out of a document needs it: PDF producers disagree about accents, and a prescribed heading arrives with them on one file and without them on the next. It sits in notation beside decimalMarkOf for the same reason that one does - it is how the page was typeset, not what it means. It folds accents and nothing else: the eszett and the dotless i are different letters, and a caller who folds one knows something about its language that this library does not.

Documentation

  • In Node, pass no engine. The legacy pdf.js build is imported for you when pdfjs is left out, which the README said only obliquely: two consumers import it by hand in nine ingestion scripts, which works and is redundant. Said outright now, next to the reason the option exists at all.
  • DEFAULT_LIMITS is meant to be raised by a batch script. Twenty megabytes and forty pages protect a browser tab; an annual report runs to 45 MB over 200 pages, and two consumers raised the limits separately without anything saying they were supposed to. With a pointer to keepPage, which cuts at the right end of a long document.

[1.0.2] - 2026-08-11

Added

  • Every doubt is named, not only worded. readTable now returns findings alongside warnings: the same list in two shapes, one sentence and one code - blank-page, no-column, thin-column, pages-disagree - with the page and the column it is about. warnings is derived from it, so a message and a code can never say different things. A program that has to act on a doubt was matching English prose to do it, and a message rewritten for clarity broke it: for a library whose product is the refusal, the refusal was the one thing not machine-readable.
  • readTable keeps the rows in their pages. pages holds the same rows, laid out exactly like boundaries, so pages[i] and boundaries[i] are one page. rows is still the flat list and is exactly pages.flat(). Flattening loses which page a row came from, and some documents cannot be read without it: a page printing two tables side by side carries two runs of headings, and walking the rows in order alternates between them - a position inherits the heading of the other column, silently.
  • keepPage: which pages to open at all. maximumPages cuts at the end and only there, which is the wrong end of a long document: an annual report prints its portfolio from page 313 to page 1427, and reading its first forty pages reads a cover and an auditor’s opinion. Opening the engine on a page is what a reading costs - measured at 99 % of it on a 381-page report, against 0,02 s for the cut and 0,01 s for everything downstream. Pages that are kept keep the number the document gives them, and maximumPages now counts the pages opened, so it still bounds the work.
  • decimalMarkOf: the notation read off the document instead of guessed off a token. 1,234 is one thousand two hundred and thirty-four in Luxembourg and one point two three four in Paris, and no amount of looking at those five characters decides which. The same question as the column cut, asked of numbers: what recurs over the document decides. Three kinds of evidence, none of which knows what a number means - a run carrying both marks, a mark repeated over groups of exactly three, a mark followed by anything but three digits. null when nothing settles it, and readNumber(raw, decimalMarkOf(text)) composes because readNumber now takes that answer, null included.
  • checkExtraction: rows checked against their document in one call. The rows may come from anywhere - a reader written against this contract, a spreadsheet, or a model handed the PDF and asked for a table. It rounds the sum to the document’s precision, because discrepancy compares a float subtraction against exactly zero and a cent-sized residue turned a correct reading into needs-review; and it flags every row carrying a figure that appears nowhere in the document, read with the document’s own decimal mark. Writing this by hand was the twenty lines everybody wrote the same way.
  • npx truecopy --json <file>. The same reading as data: the rows, the rows per page, the cut, and the findings with their codes. The command printed prose only, so trying the library from an agent meant writing code first.

Fixed

  • A number written with commas for its thousands was read truncated, in silence. findNumbers('TOTAL 48,275,477.16') returned 48 275: the token pattern accepted a space or a dot between groups of three and not a comma, so the match stopped at the second one. readNumber read the same string correctly, which is what made it invisible. Any reading that ran over English notation in running text moves with this, and it moves toward the number the document prints.

[1.0.1] - 2026-08-09

Added

  • A skill, so a coding agent writes against the real API instead of inventing one. truecopy was published after every model in service was trained, which makes it the one library a model cannot know: asked to read a table out of a PDF it produces plausible truecopy code, and the first thing it reaches for is selfCheck() { return null }, the exact dodge this library exists to catch. skills/truecopy/SKILL.md ships in the package, so it is on disk and version-matched the moment you install: copy it into ~/.claude/skills/, or add the repository as a plugin marketplace. It is plain markdown with no Claude-specific instruction in the body, so it serves as an AGENTS.md for anything else that reads one.
  • npm run skill, because a second copy of an API drifts. It fails when the skill calls an export the package no longer has, names an entry point that is gone, or when .claude-plugin/plugin.json and package.json disagree on the version. KindThreshold.column becoming share is the case it exists for: a rename touches no prose file, and the skill would have gone on teaching the old name to the reader least able to notice.

Fixed

  • A missing engine was reported as a locked document. With pdfjs-dist absent and no engine passed in, the door refused with not-opened and the message “if it is password-protected, save an unprotected copy”. That sends a reader hunting for a lock the file does not have, and an agent reading it writes that the document is protected: a wrong diagnosis stated confidently, which is the failure this library exists to prevent. no-engine is now its own refusal and its message names what to install. Met on a real document, while reading a UCITS annual report.
  • A release tag could still be walked forward. The tag protection announced in the entry below forbade deletion and force-push, which reads like immutability and is not: “no force-push” blocks a rewind, while moving a release tag onto a later commit is a fast-forward and goes straight through, and forward is the direction that matters, since main advances after every release. Measured by trying it rather than by reading the setting, and the tag moved. refs/tags/v* now accepts no update at all.

Changed

  • The em dash is gone from every page here, and cannot come back. 84 of them across eleven files, all in the documentation and none in the source, with the README the one everybody reads on npm. Each was replaced by what its own sentence wanted, a colon, a comma, a full stop or a bracket, rather than by one substitution repeated 84 times. npm run dashes is now part of the gate and refuses the whole dash block. One of them was worth more than typography: the README quoted a warning this library emits and quoted it wrongly, with an em dash where the real string carries a spaced hyphen.
  • What a version number will do to you, narrowed. The rule was “1.x.0 for a new export, a new option, a new entry point”; it is now a patch, and the second digit stays put. Almost every release adds surface, so the old rule spends a minor every week and the number stops carrying a signal: it took selfstore from 1.6 to 1.8 in three days. RELEASING.md is the whole contract: what earns which number, when a release is cut, and why nothing is ever unpublished.
  • A release now publishes the tag it says it does. Dispatched without one, the publish workflow used to check out the default branch, so a release shipped whatever main happened to be at that minute, not the commit its notes describe and not the commit its provenance attests. The tag is now required, its version has to match package.json, and refs/tags/v* is protected against deletion and force-update: once vX.Y.Z exists it points where it points forever, which is what makes the attestation on the npm page worth checking.
  • The path from a commit to the registry is hardened. Actions are pinned to a commit rather than to a movable tag, installs run with --ignore-scripts, what a consumer actually installs is audited, and the whole history is scanned for secrets. main takes no direct push and cannot merge red.
  • Publishing no longer holds a credential. The publish workflow authenticated with NPM_TOKEN; it now authenticates by OIDC, and npmjs.com names this repository and this workflow file as the only thing allowed to put a version of this package on the registry. There is no secret left to rotate, leak or let expire, and an expired one is the worst of those: it publishes nothing while the job reports success. It is also the only path that stays open, since npm has stopped issuing classic automation tokens and now refuses direct publishing from the granular tokens that bypass two-factor auth. The file name is part of the permission: renaming publish.yml revokes it until the trusted publisher is updated to match.

[1.0.0] - 2026-08-03

The first release. The API is what it is going to be: from here the version moves in its third number, and the first two move only for a reason written down in this file.

A parser that returns a plausible-looking table from a document it misread is worse than one that returns nothing, because nobody checks a table that looks right. This library is the pipeline around whichever reader ends up doing the work: the door bytes come through, the checks that catch a wrong reading, a way to see what it decided, and a conformance kit that goes red the day the reading stops being honest.

The mechanisms

Eight, in the order a document meets them (open, notation, classify, columns, roles, signature, schema, explain), plus layout for the geometry, table for the two-line path, pattern for domain knowledge held as data, contract for the shape of an honest reading and kit for what makes it compulsory. Each is also its own entry point, so a project that wants one pays for one.

pdfjs-dist is an optional peer dependency. Reading text, a paste or a CSV loads nothing at all.

What it does that a table extractor does not

  • It says what it cannot vouch for. readTable(file) returns the rows and a list of warnings computed without knowing anything about the document: a column filled on 2 % of its rows, a page that shows no column at all, pages that disagree on how many columns there are. An empty list is not a promise that the reading is right: it says nothing looked wrong from the shape of the page, and the difference between the two is the whole argument here.
  • The document checks itself. A reading that contradicts what the document declares about itself never comes back as sound. Refusing beats a plausible table, and every value can be pointed at (Place, placeOf, placesOf, ReviewableRow.where), because a person confirms what they can find again.
  • No configuration per issuer. The table is learnt from the table: a column full of dates is the date column whatever its header says, and a row that breaks what every other row does is a total, a balance or a footer. Reading no label is what survives an issuer never seen.
  • The cut keeps what recurs. The spread of x over a whole page counts the letterhead, the address block and every word inside a description: measured on a real statement, twelve columns where the table has five. boundariesFromRecurrence keeps only the left edges that come back row after row, which needs no knowledge of the document at all. Where the page offers something better, boundariesFromAnchors takes it.
  • One engine, three rulers. A PDF is measured in points, a table pasted with spaces in characters, a delimited file in the index of the field. The cut does not care which ruler measured them, so there is no second algorithm and no second set of thresholds, and the reading names the unit it worked in, because cut at 1, 2 with no unit is a riddle.
  • One declaration, two outputs. schemaOf yields the check and the record type, RecordOf<typeof schema>. A schema is pure data, so it survives JSON and can be served, versioned and swapped for another market without a deploy. validateWith takes any Standard Schema, so a row type declared in Zod or Valibot is not declared twice.
  • explainDocument puts the decision into words: the cut, what each column holds, which rows were dropped and why. Reach for it first when a reading comes out wrong.
  • The kit makes the contract compulsory. An interface is dodged with a return null; an assertion is not. checkContract runs six rules against a corpus of your own, and contractReport writes the run as a file you commit and watch move in a diff.

The gate this library holds itself to

Format, lint with zero warnings, typecheck, build, the public surface, knip, jscpd, and 100 % coverage as a ratchet. A kit that measures others measures itself first.

API.md is part of it: every exported name, by entry point, committed. knip cannot see that surface: the barrel is the entry point, so everything it re-exports counts as used and a name nobody imports stays green forever. Measured while this file was being drawn up, thirty-two of fifty-seven exported values had no consumer anywhere and nothing said so. npm run api reads the built declarations through the TypeScript checker, because a re-export, an overload and a merged interface each defeat a regular expression and none of them defeat the checker. Adding an export is now a line in a diff before it is a promise in somebody’s import, which is what a 1.0 has to be able to say.

Refused, on purpose

  • The library states what it will never do. No domain meaning, no per-issuer configuration, no CSV parser, no validation library, no format opened on its own, no filesystem, no second cut. The README carries the list. A library with no stated limit grows one every release.
  • readTable is the default reader, and is named as such. It is the on-ramp, so that the first minute costs nothing; the product is the pipeline and the guarantees around whichever reader ends up doing the work.
  • A file that quotes its fields is not split. A quoted field may hold the delimiter itself, and splitting anyway shifts every column after it. The rows come back whole with a warning, because half-parsing a CSV is the plausible-but-wrong reading this library argues against.
  • An aligned paste is not read as a CSV because its amounts hold commas. Every French amount does, so counting commas finds exactly one on every line of a pasted statement, and cutting on it would turn 12,40 into two columns. Alignment wins; only a tab overrides it, a tab never being punctuation.
  • No height on a Place, because none is known. Inventing a line spacing would draw a rectangle on the page the document never had.
  • The pdf.js worker URL is not resolved for you. Every bundler spells it differently, and picking one here would lock you into it.