Skip to content

Latest commit

 

History

History
107 lines (69 loc) · 174 KB

testing.md

File metadata and controls

107 lines (69 loc) · 174 KB

Testing

bash tests/run-all.sh          # the suites side by side, on half the processors
bash tests/run-all.sh -j 1     # one thing at a time

Twenty-one suites and a check that the settings pages are current, each independent, all runnable without network access or a corpus of real documents. run-all.sh runs every one even if another failed, and exits non-zero if any did.

run-all.sh runs the suites side by side, and -j says how many things run at once in the whole run: by default half the processors the run may use, which leaves the rest of the machine room. The suites that do one thing at a time run in turn, in the order run-all.sh lists them, as one of the run's workers, so the portability test is still first. Beside them, from the start, run the convert, EPUB, LaTeX, and decks suites, whose cases are each a process of its own, and the PDF suite, which builds its books side by side, the longest first. A case or a book holds one of the other workers while it runs: run-all.sh makes a folder with a file for each of them and names it in OER_TEST_SLOTS, and a case or a build holds a lock on one of the files (flock, in tests/parallel.py), waiting while every one is held. The system drops such a lock when the process holding it ends, however it ends, so a suite that's stopped takes no worker with it. When the suites run in turn are done, run-all.sh adds a file for their worker, which a waiting case finds. Each suite's output is printed whole, in run-all.sh's order, the one being waited for as it comes; a case's lines are printed whole too, in its suite's order; and the PDF suite is last, since it builds every book before it checks any. -j 1 runs every suite in turn, each one's cases one after another in the suite's own process, printing as it goes. A suite run by itself takes -j as its own count, of cases or of books, and shares it with nothing. A LaTeX case's TeX runs can take a few hundred megabytes each, so on a machine short of memory a smaller -j is the way to go.

Ctrl-C stops a run, or a suite run by itself with its cases side by side: the cases and builds running take the signal themselves, nothing more is started, and run-all.sh removes its own files. It hadn't stopped a suite whose cases ran side by side, which went on to start the rest of them (the convert suite at -j 2, signaled eight seconds in, was still running 90 seconds later; it ends in under a second now, measured 2026-11-11). What a run of convert.py stopped partway leaves in the system's temporary folder is still there afterwards.

The suites had run in turn, only the convert, LaTeX, EPUB, and decks suites spreading their cases over -j, and the PDF suite building two books at once, however many -j gave it, though it has 23. On a ten-core machine a run at -j 10 took 30 minutes 39 seconds that way, with 109 minutes of processor time, so between three and four of the ten at work on average, and takes 10 minutes 45 seconds now, with 101 minutes, so nine of them (2026-11-11). -j 1 there, one thing at a time, took 50 minutes 26 seconds, about 4.7 times as long, with 64 minutes of processor time (2026-11-11). -j 20 there, a worker for each of the machine's twenty threads, took 10 minutes 21 seconds and 124 minutes of processor time: a second thread on a core adds little, and what bounds a run on that machine now is its work, two thirds of it LaTeX's, not how the work is scheduled. Measured a suite, a case, and a book at a time on two processors (2026-11-10), the suites' work came to 3,820 s, 47% of it the PDF suite's and two thirds of it LaTeX's, and a model of the run from those times put half of a run at -j 10 in the PDF suite and a fifth in the audit and check suites. With two processors there's little idle time to recover: run-all.sh -j 2 took 1,639 s before and 1,471 s after, every check passing (4,067, and 4,087 with the new ones).

The suites' runs of convert.py pass --quick, so the output check's validators start only where a check reads what they say: epubcheck and the Nu checker in the check suite and in one case of the audit suite, epubcheck on the EPUB suite's books and a few of the convert suite's, and veraPDF in the PDF and LaTeX suites. They had started, a Java process each, in every run, which was most of the convert suite's time. A run that asks for veraPDF's WCAG checks, Ace, or axe-core can't pass --quick, which leaves those out too, so the audit and check suites hide epubcheck and the Nu checker from such runs instead, each variable (EPUBCHECK_JAR, VNU_JAR) naming a file that isn't there: measured on two processors (2026-11-10), the audit suite took 261 s with them found and 93 s with them hidden, every check passing either way, and the check suite 109 s and 56 s. A new check that reads what a validator says needs it found again, as the audit suite's case_validators has it.

Suite What it pins down
run-spelling-tests.py US spelling in every tracked text file, prose and names alike, naming file and line, the changelog's released sections included. Needs git.
run-config-tests.py Forty fixtures over the configuration cascade: what a false override means, what an explicit null means, whether lists append, which identifiers are valid XML names, what happens when a setting is written twice, a sidecar or report setting inside a target, what a retired setting or another block's says, an unknown setting named with the block it's in (defaults.images, targets.pdf) and a section's setting written beside its section named with the section it belongs to, what an unquoted on or off means to a setting of fixed values, and a number outside the bounds the schema gives it refused, one at either bound taken, and YAML's .nan refused as no number; and a file's targets:, a target, or its project: block written as a list or as one word refused with what it should be, a target with nothing under its name still being its defaults.
run-roundtrip-test.py That writing a configuration and reading it back changes nothing.
run-unit-tests.py The small functions that decide filenames and directory names, the places where one fact is written down twice and could drift apart (the PDF target's default page and the configuration page's copy of it among them, and axe-core's rules chosen by their WCAG criteria against those its own level tags choose, at each version and level, and the vendored axe.min.js against its README's hash), what --wcag makes of axe-core's results (findings and the summary's lines, from a run written down, a slide by its route, a content document an EPUB's, the fix a built-in check's where one overlaps, with --verbose an element a note), the start of reveal.js held to settings alone (a value from a deck's YAML that ends its string and goes on as code refused, by its setting), a presentation's scripts held to TextbookImprover's and its window to the slides' size, no more than 4,096 pixels across or down, what keeps one page from holding the check up (each step of opening a page, and closing it, within its time, against stand-ins that don't answer in it, and a page past its budget named, whatever step it's in), and the colors page.css and highlighting.theme give text, against the backgrounds they land on, page.css's rule for dark mode alone keeping a source's own background's text the light mode's. A source's own colors as own-colors.lua gives them what dark mode needs, run with Pandoc's Lua: a color read as CSS Color 4 gives it, and one that says none of its own told from one not known here; a text color's partner at 4.6:1 on #232629 and no more, its OKLCH hue kept, black the dark mode's #fdfdfd, and one readable there already kept; a background of its own given the class own-background, what's in it left, both colors left, and a background that isn't one color left with what's in it, in spans, divs, and a table's cells. A formula in running text that an HTML page sets in display style, where display style changes it, put in a span for math-repair.lua, a fraction, a sum's limits, and a formula whose math element says so, not a letter, an accent, a fraction in a script, one display style is turned off for again inside, a display formula, or one marked already, the rest of the page as it was, the words <math> in a comment or an attribute's value, an empty formula, and a formula in a script left as they are, and the page as it's marked marked no more (lib/mathstyle.py). An HTML table whose <thead> holds every row given a body from its first row of data, a picture or a formula as much as words, its header rows, an empty corner among them, left its head; one with a body after it, or holding a table, left as it is. The footer setting outside an HTML page: a Word footer's no-break space kept, no part of a table in it keeping its id, and a chapter's notes before it, whatever it holds. WCAG 2.2's criteria as W3C's source has them, every WCAG standard a finding names agreeing with them; veraPDF's report of its WCAG profile read as findings (only the profile's own rules, each a note counting its failed checks and naming their pages, the first 20, or with --verbose each failed check a note at its page and a line after its rule's, a rule failed more often than veraPDF lists saying how many more, nothing but a warning when the probe passed, a file veraPDF skipped a warning, and a report in a shape no veraPDF writes read as far as it goes); the probe itself, its cross-reference table right; the profile a PDF's header picks; the setup check saying which PDFs the checks run on, with both profiles, one, or neither, and its warnings (no folder named, a jar or a profile missing from it, a profile that can't be read, cut short or in an encoding that can't be read, a module there twice, and veraPDF stopped after the time it's given), the one that the modules didn't load before a profile's; a warning's list of the PDFs a missing profile left unchecked; a rule's summary line when veraPDF lists fewer checks than failed, naming only the listed checks' pages, and without pages; what --verbose reads from the PDF where a check failed, a link's address, its description when that isn't the address, an address outside ASCII as UTF-8, one in UTF-16, and one kept in an object of its own, and the line repeated characters are on, in marked content, with a subscript and a superscript, under a transformation, after a label, and shown with ', two blanks a space apart kept apart, cut short past 120 characters, and a page read partway read as nothing, and nothing where the PDF has no such page or annotation; what convert.py gives the output check of --quick, --wcag, and --verbose; and a summary of WCAG notes alone. A page's language (lib/languages.py): a tag in BCP 47's usual case, Word's sort suffix gone, a word or a code for no language none; one language whatever the region, but not in two scripts; a Word file's own, by the language most of its letters are in as Word resolves each one's (a paragraph style's by the style it's based on, a character style's, the East Asian language for Japanese, the complex-script one for Arabic and for a run marked complex script), else its core properties'; OpenStax's language property trusted over US English its marks say, another company's not; a deck's own, by its runs, its default, or its masters'; an HTML page's by its body's then its root's; a row deciding, else the file's own, else the project's, a file's in another region of the project's language the project's; what a copy is given and a Markdown target says; the sidecar's rows matched by page, a deck's name, or a file's name made safe, the later of two for one page used; a Word copy's and a deck copy's marks of their own language rewritten, a passage in another kept, the attribute Pandoc's writer puts each language in; an HTML copy's lang and xml:lang rewritten, its root given a lang where it has none, and a Markdown copy's front matter's; a contents listing's and the Notes page's titles in their pages' languages, a group's by the page its line stands for or the language its pages share, and a note gathered onto a page in another language in its own page's; groups nested more than three levels deep warned of once, counted and named; the sidecar's columns where convert.py reads them, and the filters' key the same; and a one-page book's title page found through a page's div of its language. Sidecars as Excel saves them, a byte-order mark first, with a report appended after a mark of its own and a row after another: each row read by every reader of each sidecar and keyed as written, no header row among them, a header row of math-keep.csv skipped wherever it is, and one saved in Windows-1252 found not to be UTF-8 at its line; one Excel saved as plain CSV rewritten as UTF-8 (sidecars.rewrite_as_utf8), its lines that aren't read in Windows-1252 or in Mac OS Roman, whichever has fewer characters misplaced, whatever its line ends (each kind of misplaced character on its own, and the signs both read alike counting for nothing), or else the one a CR alone ending the lines tells, a line misplaced as Windows-1252 among lines that aren't not making the file Mac OS Roman, a line in UTF-8 kept as it was and shown, a mark at a line's start read as UTF-8's, the file as it was kept beside it under a name not taken, a link's file rewritten, its mode and owner kept, and the lines read shown, ten of them, a character that shows as nothing by its number; what the reviews found read wrong or stopped read right, and one line misplaced in both among two not stopping it; and lines all misplaced in both (Greek and Czech), a control character, UTF-16, a file another program has open, a disk full partway through the file or the copy beside it, or a read-only file stopping it, the file left as it was with no copy beside it; one in UTF-8 without the mark given it, its bytes otherwise as they were, every line end and a mark partway among them, its mode kept, and its lines outside ASCII shown, one of ASCII alone and an empty one given it too, and one held open, a read-only one, another user's, or one linked from elsewhere read as it is, the run saying why, in a note for one of ASCII alone that it can't mark; one in a code page the run can't rewrite (held open, a disk full partway, in a folder that can't be written, read-only, as root too, or another user's) read in it all the same and left as it is, the filters given a copy in UTF-8, and a rewritten one given its group where its owner can't be kept; another user's said to be theirs, though the user can't write it either, its folder said to be where that can't be written, one that nothing but whose it is keeps the run from rewriting, whether the user may write it or only its owner may, said not to be given the mark or rewritten, not that it can't be, and warned of, of ASCII alone too, one in a folder with the sticky bit said to be its owner's to put right, a link saying whose file it leads to, and one that can't be given its owner, as root in a user namespace can't, left as it was, and one a user may not write, one root can't (marked immutable), one on a disk mounted read-only, one whose replacing is refused, and one Windows says another program holds, or answers "access denied" for, each said to be that, with what to do for it; a rewritten one keeping its extended attributes, an access control list among them, but one that describes its old contents, and flushed to the disk before it's moved into place; one that's there and can't be read (refused, another user's, a pipe, never opened, a link to nothing, a folder) gone without, said to be, and one a disk's error keeps from being read stopping the run; root's sidecars read by a run as another user, where root runs the suite and can be one (setpriv), a copy of one's own made with cp -p, as the run says to, given the mark, in a plain folder and in the user's own with the sticky bit, and refused its place in root's, the user's own file there given the mark, and a run as root in a user namespace (unshare -r) leaving root's file root's; every reader of every kind of sidecar reading one left in a code page as written, and one that can't be read as none; the filters given a copy of each sidecar they read themselves; a setting naming a link to nothing stopping the run, and a link to nothing at a sidecar's own name gone without; every report's writer writing one mark, and the report read back as written, the output check's findings among them; a cell a spreadsheet would take for a formula written with an apostrophe before it and read back without it, by Python's readers and the filter's alike; and util/shortdoi.py reading a sidecar Excel saved, writing its sidecar with one mark, rewriting one saved as plain CSV as UTF-8, and a dry run writing nothing; one it can't read and one read-only stopping it before anything is looked up, and a dry run saying a run would; one with another link to it written in its place, the other name with it; an earlier run's copy kept; and a write that fails partway giving the file its original back. The note on a deck's math report in a run that converts the decks, saying rows are written out in one line only when some are. A sidecar setting naming a folder stopping the run, saying so. A picture in a book's own media/ folder found by an HTML or a Markdown copy under its page's name, as the pages key it, and by its path alone. A Word list item's later paragraphs as Pandoc 3.13's writer gives them, indented and unnumbered: the list levels its reader keeps open followed as it follows them, ended at a heading, a rule, an empty paragraph, a paragraph indented otherwise, and a table no item holds, and kept past a table an item holds, the paragraphs after it made list paragraphs; in a file the target wrote, an item's quotation lined up with the item's text and marked with its depth, in a footnote lined up alone, and with a reader before 3.13 every later paragraph a list paragraph; a formula given the item's indent, or the blank marker where the writer numbers an item's later paragraphs; a quotation in an item, and a quoted list's paragraphs and code, indented; the file's variable written once, beside the quoted lists'; and code in an item's quotation found at the quotation's depth, in such a file and in one with numbered later paragraphs; a figure an item holds keeping its list, the paragraphs after it list paragraphs, its picture and caption losing their indent, counted by the target as the reading counts it, and put back in its item after the reader; the words of an item the writer numbers nowhere, after its list, a list paragraph at its level; a table's caption in a list item's style keeping the list, and put back with the table, or made its caption where its words are the table's, and a list of another numbering after a held block, the next item's own, kept in the item; a rule an item holds keeping its list; a note ending the reader's lists where its reference is, the item's paragraphs before it list paragraphs too, with no indent; an item ending the reader's lists inside the one before it; a quote off the quote step not the item's; a picture with a bookmark beside it, or a caption that keeps with the next paragraph, no pair to the reader, and a caption after a table one, its indent taken off where an item holds the table; a quote, or a paragraph indented its own way, before a held table no caption; the outer list ended to the reader by a held table, an inner item opening after it; a list in a table's cell, a list paragraph for a reader before 3.13 only, and one in a note too; which figures the target holds, as one or as a table, a mark around a figure the reader makes none of left out, a captioned picture with a bookmark in its paragraph counted as reading moves the bookmark, a table's caption, each paragraph its table's mark holds, in Compact styled Table Caption, and a quote mark at depth one counted as it's taken off; an outer item's paragraph holding a note after its list left the reader's continuation; the blocks the reader gives back after a held block counted as it folds a paragraph after a list into the list's last item and splits a list whose item holds a table; an item that opens with anchors before a list given a paragraph of them; a formula alone in a Plain or a span a display paragraph; after the reader, an outer item's held block put back with its blocks, the inner list's parts among them, before an inner item's, which goes back in its item, not in a list that item holds, one already back in its item left there, and blocks beyond an item's count put in the item whose list goes on; and the reading's copy for a reader of 3.13 and for one before. The page for WCAG 1.4.8 (AAA)'s measure of its full lines, as the build reads LaTeX's count of them, and the type size its warning names, to the half point above. The fit report's line for blocks of code wrapped at the code_wrap setting's size, and at the code's own. Its warning of a highlighted line too long for a page even wrapped, saying to break it in the book's files. The latex target's master and the files it includes, a page named as the master written apart from it. Pandoc's LaTeX template with the font setting before the line that loads the fonts' packages, otherwise Pandoc's own, a template without the line taken as it is and the run warned, and the setting's Lua with nothing TeX would read as its own. A LaTeX book's tagged copy with the setting just after its \DocumentMetadata, the one the copy adds or the book's own, before its class, and once in a copy made from a copy. The setting's reading of whether a CFF charstring ends with endchar, run with Pandoc's Lua: an outline's endchar and a callsubr ending it, a width alone, an empty charstring, an escaped operator, and numbers whose last byte is endchar's not, and a hint mask's bytes stepped over, the stems before it counted in pairs, a width and a moveto's arguments not among them, and no dollar sign in the setting's Lua, which Pandoc's template would read. The faces a PDF's metadata file names, as Pandoc's template writes them into fontspec's commands: a face's name, its options, and its fallbacks as the file gives them, an underscore and a brace in them as they are, where the writer had escaped them, raw LaTeX in an option and a quotation's marks kept, an apostrophe straight, and the other fields, a title among them, as they were. A heading's formula in the PDF filter's LaTeX, its text in its bookmark in a protected \texorpdfstring, a fraction's and a root's too, and one that can't be text, a binomial, a command texmath doesn't know, a formula over two lines, or a fraction of a binomial, its TeX there, its runs of spaces one, and recorded with what the plain writer warned of, the build taking Pandoc's warning of each out of what it said, texmath's reason with it, once for each time it's recorded, and saying how many, once; a formula's text as math-text.lua writes it, run with Pandoc's Lua: its spaces, its scripts in Unicode's superscripts and subscripts or with their marks, a script within a script, fractions, roots, a fraction or a root a script follows, limits, arrows and lines over letters, and what it can't write; a formula ending in a comment given a line end, and a display formula and one outside a heading left to the writer. A title's formulas as text where the title is made outside the filters: an EPUB chapter's, found by the TeX in its heading's MathML, its entities read and the text escaped, one the pages didn't note its MathML's text as before; a piece's, the words its name is made from the TeX; and the run's note of those left as TeX, each page's once, of a declared title's said to be in titles, and of a picture's description's apart, where a target that writes alt text so has the picture, not where none does or a passage around it or the page's variant leaves it to the others, a passage's targets read as the target filter reads them. A page's title as text with a declared title's formula as its text where the page noted it, and its TeX where it didn't: the contents', a book's, and a Word file's, which had left it out. The pages of the PDF LaTeX wrote, as its last lines say, a page of one, and none where they don't say. A math font a metadata file names given a Path, looked for as the file there, Latin Modern Math set where it's missing, and the warning that names the file. The page's measures without their files, counted in characters, the warning saying why. The page's measures reported to six places, a character of code of 1,200/2,048 of an em among them; measures set before the run used where the filter can read them whole, and none, with the run's reason, where an earlier version wrote them. A glyph's name as the Adobe Glyph List's specification maps it, and a PDF whose Type 3 fonts name minus.case given ToUnicode entries for those fonts, a form XObject's too, a font's own entries kept, a font of the list's names alone left as it is, and nothing to do the second time; every page's and every form's fonts, their resources direct dictionaries; and fonts not as the PDF reference has them, a string in a font's Differences or resources' fonts an array, stopping nothing, the fonts beside them mended. An image's natural size as LuaLaTeX's graphicx sets it, for a PNG at its resolution or none, a JPEG at its JFIF or Exif resolution, in inches or centimeters, or none, an EPS's bounding box at its trailer, a PDF's page at its crop box, turned a quarter as the page is, a crop box larger than the media box as it's written, a resolution of more than 65,535 to the inch or of 0 one way taken for none, and JFIF's per centimeter made per inch with its fraction dropped, and its scale written as the width it gives the image, its other options as they're written, an alt text's comma before a group among them, or left beside a width, an angle, a second scale, or no file. A note's mark reported as the widest of the first nine notes' and of one digit, and a digit's advance in it, none or more, and counted so, a digit's advance more for each digit past the first its number needs, a mark of one width whatever its digits as measured, or in characters a digit each; whether a chapter numbers the notes from 1 again reported with it, and each table's notes numbered as LaTeX numbers them, from 1 again at a numbered chapter of the main matter or an appendix where it says so, on through the front and back matter and an unnumbered chapter, and through the book where it doesn't or says nothing, a table inside a table given the outer's number. markdown-reader.lua on a Markdown source's raw code: one whose attribute holds a quoted < and />, one element inside another, one named in capitals, and one over two lines taken as written, and one whose < a backslash escapes, one in YAML, and one self-closed with a closing tag after it left to Pandoc's reader, smart punctuation outside them as before; raw code over more than a line, in a paragraph, a block quote, a list's item, a list in a quote, and over three lines, its text as written, its line breaks spaces, the page read once, and left to Pandoc's reader where a later line is a lazy line's, opens with a >, or follows a blank line, or where it holds a backtick or a pipe table's escaped bar, in a code span and an indented code block as Pandoc reads them, two code spans holding its tags two still, a grid table's cells Pandoc's, and in a multiline table, where its lines taken as written moved the table's words, the table as Pandoc reads it, the elements outside it taken as written, and the run saying how many were left; a tag of the source's own with the name the reader's marks would have kept as it is; and in a simple table, a row's words where Pandoc's reading puts them, a CJK character counted two columns as Pandoc counts it, and where the reader counts a character narrower than Pandoc, the page read as Pandoc reads it; and where Pandoc repeats, pairs, or escapes what's around raw code: two code spans holding an element's tags two spans still, an element in an image's description in its caption and its alt, a note referenced twice holding it in both, a pipe table's escaped bar and its widths Pandoc's, a link to a heading by its text and a reference by an element where Pandoc's reading has them, a link the element's text would end Pandoc's reading and the link after it its own target, a column's alignment its own where only it would change, a raw <pre> whose text starts on the line after its tag, whose tag holds a quoted >, or with a <code> on the line after it a code block of its lines, and one whose <code> names a language that language's, a YAML block right after a fenced code block, a div, or raw HTML left to Pandoc, and a note in an element whose contents Pandoc's HTML reader drops, a <head> in the page's body, kept with the text it was in. Pandoc asked for MathML in the form its version takes, --mathml before 3.11 and --math-method=mathml from it, by every call in bin/, lib/, and util/ that writes a page, an EPUB, or a presentation in HTML, every Pandoc command line there naming its output format, and by every filter's pandoc.write of HTML; the table filter's tables written the same where Pandoc has no pandoc.TableBody, as 3.9 has none; and the Markdown reader's page of raw code read the same where pandoc.read takes a list only of Pandoc's own source objects, as 3.9's does. The stand-in for Pandoc 3.9 (tests/pandoc39/pandoc) answering as 3.9: its version, an option 3.9 lacks stopping it with 3.9's message and exit code, a beginning of one it has taken, math as text unless asked for, a Lua filter's and pandoc lua's functions, an installed Pandoc older than 3.11 refused, a copy of it on the PATH passed over, and a run ten stand-ins deep stopped. images.compress's levels and images.downsample beside them, a JPEG's quality read from its file as Pillow saved it at each quality from 1 to 100, a JPEG written again at print keeping its color's resolution (4:4:4) and at screen written at 4:2:0, one scaled down that was saved at a lower quality keeping its own, one scaled down whose resolution is in its EXIF data printing at its original's size, and a build on its own using the run's copies made for its plan, and making its own otherwise. An equation's text in a Word copy decided as Pandoc reads it: runs side by side one text, but each its own in parentheses, a bond across a spelling mark, a mark set under something, a limit under lim, and literal text. A Word display paragraph of more than one equation a display paragraph for each in the reading's copy, its properties with each, in the body, the footnotes, and the endnotes, and so a display formula each to Pandoc's reader, where it ran them together, and one of one equation or with something between its equations as it was. The rules --experimental adds, as the docs name them. No Python file binding a name twice at its top level, as latexsource.py's second table of lengths had replaced its first, and a length in each of TeX's units, a space between words in didot points kept. An audit's cache of axe-core's results: a page's kept with what its check read, used again while that reads the same, not with --force, nor once a file that wasn't there is, other rules emptying the cache, nothing kept from a run whose probes found a problem, and the setup's parts. A report Ace 1.4.6 wrote, read: its own findings named by their paths in the EPUB, axe-core's counted and left out. What an EPUB's ZIP may not hold before Ace unpacks it: a symbolic link, by its mode whatever system wrote it, a name twice after case folding or Unicode normalization or as a folder's, a name that's absolute, starts with a drive, holds a backslash, or has a .. segment, and a directory that can't be read; an EPUB of files and folders, each name once, holds none. The workers a run's suites share (tests/parallel.py): no more held at once than the run has, by one process's threads or by several processes, one freed when the process holding it is killed, a suite's cases and the PDF suite's builds each holding one, the longest first, and the command run-all.sh starts a suite through taking Ctrl-C's signal again. And run-all.sh itself, on stand-ins for the suites it lists: side by side, each suite's lines under its own heading in the list's order, every suite run though one fails, the failed one named at the end with its FAIL line and a skip counted; in turn with -j 1, started as sh. A PDF's ID made from its content under SOURCE_DATE_EPOCH (latexbuild.steady_id), two PDFs that differ only in their ID then the same file, and left alone without it. A picture's EXIF orientation as it's read, its upright copy for each of the seven orientations, the copies a target's documents need, and Pandoc's resource path with them first (check_upright), with a TIFF turned once whether or not Pillow's reader has turned it, and a WebP left as stored. What a run is started with (check_inherited): a LaTeX book's layout and colors reach build-pdf.py from convert.py alone, build-pdf.py names OER_MEASURES, OER_PDF_VIA, and TEXINPUTS when one is set, and a cartridge's manifest is dated from SOURCE_DATE_EPOCH.
run-headers-tests.py The table-headers pre-pass end to end, on .docx files built as OOXML: keys, the sidecar's values and aliases, the new-rows file, the report, a key that matches nothing set aside, the run going on, and a sidecar Excel saved as plain CSV rewritten as UTF-8 first; the sidecar read back as utf-8-sig, since the run gives every sidecar the mark.
run-census-tests.py The sidecar guess in lib/tablecensus.py, against tables built as OOXML so each carries exactly the formatting signals it means to, numbers signed with a minus sign (U+2212), as OpenStax's books write one, among them, and HTML tables as Pandoc reads them, a picture's alt text its cell's words where pictures head a table's columns and none where pictures are all it holds; and rows one cell across that are notes on the rows above them, not bands, and rule out a header column: two cases side by side in pairs of rows (Prealgebra 2e's Table 3.1 and Table 3.4), steps in two columns with a step across both, a table formatting marks both, a header row Word's table look formats, first-row, and one below a data row, unknown still, as is a table no rule recognizes with Word's look, a note within a part between bands, and a summary row's empty label beside notes no summary row's; and sentences that stay bands, over the rows of a table that ends with them or under another row one cell across, in a self-test cited at its foot or closed by its total's line, its scale with a header row or not, a sentence across a worked example's steps, labels in a table that ends with a note, and a note in the last row alone, which leaves a header column, as it does with the table's source's line after it.
run-portability-test.py That every Python file parses on Python 3.9, the oldest version supported. Compiles with python3.9 if one is installed and scans the source otherwise; looks for an annotation 3.9 can't evaluate either way. And that the newest Python warns of nothing in a file: an argument to re.split, re.sub, or re.subn that Python 3.13 wants named, given by position, or anything the running Python warns of in compiling it, an invalid escape sequence in a string among them, which Python 3.12 and later print on every run of a script.
run-convert-tests.py convert.py on the fixtures: a bare directory converts into html/, several targets each in their own directory sharing or splitting intermediates, media copied, a link to a file named in another case or with backslashes read as the file from each source and a variant, arguments passed through, a page contents doesn't list left out, the run naming --include-all-html, which appends it, as --includeallhtml, its old name, does with a warning, a numbered page's number in its <title> and its heading, a title with a character outside ASCII, a formula, or a note too, a page's kept title block showing its heading, a formula in it MathML, where the title is the heading's words, and a declared title there as written, a Markdown source, a word in an HTML page's formula written whole and upright where Pandoc wrote italic letters (and one in a formula MathJax drew, on a page of its own), with two letters and a name Pandoc keeps whole left to it, an evaluation bar's limits written by the markdown and asciidoc targets with their empty rows as {}, which read back with each formula whole and its empty rows kept, a formula in a span of class displaystyle set in display style, its TeX opening with \displaystyle in the markdown target and its MathML in an <mstyle> that says so on its page and in an EPUB, the page reading back to the same formula, one texmath can't read warned of once, a formula in running text that MathML sets in display style set in text style, as Pandoc's reader reads it, and in display style in a target that sets math.display_style_in_text, where display style changes it, a fraction and not a fraction in a script, and not in the target beside it, the run saying how many it kept, a page's variant for that target marked too, and a formula math repair changes repaired first, its row of math-repaired.csv the same whatever the setting and keeping it as it was in either target from math-keep.csv, and a Markdown source's formula opening with \displaystyle so on its page too, but in a heading, which keeps its TeX for an EPUB's contents, a formula in a picture's description its text in the alt text, a page's, an EPUB's, a Word file's, and AsciiDoc's, the last two reporting each, but not one in a passage for another target, Markdown keeping the formula, a figure's caption repeating the alt text hidden in a span, but one with a link shown whole, a formula or a note in it or not, and beside an EPUB's link for a picture on another server, and one with a note its words and not its marks, with a formula or without, two in a row the comma's mark apart, one in emphasis, and beside that link, one the alt text doesn't repeat shown, a figure div's own among them, one with no formula left to the writer, which hides it, and an EPUB's link for a picture on another server named by the formula's text, a caption beside it that says the same hidden in a span, a formula in it or not, but one of its own shown, and one beside an author's link, a formula that can't be text its TeX between dollar signs in the alt text, the run saying so once, of a passage's for the pages too, but not of one a passage or a page's variant keeps for a Markdown copy alone, nor for a Markdown copy alone, an EPUB reporting no picture on another server or link to a file in a passage for another target, a hand-written page, a pdf target stopped by a missing LuaLaTeX, an old LaTeX, an SVG with no converter, or a build that outgrows TeX's tables (a stand-in LuaLaTeX writing LuaTeX's own log), two editions from one directory, footnote numbering and placement (in the EPUB too, where two chapter files can each have an fn1 and each note's link goes to its own and back; notes gathered in one list numbered across their group whatever notes.numbering says, a note's code taking ids named for the note and the CSS Pandoc wrote for it on its own page, its link to its page naming the page, a note ending in a numbered list moved whole, and a note's way back not reported as a link label without its text), the notes grouped as the contents group the pages, in the pages and the EPUB alike (a book of a file per page with its chapters in a part, a file cut at its H1s, H2s, and H3s, and chapter files cut so), roles and numbering with a contents page, highlighted code in the theme's colors in a page, an EPUB, and a Word file, with page.css's colors after Pandoc's and clearing 4.5:1 on the backgrounds Pandoc's stylesheets give, light and dark, each code block taking keyboard focus on a page and in an EPUB, a book's alt text that says nothing reported with why (a project's own placeholder too, and not one a sidecar row says was reviewed), an HTML page's heading with an id Pandoc made from its words giving way to a table's or a div's and every other id renamed in ids-renamed.csv, a table grouped by its groups' own header rows split again when read back, a numbered list in an item that starts past one written from one with its start beside it and read back from its start (under a bullet, in a definition, a footnote's list, a cell's, and a quotation or div an item holds too), emphasis, bold, a mark in a mark, strikethrough, underline, and in AsciiDoc small caps that end in a line break closed before it by a Markdown and an AsciiDoc target and read back as the marks, a span's break left inside it, small caps' too in Markdown, and one a span with no attributes holds at a mark's end, from an HTML page, closed before it as well, and from that page a superscript and a subscript cut at a break in them and at their end, and in AsciiDoc a break at a mark's start moved before it, after a space and at a paragraph's start, {empty} before it there, all read back as the marks and the breaks, a table of ten columns or more with a line break or a second paragraph in a cell written whole by a Markdown target, a grid table with Pandoc 3.13 and HTML before, where an older writer writes [TABLE], one of nine columns a grid table and a plain one a pipe table with either, all read back as the same pages, a figure in a list's item through a Word target and back in its item, the list whole, a figure with Pandoc 3.13 and before it a picture and its caption, a list item holding a note, a table with its caption, the caption once, or a rule and a quotation after it, the item whole, and in a page of HTML a figure of two pictures in an item, with 3.13, a list in a table's cell, parts that open with an anchor before a list, and a figure outside any list whose picture's id nothing links to, and a list whose item holds a table before its own list, whose item holds one too, an item's paragraph with a note after its list, a definition list after a table in an item, and an inner item's table after that item's own list and an outer item's after its list, a layout table (role="presentation", role="none" made so as the page is read, one holding a data table) asked no caption, listed as layout unless the census counts it no table (one cell, pictures alone), unwrapped, its cells stacking on a narrow screen and its caption after them, taken as one by the filter run on its own, unreported by the output check, written as HTML by a Markdown target and read back as one, and noted by a Word target, and table-headers.csv's layout and a value naming headers deciding it the other way, in the pages and a remediated page, a Word table declared one written with no head and no header cell though Word repeats its first row as a header, on the page and in a Markdown copy, a Word table's declaration reaching it though its first cell holds a no-break space, two paragraphs, or a formula, the bookmark before a Word box of one cell, which the header guess doesn't list, kept for a link to land on, the box a layout table, one Word's table look heads too, as an HTML page's box is, where one whose row is marked to repeat as a header, one whose cell the page makes a header cell, one with a caption of its own or a label beside it, or a table of two cells, isn't, and the Markdown round trip (read back, the HTML is the same; the second write is the fixed point). Images scaled down to a set number of times the width they're shown at, and made smaller at a level: the warning at the defaults, JPEGs saved at a quality over 90 counted in it; images.downsample set to 2, an html target, the EPUB, and the Word file carrying copies, an image no wider copied as it is, a JPEG whatever its quality, a drawing's copy given a palette, its transparency kept, an alpha channel's or a transparent color's, and a photograph's its colors, and the original and a Markdown target's copy unchanged; images.compress at screen, an image scaled to twice its width and a JPEG written at quality 85, scaled or, saved at a higher quality, at its own size, one saved at a lower quality copied as it is, and images.downsample beside it giving the limit; and a run without Pillow stopping first, with either set. A subscript holding only a space set as one space, on the page and in the Word file, or taken into a formula typed before = 0, as are a link holding only a space, in emphasis or not, and a space at a mark's edge beside another, two marks deep or one, though no mark is emptied for it; a superscript holding a no-break space the space; and a cell holding only a no-break space empty. An HTML table whose <thead> holds every row given a body of its rows of data, on the page and in the Word file, its header rows its head, two of them or one; one with a body after it as its author divided it; and no table without a data cell found. A heading that skips a level lifted to one below the heading it's under, in a page with a title and one without, and the source's levels kept with heading_levels: source. A declared title's formula as text where a title is text, a page's <title>, the contents page, the menu, the pager, a cartridge's names, a Word file's title, one for each, an EPUB chapter's, and the name of a book of one page, the title block, a Markdown copy's front matter, and the EPUB's and the LaTeX's heading for the page keeping it, the EPUB's numbered, a matrix its TeX, said once, of titles, and the pager naming the contents page by its title. A title made from a heading with its formulas as text, a page's, a piece's, an EPUB chapter's, a Word file's, and a Markdown copy's front matter, each of a formula as math-repair.lua repaired it, a page's own title and a cartridge's name for it too, a binomial its TeX, said once without Pandoc's warning, the texts the filters note reaching no output, and the Markdown copy read again with its heading for its title heading, shown once, a repaired page's too. A box's paragraphs bordered in a Word file, a table in it keeping its own. Pictures in a figure's row side by side in a wide window and one under another in a phone's, in a browser (with Playwright). A source's own colors, from an HTML page and Markdown, given what dark mode needs on a page and in an EPUB, and each colored word, drawn in a browser (with Playwright), reading at 4.5:1 or more on what it sits on in light mode and in dark, and an EPUB's links at 7:1 or more, light and dark, a link in a highlight keeping its light text in dark mode. A worked example's steps the CNX unpacker lays out set on a line in a wide window, their relations aligned, with no rule above or below them where a table of data on the page has both, nor above or below steps of the class steps, where another layout table has them, a table ruled row by row (class row-rules), steps or a table of data, with a rule under each row of its body in OpenStax's gray, none under its head, and none above or below its body or above its header cells, and one of a calculus book's Key Equations (row-rules-faint) in OpenStax's lighter gray, a formula marked to be set in display style drawn larger than the same one not, and in a phone's each step's math on a line, an empty cell no gap, and its words within the window (with Playwright). A target's archive without the intermediates it keeps in its folder. The footer setting on every page of every format: the last thing in each of an EPUB's content documents, its title page among them, but not its cover or its navigation document, after the notes a group gathers, and epubcheck finding nothing; every page of a Word file, in a footer part of its own that every section names first, its links their words; the end of a Markdown or an AsciiDoc file's text, a Markdown file's notes after it, written as the file's text is (a bracket in a link's text a character reference in AsciiDoc), which read back as the book's sources gives each page the footer once, the target's own, and none in its content; and a latex target's master, its links their words, a picture its alternative text in each but the pages, and a link to one of the book's own files its words, where a link to a site stays one, a line break one in each, and an id left out. --quick saying which validators it skipped, and leaving axe-core out of --wcag; --wcag, with --verbose, in a run that made no PDF saying so after the verdict; and --verbose alone saying it changes nothing. Needs Pandoc 3.9 or later, as convert.py does, and stops on an older one. Each page's language, decided once for every target: a row of languages.csv, a Word file's text's, OpenStax's language property's, a Markdown file's lang, a hand-written page's, else the book's, a Word file in another region of the book's language in the book's; the pages', a Markdown target's, a Word target's (not the reference document's US English), and the EPUB's chapter files' (epubcheck agreeing), the book's banner and footer marked in the book's on a page in another; a Word, HTML, and Markdown copy given a row's language, or OpenStax's, in place of its own; the run naming each page in another language and where it came from, languages-new.csv drafting rows, a row naming no page and one whose language isn't a tag warned about, adopted rows said to be unreviewed; a merged file of pages in two languages in the book's, the page in another a div in its own, in Markdown and in Word; the contents page's, the menu's, the pager's, and an EPUB's contents' and navigation's entry for a page in another language in the page's, and on the Notes page its notes' heading and its notes, in the pages and the EPUB (epubcheck agreeing); and a target's variant of a page in the page's language, a page only a variant gives in its own. Reports and sidecars as Excel opens and saves them: every report a first run writes starting with one byte-order mark, a report's cell that begins with a minus sign written with an apostrophe before it and a sidecar's cell written so read without it, a zip's unpack-report.csv and languages-new.csv among them; each row of the four sidecars a person makes from them applied (a row saved with the header, a report appended after a mark, and a row after another), no header row read as a row, and the drafted values counted; and a sidecar Excel saved as plain CSV, on Windows or on a Mac, rewritten as UTF-8 before anything is converted and read as written, as util/remediate.py rewrites one, one a text editor saved, UTF-8 without the mark, given it and nothing else, and one that reads as neither stopping the run, naming its line; read-only ones in a code page read in it all the same, the filter's too, and left as they are, a pipe where a sidecar would be gone without and never opened, and one of ASCII alone given the mark. Raw code in a Markdown source as written: its quotation marks straight, two backslashes two, its dashes and dots as they are, in a <kbd> and a <samp> too, the run saying how many; a raw HTML table whose cell holds a note a table, its note in its cell, in the Markdown target too; a heading holding raw code keeping the id the source gives it; raw code written as Markdown's code left as written; a raw <pre> a code block, its lines and spaces as written, in a raw table's cell too, and one named in capitals; raw code over two lines taken as written, its line break a space, on the page and in the Markdown target; raw code in a grid table and in a simple table taken as written, a row's words in their columns; and a pipe table whose cells a `
run-filter-tests.py The accessibility work the Lua filters do, against six small .docx fixtures. Sidecars with a byte-order mark at a line's start, a header row's or a row's, their rows applied, math-keep.csv's too. A page's heading formulas as text, by their TeX as math-repair.lua leaves it (title-formulas.lua, after it), a repaired one's by the repaired TeX, a matrix its TeX between dollar signs and recorded once, without Pandoc's warning, and the page's own title's formulas as text, the title made again after the repairs, of its heading as repaired, and its mark gone, a heading's with no formula too; and a declared title that is its H1's words with the formulas as text taking the H1 for its title heading, one that says something else not. Needs Pandoc 3.9; skipped with a message otherwise. An en dash in an equation's own text a minus sign where the text is math, a text of the dash alone the operator, and a bond, a range, a mark, and a run of dashes left; and a picture's description's places, for a Word copy.
run-check-tests.py The output checker: a page that breaks every check and one that breaks none (a link labeled without its text found where the text is words or a number, not a symbol), a layout table marked role="none" checked as one marked role="presentation" is, in HTML and XHTML, a reveal.js presentation's links within it read as its routes, an EPUB with a link broken inside the archive by hand and a link labeled without its text, and a page and an EPUB Pandoc wrote from formulas texmath can't read, each kept as its text and found. A table whose every cell is a header found, on a page and in an EPUB, and one with a data cell not. --wcag with a stand-in for veraPDF (tests/fakeverapdf.py): the WCAG profile's own rules reported as notes, each counting its failed checks, after the verdict and not in its count, with a line saying --verbose lists them, and with --verbose each failed check a note at its page and a line after its rule's, --verbose without --wcag saying it changes nothing, what veraPDF is given (a file of any name, in its usual run too, and a rule's every failed check to list), a PDF 1.x and a PDF 2.0 each with its profile, the probe alone with nothing to check, and the warnings: for modules that aren't there or didn't load (one run, though two profiles were to run), a profile the folder lacks (the PDF 1.x one, or the PDF 2.0 one, naming the PDFs it left unchecked) or one without the probe's rule, pages and no PDF, or a PDF or an EPUB named that isn't there, --quick, what veraPDF prints when it can't load a profile, veraPDF killed before it reported, a PDF it left out of its report, and an exception it printed as it checked (the JVM's notes of its options, one naming an error, veraPDF's log, and bytes that aren't UTF-8, none, in its usual run either). A run that finds nothing removing its report without saying it was written. And --wcag with veraPDF itself, where it's installed, jars that hold no modules passing the probe, which the warning says, and the modules VERAPDF_WCAG names loaded, where it's set. At WCAG 2.1 AA, the default, the stand-in's rule for 2.4.9 left out and counted, and at 2.0, its rule for 1.4.10 too. --wcag on pages, with axe-core: without Playwright (a stand-in package that can't be imported) a line saying so and the findings those without --wcag, one older than 1.48 (a stand-in without route_web_socket) named, --quick and nothing but a PDF leaving it out, and with Playwright and its Chromium, a Chromium that doesn't start named, the probes alone with nothing to check, the built-in checks and the axe-core rules that overlap them agreeing, a hostile page's scripts not run (inline, in a handler, in a frame's srcdoc), its refresh elsewhere canceled, its stylesheet and font from elsewhere named, a frame of its folder's checked and one from elsewhere and the machine's file named, nothing of the machine's files read, a page's text too faint only in dark mode found there and what axe-core couldn't decide in light mode not said again there, a symbol in a formula in the text's colors left out and counted and one in a color of its own a person's to judge, an EPUB's content documents checked and one not well-formed named, a presentation as TextbookImprover writes one checked slide by slide (a picture on a slide, one in a step, and text that only the background reveal.js paints fails), its tampered copies caught (a script of its own inline, in a handler, as a file, and as a text file, none of which run; a start of reveal.js holding code, a changed reveal.js, and a changed oer-reveal.js, each named as the reason it isn't checked), --verbose's note for each element, another axe-core from AXE_CORE_DIR noted, a page past its time and a worker past its, a presentation whose settings make its slides 100,000 pixels square checked in a smaller window and slides past the most counted, the check off the network wherever a process of its own can leave it, the policy service refusing what it lacks, the route itself, with a page's scripts allowed, taking a WebSocket, a fetch elsewhere blocked, and a navigation canceled, and a worker whose run is killed partway ending too. --experimental and --best-practice on a page only their rules fail (a large table without headers, a caption in a cell, a paragraph styled as a heading, content outside the landmarks), and the page without them. --wcag on an EPUB with a stand-in for DAISY's Ace (tests/fakeace.py): its own findings notes, under the package document and the content documents, the navigation document's named from the EPUB's root, its axe-core results left out and counted, its lines between axe-core's and veraPDF's, the probe alone with nothing named and a warning when it doesn't find what the probe lacks, and the lines for no EPUB, --quick, a run that fails, an ACE that names nothing, and no Ace; without --wcag, not run; an EPUB whose ZIP holds a symbolic link not given to Ace beside one that is, a warning naming the entry and --ace-unsafe-zip, and given to it with that option, which without --wcag is a note.
run-split-tests.py split-pages.py on a chapter-shaped document Pandoc builds from Markdown: what a piece is, its heading as written, its title with the heading's formulas as text and its name and the names sidecar's heading with their TeX, a declared title's formula as text in the source's own page's title and its pieces' source title, a footnote making a page of a heading with nothing else of its own, the names sidecar, one Excel saved among them and one saved as plain CSV rewritten as UTF-8 first, and the new rows and the report starting with a byte-order mark, links between pieces, and that the packager and the EPUB assembler group the pieces under their source from the provenance each carries. Same Pandoc requirement.
run-site-tests.py unpack-site.py on saves built by hand: a browser's saves of a just-the-docs book whose pages also carry an index reaching every page, and an .mhtml set shaped like Scribble's. That the index loses to the menu, that images two pages saved are one file, what is reported missing and what isn't, the numbering-based nesting, and that falling back to lxml says so. A LibreTexts book as ArchiveWeb.page records one: its order from the listings, its scripted pages made from the data they're drawn from, its formulas numbered and referred to as its MathJax configuration says, and an image that arrives by a redirect to a name without an extension; and mhchem's \ce, form by form, as mhchemparser 4.2.1 sets it. Needs html5lib or lxml, and skips without either.
run-mathjax-tests.py Formulas a saved page holds only as MathJax 2.7, 3.2, or 4.1 drew them, read back as math and checked against Pandoc's reading of MathJax's own MathML. A formula MathJax 2 drew from MathML read from the source it kept after the rendering, in a math/mml script, which Pandoc doesn't read, once, in the text and displayed, and one followed by an AsciiMath script rebuilt from its rendering. Needs html5lib or lxml, and Pandoc.
run-cnx-tests.py unpack-cnx.py on CNXML books built by hand: a repository of two books, one baked as OpenStax's economics recipe bakes it (its pages named, figures, tables, exercises, and equations numbered, notes made boxes and headed by their kind and their title in one heading, or by the kind alone or the title alone, a note inside one a level under it, key terms sorted as CLDR sorts them, the answer key and index built, a link into the other book sent to openstax.org, a formula's script of the wrong number of parts made a base and its script and reported, its footer OpenStax's attribution in its words and not a link, and its PDF's page the PDF target's default, copied into its folder to be changed there, every setting the default's but the face, IBM Plex Serif, its design's, named by its files, with IBM Plex Math for formulas); a Connexions archive book no recipe knows, with no footer or layout; a book in Polish in OpenStax's cosmos design, on Letter paper as OpenStax prints it, where the carnival design's Polish books are on A4, and each design's face, one style's of each, a Noto Sans design's math face Noto Sans Math, its line in use, Organic Chemistry's second face, a style with no design keeping the default's, an edited default given the face and one that names its own keeping it, and every style a recipe bakes having a design or none in OpenStax's styles, its footer in Polish; a book in Spanish baked as statistics, in cookbook's Spanish words, its figure, table, example, notes, and end-of-chapter pages among them, its examples' problems headed Problema, its glossary in Spanish order, ñ after n, and its footer in Spanish; every Spanish word for a key the English has, and, with CNX_COOKBOOK set, each Spanish and Polish word the same as cookbook's (lib/locales/es.yml and pl.yml, and the recipes' locales/es.yml and locales/pl.yml) but Problema, and each of cookbook's that the port looks up ported, one for a key the port's English has or one of a Polish recipe's own; the exercise bank asked again, through a stand-in for it: without --update-exercises a cached exercise not asked for though the bank's is newer, and one whose first fetch fails asked again, and with it each the cache has asked for once, a newer version written over the cache's copy and reported, the same version with other differences left as the cache has it, an earlier one, none, one that can't be asked, and a reply cut off keeping the cache's copy, reported with why, one the cache hadn't fetched, asked again after a failure, or missing, each counted, and the option refused with --offline; util/fetch-exercises.py's list written without the network by the unpacker's assembly, its exercises and pictures fetched into the cache, packed into a zip a book unpacks offline from, an earlier run's zip removed, one that can't be had listed in fetch-failures.tsv, which a clean run removes, the bank unreachable with --update-exercises failing the run, and a book no repository has refused; a book whose exercises come from a cache of OpenStax's exercise bank, one missing, one whose HTML leaves tags open (an attribute's name and an element's XML doesn't allow, the first left out, the second a span, each reported where the installed parser keeps them) and has a control character, as it is and as a reference, left out, one whose item XML can't hold a sentence where it would stand, formulas written for MathJax read in LaTeX's forms, a font switch's word as text and an operator between words math, one a control word names too, a one-column array's rows \hfill aligns left aligned so and gathered's centered, and one read neither way reported, a line break closing an environment's rows no empty row, a program in a pre with no code a code block with its lines numbered, its no-break spaces spaces, and its indentation kept, a picture in one after its code, a JPEG at an address with no extension copied as .jpg, a picture the cache lacks reported where its exercise is, and a picture the bank marks decorative reported on its page, once, not in feedback; the bank's TeX in LaTeX's forms, form by form, a font switch's reach, past \over and a \left's group inside it too, a switch or a dollar sign in \text left alone, \unicode's characters TeX gives a meaning, a line break in an environment kept and one closing it left out, and braces that don't balance; the report of a decorative picture on pages built by hand, on each page that shows it, in feedback too; a book baked as Organic Chemistry is, a note whose kind ends in a question mark followed by its title with no colon, and unpacked with --no-boxes, every note without a box; a book whose end-of-chapter pages are a group of their own; a nursing book's references, gathered by chapter; a math book baked as College Algebra is (its Try It notes, its section's exercises, a list lettered ⓐ, ⓑ); a dev-math book's worked examples, their steps layout tables of the class steps too, classed or not, but where the header guess reads a header row, made as convert.py makes it, a formula its TeX and a table of nothing but pictures without text, and OpenStax's labels for tables left out and reported; Physics' grid of key terms, a corequisite book's steps, they alone of the class steps, and in a book of any style and of any class a Key Equations table, a table of one cell, a form of blank lines, pictures with their labels, and a matching exercise, layout tables, where a form with labels, pictures with sentences, and a list numbered alike in two columns aren't, a layout table's summary not drafted, and a summary that reads its table out drafted and named in the report and in cnx-table-summaries.csv, one that repeats its table's cells in words of its own among them; the tables OpenStax's math books rule row by row of the class row-rules, on the page too: a dev-math book's steps, classed unstyled or not, and its tables of data classed unstyled, the corequisite book's steps, table of data, and Key Equations, and a precalculus book's tables classed unstyled, but no table of no class or of another class there, and nothing in a book of another design, a Key Equations table classed unstyled, in a calculus or algebra-1 book in OpenStax's lighter gray (row-rules-faint), and not one of another class, and the styles that rule tables the corn design's; an inquiry organizer's key to the emoji headed by them, row by row, and its plan laid out, on that book's style alone; a table baking leaves outside its container, decided and listed as one in it is; which summaries read their tables out (a numbered row's cells, a header's numbers, a function's values, six of a table's cells from two columns or five that are half of them, whatever their case, dashes, or spacing) and which don't (a column named, one column's cells, a letter alone, a number inside another); the collation, Spanish's too, and an index's groups; baking's steps one at a time, on the shapes OpenStax's own assembly writes as well as ours, and a note's heading from them, its label ending in its divider's space and its title's id kept; a character of the Symbol font, in text, in an attribute, in a formula, and in a table's summary, made the character it stands for, and reported; a paragraph that holds nothing but code of more than one line made a code block with the paragraph's id and language, the class inline-code dropped, the code's own id the block's, and the paragraph's then a division's around it, and one of a line, code said to be inline, or code with text after a comment, left a paragraph; with CNX_COOKBOOK naming a clone of openstax/cookbook, every ported recipe's bake of cookbook's sample book compared with cookbook's (util/cnx-compare-cookbook.py); a worked example's steps written as one formula made a layout table of the class formula-steps, cell for cell, its columns aligned as the formula aligned them, its reasons text whose spaces a line can break at, a formula in one a formula and a bold word strong, the space beside them the table's, instructions in its first column likewise, display style kept, a formula set in display style, as its table's cells are or by its integral sign alone, and one in a reason, marked to be set so, a limit's limits, a large operator by its largeop, and a fraction in a table in a cell that sets its cells so too, and set so on the converted page, but not one whose display style is a relation's, a fraction's in a script or in a reason's lines, an accent's, or words' over an arrow, a reason broken over lines one cell's words, and the line breaks beside it gone, in an unnumbered equation too but not in a numbered one, a table's cell, or a footnote, and not a formula with lines between its rows, a labeled row, a cell across columns or rows, or anything but rows of cells, an equation's side written in words, a table of values, reasons of one word, a chemical formula's symbols, words in a middle column, or words beside no math, the run counting them; and, with Pandoc, a book converted, each page ending with the attribution and its latex target's LaTeX laid out as pdf-layout.yaml says, in its face, with the fallback fonts, and its formulas in IBM Plex Math. Needs lxml, and skips without it. A module in another language than its book, by its root's xml:lang, a page in its own when converted, OpenStax's attribution in the book's. The table-captions.csv, unpack-report.csv, and cnx-table-summaries.csv it writes start with a byte-order mark.
run-unpack-tests.py unpack-epub.py on an EPUB built by hand in the shape of three publishers' (the package in a directory of its own, a page that isn't well-formed XML, an "image" that is an error page, a navigation entry inside a page, a spine page the navigation never names); a declared page that was split standing for its pieces; and, with Pandoc 3.9 or later, the unpacked book converted, its links landing, and the media gate's report starting with a byte-order mark.
run-slides-tests.py PowerPoint decks, built as PresentationML so each shape is there on purpose: a deck read (a placeholder placed by its layout, a group's child through the group, one picture in two parts as one image, AlternateContent read from its Choice, notes, sections, a hidden slide); each of the checks found once in a messy deck and nothing in a clean one; and each decision written into a copy and read back: alt text by an image's content and by a slide's shape, escaped, in AlternateContent's Choice and Fallback alike; the decorative mark beside a shape's other extensions; a picture on the master marked once; header rows; a title above a slide, in its empty placeholder or first in its tree; the language in the default text style when a deck has none; the core title; a slide's own heading made its title in place, looking as it did, one the theme styles keeping the theme's fill, outline, effects, fonts, and color it refers to; a clip's captions read from its WebVTT track; copies of a picture cropped differently decided apart; alt text copied from a web page, only a credit, or shared by different pictures found; a font a license restricts found, and replaced by the one named or the nearest by PANOSE, its embedded files taken out; the file's lists of fonts and slide titles; a shape whose id repeats skipped; every other part byte for byte. The reading order: an order drafted as near the layout as overlapping shapes allow, written in the places the shapes had, and refused where it would draw two overlapping shapes the other way round, with a thick outline, an arrowhead, a hidden shape, an empty placeholder, and a group each judged as it's drawn. A title in place of one an earlier slide has, in the old one's formatting. Bare links reported with the text before them and written, a link over several runs or in a group included, and equations repaired, each in TeX in math-repaired.csv, as a book's are, and kept as they were by math-keep.csv, by a deck's row or a blank Page's, named in TeX or in one line as the report wrote them before, written out in one line when Pandoc doesn't read them, the run saying so then and only then, and the copies' rows written before a conversion that writes the report with its pages', for a run that stops first; and with the decks converted, the report holding the copy's equations and the page's repairs, a repair both make once, under the deck's name, which keeps them in both, a row that keeps nothing in either warned about, a display paragraph's two equations a row each and a display each on the page, one kept in both, a copy's minus signs, the page's, in its text, a bold run's in it, two paragraphs of one text, an en dash written as a reference, its notes, a table's cell, a group's text box, and its pictures' descriptions, its own and the sidecar's on two slides, a range, the title, an equation's own text, and a hidden slide as written, a stretch its page makes an equation of given its sign and its row, a copy with no page beside it given them too, a row of math-keep.csv keeping one in both, none with the setting off, a picture whose id another shape has counted and named, a deck whose only en dash is in the sidecar's alt text, a stale row of math-keep.csv warned about in a copy alone, the copy's edits each on its own (a paragraph's runs' and fields' en dashes, not a fallback's, a count that isn't the reading's left, a description in a shape's Choice and its Fallback, and an equation's characters not counted), and, with no Pandoc, none and the run saying why, a Pandoc older than 3.9 first on the path giving one line and the run saying why, and a conversion that stops after the copies saying which rows kept nothing in them. What PowerPoint made of three decks Pandoc wrote: an empty shape and an undeclared a14 named on their slides and put right in a copy, and a file name anywhere in alt text an error. convert.py on folders of decks, with no Pandoc on the PATH too: the implied target, the reports and their keys, the copies after every decision, a stale sidecar row, decks beside a book's pages (with Pandoc), project.kind, decks in a zip and a tgz, archive, audit.py, and remediate.py. A deck read for converting (lib/pptxsource.py): its title slide's title, subtitle, and notes, and the rest of it left out and named; a Two Content and a Comparison slide as columns, each shape in the column it stands in, but not where a shape stands across the middle, where the reading order goes back to the left column, or on another layout, and the columns counted; sections and slides as headings with Pandoc's ids; a run's own formatting, runs that share it in one element and a word split between runs one word; line breaks, and two bold lines one bold whatever the white space beside the break; notes, their bullets from the notes master; lists inherited from the master, ended by a paragraph's own no-bullet, numbered in their scheme and from their start, and loose with a paragraph under an item; links to an address with its ScreenTip, to a slide, and to the next one, a picture that is a link, and one that runs a macro or goes to a hidden slide its words, named; a table's header row and column, the sidecar's too, a merged cell, and a cell of two paragraphs; pictures' alt text, the decorative mark, and the sidecar's decisions by image, by deck, and by shape, each image written once, and a crop named; equations through Pandoc's Word reader, a display one display math, a bar \bar, one in a table's cell in AlternateContent, and without Pandoc an equation's characters; a slide with no title, a hidden one, a footer, a slide number, and a hidden shape; a chart, a video, and a group's alt text named; a slide's title from the sidecar, only where another slide shares the one it has, and a decision for a shape whose id repeats skipped; the reading order's sidecar; and what it read, counted. convert.py converting decks: a page, Markdown, a PDF, and a reveal.js presentation, the reports the decks' own and the output check the copies' and the pages', a check-only run converting nothing, a run with no copy target, archive after converting and nothing archived with a deck that can't be read; a pptx target writing nothing without a template, the run stopping when it's the only target, and on a template the deck rebuilt, the run saying what's lost. And the round trip, a deck to Markdown and back, compared slide by slide (lib/deckcompare.py, and util/round-trip-decks.py, which rewrites a sidecar Excel saved as plain CSV as UTF-8): nothing differs but a merged cell, which Pandoc's writer doesn't write, a link's ScreenTip, which it doesn't write either, coming back as the pptx target writes it; a deck the trip changes by design, a slide with no title cut in two, a title of two lines, lists going on from a slide before, nested in an item and starting past one, and a link in the notes, comes back the same, and an untitled slide takes only the untitled slides that go on with it as its parts; and each of a picture's alt text, a word's bold, a list's item and numbering, a table's cell, an equation, the notes, the subtitle, and a slide's title, changed in the trip, is found where it is. Converting needs Pandoc 3.9 or later, the round trip and a deck rebuilt on a template 3.10.1, and the reveal.js case 3.12, each skipped without; the PDF case LuaLaTeX, ltx-talk, and the packages the deck loads (latex-lab, tagpdf, luamml, pict2e, luacolor, lua-ul), and pikepdf to read the PDF's slides, and skips without. Each deck's language: a copy given OpenStax's language property's in place of the US English its runs, default, and masters say, and a row's in place of its own, a deck with no default given its runs' though the project declares none, the counts said; each deck's page in its language; and the decks in another language reported, in a --check-only run too. The title slide as LibreOffice saves one, a title and a subtitle alone, read as the title slide, and one with more on it, a slide on a layout typed a Title Slide's, and a title beside an empty subtitle not. Decks in other formats, with a stand-in for LibreOffice that answers with a deck of the suite's: an ODP saved as PowerPoint beside it and read, the original left as it was, LibreOffice asked with a profile and a folder of its own, both gone after; a later run not saving it again, and a warning when the original is the newer; --check-only saving nothing, and without LibreOffice saying how to save by hand; a failed save, one that writes nothing, and one that writes a file that isn't PowerPoint's each named, the rest read, the status 1; an empty file, one that isn't a zip, an ODP with a password, and PowerPoint files named .ppt and .odp named before LibreOffice sees them; no LibreOffice stopping a folder of such decks and leaving them out beside a PowerPoint deck; LIBREOFFICE naming a command; two decks that would share a name neither saved, and a folder, a link to nothing, and the reference document at a deck's name; an archive of such decks; a save that takes too long stopped with what it started, at once; one in a book's folder and one beside decks written in Markdown left out; and the embedded objects with no picture counted. And an ODP LibreOffice made from a deck Pandoc wrote, saved and read by LibreOffice itself, which skips without LibreOffice or Pandoc. A table's blank rows at the top counted, one or two, a row of a color and a border of its own among them, and not a row merged into the next, nor every row of a table, nor a row holding an equation or a picture; a Header Row checked over them reported, and the table in table-headers-new.csv, its guess and preview without them; a decided table's blank rows deleted from the copy, in Choice and Fallback alike, each frame as much shorter, the value the headers of the rows left, and an undecided table, or one merged down, left as it was; a table whose Fallback has something in those rows, or no row after them, left as it is, each named with its reason, and one whose Fallback's row is a no-break space alone losing it; a picture as a table's Fallback leaving the next table on the slide alone; the copies' check taking each table's decision from its original, by its slide and shape, not from another deck's table or one its content matches; and the page leaving the rows out, a decision the headers of the rows after them; and a table decided first-column, First Column checked in its copy, not counted against the copy as missing a header row, the run saying once that PowerPoint's checker asks for one, where one undecided, or decided so without First Column checked, is.
run-latex-tests.py LaTeX as a source, end to end through convert.py, on a small book the script writes: a master \include-ing four chapters as the pages, the roles and the contents in the project's sample, each repair on the copy Pandoc reads (an ifthen boolean, \input without braces, a table in \centerline, \cline, a tagging header declaration, an image without its extension, a PDF image, alt text holding LaTeX, an artifact, \mbox and millimeters in formulas, latex-conversion-macros.tex), inline code (\lstinline, \mintinline, \Verb) left as written by each of them, an environment the book defines, a boolean, and \input in it, which stopped the reader, each to its end on its line, as the reader reads it, a drawing rendered and another LaTeX can't make costing only itself, a page overlay left alone, references between chapters with LaTeX's numbers, the EPUB's links to a chapter, latex.main, a one-file document, a PDF and an EPS image that can't be made SVG, with no pdftocairo or one that fails, left out of the pages (one in the master's preamble, one with a ] in its alt text, one behind a macro that calls the book's own macro for its image), each tried once and named once in the run's warning, the Word file reading back, and with pdftocairo made SVG, its size in points, the PDF a LaTeX build includes kept beside it, on a PATH of Pandoc, Python, and file alone, so the case checks the same everywhere, the latex target's SVG picture left to \includesvg without rsvg-convert, the run saying so, the latex target read back as a LaTeX source, its inline code, highlighted or not, in no span, the AAA page's measure of a paragraph's full lines in a document of LaTeX's own, counted as the PDF's text has them, a ligature a hyphenation point divides as its letters and no line a line break ends, a table tagged as a division of paragraphs read as a layout table and a box tagged so still a box, a book of documents each built on its own (the binder that only gathers their PDFs, latex.main as a list and a pattern, a title set as large type, a box, a \newcolumntype, a \ref to a quiz item, a file reached from the document's own folder, and each document's tagged copy and PDF), the source target's copy (alt text at a macro's calls, each written so the call does what it did, and those it can't write named; a person's header row and layout table declared; a book's other masters, with luatex85 for a test for pdfTeX; its own \DocumentMetadata completed; fonts set in a style file of the book's own; bm's bold; a face with a STAT table that isn't a variable font, Josefin Sans set with fontspec, embedded from its file when the copy is built with LuaLaTeX, where TeX has it), the PDF target's copy of the book (a .latexmkrc and a link outside the book), a term the book strikes out with cancel drawn as lines, in its PDF from its own LaTeX and from its pages, and its own \arc kept, in a tagged copy made again from itself, and beside its own pict2e, its own \buttcap and \maxovalrad kept, its circles, oval, and dot drawn by pict2e all the same, a picture's circle asked for at 80 points drawn with a path, no glyph of lcircle10, with no cancel, and with LaTeX's own glyphs with picture_paths off, unless cancel is loaded, and a tagged copy of a book given pict2e for its picture, as the run makes it too, the run saying so, and with picture_paths off only for cancel, a tagged copy of a book that loads fancyvrb keeping a list's item's label beside the code that opens the item, the run saying so, its PDF from its own LaTeX with the label there, once in a copy made from the copy, and a book that loads fvextra getting it and one that loads neither not, a tagged copy of a book with blocks of code mapping a code block's line to P for a reader that knows only PDF 1.7's tags, the run saying so, its PDF from its own LaTeX with the line a P in its role map and a Sub in its namespace, once in a copy made from the copy, and a book that reads a file of code in getting it and one whose verbatim is only in a comment not, a space between the lines of a book's \\, \newline, \linebreak, \break, and \hfill\break in its tagged copy's text, and between a part's, a chapter's, and a section's number and its title, the run saying so, its PDF from its own LaTeX with the space, a \linebreak[2] TeX breaks at, a dash with a space before it, an \mbox's, a short caption's, and a list's term's among them, none inside a word a \linebreak breaks, nor after a hyphen, a Unicode one's and a discretionary's among them, nor for an empty line, a box with no text, or a paragraph's last line, a center environment's lines and a formula TeX breaks after an operator as they were, one where \nolinebreak keeps two words together, a table's rows as they were, and the headings' bookmarks and structure titles a space where they break, a short caption's two lines broken at its line break and centered on the page, one ending in its line break one line, centered, no empty line under it, a caption's note numbered once, with a line break or without, 1, 2, and 3 where LaTeX's tagging gave 2, 4, and 6, and a longtable's, short and long, a minipage's \captionof's, one letter and its text once, and a \captionbox's, the run counting the captions in the copy and saying so for the PDF, a term's and an \mbox's line break a space's width there, a box unpacked into a paragraph set as it was, each contents entry's number, title, and page number a space apart in its text, an \enspace a space in its text and in a heading's text, contents entry, bookmark, and structure title, a line breaking at an \enspace a space follows and not before one, and amsbook's chapter heading "CHAPTER 1", its contents and list of figures starting their pages as amsbook starts them, LaTeX stopping on nothing, where LaTeX's tagging had made each a numbered chapter, the PDF target's run saying so too, built with pdfTeX as a DVI and untagged, and untagged with LuaLaTeX, as before, once in a copy made from the copy, a book that breaks no line and numbers no chapter, or whose \\ end only a table's rows and a formula's lines, or whose only chapter is unnumbered, or that breaks a page with \vfill\break, defines \chapter, or numbers a chapter in memoir, not getting it, and one that numbers a chapter and breaks no line getting it, as does one whose only break is \break, one that sets a list of contents, but not in memoir, and one that writes an \enspace in text, not only in a formula or defining it, one whose captions hold a note's mark, each counted, a short caption with brackets, a \captionof, a \footnote, a \captionbox, and one with a brace in a comment among them, but not a caption without one, or with one only in a comment, nor \caption's own definition, and an amsbook book that sets a list, and an amsart one, counted for the run's warning, as a memoir and a KOMA-Script one are and a book class's isn't, an amsbook book's PDF and an amsart article's built from their own LaTeX with their lists headed as the classes head them, where LaTeX's tagging made amsbook's lists chapters and stopped on amsart's, a book in a class of its own built on amsbook, two classes down, taken for amsbook's, and a memoir book's copy warned of, the copy giving memoir LaTeX's own \title and \author and keeping its footnote mark, and taking an AMS class's or memoir's title and author for the PDF where no \maketitle does, the amsbook book's PDF with its title and author and the memoir book's built with them, its notes' marks links and the two in succession a comma apart, where its \title, \author, and notes had each stopped LaTeX, a book that defines \@gnewline and \@no@lnbk itself keeping its own, its lines given their space, and ragged2e's \justifying keeping the space, a book's PDF from its pages on the class's own page where its preamble gives no layout, not the PDF target's default, a PDF figure of R's kind (a heat map and a word in Helvetica, not embedded) set in it and in the latex target as the figure's own PDF, kept beside its SVG with its font embedded, its word text and its picture the figure's own, 128 pixels square, Flate, not interpolated where Ghostscript embedded the font, the SVG the pages show the figure's size in points, its drawing set in both as the page LaTeX made of it, its word text, and veraPDF passing the PDF from the pages, a PDF image kept with fonts it couldn't embed, read again, tried again and counted, a drawing that has taken a PDF image's name made again with its own PDF beside its SVG, or, without LaTeX to make it, its SVG kept alone, and one LaTeX can't make again keeping the SVG made before, alone, the PDF under its name taken away and the run saying so, without pdfseparate a drawing whose SVG is current not made again and the run saying the drawings are SVGs alone, and where pdfseparate fails having written part of a page, the drawing its SVG alone and no part left, a PDF image whose Type 3 font names its glyph minus.case and maps it to nothing given U+2212 and counted, a PDF kept so before given it when read again, and a drawing that includes the image given it in its page, images \includegraphics scales given the width graphicx gives them in the pages, a PNG's at its resolution and a PDF's page's, one with a width of its own too left as the reader reads it, and the run counting them, a book made its own way, as OpenIntro Statistics is (chapters \include-d by its own macro, images behind macros whose file holds \chapterfolder, environments called as commands, the space after one kept, but no empty group before a group or an option an opening code ending in a command may take, nor in a formula, a book's environment for one too, titlesec's settings, a color of its own, \nameref, \subfigure, a label with a space and a reference to it through a macro, groups and numbers after commands the reader takes whole, boxes it drops whole, exercises and solutions linked by keys made of counters and counters shown, an image named in another case, formulas as OpenIntro writes them, the EPUB's link to a figure in another chapter's file and its contents' heading formula as text, in the navigation document and toc.ncx, the PDF's heading labels, the suggestion to pass on an image macro's alt-text argument and the copy that carries it, a brace never closed named, the PDF from the pages at the type size and margins its preamble gives, and build-pdf.py --latex-only, run on its own, keeping them and the book's colors, and an alt-text argument of paragraphs run on in the copy), a book set with packages LaTeX's tagging can't take (titlesec with its page styles, mdframed, framed, soul, ulem with a style of its own, tabto, wrapfig in a minipage too, the enumerate package's label patterns, from a macro's argument and a style file of the book's own as well, wasysym's symbols, amssymb's squares beside a symbol of the book's own, and PDF figures that don't embed their fonts, one in a folder the book links to: the copy loads none of the packages and says what that changes, for the source target and the PDF target alike, and its PDF builds tagged with every word, the figures' fonts embedded and the book's own figures untouched, and passes veraPDF), a figure's lossless raster kept lossless, and the author's files unchanged. Two pictures in a figure's row are one figure with one caption, and a pdf.metadata file's toc: false leaves out the contents page project.contents generates. A Markdown book's latex target, a master and a file per chapter, reads back as a LaTeX source to the same pages, a worked example's steps among them, a table ruled row by row as the PDF target writes it read back without its rules' commands, and builds with latexmk, its formula too wide for its line, and each block of code, a footnote's too, marked to be fitted, as in the PDF, a footnote's that opens with code after \footnote{, its mark taken out read back, and a definition's that opens with code after a no-break space, as the writer opens one, reading back as the writer's does, and latexmk's runs settling with it fitted; and, the book edited and built again beside the last build's files, another such formula before it, each is fitted by its own measure, and, its LaTeX edited in place, the formula made short, nothing is fitted but the block of code too long for its line, and it builds again beside an .aux an earlier version wrote, a worked example's steps' width with no column's number; and the fitting starts again where a file input before its macros, or one read with TeX's own \input, is edited. Needs Pandoc 3.9 or later, as convert.py does, and stops on an older one; the drawing checks need a LaTeX engine and pdftocairo and skip without them. Where there's a TeX whose LaTeX is too old for the PDF target (2026-06-01), or that lacks a package these books or their PDFs load, the first line says so, with what installs it (Installation), and every check that builds with TeX skips, as it does without TeX; without rsvg-convert, a line says so, the latex target's book has no SVG picture, and the checks of one made PDF skip. A LaTeX book's pages in babel's main language, in a project declaring another, and the run drafting its row. babel's main language in a LaTeX book's tagged copy: main= passed to babel, babel's last language, its modifier taken off, or the class's, a size, a paper, and an AMS class's option beside it, so the copy built with LuaLaTeX hyphenates "Zu-cker" in ngerman and "or-gan-iz-a-tion" in british, in a project in en-US; nothing passed where the book names its main language itself, passes it to babel, or \babelprovide makes it, or its own \DocumentMetadata names the language, nor again in a copy made from the copy; a book's own \DocumentMetadata over lines read without its comments and keeping them, a comma in a comment ending no key, so its lang is kept and none added, tagging=off made on where it stands, and the keys added before a comment on the last key's line, and the copy built; a book whose main= names French in French, and one whose main language the last \babelprovide with main makes in it, by its import= tag or its name, its quotations' marks too; the run naming a class whose last option isn't a language the reading knows, or a language given as a macro; and the run warning of a main= with a modifier, which babel loads no language for, but not of one without, a modifier on a language's own option, or one in a comment, the first main= babel is given before it's loaded, by \usepackage, \RequirePackage, or \PassOptionsToPackage, where it's loaded; each build of a book in ngerman or british skipped where TeX lacks its packages, which the suite names first. A LaTeX book's babel passages built with a copy of the installed babel given babel 26.9's declarations, which leave the two hooks the tagged copy adds to undeclared, tagged in their language, as with the installed babel, the copy declaring the hooks first; and a heading holding \foreignlanguage titled by its words alone in the PDF's structure and its contents entry's, with either babel. babel's commands the reader stopped on, or dropped, read into a LaTeX book's pages in their language: \foreignlanguage[date], words holding a blank line or \par as a passage in each paragraph LaTeX sets, the words before and after in them, words holding a list as a passage before it, the list in a division, and a passage after it, as LaTeX sets them, a list environment of the book's own too, and one of the book's around it whole, a note's paragraph break, a blank line after \\, a formula, breqn's among them, an environment in a formula, and environments the book defines as text, each way it defines one, in the words as the reader read them, a paragraph ending in a comment, babeltags' \textfr, declared in the master, but not a tag whose command the book defines again, each way the reader reads, and a \captionof's paragraph found as before; the run saying what it read so. A passage named by another of babel's names for its language (francais, USenglish) or in capitals, in \foreignlanguage, babeltags' command, otherlanguage, and otherlanguage*, in its language in the page, a name the reader knows and one in a comment left, and the run counting them. A file \include-d with a dot in its name (week1.5) its own page, in its language by languages.csv, in the contents sample, and tagged so in the copy, the master's own words their page. A master's \includeonly: a French page it leaves out not tagged or counted in the copy, one it lets in, named with spaces and .tex, tagged, and the PDF from the book's own files, which lacks the page, warned of. A book as Pandoc's LaTeX writer writes one: its deferred notes (\pandocfootnotemark) notes where their marks are, the macro's name not in the text, and a description list with \tightlist or other code before its first \item with its terms, but not one whose code holds an environment, nor one in an environment's or a command's definition. A language a hook at \begin{document} selects the book's, before babel is loaded too, the last of two, not one in a comment, the pages in it, and under autostyle=true the quotations' marks its, tryonce keeping the main language's. A paragraph break in a box's words, \mbox's, \hbox's, \underline's, \uline's, and \sout's, on one line, as LaTeX sets them, a blank line a space and \par nothing, and in a quotation's, its words in each paragraph, its opening mark in the first and its closing mark in the last, starred, in another language, and inside another quotation, in Pandoc's marks too, an unbroken quotation inside one its own, but in a box's words one quotation, a paragraph of a vertical space or a page break no quotation, a brace in a comment, \verb, verbatim, or inline code none of the words', a blank line after \\ the reader's line break; the run saying what it read so. A list or another environment in an inline command's words, \textbf's, \emph's, \href's, \enquote's, and \mbox's, between the command around the words before and after it, without its formatting, a quotation's opening mark before and its closing mark after, a passage's language and a \foreignquote's kept on it, inside another command's words too, and a formula's environment in the words and a command in a formula as the reader read them, a call of the book's own command that makes a block set apart as it, but not one whose block is in a note's text, which the reader reads inline, or a margin note's, which it drops, nor an environment of the book's whose code holds such a note, a comment ending the words before it or a quotation's last paragraph after the brace; the run naming each place by the author's line and the author's words before it. An address between two of a character, `\url
run-decks-tests.py Decks written in Markdown, made up for the purpose, each holding what the code has to handle: the slide level, a title given as a list of one, slides with no title, the slide's shape (a theme of reveal.js's not beamer's), a heading's tag, the headings renumbered as LaTeX's sections, a table in the notes left out of the captions' repair, and the LaTeX ltx-talk takes differently from beamer (code, and a frame it shows, left as written; frame options; columns; footnotes; a numbered list's style; a section's title with an =; a link to a label; a label written on its frame's first step; beamer's modes), each worked out on its own; and convert.py on a folder project.kind says is slides: each deck a page, its title its H1 and its sections and slides below at their levels (an agenda before the first section, sections at ##, two levels of sections, a heading in a slide that skips a level, and one in the notes or a quotation), a heading in the notes that sets the slide level named, an untitled deck's headings from H1, a deck's title with a formula as its text in its pages', its presentation's, its PDF's, and its PowerPoint file's titles, its title slide keeping the formula, a formula in a picture's description its text in the picture's alt text in each, a caption repeating it hidden in a span on its pages and in its presentation, and marked decorative in its PowerPoint file, a figure of two pictures' too, which the pages show, its authors shown, its notes closed, open, or left off, its pauses gone, a picture named in another case found and its alt text decided in the page and the copy, a deck cut into pages per slide and per section, its pieces' headings placed as the page's, a block with no title no heading on a slide's page, a section and a slide in a passage in another language cut there, their titles in its language, and a section's footnote on its page, a section with nothing else of its own a page for it, the implied html target, an EPUB target refused, the Markdown target's notes, the run's notes on the decks, a book's Markdown page titled by a list of one and its link color valid CSS; and each deck's PDF through ltx-talk, checked by veraPDF where it's found: sections' and slides' titles as headings at their levels, an agenda's and two levels of sections' too, a block's title, and a heading in a quotation, a list's item, and a table's cell, at the level the deck's pages give it (a block in a block, blocks in two columns, a quotation's heading in a block under its title and beside it, one under another in a quotation), the pages and the PDF compared, a block with no title no heading, in a passage in another language too, a slide in a div bookmarked, a section's own slide headed by its title, a bookmark for each slide, two hyphens in a title kept in its bookmark, formulas in a title text in its bookmark and in its heading's title in the structure, a fraction's too, and TeX where they can't be, a binomial's, no placeholder page, the title slide, no notes, a > the bold face lacks still there, the shape a theme or aspectratio gives and the one slides.aspect_ratio sets, code set, dropped options named, footnotes in a caption, a table's caption, head, and cells, a table inside a table's cell, and a slide's title numbered once and in order, each mark a link to its note's page, on a slide shown in steps in a deck with a slide LaTeX breaks over pages too, and tied to its note by a /Ref each way, naming nothing the tree lacks, no note before its mark, a heading's note in the heading's language, or a passage's its mark is in, a link within the deck to a heading in a quotation, a block's anchor, and a slide landing on its page, a footnote in a section's or a block's title or a heading in an item or a quotation after the heading, not in it, and no note's text a heading, a link in a section's footnote with its words for /Contents, one in an image's description left out, a slide shown in steps with footnotes and no links on its earlier steps, and the run's note of the links taken out, a code block's spaces as characters, its lines each a P in the structure's role map for a reader that knows only PDF 1.7's tags and a Sub in its namespace, a code block in a section's, a slide's, and a block title's footnote set in the note, highlighted or not, and highlighted code in a section's footnote the deck's only, a list's item that opens with highlighted code its number beside the code's first line and the next item its own, a term's note marks drawn against the term, a comma between two and the term's space after them, highlighted code drawn in the theme's colors, a slide's and a section's footnote's, struck text, a formula's term struck out drawn as lines, a circle in picture mode in LaTeX's own glyphs with picture_paths off, passages in other languages tagged, at the start of a paragraph and an item, in a link, a slide, a slide's title, a block, and a column, beamer's commands in header-includes named, one with a star among them, a section titled with an = and a lettered list set, a table's caption retagged, an SVG named with a space, PDF/UA-1, its footnote marks tied though no links, a figure's and a table's caption that carry their own label, one by a word captions.figure_prefixes names, and an unnumbered figure's without ltx-talk's label, the captions' repair off and a table's repeated head left the artifact LaTeX makes it, its mark tied, what decks.tidy takes out of a PDF made for the purpose and what it leaves, the template's fallbacks where ltx-talk's or LaTeX's code isn't the code it knows (a copy of the template changed to see it so), each warned of and the PDF still passing, a ratio that isn't one refused, an SVG without rsvg-convert and one it can't read, LaTeX that doesn't finish stopped, cross-references still changing after LuaLaTeX's last run warned of, a slide's table, formula, and block of code too wide for it fitted to it, the code smaller than a slide's code that fits, a line of code too long for a slide even at half its size set at three quarters and wrapped inside it, and with code_wrap: 1 a slide's line of code too wide for it wrapped at the code's own size, a slide's paragraph's highlighted code longer than a line broken at its spaces inside the slide, a section's footnote's code that fits set at its size beside a slide's set smaller, its fit numbered apart from the deck's, LaTeX's runs settling with them fitted, and no LuaLaTeX said to be needed, the TeX packages the decks load beyond ltx-talk's named when TeX lacks them, with the line that installs them, and the case going on past a deck that wasn't built; and each deck's PowerPoint file, checked as a PowerPoint deck is: a picture's alt text, the sidecar's or its attribute, a figure's caption shown and one that repeats the alt text marked decorative, but not one with a note, whose mark the writer writes in it, or a link, a figure of two pictures' with one too, and its last picture's own caption with a note or a link kept before its own, no caption for an image that isn't a figure, a decorative picture marked, unique ids, a table's marker taken out, its header column flagged and its caption above it, slides cut around pictures, a second table, and columns, each part titled with its number, text before a picture beside it, a list there bulleted as the master bullets a slide's, hanging, where that layout's text gives none, and one the master's style bullets left as the writer wrote it, a link's title its ScreenTip on each of its runs, one to a slide's too, the filter's marks gone and no relationship left that nothing names, a run's properties in the schema's order, a code font before its link, each notes slide's color map, a formula in the notes as its text, with a word's spaces and a script as a deck types one, and one texmath can't make text left its TeX, each counted, a link to a figure on its slide, bars as accents of the macron and hats of the circumflex, an equation in a table's cell declared and each equation's fallback, a display equation and the text after it given space where the deck gives none the writer keeps, the equation's after the paragraph above it, in that paragraph's lines, after a list's second level too, and its own none, an equation opening a slide's text none, but the deck's space above it in its text body's top inset, over the one its placeholder inherits by index, by type, or from the master, space after a paragraph written in the schema's order, an empty paragraph's too, the deck's raw vertical space added before the text after it in several units, past a space that fills, in a list's first item and before a heading too, at the top of a slide's text with the text box told to respect it, less than none none, and space that fills or has no text after it left out and named, a long table and dense text fitted, a table too long even so warned of, a table with text under it set to end above it, the tables' style PowerPoint's Light Style 1 - Accent 1, a table's cells' words, spaces, and formatting kept, an incremental list's animation on the list after a captioned table and after text and a table, a figure of two pictures shown as both, a link to a div and to such a figure on its slide, a div's picture still one, a notes div with another class and notes before columns kept with their slide, the deck's language in place of the reference's and in the file's properties, the file's title, creator, custom properties, and list of slide titles, a formula in a title as its text, 4:3, 16:10, and Widescreen 16:9 slides and their layouts and text, and slides.size: on-screen-show's 16:9, speaker notes kept, a list in them bulleted and a link in them a link (the title slide's, from the YAML, too, and one to a place in the deck its words), left out with slides.notes: omitted, and a pause gone, footnotes on a Notes slide, a slide's highlighted code in the theme's colors, an institute shown, a reference document of one's own beside the decks, slides.aspect_ratio and slides.size said unread beside it, one whose default table style has too little contrast warned of, one lacking a layout the writer looks for and giving no text size, one that isn't there, a book's pptx target refused, a Pandoc older than 3.10.1 refused, what the writer leaves out of a slide or a column (raw LaTeX in a line too, and a comparison's columns, shown whole, not) and where it draws one shape over another named, a picture reaching less than a point into the text above it not, the writer's own warnings passed on, and an SVG beside its PNG, or the run stopped without rsvg-convert; and each deck's reveal.js presentation: the repository's copy of reveal.js beside it, its license and its theme's font's with it, and nothing loaded from elsewhere, the copy what its README names, REVEALJS_DIR's in its place and a release other than the repository's noted, the deck's language, a viewport that zooms, every picture's src, loaded with the page, headings at the page's levels and a block with no title no heading, a section's slides in one row, reveal.js's own scroll view off, the deck's shape, a footnote at the foot of its slide, MathML, a formula opening with \displaystyle in display style there and on the deck's page, highlighted code in the theme's colors, the notes for the speaker's view, shown under each slide or left out, slides.size said unread, the output check finding nothing but a slide with no title, a book's revealjs target refused, the run stopped by a repository's copy missing a file, by a folder that isn't reveal.js or is reveal.js 5 in REVEALJS_DIR, by a Pandoc older than 3.12, and by a setting in a deck's YAML that would put code into the start of reveal.js, named, one that's a word written; and, with Playwright and its Chromium, in a browser: reveal.js's role and live region gone, its progress bar out of the accessibility tree and its controls in it, a slide's title and a step's content given focus as they appear, a link within it taking focus to its place, links' color and underline, the arrow back as plain as the arrow on, a slide too tall fitted, and centered though its fonts come after the page has loaded, one too tall even at a quarter of its size scrolled, taking the page's keys, code that scrolls taking focus and the keys and code that fits not, and a narrow window's page that scrolls, at the top and no wider than the window, its left and right keys going from slide to slide, its controls in view and its end clear of them, with no overview, scrolled to a step and a link's place, a slide's page starting at its top, one with no title too, and its text a page's size on a phone; and --wcag checking it slide by slide, its scripts taken for TextbookImprover's own. A deck's presentation and its PowerPoint file carry a picture scaled down to twice the width it's shown at (images.downsample), and the deck's own stays as it is. Its PowerPoint file and its PDF carry a photograph stored on its side, its EXIF orientation turning it, drawn the way a browser shows it, the PowerPoint file's in a box taller than wide, from the smaller copy where there's one. Needs Pandoc 3.9 or later, and stops on an older one, and the checks of a deck's PowerPoint file and of its reveal.js presentation need 3.10.1 and 3.12, as those targets do, and skip with an older one, naming it and the version they need, the rest of each case running; the PDF's cases need LuaLaTeX, ltx-talk and what it loads, the packages the decks load (latex-lab, tagpdf, luamml, cancel, pict2e, luacolor, lua-ul), pikepdf, and pypdf, and skip without them, saying which; a code block's spaces and a heading's words are read as the characters the PDF holds (tests/pdftext.py, with pikepdf), where pypdf infers spaces from where words sit. A deck in another language than the project's, by its YAML: its page, its reveal.js presentation, its PowerPoint file's text, and its PDF in its own, and the run drafting its row. A deck's PDF built twice under SOURCE_DATE_EPOCH the same file, its ID too.
run-pdf-tests.py The PDF target, end to end, on a small Markdown book, set on the book class's own page (10pt type, justified) by its metadata file, the default page's four fields set back, in Latin Modern, whose faces the file names, as its checks were measured in it: a declared header column tagged as row headers, a decorative image as no figure and an undescribed one reported, a figure's alt text in /Alt as written, the characters Pandoc's writer writes as commands and the quotes and dashes it writes as TeX's ligatures among them, a formula in a picture's description its text there, each link's /Contents, an address's hyphens and backtick kept in it as they're written, in a PDF/UA-1 book's link LaTeX makes on its own too, in a brace group and with a backslash, and in a link to a place the book's LaTeX names, which has one after a link in a footnote, and its list of figures' line for a caption holding a link hyperref's text, Greek written as text present in the PDF's text, and an emoji from Noto Emoji where it's installed, and a character no font has reported once, MathML as structure and as a file, the division commands once each from the roles, the contents where contents puts them, the preamble page without a heading, a section's title too long for its running head scaled to fit beside the page number, amssymb's squares as the characters they are, a highlighted code block's spaces as characters, a code block in a footnote set in its note, highlighted or not, highlighted code drawn in the theme's colors, a span, a link, and a passage in another language tagged with it (a heading in the passage its words, the text after it the book's language again, and a passage inside it its own), a figure's and a table's caption that carry their own label set without LaTeX's, a long one too, and an unnumbered figure's, their Captions with no empty label, and LaTeX's kept for captions that don't, in an untagged book with no table as well, one labeled by a word captions.figure_prefixes names, and in it a box that opens a list's item, a quotation, or a definition set, the item's number beside it, a footnote in a figure's caption numbered once, a long one's too, and one in a table inside a table's cell numbered among the outer table's, two in a term set at the head of its definition a comma apart, their marks drawn against the term and a space after them, two in a heading and two in a caption a comma apart too, tagged and untagged, their contents, bookmark, running head, and list of figures entries without one, and one in a table's caption, short and long, numbered once, each linked to its note, in a book built tagged with a list of figures, whose entry for a caption with a link in it is titled by the caption's words, as are a caption's with a picture in it, the picture its alt text, or nothing and no second space where it has none, with an anchor, and with a word in French, and untagged, the untagged one with a header column and a table in a cell built at all, a layout table tagged as a division of paragraphs, its caption a paragraph before it that LaTeX doesn't number and its id an anchor a link goes to, its head rows like the others with no TH, and a data table inside one as a table, a data table's id with no caption an anchor too, numbered by nothing, and one of class unnumbered's, a table whose cells, side by side, are longer than a line wrapping them, a layout table's and a data table's, a column of reactions wrapping at their relations and operators, a table whose longest words the filter counts as too wide for a line, which LaTeX finds fit it, in the text's type, a table's equal widths widened for a word too long for its share, a table of numbers too wide for its line kept in its columns and set smaller to fit it, and not fitted again within 4 percent of its line, a worked example's steps as the CNX unpacker lays them out, longer than a line, their formulas whole, their reasons wrapped, and, in the LaTeX, their columns of math a tenth wider than their widest formula as counted, in ems of the text's type as the build measured the page, which counts an escaped brace, a text's spaces but not \mathrm's, a function's name by its letters and the space beside it, none before a parenthesis but one before \left, limits set under something as wide as the wider of the two, and a relation set so as a relation, and steps that fit set at their own width there, the captions' repair still matching the book's tables, and the untagged book built with them, a heading inside a list's item, a numbered item, a definition, a quotation, a table's cell, a figure, or a footnote set where it stands, tagged a heading but in the footnote, a link to one going to it, and the section after them the chapter's, not the list's, a PDF with no structure tree left as LaTeX made it, and no page label twice; a mark holding nothing but white space set as its space alone, where it had been a Span with nothing in it, and a cell holding only a no-break space empty, not a space character; an image with a width wider than the line scaled to fit it, a decorative one too, and a figure in a table's cell whose caption carries its own label left as it is; an image scaled down to twice the width it's shown at (images.downsample); a display formula too wide for the paper even at half its type named, with its page, and a line too wide in the contents or the list of figures named as the list's; a box set off by a rule above and below, artifacts across the line; a fill-in blank too long for its line drawn to end where the line does, its underscores drawn as underscores (OER_BLANK_GLYPHS, which only the suites set, so that the checks can count them, here and in the notes book and the fit book), each blank a Span whose ActualText is "blank", one in a paragraph's middle leaving the words after it the paragraph's, and the line not named by the build, the line it's on what --wcag --verbose names, one that fits left as it is, underscores in code, a bare address, a picture's description, or a heading no blank, and a blank underlined, struck out, or highlighted unmarked; fill-in blanks as a build draws them, in a book on the default page built twice, its blanks drawn as lines and as underscores: each blank's line where its underscores' ink was, each end, its foot, and its top, in IBM Plex Serif upright, italic, and bold, in a list, at a paragraph's end, drawn shorter, in a table's cell, in a note, of three underscores, of three and of two side by side in a table's cells, and joined to a number, Python's __init__ and café__ no blank, in its Span, which holds no character, two blanks with nothing but spaces between them (a space, a no-break space, or a thin space and a space) one Span, "blank blank", a bold one among them too, a blank and an italic one beside it two lines, and a blank and one in a span beside it two lines in two Spans, the text with no run of five of a character but a space, nor of three spaces, but a heading's underscores, which are drawn as they were, every other character where it was, a run of no-break spaces in text in a formula one space in the text, plain or bold, in raw LaTeX, across three boxes of text, and in a heading, whose bookmark has the formula's text, its run of spaces one, the formulas as written, a formula of nothing but spaces between two words none, in raw LaTeX too, and one between two letters one, and veraPDF finding nothing; and blanks built as a build draws them in a face HarfBuzz shapes (Renderer=HarfBuzz), drawn as lines in its underscore's measure, in one Span, with no space between them, in one stretched wider, a line as thick as the face's underscore and as long as the underscores stretched, in a face loaded from TeX's own metrics, kept as underscores with their space, the build saying how many and in which face, and in an untagged PDF, kept as underscores, nothing drawn and nothing said; a formula's term struck out drawn as lines, no glyph of LaTeX's line10 font in the PDF, tagged or not, and a command the book defines in its text, named as one of pict2e's, the book's; a picture in a page's LaTeX drawn with a path, four curves, no glyph of lcircle10, and with LaTeX's own glyphs in the untagged book, whose target turns picture_paths off; and two pictures in a figure's row set side by side, each its share of the line, one figure with one caption; a footer at the foot of every page, the title page's among them, as an artifact, a link in it its words and a picture its alternative text, no link and no image, in the same size and place on every page, and a small line's space under a page number whatever the text's line spacing, veraPDF finding nothing in its book, which is on the PDF target's default page (bin/pdf-layout.yaml): the footer a quarter inch or more from the paper's edge, Letter paper, the text 6.5 inches wide from an inch in, 12pt type on lines 1.5 times its size apart, and ragged right with no word broken, a footnote and a caption too, a line break leaving its paragraph one and a caption's a line of its caption, a space between a line break's two lines in the text a screen reader gets, an address's, a verse's, and a caption's, one space across a line block's empty line and none added before its line indented with four no-break spaces, and no ragged line's letters drawn narrower to fit more on it; a numbered book whose chapter's and section's titles have a line break, each heading's number, title, and lines a space apart in its text, a one-line caption's and a definition list's term's lines a space apart, and its running heads a space apart where the title breaks, the caption on two lines broken at its line break and centered, the term's words a space apart on the page, the spaces in the book's own face, each contents entry's number, title, and page number a space apart in its text, a table without widths keeping its cells' lines in its structure, and a link's note after the link, outside its structure element; the default page as a metadata file changes it, a field at a time: 13.5pt type, which the book class hasn't, on the default's paper, margins, and line spacing, its paragraphs half a line apart at that size, a list as far apart as they are and its items 2.5em in, a page's first line a line of that type below the top margin, justified by ragged-right: false, a page number of four digits fitting its line of the contents, the build's last line counting the PDF's pages and the book's apart, a box that opens with a heading taking the rule above it to the next page with it, and a heading after a box as far below it whether the box ends with a figure or a paragraph; a footer from a file once on every page in fancyhdr's page styles, a chapter's first page's made from the others' and fancyhdr twoside in a book that isn't, a heading in it a paragraph and not a bookmark, a type size and a paper given as class options, 13.5pt on A4, standing where the default page has its own, and a face of its own, IBM Plex Serif, with the fallback fonts for a character it lacks; the book again on the default page, building, in the default's faces, its text in IBM Plex Serif, its code in Plex Mono, and its formulas in IBM Plex Math, the run saying nothing of them, its code and its formulas at the text's size, a character of code 0.6 of it wide, veraPDF finding in it what it finds in the book, and built again where TeX lacks a file of Plex's, its math font's name changed to one no TeX has, set in Latin Modern, the run's warning naming the file, the package that has them, and how to keep Latin Modern without it; the files of Plex's LaTeX looks for, given which families a metadata file names, an empty field naming none, the warning's words for each, and the scale a face set again is given; a metadata file that loads geometry and setspace itself keeping its own margins and line spacing, and, naming a math font, and a monospaced face with fallbacks of its own, and no face for the text, having each scaled to Plex Serif's small letters, and, with no contents page, bookmarks only as deep as pdf.toc_depth says and its page count in its XMP, as the book's with them is, and build-pdf.py, run on its own with the book's folder given as a relative path, finding the file; the page for WCAG 1.4.8 (AAA), bin/pdf-layout-wcag-aaa.yaml, as a book's metadata file: 12.5pt type on lines 1.5 times its size apart, paragraphs 2.5 times it apart, top to top, and a footnote's and a caption's lines, in a book with a table, as far apart for their type as the text's, the run saying nothing of its lines in Plex, and warning, in the same book set in Latin Modern, its faces named or where TeX lacks Plex, that its full lines hold more than the 80 characters the criterion allows and at what size they'd hold no more, a poem's lines, each ended by a line break, not counted; veraPDF's verdict when it's installed (only the .notdef of that one character); and tables and formulas too wide for their lines, on the default page in Latin Modern, its tables counted in characters (OER_MEASURES=none), as its cases were set, fitted as LaTeX measures them: a table that narrower spaces between its columns fit, in the text's type, one in smaller type, one left a little too wide by its smaller type's design centered and not fitted again, one too wide even at three quarters of its type centered on the page, one set smaller still to stay a quarter inch inside the paper, one too wide for the paper even at half its type warned of, its 45 columns as the writer sets them, a table of the class float after it, which the writer sets as a tabular, not fitted by the longtable's widths, its tags where the text has it, between the paragraphs around it, one whose head is a cell across its columns fitted again on the second run in the text's type and spacing, one of formulas fitted again on the second run, one whose columns wrap fitting with narrower spaces in the text's type, one whose columns wrap set larger on the second run, its spaces counted at the new size (Introductory Business Statistics 2e's Table A7's measures, its fit worked out by texlua), one whose columns' widths are given set smaller where LaTeX measures a word running into the next column, and where a formula too wide for its column opens a line of its cell, one TeX can't break or one it breaks after an operator, one whose columns' widths are more than its line together kept in its type, its columns narrowed, a line of words in a cell before one a formula opens measured by its words, one whose columns' widths are given, a fill-in blank too long for its column, in its type, the blank counted as three underscores at most and drawn shorter to its column, one whose columns' widths are more than its line together likewise, its columns narrowed, one whose columns are half the line each, a word of 26 letters in one and a blank longer than its column in the other, in its type, the word whole, one whose cell holds a word of code with a run of underscores longer than its column, which isn't a blank, in its type, its column widened to the code, one whose cell holds a blank joined to a number, the two longer than the column, the blank drawn shorter and the number within it, and one whose blank, longer than two thirds of its column, is a little too long for the column with the words joined to it even at three underscores, in its type, its spaces narrowed, a blank alone on a middle line of a column too narrow for it beginning and ending where the column does, a blank longer than two thirds of its line joined to a formula, the line ending after the formula, whole, a blank longer than its line on the line of the label before it, the line ending after it and the next label starting the next, and in a paragraph set flush to both margins a label and a blank that fit a line sharing it, the next label starting the next line, and a table whose columns have no widths, a blank in one too long for the line at its full length, in its type, its columns wrapping, words beside a long blank that fit the line with the blank at its least keeping their line, in one column or two, and a blank after a label keeping the label's line, its least two thirds of its column, where the words beside it wrap, and, where the words don't fit beside a blank at its least, its column held at its least and the words given the rest, and LaTeX's measure of a paragraph's least, run by texlua on nodes a character wide, a blank three underscores or three times the words that share its line, joined to it as far as a space TeX may break at, a formula and a no-break space among them, each blank drawn shorter ending within half a point of its column's edge, none hung into the margin, nor a blank that ends a paragraph or opens one, a blank that fits at the end of a line whose spaces TeX shrank left as TeX set it, and one opening such a line too, the line ending at the margin, a blank that fits keeping its hang beside one drawn on its line, and one drawn at two thirds that its line has room for whole, a blank that ends short of its line's end as TeX set the line left whole where what follows it runs past, and on a line TeX shrank, beside a blank drawn at two thirds that gets back its hang, a table whose columns have no widths laid out as LaTeX measures it, a row's label and its formula on one line beside pairs of numbers with fractions, and one with a formula too long for the line in its type, the formula broken within its column, a layout table set smaller with its caption in the text's type, one of 45 columns whose widths are given, the spaces between them more than its line, narrowed and then fitted, and one of 22 columns whose longest words are wider than a line together, its corner's words wrapping, kept a quarter inch inside the paper, each word whole and clear of the next column, and one of them with a cell across two columns in its head, which the counts lay out, likewise; display formulas likewise, one whose spaces narrowed fit it, one fitted again on the second run, one centered, one in a paragraph whose lines before it stay as far apart as the text's, and a numbered one with its number at its line's end, and a worked example's steps, an array in text, fitted again on the second run, the padding LaTeX's array sets at its edges taken away from a bare array and kept right after a delimiter, inside \left and \right or after one alone, as texmath writes one between delimiters that don't stretch, and a table whose cell holds a table, its column widened to the table in it, and one whose table has a row across its columns, wider than they are, widened to that row; a line of code whose word opens a hung row, its column given the word and the hang's two characters, and a worked example's column of words held at its longest word, each part no less as TeX reads it; worked examples' steps as the CNX unpacker lays them out, set as LaTeX measures them: steps whose formulas and longest word are counted wider than a line, steps whose longest word the counts leave their formulas less of the line than they're wide, and steps whose reason holds a formula the counts give more of the line than their words, which fit it, in the text's type, each formula whole; steps the counts set across the line set at their own width, centered, their reason on one line, and without the rules above and below them a table of data has, as are steps of the class steps, where another layout table has them, and steps of either kind made a table of data again keep them; steps a little too wide for that, which narrowed spaces would fit, set across the line with their spaces as they were, and steps too wide at their own width set across it, each column of formulas as wide as its widest; steps whose longest word is wider than its count fitted with their spaces narrowed; steps too wide even so set smaller, measured again on the second run, at three quarters of their size, their word whole, and steps too wide for the paper even then a quarter inch inside its edges; a reason's fill-in blank measured as three underscores, and at its whole length in the reason's width, drawn whole beside its label where the steps fit the line so, and a run of underscores underlined, which isn't a blank, measured whole, a reason's lines broken where it says measured each, not by the writer's minipage around them, and a reason's formula, and a matrix in it, measured whole; steps whose cells in a column differ in width, each column aligned as the steps align it; steps whose longtable has a column more than their group says, as an edit of the latex target's LaTeX can leave them, set by their own columns; and steps with two columns of words, and steps the writer floats, left as the counts lay them out; and the counts, read from the LaTeX, each column's share of the line, which a TeX without Lua sets: steps of \leq, a relation TeX names counted as an equals sign is, a reason's formula given room for it whole, its column a tenth wider than the formula as counted, steps whose reason's formula leaves their formulas less than three quarters of their counts sharing the line in proportion, a little more giving it its room and a little less sharing it so, a reason holding a word wider than its formula's share held at the word, and one holding a fraction at the fraction as a cell's words are counted, piece by piece, steps whose reason's formula alone is longer than a line sharing it in proportion, their cells longer too or, a function's name a character, shorter, and steps whose longest word alone is longer than a line set as any other table, no column of less than no width; nothing fitted after the second run, so the last run's pages are the run's before; and the build's report of them; and, on a page of two columns under the fleqn class option, in Latin Modern, a display formula left as fleqn sets it, a worked example's steps set smaller to fit their column, rather than run a margin's width into the other, a line of code too wide for its column even at three quarters of its size set smaller still to fit it with code_wrap: 0.5, fitted again on the second run, where Latin Modern Mono's 8-point design leaves it a little too wide, and at the default set at three quarters and wrapped inside its column, an arrow before its later part, and the build's warning of what's too wide for its column; and a page whose display formula and formula in text hold an evaluation bar's limits as texmath writes them, an empty line before a matrix's end, built, the empty line an empty row, each bar's limits as far above its formula's line as below it; and a book of tables ruled row by row (class row-rules), on the default page: a gray rule under each row of the body of a layout table of steps and of a table of data with a caption, and none above either or under its head, each an artifact across the table's columns, not the line, a table of a calculus book's Key Equations ruled in OpenStax's lighter gray, a step opening with "(" kept whole, no rule under a row a cell spanning rows reaches below, a table in a ruled table's cell drawn as before and the row it's in ruled under it, a table not ruled keeping the writer's black rules, a table of 205 rows, longer than one of longtable's chunks, ruled under each row and not under its head on any of its pages, each table's rows its own, and veraPDF finding nothing in it; and a book of code on the default page, in Plex Mono and again in Latin Modern Mono, its tables counted in characters, as its cases of code in a table's cell were set: a block whose lines fit theirs at the text's size, a highlighted line too long for its line and one in no language, which the writer sets in LaTeX's verbatim, set smaller to fit it, the block's other lines with them, a line in a list's item that fits the text's width fitted to the item's line, lines too long for their line even at three quarters of their size, one the margin had room for, one that would have come within a quarter inch of the paper's edge, and one that would have needed half its size, set at three quarters and wrapped, none running into the margin, the first fitting whole in Latin Modern Mono, which holds more to a line, and lines too long for the paper even at half, highlighted and in no language, set at three quarters and wrapped at their line's end, the build saying so after what it fitted: every part inside the text's width, each after the first the line's indentation and two characters in, or 20 characters from the line's end where the line is indented deeper, a word broken between its letters and not hyphenated, a long word after an indentation broken in it, not after the indentation, words at their spaces, the space kept, words joined by no-break spaces after one, a word that fits the next row moved there whole, hyphened words in no language after a hyphen, a line longer than its line by less than half a point whole, a line that opens with a mark, and Hebrew, each letter's points with it, a point on every letter of one line, a line's parts on one page, one where a page ends carried to the next whole, the lines after it at the block's spacing, each part after a line's first with an arrow drawn before it, an artifact, and no first part with one, and each line's text one line of code in the PDF's structure, as written, each line a P in the structure's role map for a reader that knows only PDF 1.7's tags and a Sub in its namespace, a footnote's code fitted to the footnote's line, a footnote's in a table's cell too, a line in no language with hyphens fitted whole, not broken after a hyphen, a quotation's line too long for the quotation's line even at three quarters wrapped inside it, fitted to it in Latin Modern Mono, a definition that opens with code its term on a line of its own, code in a table's cell, in no language in one table and highlighted in another, ending before the next column's words once its table is fitted, a table whose cells hold blocks, which Pandoc's HTML reader gives equal widths, its cell of code's column widened to the code's lines, the code the cell's or inside a division in it, a footnote's code in no language too long even at three quarters wrapped inside the footnote's line, and a footnote's words too wide, whose last block is code, named as a line of text, each line's text as written, highlighted code in a paragraph broken as text is: a span longer than its line at its spaces, a word longer than its line after a run of marks and not between a path's two backslashes, a word that fits a line moved whole to the next, and, set flush to both margins, broken after a run of marks rather than between two letters, each row inside the text, code in no language, which the writer sets as \texttt, broken as highlighted code is, a path in twelve lengths, a table whose columns have no widths, a cell of such code longer than its column, set in the text's type, and the paragraphs' text as written, a paragraph of code line by line, highlighted and in no language, each line too long for the text hung on its line, its later parts at its indentation and two characters further in with an arrow, 20 characters from the text's edge where it's indented deeper, its indentation kept at a row's start, a row its words fill kept whole, its text in the structure as written, and its rows kept on one page, at a page's foot carried to the next, and such lines in a table's cell, each a paragraph of its own, highlighted and in no language, hung alike, and veraPDF finding nothing in it; and beside it, on a one-sided page whose right margin is wider than its left, a numbered display set at three quarters of its size, as the right margin's room to a quarter inch from the paper's edge allows, a line of code too long even at three quarters wrapped, each wrapped line's later parts with an arrow each, tagged and untagged, a quotation's lines too long for the paper even at half, highlighted and in no language, wrapped at the end of the quotation's line, tagged and untagged, a list's item that opens with highlighted code its number beside the code's first line, tagged and untagged, and the next item its own, a list's item's word of highlighted code longer than the item's line but not the text's broken between its letters inside the item's line, tagged and untagged, a list's item's line fitted to the item's line, in the PDF and in an untagged one, whose LaTeX's own verbatim indents it by its left skip, and a list's item's code that runs across pages, under a footer wider than the item's line, at its size; and on a page 4 inches tall, a highlighted line too long for a page even wrapped said to run off its foot, the warning saying to break it in the book's files, one wider than TeX's largest dimension not stopping LaTeX where it's measured, and a line in no language taller than half the page breaking across pages, each part inside the page's text; and four lines of code, built with code_wrap at its default, at 1, and at 0.5, each set as small as it takes or wrapped at the setting's size, as the setting says, an arrow before each later part, and the build saying so. A book naming a math font TeX lacks and one naming a font with no math table, each a target, its PDF built with the formulas in Latin Modern Math and the run warning of each, and Noto Sans Math's warning giving the steps to install its version 3.000; a metadata file whose own LaTeX sets script capitals from Latin Modern Math, after the math font it names and after the default's, each built, the range kept and IBM Plex Math at the text's size; and a math font in the book's folder, its options giving a Path, set from there without a warning; a heading's formula as text in its bookmark, x², a script in Unicode's subscripts, x̄ₙ, one with a caret, 4^(π), and a fraction, a/b, and a binomial's TeX, which can't be text, the heading's structure title and its contents entry's the same, a caret a caret, the run saying so once for each PDF, for a latex target's LaTeX, and for --latex-only, and not giving the plain writer's warning; and, where TeX has Josefin Sans (josefin), a target in it, a face with a STAT table that isn't a variable font, embedded from its file, its regular and bold faces each drawing an accented letter from its parts, each part drawn; and, where TeX has Junicode VF (junicodevf), a target in it, a variable font, embedded from luaotfload's copy, its empty glyphs empty, the space a tagged PDF draws among them. And, where fontTools is installed (sudo apt install python3-fonttools, or pip install fonttools in a venv; skipped without, the skip naming fontTools or LuaLaTeX, whichever is missing), variable fonts in CFF2 made for the purpose, their glyphs boxes: one of two axes set where luaotfload keeps none of its outlines, as it kept none of Source Serif 4's, and in HarfBuzz mode, its glyphs drawn and each ending with endchar, once, and the run naming it; set where node mode reads it, as node mode writes it, its boxes the default's height, not named; one of one axis at a weight set on its axis and at a named instance, its strokes that weight's, not named; and a book in it, built in both modes, whose build warns once, for its target in HarfBuzz mode, two checks, each saying, if it fails, what the book's run built and said, the faces in a folder whose name has an underscore and an apostrophe, as the book's metadata file gives its Path. And a book measured on the default page in its faces, as every book but the fit and code books is, its metadata file's LaTeX reading a file in the book's folder: its LaTeX's counts in ems of the text's type (a line of 39.15, a space of 1 between columns, a character of code 0.6, a formula 0.48 to a counted character, a list's margins in a cell at its six depths, and a note's mark, the book's one note's, 0.43, and a digit's advance 0.39), code in a table's cell given its own width and set at the text's size, inline code in a narrow column whose table gives widths given the code's width, whole on its row, a table whose longest words a count of 70 characters to a line finds too wide fitting its line with nothing fitted, and a word of wide letters given its width as each letter is set, whole on its row; and, each in a column its table gives too little room, a line of code whose word opens a hung row, in a table whose widths are given and in one whose columns LaTeX lays out, the word whole there two characters in, after a line of text in its cell too, hung by itself, and in an indented line, its indentation and two characters in; a line whose first word is its longest, its column as wide as the word; an indented line's long first word whole on its first row in a table LaTeX lays out; a word of a list nested in another whole on its row, the column no wider than it needs; a word of code in a list's item whole on its hung row, its column's part of the line no less than TeX reads it; a word of a description list's definition whole on its row; a table in a cell ending inside its column; and, as a review found them, a line of code with a superscript or a note after it, or after no-break spaces of the text's, a second line in emphasis after a line break, and a description list's definition that is a line of code after a long term, each hung, a long term, set in bold in a box, and a word in bold, each whole on its row; and HTML in its Markdown: a line of code with a note after it in a table written in HTML, the table a table and the line hung, its word whole on its row, raw code in a paragraph and in a raw table's cell in the PDF as written, its quotation marks straight and two backslashes two, and a raw <pre> a code block, each of its lines in the code's face, the second's indentation kept; a book of two numbered chapters, its LaTeX saying its notes are numbered by chapter, a table's column held at a word and a note's mark a digit's advance narrower in the second chapter, where the mark is note 1, than in the first, where it's note 11, and LaTeX numbering them so; a book in amsbook's class building with its contents and list of figures, headed as amsbook heads them, nothing of the build's own on the page and no list made a numbered chapter, and its two notes in a row marked 1,2; and a book whose contents' \@starttoc is a document command of one argument, as skrapport's is, a heading too long for it named as the contents'. Where TeX lacks a package its PDFs load (latex-lab, tagpdf, luamml, luatexbase, selnolig, luacolor, lua-ul, multirow, cancel, pict2e, geometry, setspace, koma-script, plex), it says which, with the line that installs it, and skips. And every folder a book is built in is one the suite removes when it's done, or names with --keep. Needs Pandoc 3.9 or later, and stops on an older one, and LuaLaTeX with LaTeX 2026-06-01 or later, pypdf, and pikepdf, and skips without them, saying which is missing or too old. A book with a page in another language and a chapter whose opening page is in another, its title the chapter's: each in its own, its heading's words and its text, the page after it and the book's catalog in the book's. A book built twice with SOURCE_DATE_EPOCH set, in two folders and two time zones: the same PDF, byte for byte. A GIF, which LaTeX can't read, made a PNG for it from images.downsample's smaller copy, beside a PNG of its name drawn as itself; skipped without Pillow, which makes the GIF. Four books LaTeX stops on, each reported as what it is, with LaTeX's log and the LaTeX it read kept in the target's folder: a package TeX doesn't have, with how to find it; a command nothing defines in a page's raw LaTeX, with its line and the book's page, the same book by Pandoc's own route reported as Pandoc reports it, and, mended, built with the log gone; an error that first shows on the second run, in the contents the first wrote; and a LuaLaTeX killed on its first run, its files left cut off, reported as killed, with the pages its log shows set, and not run again, and one that stops because it was refused memory, in either of the two ways LuaTeX says so, is reported as that. A photograph whose EXIF orientation turns it, drawn the way a browser shows it (build_turned).
run-audit-tests.py The audit on one file of each kind, the shared findings format, the cache, its reports in the folder it audits, never read as the book's files, so an audit run again finds its report current, a file renamed or copied read again under its own name, a file made again replacing its entry in the cache, and an entry kept by a SHA-256 alone dropped, nor a book's own audit.md, audit.html, audit.docx, or audit.csv written over, and that the source check and the filter agree about what an image without alt text is, a figure's image whose alt text is its caption found, two such on different pictures compared as any alt text is, and not one given alt text of its own or marked decorative, nor one whose caption another rule finds, which that rule names; --wcag with the stand-in for veraPDF, at AAA, a note for each rule a PDF fails, or with --verbose for each failed check, an item in the report under its rule's, --verbose alone saying it changes nothing, notes that leave the exit status alone, a section on axe-core's checks of the page, which say why they didn't run without Playwright, and a report made with other options not taken for current, nor a page read with another --quick. The report taken for current with --wcag, with the stand-ins for veraPDF and Ace, just when it's left as it was: not with another WCAG version, level, best practices, experimental rules, or --verbose, a form of the report asked for that wasn't written with it or is gone, another veraPDF, its WCAG modules gone, another Ace or none, without veraPDF when it had it, a page's stylesheet changed (in a browser), its files named another way, or a file read again, and never while a check runs again each time, keeping nothing. Needs Pandoc; its PDF and --wcag's need pypdf, and skip without it. axe-core's results kept in the cache, in a browser: the second audit checking nothing again, its findings the first's, a changed stylesheet, a picture that's there now, and an EPUB made again checking only what changed, other rules and --force every page, a broken part of the cache started again, and --no-cache leaving the cache as it was; skipped without Playwright. DAISY's Ace with the stand-in: its findings filed under the EPUB, an unchanged EPUB's kept, a changed one checked again, its entry replacing its last, and every one with --force or another Ace, a renamed one named by its new name, a broken part of the cache or entry started again, nothing kept with an Ace that doesn't say its version or of an EPUB written again as Ace read it, and not run without --wcag or with --quick; an EPUB whose ZIP holds a symbolic link not given to Ace, a warning in the run and the report, the report never taken for current, with --ace-unsafe-zip given to it, and its result kept after that without the option. veraPDF's WCAG findings kept, with the stand-in for veraPDF: an unchanged PDF given no run of the profile, veraPDF asked once which it is, another level and --verbose read from what was kept, a changed PDF alone checked again, a renamed one named by its new name, a changed folder of modules, another veraPDF, and --force checking every PDF again, nothing kept from a run with a warning, and --no-cache leaving the cache as it was. A PDF's own checks kept, with the stand-in for veraPDF and pdfcheck.inspect counting the PDFs it reads: an unchanged PDF neither read nor given veraPDF's PDF/UA checks, its findings and metadata the first audit's, a changed one read again and only it, a renamed one named by its new name, --quick, another veraPDF, another pypdf, and the code edited reading every PDF again, a broken part or entry started or read again, a PDF pypdf can't read kept as one, nothing kept from a run veraPDF didn't finish or of a PDF written again as it was read, and --no-cache leaving the cache as it was. epubcheck's and the Nu checker's findings in the report, each as its own tool's, where they're installed, and neither's with both hidden, as every other case's runs have them.
run-epub-tests.py build-epub.py against the same fixtures: the nav mirrors contents, each page is its own file titled by its heading, a declared row header survives assembly, ids stay distinct across pages, the package document claims alternativeText only once every image has it, a one-page book's notes are numbered across its chapter files and gathered on its Notes chapter, a one-page book's headings' formulas as text in its chapter files' titles and its contents, and each page's division comes from its top-level entry, its type on its section with its ARIA role, a typed section named by its heading, and the landmarks for the contents and the start of the body; and an SVG picture that holds an id more than once, its repeats renamed and its first kept, but not words in a comment or the picture's text that read like an id, nor an id its own stylesheet names, which the run warns of. Same Pandoc requirement.

run-latex-tests.py, run-convert-tests.py, and run-decks-tests.py take --case LABEL, repeatable, to run only the cases with those labels, as the scripts' CASES lists name them (the LaTeX suite takes any part of a label). A label no case has stops the suite, rather than running nothing.

run-all.sh ends with All suites passed. or with the names of the suites that failed and their FAIL and ERROR lines repeated, so the reason is at the bottom rather than somewhere in ten suites of output. A check that runs one of the full validators says what the validator returned when it fails, since the usual cause is the tool, not the page.

A check that needs something not installed passes with skip and the reason, and run-all.sh lists those skips at its end, since a pass doesn't cover them. Most are a validator whose jar isn't set, or LuaLaTeX and its packages (Installation). A TeX package a suite's books or their PDFs load that TeX lacks, or a LaTeX too old for the PDF target, is a machine to set up in the same way: the suite names it, with the command that installs it, and the checks that need it skip, as they do without TeX. So is a language's: the LaTeX suite's books in German (ngerman) need babel-german and hyphen-german, and its book in British English hyphen-english's British patterns, and the checks that build them skip without, the books' copies checked all the same. Twelve of the decks suite's checks of reveal.js presentations, which open a presentation in a browser, need Python's Playwright and its Chromium, which are optional (about 570 MB), with the suites run by the Python that Playwright is installed for (Installation has the commands). Without Playwright, or with a Chromium that doesn't start, the twelve skip in one line, which run-all.sh counts as twelve, and the rest run.

Three variables change a PDF from outside the project, and build-pdf.py names each in a NOTE when it's set. OER_MEASURES gives the page's measures in place of measuring them (none for no measuring), and is for the suites. OER_PDF_VIA=pandoc builds a PDF by Pandoc's own run of LaTeX in place of TextbookImprover's, for comparing the two. And LaTeX searches the folders of a TEXINPUTS set before the run after the build's own. None belongs in a book's build: a book built elsewhere won't have them.

The suites take PANDOC_DATA_DIRS out of their environment, each one and run-all.sh too. Pandoc 3.14 looks in the folders it names for templates, init.lua, and its other data files, even where --data-dir is given, so a machine with the variable set would otherwise have its own files checked along with TextbookImprover's. A conversion run leaves it out too, and Pandoc's user data folder with it (lib/pandocrun.py): the convert suite's case of a book's own template checks that a template and an init.lua in either are left alone, and the unit suite that no program in bin, lib, or util calls Pandoc any other way.

Why these and not others

Every filter bug fixed in v0.2 was silent. Alt text applied to the wrong image; two <h1> elements on a page; a caption that stopped being found; a ten-row table reduced to one empty cell. Nothing raised an error and nothing in the reports showed it.

They were found by converting a whole book with two versions of the pipeline and comparing — which works only while the previous version is still installed and a corpus is on hand. The fixtures assert the same things against six documents of about 37 KB each, so the check outlives the version it was written for.

Some cases pin behavior that's about to change rather than behavior that's right — a merged title row becoming a spanning header, a table with no header signal having its first row promoted anyway. Those are what the filter does with no declaration in reach, which is how those cases run; what a declaration does instead is pinned separately, in the cases that run the pre-pass the way convert.py does.

The configuration fixtures serve a second purpose: they're the conformance contract for the merge rules. If those rules are ever reimplemented — in JavaScript for a web front end, or in a separate repository — the fixtures say whether the new implementation agrees with this one.

Why a portability suite

One line of lib/oerconfig.py was valid Python 3.12 and a syntax error on everything older, because PEP 701 lifted the rule that an f-string replacement field can't span lines. It compiled on the machine it was written on and broke three of the four suites on the machine that ran them.

Nothing caught it, and nothing could: a syntax error is invisible to an interpreter new enough to accept the syntax. py_compile passes, every test passes, and the file is unusable elsewhere. So that suite checks the source rather than the interpreter, and runs first — a file that doesn't parse makes every other result meaningless on someone else's machine.

It compiles with Python 3.9 when one is installed, which is the authority, and scans for the known-newer constructs otherwise; any interpreter newer than 3.9 accepts some of them, so only 3.9 itself will do. Either way it reads each file's syntax tree for an annotation written X | Y, which 3.9 compiles and then fails on when the definition runs.

Running as Pandoc 3.9 would

PATH="$PWD/tests/pandoc39:$PATH" bash tests/run-all.sh

TextbookImprover takes Pandoc 3.9 or later (Installation), and is meant to keep taking it through version 1.0. Code written and tested with a newer Pandoc can ask it for something 3.9 doesn't have and pass every suite there, then fail on a machine with 3.9: --math-method, which 3.11 added, and pandoc.TableBody, which 3.10 added, stopped every conversion on 3.9 until a stand-in for 3.9 found them.

tests/pandoc39/pandoc is that stand-in, a script the suites run under when its folder is first on the PATH. It runs the Pandoc installed, which has to be 3.11 or later, with 3.9's interface, as read from 3.9's source: it answers --version as 3.9, so the run and the suites take it for 3.9 and skip what 3.9 can't do, and names the installed Pandoc in a last line of its own, Readers and writers: pandoc 3.14; it stops on an option 3.9 doesn't have, as 3.9 does, with 3.9's message and exit code; it writes math as plain text unless MathML is asked for, as 3.9 does; and it gives a Lua filter, reader, or writer 3.9's functions, without pandoc.TableBody or pandoc.types.Sources, and with a pandoc.read that takes only what 3.9's takes. Its docstring says how, and the unit suite checks that it still answers so. The Pandoc it runs is the one the environment variable PANDOC39_REAL names, or else the first on the PATH that isn't a stand-in, itself or a copy in another clone of the repository. It tells that Pandoc how many stand-ins deep it is, and one run ten deep stops, saying so, so a stand-in that ends up running itself stops at once. Run with the stand-in first on the PATH, run-all.sh names the Pandoc it runs in PANDOC39_REAL for every suite and says which it is, since a few checks hide the PATH's other programs from a run, to see it stop without LaTeX, say, and keep the stand-in but not the Pandoc after it. To run one suite on its own under the stand-in, name it the same way:

PANDOC39_REAL="$(command -v pandoc)" PATH="$PWD/tests/pandoc39:$PATH" python3 tests/run-convert-tests.py

It works on Linux and macOS, whose PATH finds a script by its name; Windows' doesn't.

Before a release, run the suites under it as well as with the latest Pandoc; any Pandoc from 3.11 on can be the one under it. A Word file is written and read by the Pandoc under the stand-in, and Pandoc's Word writer changed how it writes a list's items in 3.13 and the order of a nested table's alignments in 3.14, so the code that goes by what the writer wrote, or by what the reader will make of a file, asks which release does the reading and writing (pandocversion.engine), which the stand-in's last line answers, and not which release's options it takes. (Until 2026-11-15 it asked the version alone, heard 3.9, and six checks of a Word file read back failed over Pandoc 3.14, five in the convert suite and one in the LaTeX suite.) A Lua filter still hears 3.9, so the two places a filter goes by the writer's release, a wide table in a Markdown copy and a description's terms in a PDF, take 3.9's way under the stand-in whatever Pandoc is under it. Under the stand-in, what needs a newer Pandoc skips, as with 3.9 itself: a deck's PowerPoint file needs 3.10.1, and its reveal.js presentation 3.12. What it can't show is what 3.9's readers, writers, and templates make of what they're given, since those are the installed Pandoc's; the differences known are on the installation page.

Extending them

The .docx fixtures under tests/fixtures/ are committed, so the tests need only Pandoc. tests/make-filter-fixtures.py rebuilds them and is the only thing that needs python-docx.

Two things about Word are worth knowing before adding a fixture, because both cost time to discover:

  • Pandoc takes the document title and author from paragraphs styled Title and Author, consuming them out of the body. Not from docProps/core.xml, which it doesn't read — a natural assumption, and wrong.
  • Word declares most embedded images as application/octet-stream rather than by type. python-docx sets the content type from the file extension, so producing the real-world case means rewriting [Content_Types].xml after saving.

A new assertion should be checked by breaking the thing it protects. The configuration and filter suites' checks were each verified that way, and doing so found two assertions that passed whether the code was right or not. One was simply badly written. The other looked fine and was worse: it claimed to check that two documents with identically named images get distinct sidecar keys, but in the two-step pipeline Pandoc has already qualified those paths, so the keys were distinct for a reason that had nothing to do with the code being tested. Only a single-pass conversion reaches the code in question, which is why there's now a case for it.

For comparing two whole conversion runs — which is still the right tool for a pipeline change — see util/compare-output.py.

House style

Reminder for Claude: Prose in this repository—these pages, the README, the changelog, the roadmap, code comments, docstrings, and the descriptions in the schemas—is US English and uses contractions: can't, doesn't, isn't, it's. The expanded forms are for the rare place where the emphasis is the point, as in the roadmap's heading "What the PDF half can and cannot do". tests/run-spelling-tests.py holds the spelling mechanically, in prose and in the names of our own functions and settings, and says which file and line; a changelog entry naming an old spelling to say what became of it, a name that isn't ours (ARIA's aria-labelledby), and an old name kept working until 1.0 are left alone.

Two things are not prose and are left alone: anything inside a code span or a fenced block, and any string the programs print. A message a user reads on their terminal is part of the interface, and restyling one is a change to the interface rather than to the documentation.

The three settings pages under docs/ are generated from the schemas by util/settings-reference.py, so their wording is fixed in the schema's description: and regenerated, never edited in place. tests/run-all.sh fails when they drift.