github xberg-io/xberg v1.5.5

one day ago

[1.5.5] - 2026-11-30

Added

  • doc, docx: content_filter.include_hidden_text and content_filter.include_comments (both default true, so output does not change until one is set). Set both to false to extract the text of the printed document. include_hidden_text: false drops text hidden with w:vanish in DOCX or sprmCFVanish in DOC, whether set on the run or through its character style, its paragraph style or (DOCX) the document defaults, from the body, tables, headers, footers, notes, comments and (DOCX) text boxes. In DOCX, a paragraph left with no visible text is dropped too, so a hidden list item takes no number. include_comments: false drops comment bodies and, in DOCX, their reference markers, and keeps the text the comment is attached to (#3440).
  • pdf: native PDF math. Formulas set in TeX math fonts (CMMI, CMSY, CMEX, MSBM and the like) are rebuilt from glyph geometry (scripts, fractions, limits, accents, radicals) and written as $...$ inline and $$...$$ display math, in markdown and in plain text; equation numbers, footnote markers and table minus signs stay outside the math. Pages without a math-font span produce the same output as before.
  • pdf: author-year bibliographies under a References or Bibliography heading are emitted as one list item per entry, with a wrapped entry kept in its item, instead of as loose paragraphs. Numbered bibliographies were already lists.
  • ocr: tessdata_model selects the Tesseract model set, "fast" (default, tessdata_fast) or "best" (tessdata_best), for every OCR an extraction performs, automatic and fallback OCR included, without enabling OCR; ocr.tessdata_model overrides it for one section, and a per-file ocr section without one keeps the base set. --ocr-tessdata-model and XBERG_OCR_TESSDATA_MODEL set the top-level field, in that order of precedence over the config file; every CLI command that extracts (extract, batch, serve, mcp, doctor) reads the variable, and for extract and batch it is the only XBERG_* override applied. REST and MCP requests cannot change the server's set. Both sets are downloaded on demand from one pinned upstream revision each and verified against a SHA-256 digest, into <cache>/tessdata/fast/ and <cache>/tessdata/best/; best also reads a read-only /usr/share/xberg/tessdata/best/ on Unix. best never reads the flat cache or system tessdata, which hold tessdata_fast, but copies osd and equ (identical in both sets) from them after checking their digests; an explicit tessdata_path or TESSDATA_PREFIX holding every requested language is used as given for either set, with a warning for best. best results get their own OCR cache entries. WebAssembly stays on fast and refuses best without tessdata_bytes (ADR 0023). xberg cache warm takes --tessdata-model fast,best and --tessdata-languages eng,deu; a CLI built without PaddleOCR warms tessdata only when one of them is given.
  • docker: tessdata_best twins of the Docker images: ghcr.io/xberg-io/xberg:<version>-core-best (floating core-best) and :<version>-best (floating latest-best). They ship the tessdata_best models for the image languages plus jpn_vert, kor, osd and equ in /usr/share/xberg/tessdata/best, checked against the digests pinned for the downloader, and set XBERG_OCR_TESSDATA_MODEL=best. Build them with --target best; the default target is unchanged.
  • helm: ocr.tesseractModelSet (fast or best) sets XBERG_OCR_TESSDATA_MODEL. With best and ocr.tesseractModelSource: image (the default) the chart runs the -best twin of the image tag ("" becomes <appVersion>-best, latest becomes latest-best, core becomes core-best); with download it keeps the tag and the models are downloaded into the cache volume.
  • pdf: pdf_options.keep_white_text (default false) keeps white text that sits on no painted content instead of dropping it, and an extraction that drops such text now reports how many spans on which pages in a pdf_white_text processing warning. xberg-native-pdf gains PdfDocument::set_keep_white_text and PdfDocument::dropped_white_text_spans.
  • Rust: the heic-dynamic cargo feature on xberg and xberg-cli opens libheif on the first HEIF decode instead of linking it, and the xberg feature ort-strict-discovery applies the release CLI's ONNX Runtime search policy (absolute paths, owner checks) on top of ort-dynamic.
  • tracing: native PDF stages emit DEBUG spans under the xberg::pdf target (text_pass, metadata_pass, ruled_tables, heuristic_tables, segment_carriers, structure_tree_roles, structure_pipeline, annotations), so RUST_LOG=xberg::pdf=debug selects them, and OCR stages under the xberg::ocr target (DEBUG tesseract_page and paddle_fallback, TRACE prepare, preprocess and recognize). xberg_native_pdf adds DEBUG structure_tree_parse and structure_tree_traverse spans, TRACE get_annotations and interpret_page spans, DEBUG events when the page-pass cache starts and is released, and a TRACE per-read event saying whether the page-pass cache served, interpreted, paired or reordered the page; reading-order memo hits, misses and refusals are logged at TRACE. TRACE spans per page (text_pass_page, ruled_tables_page, page_read) carry the page index, and the native page passes, the native PDF extraction task, the image layout workers and the Tesseract and PaddleOCR recognition tasks keep the caller's subscriber and span, while the rayon page render and encode pools do not. Spans carry counts and sizes, never document text.
  • ocr: with Djot or HTML output, a VLM OCR response and the GLM-OCR, PaddleOCR-VL and DeepSeek-OCR candle backends' Markdown are parsed into headings, lists and tables as with Markdown output, instead of entering the page as escaped paragraphs; plain and other output formats keep the response text (#3494)
  • ocr: an HTML <table> that is a whole HTML block inside a list item or blockquote of a VLM, region VLM or candle backend OCR response is parsed into a table in place, as one at the start of a line is, merged cells and max_table_cells included, instead of staying escaped text; a block with other text beside the table stays text (#3495)
  • ocr: a PDF page recovered from its embedded images, after its OCR came back blank or failed on the single-backend route or the render budget refused it on the pipeline route, keeps the headings, lists and tables of VLM or candle backend reads parsed from Markdown, joined in paint order, instead of flat paragraphs; when any kept read has no parsed document the page keeps the flat text as before, and table boxes, which are in each image's own pixels, are dropped. The batched page route and multi-page pipeline recovery still use flat text, tracked in #3579 (#3499)
  • html: html_options reaches html-to-markdown-rs's new underline_symbol, which wraps the Markdown output for <u> and <ins> text in that notation. It defaults to the empty string, which keeps the text and drops the underline as before, so output does not change until it is set.

Changed

  • ocr (API): TessdataManager::ensure_languages and ensure_all_languages download the pinned packs of their set into the manager's directory and return OcrError; for best they fail when a wrong pack cannot be replaced, and is_language_cached reports a best pack that is not the pinned file as not cached. A wrong pack moved aside stays beside the pinned one as <lang>.traineddata.unverified (or .unverified.<time>.<pid>) and is never deleted by xberg.
  • ocr: a cache without tessdata_fast packs in the flat <cache>/tessdata/ now downloads them into <cache>/tessdata/fast/, and so do xberg cache warm and TessdataManager::new(None). A cache that already has packs in the flat directory keeps reading them first and keeps downloading into it when it holds some of the requested languages, copying packs found in tessdata/fast/ when they match their pins; otherwise a missing pack is copied from the flat directory into tessdata/fast/ when it matches its pin, at runtime and in cache warm, instead of being downloaded again. xberg cache manifest lists both sets under tessdata/fast/ and tessdata/best/. OCR result cache entries written before the upgrade are not reused, since results are now keyed on the model files that produced them.
  • pdf: the native PDF text path hashes its per-span lookup maps with ahash instead of SipHash, which speeds up text extraction on long documents; output is unchanged.
  • helm: xberg.tessdataPrefix defaults to empty and TESSDATA_PREFIX is set only when it is not. xberg finds the image's tessdata_fast without it, so default deployments keep their models; a set prefix is rejected with ocr.tesseractModelSet: best, where it would replace the best models.
  • ocr: in builds with PaddleOCR, a standalone camera photo (a JPEG or WebP that is not page-sized at a scan resolution) whose default Tesseract read is sparse (1 to 80 words) and has unreliable word confidences, such as a receipt or scene text, is read again with the built-in PaddleOCR backend. The PaddleOCR read is kept when its text holds at least four, and at least as many as Tesseract read with confidence, word- or number-shaped tokens, its share of such tokens reaches Tesseract's (up to 60%), and it passes the OCR pipeline's quality gate; metadata.ocr_fallback_backend and pages[].ocr_confidence.backend then name paddle-ocr. The re-read never downloads a model, so the output for such a photo depends on whether the PaddleOCR models are cached locally; the extraction cache keys on their state. It applies only to the default tesseract backend with no other OCR setting (no tesseract_config, element_config, PaddleOCR settings, pipeline, VLM fallback, layout detection or document structure) and one Latin-script language. An explicit backend: "tesseract" with no other setting cannot be told apart from the default: the new ocr.image_paddle_fallback option (default true) turns the re-read off. Any other backend choice is never replaced.
  • Breaking (native-pdf): In the Rust-only xberg-native-pdf crate, PdfDocument::source_bytes is now bytes::Bytes instead of Vec<u8>, and PdfDocument::from_bytes accepts impl Into<Bytes>. A Vec<u8> is adopted without copying and a Bytes shares the caller's buffer, so the document no longer holds a second copy of the file. Callers that mutated or took ownership of the field as a Vec use .to_vec().
  • cli: the Linux (glibc) and macOS CLI release archives and the core/full Docker images no longer link ONNX Runtime. They ship Microsoft's pinned libonnxruntime next to the xberg binary and load it the first time a model runs, so text-only extraction starts without mapping ONNX Runtime or CoreML. ORT_DYLIB_PATH now selects the runtime these builds use and must be an absolute path; a path that does not load is an error rather than a silent fallback. A discovered library is loaded only when it and its directory are owned by root or the current user and not writable by other users, and <prefix>/lib is searched only for a binary in <prefix>/bin. If the library is missing, model features fail with an error naming every path searched. Keep the library beside the binary when moving it. The Windows, musl and binstall archives and the Alpine cli image are unchanged.
  • cli: the Linux (glibc) and macOS CLI release archives no longer link libheif and its codecs. They ship libheif and its codec libraries next to the xberg binary and open them on the first HEIF / HEIC / AVIF decode, so other documents start without mapping them (ADR 0019). XBERG_LIBHEIF_PATH, an absolute path, selects another libheif; a discovered libheif passes the same owner check as ONNX Runtime. If libheif is missing, HEIF decoding fails with a missing-dependency error naming every path searched instead of a parsing error. The xberg-libheif crate gains a dynamic feature for this, and with it its public entry points return an error rather than panic when the library cannot be loaded.
  • Intel macOS packages: the language packages that load ONNX Runtime dynamically now look for libonnxruntime.dylib beside their native library first, skip a discovered library another user could have written, try the next candidate when one fails to load, and report a missing runtime as an error instead of panicking; ORT_DYLIB_PATH, the Homebrew paths and the DYLD_LIBRARY_PATH / DYLD_FALLBACK_LIBRARY_PATH search keep working. The other language packages link ONNX Runtime and are unchanged.
  • On Linux and macOS, CPU-only layout and inference sessions save ONNX Runtime's optimised graph under <cache dir>/ort-optimized/ and reuse it on later cold starts instead of re-optimising the model; Windows keeps optimising online. A graph is saved only for a model verified against its pinned SHA-256 in the same process, is re-hashed against its sidecar before every load, and is used only from an owner-only directory; any failed check rebuilds from the verified model. Set XBERG_ORT_OPTIMIZED_CACHE=0 to disable it (ADR 0018).
  • The shared Tokio runtime that runs extraction starts min(thread budget, CPU count) worker threads, at least one, instead of one per CPU core; TOKIO_WORKER_THREADS still overrides it. The thread budget is concurrency.max_threads, else the cgroup CPU quota, else the default cap, so the language packages and the API server start fewer idle workers on large hosts. The first extraction in a process fixes the count.
  • cli: extract and batch run on that shared runtime instead of building a runtime of their own, and size it from --max-threads / concurrency.max_threads: --max-threads 4 now starts four workers instead of one per core up to the default cap. batch writes its JSON output in one buffered pass instead of one write per line.
  • Breaking (Rust): xberg::transcription::engine::TranscriptionError has a new RuntimeUnavailable variant, returned when a dynamically loaded ONNX Runtime cannot be found or loaded; exhaustive matches on it need a new arm. The language packages do not expose this type.
  • structured: JSON, YAML and TOML array items are no longer rendered under invented Item N headings. Each item's fields render directly under the array's key, markdown output separates consecutive records with a thematic break (---), and plain output separates them with a blank line without indenting their fields. Scalar arrays stay one list. Integrations that matched on the Item N headings need updating.
  • pptx: plain output no longer includes speaker notes; they stay in pages[].speaker_notes, as markdown output already did. Text runs are joined as written instead of with a space at every run boundary, so a word PowerPoint split across runs when its language or formatting changes is no longer broken, and shapes laid out side by side on a slide are read left to right.
  • pdf: native PDF reading order. Plain text now follows the same page order as markdown, so ruled tables read row by row instead of column by column. Multi-column pages read each column's story in turn, including three-column pages and pages whose gutter is narrow or crossed by full-width blocks; a column cut no longer falls between a numeric table's value cells or on a table's column boundary. Rotated margin stamps and footnotes written after the running head are read after the column text, a table nested at the top of another table is read first, and side-by-side table halves under a repeated header are read one after the other.
  • pdf: text fidelity. Line-wrap hyphens are rejoined on every plain text path, including words wrapped at U+2010/U+2011, while compounds such as 24-hour, 5-year and INTER-ACTIONS keep their hyphen; U+2010/U+2011 are written as ASCII hyphens. Words in an invisible OCR text layer (for example Acrobat Paper Capture) are no longer run together, a TJ word space takes its font's weight, touching punctuation and decimal points stay joined across style switches and table cells, and a space is kept where joining would break emphasis.
  • pdf: white text that sits on no painted content (hidden duplicate headers, blanked cells, VerDate stamps) is dropped from every output, including text in Form XObjects and text filled with sc/scn. Pages painting a shading or a fill in another colour space keep all their text, and invisible (render mode 3) text is unaffected.
  • pdf: headings and structure. Bold numbered section titles, body-size bold titles in narrow multi-column pages and wrapped bold titles are promoted to one heading each; numbered headings are levelled by section-number depth, roman sections at H2 and lettered subsections one level under the section they follow; a document whose only headings are short bold body-size titles emits them at H2. Bold is read from more font names (TeX bold shapes, weight abbreviations, Advent 3B2 .B faces) and a weight in the name wins over StemV. Running heads are matched with or without their page counter, outline titles are cut out of the paragraph they were welded into, and folios, table titles, caption labels and parenthesized acronyms or years are no longer taken for headings or list markers.
  • pdf: tables. Stacked header cells are read as one header row column by column, a ruled column label row stays the header of its tables, interior-ruled tables close their outer columns, unruled value columns beside a ruled table and rows of boxed form fields are recovered, and wrapped schedule records collapse only when their row geometry supports it. Line-numbered code listings, bulleted lists with aligned qualifiers and numbered reference lists are no longer read as tables, and numbered link and parameter tables are no longer read as code.
  • markdown: a PDF bullet list that runs over a page break is one list instead of two separated by a <!-- end list --> line. Numbered lists and lists from other formats are unchanged.
  • pdf: native PDF extraction starts faster and uses less memory. Files over 1 MiB are memory-mapped instead of read onto the heap (the file must not change during extraction), stream payloads and cached objects share the source instead of copying it, each page's content is interpreted once per option set, and the outline, revisions, attachments and system fonts are read only as far as needed. Structure and table passes run across the thread budget, freed heap pages are returned to the OS between phases on macOS, and the macOS and Linux x86_64 glibc CLI binaries are linked with a training-run function order (ADR 0020), so a run touches fewer code pages; the macOS binary also no longer exports its static libraries' symbols.
  • pdf: fewer whole-document copies per extraction: the max_pages check counts pages on the buffer extraction already shares instead of a fresh copy (once, not twice, for explicit layout-page runs), the markdown layout pass shares that buffer instead of copying the file twice, the OCR layout pass copies it once instead of twice, and the check that falls back to flat text when the structure drops native words no longer builds a string per word.
  • pdf: concurrent extractions that share a CID font no longer serialise on a lock for every glyph: a cached glyph's Unicode text is read under a shared lock, and a repeated warning check for a legacy CJK CMap without a code table (90ms-RKSJ-H, GBK-EUC-H, ...) no longer touches a process-wide lock. Output and warnings are unchanged.
  • Breaking (native-pdf): the public FontInfo::type0_unicode_memo field is now Arc<RwLock<HashMap<u32, Option<String>>>> instead of Arc<Mutex<HashMap<u32, Option<String>>>>, so the memo is read under a shared lock. Callers that build FontInfo literals construct an RwLock, and callers that called lock() use read() or write().
  • ocr: OCR uses less memory and time. Tesseract preprocessing starts from an 8 bpp gray image, LSTM-only engines no longer load the legacy engine's ambiguity tables, nested clip masks share one page mask until a clip narrows it, selected pages are rendered without a PNG round trip, and embedded images whose OCR read nothing would use are no longer recognized.
  • ocr: grayscale images reach Tesseract without one native call per pixel, and a standalone image's sparse-text retry is skipped when its JPEG header already shows the retry cannot be prepared within security_limits.max_content_size (no known source DPI, and either the full decode does not fit or the DPI estimate has no room beside it). Output is unchanged.
  • ocr: two-column scans are read column by column on the default and forced OCR routes, not only with layout detection, at the cost of one extra recognition pass on pages detected as interleaved.
  • onnx: ONNX Runtime sessions (OCR, layout, embeddings, reranking, transcription, NER) no longer spin-wait between operators, so idle ONNX Runtime threads stop taking CPU from extraction's own workers. Output is unchanged. PaddleOCR photo reads use about half the CPU time (6.3 s to 3.1 s of user and system time over four receipt photos, wall time 4% lower).
  • layout: layout inference runs one page per batch on CPU, the table model is loaded only when a page has a table region, and ONNX Runtime places model weights outside its CPU arena, lowering peak memory.
  • ocr: PaddleOCR starts faster and uses less memory. A read with use_angle_cls: false (the camera photo fallback among them) builds an engine without the textline orientation classifier, neither downloads nor hashes that model, and does not wait for it to be cached before the photo fallback runs; it reuses an engine already built with the classifier instead of building a second one. ONNX Runtime reads the model files itself instead of from a second in-memory copy. A replaced model file is hashed again before the load and refused if it differs; a change during the load fails engine initialization with "changed while it was loaded" (on Linux and macOS detected from device, inode, size and timestamps; elsewhere by hashing the file again). In xberg-paddle-ocr, a missing model file is now reported as OcrError::Ort instead of OcrError::Io.
  • models: on Linux and macOS a model file verified against its SHA-256 is not hashed again by any later check in the same process (PaddleOCR, layout, embedding, retrieval and other ONNX models) while its size, timestamps, device and inode are unchanged and its modification and change times are at least 2 s old. Every PaddleOCR request used to re-hash the recognition model and dictionary. Elsewhere, including Windows, files are still hashed on every check.
  • macOS: the pip, npm and agent plugin launchers run the CLI with MallocMaxMagazines=1 unless the environment already sets it, lowering peak memory on native PDFs (ADR 0022). The CLI itself maps allocations of 1 MiB or more directly, so OCR no longer keeps freed raster buffers resident (ADR 0021).
  • benchmarks: published results now give liteparse each fixture's OCR language and run it on images and LibreOffice formats, measure every framework's peak memory the same way, score a leading front-matter block as metadata rather than body text, and use corrected ground truth for the table papers, Federal Register, ParseBench, OSHPD, image, msg, docx and pptx fixtures.
  • pdf: heuristic table reconstruction finds the row each word overlaps by binary search over the sorted row positions instead of scanning every row, with the same result.
  • Replace chrono with jiff for timestamps in xberg, xberg-native-pdf and xberg-pdfium-render, and drop calamine's dates feature and rmcp's default chrono feature. PdfPageAnnotationCommon::set_creation_date and set_modification_date in xberg-pdfium-render now take jiff::Timestamp. chrono remains only through nom-exif and hf-hub (RUSTSEC-2026-0543).
  • Upgrade crawlberg to 1.13.6, liter-llm to 2.7.8, html-to-markdown-rs to 3.23.5, sceptre to 0.10.5, tree-sitter-language-pack to 1.28.0, tract-onnx to 0.23.11 and rmcp to 3.12.
  • Upgrade crawlberg to 1.13.6, liter-llm to 2.7.7, html-to-markdown-rs to 3.23.5, sceptre to 0.10.5, tree-sitter-language-pack to 1.28.0, tract-onnx to 0.23.11 and rmcp to 3.12.
  • Upgrade html-to-markdown-rs to 3.24.0, calamine to 0.39.0, mail-parser to 1.0.3 and mel_spec to 0.6.0, and move the remaining crates to their newest compatible versions.
  • cache: extractions that may retry a page with the Han script models (when osd and chi_sim are installed) are now cached under a key naming those models instead of bypassing the extraction cache, so a repeated OCR extraction is served from the cache; an extraction whose page the retry actually re-read is still not stored in the extraction cache, though its OCR results are cached. On Unix, once the pack digests are memoized, computing the tessdata part of a cache key no longer waits for the blocking thread pool; a cold memo, and every non-Unix build, still uses it.
  • pdf: native PDF page passes share more of their work without changing output. The page-pass cache shares its entries instead of copying them and holds an exact-capacity copy of each fresh read, pages read only for their spans no longer build per-character lists, the structure tree is parsed and traversed once per document, and memoized reading orders are fingerprinted and served outside the memo lock.
  • ocr: an OCR pipeline made only of built-in Tesseract stages renders no more pages ahead than recognition sessions can read, so rasters waiting for a session no longer stay resident; pipelines with any other backend keep their batch width. An extraction stopped by its time limit can stop on an earlier page boundary than before.
  • ocr: the bundled Tesseract (build-tesseract, build-tesseract-wasm, the core/full Docker images and the Windows and Linux CI builds) is 5.5.5, previously 5.5.4. Leptonica stays 1.87.0.
  • onnx: builds that load or link Microsoft's ONNX Runtime rather than the ort-bundled prebuilt, such as the Linux (glibc) and macOS CLI archives and the core/full Docker images, now use ONNX Runtime 1.32.0 instead of 1.24.2; Intel macOS stays on 1.23.2, Microsoft's last x86_64 macOS release. PaddleOCR photo reads peak lower. github.com/microsoft/onnxruntime no longer serves its release archives, so the build stages the SHA-256-pinned Microsoft.ML.OnnxRuntime NuGet package and, on Linux and macOS, falls back to the pinned onnxruntime PyPI wheel.
  • onnx: builds that load or link Microsoft's ONNX Runtime rather than the ort-bundled prebuilt, such as the Linux (glibc) and macOS CLI archives and the core/full Docker images, now use ONNX Runtime 1.32.0 instead of 1.24.2; Intel macOS stays on 1.23.2, Microsoft's last x86_64 macOS release. PaddleOCR photo reads that use the fallback peak about 45% lower (689 MB to 380 MB on a receipt photo) with identical output. github.com/microsoft/onnxruntime no longer serves its release archives, so the build stages the SHA-256-pinned Microsoft.ML.OnnxRuntime NuGet package and, on Linux and macOS, falls back to the pinned onnxruntime PyPI wheel.
  • pdf: PDF image extraction holds less memory: embedded JPEG and decoded pixel buffers are handed to the PNG encoder instead of copied, pages capped by max_images_per_page encode each image as it decodes instead of holding every decoded image of the page, and the native engine bounds its cache of decoded page content streams at 128 MiB as well as 64 pages. The Form XObject stream cache now charges each stream once under its lock, so concurrent pages can no longer push it past its 50 MiB budget. Output is unchanged.
  • pdf: native PDF extraction interprets each page's content fewer times. Pages the page-pass cache cannot hold are read again from a small cache of the latest refused pages instead of being interpreted once more by each read that follows. Output is unchanged. A debug event from xberg_native_pdf::document reports how each extraction's page reads were served.

Removed

  • integrations: the @xberg-io/llamaindex-xberg npm package is retired because LlamaIndex TS is archived upstream and its @llamaindex/* packages are deprecated. The Python llama-index-readers-xberg and llama-index-node-parser-xberg packages are unchanged.

Fixed

  • pdf: with layout detection and layout.formula_model or a region VLM (ocr.vlm_config with ocr.vlm_fallback enabled) configured, one page whose /Rotate is not a multiple of 360 no longer turns off layout formula recognition and region VLM for every page of the PDF: the other pages now get them, and the rotated page keeps its native text, as before. (#3646)
  • pdf: with a region VLM configured (ocr.vlm_config with ocr.vlm_fallback enabled), a region's answer and the native text it may replace are compared as alphanumeric runs rather than whitespace-separated words, so an answer that writes a value with different punctuation or as inline math (18,100$^{5}$ for 5 18,100, $hm^{2}$ for hm 2, Asian- American) now carries the native table's or paragraph's words and replaces it, where the table used to be written twice. An answer must still carry nine tenths of the native words, and without a region VLM nothing changes. (#3647)
  • docx: w:val="off" on an on/off run property such as w:b, w:i or w:strike, on the run or in a style, now turns it off instead of on.
  • ocr: an embedded-image retry that reads only as recognition noise is no longer adopted as the page text. On a tall page whose render the budget clamped to 72 DPI, the retry read 875 characters at 39% confidence; adopting it made the page look read, which skipped the source-image strips that recover every source word, and a forced run published the noise instead of refusing the page.
  • ocr: a tall page whose source image needs no line certificate is accepted on its strips' own evidence again. complete_source_rows started false for such a source, so a strip read that recovered every source word at 95% confidence was rejected whenever the downscaled read's dictionary-invalid ratio happened to be marginally lower.
  • ocr: the sparse retry is skipped only when the full-size JPEG decode does not fit security_limits.max_content_size. The previous estimate also refused a page that budgeted_downscale shrinks and reads, so such a page kept the worse primary read instead of attempting the retry.
  • ocr: any whitespace spelling of <br> (<br />) is a line break in OCR Markdown, as it already was inside an HTML table cell, so the two routes read the same tag the same way.
  • html: an HTML <br> is written as a backslash hard break instead of two trailing spaces, the form the Markdown renderer writes, so HTML-to-Markdown output no longer leaves trailing whitespace behind a line break.
  • swift: the Swift package builds again. Alef emitted the appendPolygonAnnotation wrapper without the matching swift-bridge member for its Result<Vec<u8>> shape, so the generated code did not compile; the function and its PolygonAnnotationInput type are excluded from the Swift surface while every other language keeps them. Re-enable them when #3642 lands.
  • ocr: with the default OCR language, the vertical-Japanese script retry reaches the Meiji scans' dense column fields and is admitted on what it reads: the sparse gate counts a column field at two thirds of its clusters near square (column rules and long reads stay ignored), a page without three confident lines is admitted on at least 60 confident Han or kana characters when the page is three quarters Japanese and carries kana, and a stray first-read fragment inside the columns keeps its place in the column order instead of refusing the read. Pages 01, 05, 08, 10, 15 and 17 read Japanese instead of the first read's Latin noise (character error rate 1.21 → 0.74, 1.00 → 0.89, 1.00 → 0.92, 2.37 → 1.23, 1.00 → 0.66, 2.57 → 0.82). (#3587)
  • pdf: a sign TeX draws at the axis baseline as the script of a lowered index stays in that index (u_{k^{-}}, c_{K^{+}}), and no longer reads as an operator after the index (u_{k}-, c_{K}+), so the algebra page 1555 formulas read whole; a raised sign is not taken across a smaller glyph on the base row. A grave slot in a math-italic font is written \ell instead of a backtick. (#3574)
  • pdf: rebuilt TeX math is refused where its geometry cannot support it: punctuation-only scripts with no base, base-less chains of number or label fragments ({}_{4}{}_{.}{}_{.}{}_{1}), a full-size label line hung as a script, and script-size fragment columns with no operand in their axis. Formulas these rules used to refuse are kept (K^{\times}, f^{(3)}, -\frac{2}{4}=-\frac{13}{26}.), and a page whose two prose sizes tie picks the same body size every run. (#3487)
  • pdf: an embedded picture's faint prose line is recovered again under Tesseract 5.5.5: the private retry renders the picture at a measured 320 DPI (4.4x the 72 DPI panel) with contrast enhancement and Otsu, where the normal 300 DPI target read the exact words at 0.839 confidence, under the 0.85 gate, and the default read kept only the first and last lines. The primary pass is unchanged. (#2327)
  • pdf: a ruled table column whose values share unruled gutters is split at those gutters, so a two-column ruled grid that held $577 $1,036 $0.00 10% $577 in one cell reads one figure per cell (IRS p15t--2025 p57/p58/p60); a heading cell that reads across the gutters keeps its width. A ruled label block of up to four rows that heads a record table attaches as its header, so the Federal Register wrapped-record tables (fr-2026-08190-hcbs p10/p11/p12/p15) are read instead of rejected as parallel_column_wraps. (#3603)
  • ocr: the PSM 11 gate that admits the vertical-Japanese script retry ignores stroke-shaped words (aspect ratio 3 or more, such as column rules) when it counts near-square glyph clusters, so ruled Meiji scans take the retry instead of keeping an empty default read. (#3605)
  • ocr: a jpn_vert (or any *_vert) read no longer rebuilds a vertical page's text columns as a table grid: table detection declines a vertical-script read, including a page a script retry read with the vertical Japanese model, and the columns stay text. On the Meiji vertical scans this replaces a table grid at character error rate 0.92-1.12 with the text read, at the table-detection-off rate. OCR result cache entries written before the upgrade are not reused. (#3607)
  • ocr: a JPEG, PNG or TIFF with no resolution metadata whose full-size raster, or its resize to max_image_dimension, needs more than security_limits.max_content_size is shrunk to the largest size that fits and read, instead of failing with "The image exceeds security_limits.max_content_size" or "OCR image DPI resize workspace … exceeds"; 4000-5200 px scan pages were refused under the default limit. (#3586)
  • pdf: an equation whose operand is two adjacent bracketed groups (x = (a+b)(c+d) y = z, a = (b)+(c) d = e) reads as one formula instead of side-by-side equations. (#3582)
  • llm: two configs in one process may name the same custom provider with different endpoints or keys, and each now reaches its own endpoint with its own key. Providers are registered under a name scoped to the provider's name, base URL, auth header and model prefixes, and each request carries that scoped prefix, which the provider strips, so the model the server receives is unchanged. A custom provider with an empty model_prefixes list, or an empty prefix, is rejected. (#3589)
  • pdf: small caps set in a monospace font with TJ letter spacing under half a character cell read as one word (ROTWORD()) instead of being split at every gap (RO TWO R D()). (#3550)
  • pdf: a small-caps word ending a line whose smaller letters are drawn as several runs no longer splits the full-size line after it into a new paragraph. (#3548)
  • pdf: a region VLM table answer's tables now take the place of the native tables they replace in tables, or come before the tables of later pages, instead of being listed last; an answer no larger than the tables it replaces is accepted under a security_limits.max_table_cells the document's tables already exceed, and a fence closed by a longer run of backticks or tildes is removed from the answer. (#3549, #3551)
  • pdf: on a Mixed extraction, the native pages' pages[].tables now list the document's tables after canonical filtering and after region VLM table answers, instead of the tables found before filtering or the native table an answer replaced; pages read by OCR keep their own tables. (#3545)
  • docx: each parsed header and footer now carries the page type (default, first or even) of the section reference that shows it in HeaderFooter.header_type, which was always Default, so first-page and even-page parts can be told apart. (#3496)
  • ocr: on Windows, the digest of a Tesseract language pack is read once per file version instead of on every request: a pack's stamp there now carries its volume, file ID and change time, as a Unix stamp carries its device, inode and ctime, so the cache key, the cache-hit check and the wildcard (all) listing no longer re-read every installed pack (a best pack is tens of MB) for each request, including containers and Office files with embedded children. A file system that reports no file ID or change time is still read every time. (#3482)
  • cache: an all/* OCR request now keys its extraction cache entry on the packs the wildcard expands to (not osd, equ or unknown names), so a language pack swapped and restored, or added and removed, between the key and the OCR read no longer publishes text read from the other pack set. (#3544)
  • pdf: a display formula whose bracketed group is followed by a factor (a = ( b ) c = d), whose big operator's summand follows its membership range (∑ x∈ S x_1≤∞) or whose operator is written against a bracket (a = b +( c ) = d, a = ( b )+ c = d) is no longer read as relations set side by side and turned into a paragraph. (#3547)
  • markdown: a list item that begins with a table now starts with the table's first row on the marker line (- | x |) instead of a blank line after the marker, which CommonMark read back as an empty item followed by a table outside the list. (#3578)
  • djot: a list in Djot output is now followed by a blank line, so a table or paragraph after it is no longer read as part of the list's last item. (#3577)
  • markdown: text after a table, code block, heading or display formula inside a Markdown list item (including VLM OCR Markdown output) now stays in that item instead of becoming an extra list item that shifted the numbers of the items after it. (#3576)
  • pdf: a panic caught while loading a PDF object no longer leaves that object marked as being resolved on the worker thread, so a later document there no longer fails with a false circular-reference error or climbs toward the recursion limit. (#3526)
  • ocr: a figure or table caption (Figure 4: ...) that a sparse Tesseract read of a scanned PDF page splits into one block per line is one paragraph again, in plain text and in the document structure, instead of one paragraph per wrapped line. (#3531)
  • ocr: the Han script retry reads the page with chi_sim alone instead of the configured languages plus chi_sim, so Tesseract no longer keeps the first read's Latin noise on a Han line (with Tesseract 5.5.5 it did for every line of a tightly cropped Han image); lines the retry does not read mostly in Han still keep the first read. The retry now needs only osd and chi_sim installed, not the configured languages in the same directory as chi_sim.
  • pdf: a ruled table whose frame is drawn and crossed by one rule, with its other rules stopping a few points inside the frame, keeps its stub and last columns in native table detection instead of losing them or the last row's outer cells. (#3538)
  • pdf: fills and strokes in an overprinted DeviceN colour space that names process colorants ([/DeviceN [/Cyan /Magenta /Yellow /Black] ...], common for rich black body text, and mixed process and spot DeviceN) paint their process plates instead of vanishing, and images and shadings painted while such a colour is current no longer vanish, so automatic OCR of such a page reads its body instead of replacing the native text with the few words in other colours. Every cached extraction result is invalidated. (#3522)
  • pdf: more overprinted paints keep their ink on the page raster OCR reads: text and fills in a spot-only Separation or DeviceN show their alternate colour over the backdrop instead of vanishing, a Separation /All registration mark writes every plate, an uncoloured pattern over a Separation or DeviceN paints in its underlying colour and plates (it rendered white before), a DeviceN naming only some process colorants keeps the plates it does not name, and an inline image mask overprints like an image-mask XObject. Images, shadings and coloured patterns paint their own colours under overprint and transparency instead of the current fill colour. Process-colour images and shadings without a soft mask also write their own process colour into the separation plates, and process-colour images no longer write the fill's spot ink. Every cached extraction result is invalidated. (#3530)
  • pdf: more separation and overprint fixes. An image in a Separation or DeviceN space, directly or through Indexed and at any bit depth, writes its own tints into the spot plates instead of the current fill's, its process colorants into their process plates (every plate for /All), erases the other process plates without overprint, and writes nothing where its colour key or stencil mask hides it; a Separation shading writes its function's tints. A stencil mask writes its fill colour into the process plates. Inline images write their process colour into the separation plates and take the soft mask as image XObjects do, and an inline stencil mask finds its pixels by its own coverage, so one that matches its backdrop still writes its spot ink. An image or shading under a partly transparent soft mask writes its process colour at the mask's opacity. A Separation or DeviceN fill without overprint writes its own process tints and erases the other process plates, instead of a stale colour. An overprinted DeviceN that names both process and spot colorants also shows its spot part on the page raster. (#3557)
  • ocr: a caller-set ocr.output_format now reaches the VLM backend (and the candle GLM-OCR, PaddleOCR-VL and DeepSeek-OCR backends) on standalone images, embedded images and PDF inline-image OCR, as it already did for scanned PDF pages, so ocr.output_format = "plain" keeps the unstructured answer instead of having it parsed into Markdown structure. Other backends still receive the extraction's output format. (#3503)
  • pdf: a region VLM's answer for a table region that holds a Markdown or HTML table, also inside one wrapping ``` or ~~~ fence (untagged, markdown or md), is now parsed like a VLM OCR page, so the table is a table at the region's page and box: listed once in tables (in place of the native tables it replaces) and, on Native extraction, in pages[].tables (Mixed extraction: #3545), in the document structure, and rendered as a table in every output format, with <br> in a cell kept as a line break. As on the OCR page route, inline formatting in a cell (bold, code, links) becomes plain text and other HTML stays escaped text; unlike it, a heading in the answer becomes a paragraph. Any answer without a table stays a paragraph, a table region's with its rows on their own lines in Markdown. An answer whose tables are over security_limits.max_table_cells, or would take the document's tables over it, leaves the native content it would replace, or stays as that paragraph of text when it replaces none, with a region_vlm processing warning. Region answers, figure descriptions included, now get element IDs unique in the document. (#3491, #3506)
  • cache: an archive, email or Office file whose child photos can take the PaddleOCR image fallback now keys its extraction cache entry on the PaddleOCR model files, so a result read with a cold model cache is not served once the models are cached. (#3498)
  • cache: the extraction cache key of a request with an ocr.pipeline now follows the Han (chi_sim, osd) and vertical Japanese retry models each Tesseract stage may load, and those of the ocr section when it reads embedded images, so replacing one of them no longer serves an extraction read with the old models. A pipeline never takes the mixed-PDF Khmer retry, so a host khm pack does not bypass the cache for it; a wildcard (all/*) language list still does. (#3500)
  • cache: an extraction whose OCR read its language packs from another tessdata directory than the one its cache key resolved (the keyed directory stopped serving them mid-request and served them again before the write) is no longer stored under that key. (#3501)
  • cache: when two inputs of a batch key the same OCR language list to different tessdata directories (each with its own tessdata_path or tessdata_model), an OCR read of one input's languages from the directory the other input keyed no longer lets the batch result be stored under the key. (#3520)
  • cache: a wildcard (all/*) OCR language request whose language list was expanded from, or whose packs were read from, another tessdata directory than the one its cache key resolved is no longer stored under that key, as #3501 already did for named languages. (#3515)
  • ocr: two processes or threads sharing a tessdata_best directory no longer race to move the same wrong pack aside: the move and the publication of the pinned pack hold a lock, an advisory lock on <lang>.traineddata.lock beside the pack plus a lock within the process, so the second mover finds the published pack instead of moving it aside and leaving the path missing until it puts it back. The .lock file stays in the directory. A lock file another user created is locked read-only; on a file system without file locks the move goes ahead with a warning, serialized within the process only. A lock that cannot be opened or taken, or one held longer than the download time limit (600 s), fails the request instead of moving the pack unlocked. (#3483)
  • api: the OpenAPI schema types PdfAnnotation.measure and PageViewport.measure as a direct MeasureData reference instead of a union with null, since an absent measure dictionary is omitted from the payload, never serialised as null.
  • pdf: a line of side-by-side assignments such as a key schedule row (w0 = 2b7e1516 w1 = 28aed2a6) stays a paragraph with its subscripts instead of becoming one display equation. (#3512)
  • pdf: a line of side-by-side assignments that sets one relation without spaces (x = 1 y=2) or brackets its values (α = ( 1 ) β = ( 2 )) also stays a paragraph instead of becoming one display equation. (#3525)
  • pdf: a run in another size that continues a word inside a wrapped paragraph, such as the smaller 2 of 59½ on IRS Publication 590-B, no longer splits the paragraph at the size change. (#3524)
  • pdf: a superscript or subscript that the PDF sets on a line of its own (unit exponents in a table such as m · kg · s⁻³, v_{i₁}, Γ⁻¹, F_{M−1}) is moved onto its base's line and marked there, instead of standing as a separate line of bare digits; a script that already reads in place, a footnote mark and a stacked script are left alone, and the rows it stood between are joined again only where the stray split one row.
  • pdf: a superscript is attached to its base where the base's last glyph ends, not where its character and word spacing carry the pen, so the exponents of a table cell padded with spacing (m⁻¹ · kg · s⁻² on NIST SP 811 p. 18) read as superscripts of their base.
  • ocr: with Markdown output, a VLM OCR response is parsed into headings, lists and tables (GFM pipe tables and HTML <table> blocks, merged cells flattened), so they are no longer escaped or joined onto one line and each table appears once, in place; other block-level HTML stays escaped text, and a < in text stays escaped as \<, which renders the same, and a line indented four spaces is a code block; a page recovered from an embedded image keeps its tables but not yet its headings and lists, tracked in #3499 (#3474)
  • pdf: a wrapped title merged into one span above two columns is read before both columns instead of after the left one, also outside a page's header band. (#3489)
  • pdf: the first rows of a body set in three columns below a table no longer join the table's header band, so each column is read whole instead of the columns' top lines being read before the rest of the first column. (#3490)
  • ocr: with Markdown output, inline <br> in a page OCR response from the VLM backend (a paragraph, list item or table cell, GFM or HTML <table>) is a line break (\ in a paragraph, <br> in a cell), and a <sup>/<sub> pair without attributes is a superscript or subscript, instead of escaped text; a <br> in a heading is a space, and every other inline tag, a tag with attributes, an unpaired tag and a crossed pair stay escaped text, while inside an HTML <table> cell other tags and attributes are flattened to their text by the HTML parser as before; a table's cells stay plain text (10-3, a line break as \n) as DOC and native PDF cells do, and its markdown writes <sup>, <sub> and <br>; a region VLM's answer for a table region gets the same handling when it holds a table (#3506) (#3492)
  • ocr: with Markdown output, the GLM-OCR, PaddleOCR-VL and DeepSeek-OCR candle backends parse their Markdown into headings, lists and tables the way the VLM backend does, so it is no longer escaped and each table appears once, in place, instead of also being appended from tables; other output formats keep the backends' content and tables as before; on these routes a parsed page whose tables together exceed max_table_cells now fails with a security error, as it does for the VLM backend (#3493)
  • pdf: inside a page's header band, a page tag set beside a title ("Keep for Your Records") is read with the title ahead of the worksheet rows below it, and a running head above a table is read before the table's cells instead of after the left-hand cells. (#3465)
  • docx: include_headers and include_footers emit only the header and footer parts a section shows: its default part, its first-page part when w:titlePg is set and its even-page part when w:evenAndOddHeaders is set in settings, with a section inheriting its predecessor's parts. Parts no section references are no longer emitted, including every part of a document that has no w:sectPr, and parts no section shows are no longer read, so a malformed one no longer fails the extraction. Within a section the first-page part comes before the default and even-page parts. A w:sectPrChange (the section's previous properties) no longer overrides its page size, margins, orientation or columns, a section break inside a w:pPrChange no longer creates a section, and a tracked-deleted section break leaves its header and footer references to the following section. (#3460)
  • docx: a section break on a paragraph mark that was moved away (w:pPr/w:rPr/w:moveFrom) leaves its header and footer references to the following section, as a tracked-deleted one does, so a header Word no longer shows at that place is not emitted. (#3502)
  • docx: a table cell whose deletion is tracked (w:tcPr/w:cellDel) is dropped with its text, footnotes, comments and drawings, and the cells after it in the row shift left (a row left short is padded to the table's width, and a row whose cells are all deleted is dropped); a w:cellDel inside w:tcPrChange no longer deletes the cell. (#3453)
  • pptx: slides, charts, SmartArt and comments now resolve PresentationML, DrawingML, relationship and math elements by namespace URI, so equations and image or hyperlink relationships survive a prefix other than m/r or a default namespace, and strict (ISO 29500) namespaces extract like transitional ones. (#3467)
  • docx: a formula nested hundreds of levels deep (OMML m:sSup, m:f, m:rad, ...) overflowed the stack and aborted the process before the XML depth limit fired. The converter now follows at most 64 nested levels and drops a deeper formula with a warning, keeping the text around it; the same limit applies to every OMML caller. (#3479)
  • docx: body text, tables, lists, footnotes, comments and headers/footers are no longer silently dropped when the WordprocessingML namespace is bound to a prefix other than w (or to the default namespace), or uses the strict ISO 29500 namespace URI. (#3437)
  • extractors: include_headers and include_footers now put header and footer text into markdown and plain output for RTF, HWPX and WordPerfect, after the body, one entry per distinct variant. HWPX header and footer text is now read from the section XML, and HWPX and WordPerfect no longer ignore the filter. Default RTF output changes: header and footer text is no longer printed at the start of the body. (#3456)
  • xlsx: a formula cell whose saved result is missing or empty is now output as its formula text with a leading = (for example =SUM(A1:A3)) instead of a blank cell that shifted the columns, and a warning counts such cells per sheet; cells with a saved result, including an empty string, are unchanged and formulas are never evaluated. The same applies to .xlsm, .xltm, .xlam, .xls, .xlsb and .ods; the table-cell budget counts these cells, a truncated sheet keeps the formula list of its kept rows, and when their text would exceed max_content_size they are left empty with a warning instead of failing the workbook (#3442)
  • xlsx: a workbook whose sharedStrings.xml declares a uniqueCount larger than the strings it holds is no longer rejected as too large; the content-size limit now applies to the strings actually present. (#3443)
  • rtf: adjacent runs with the same formatting, such as {\b pre}{\b fix}, merge into one emphasis span, so Markdown output is **prefix** instead of **pre****fix**. (#3433)
  • rtf: footnotes are emitted as footnote references and definitions instead of literal [^N] text, so Markdown output is Text[^1] with an unescaped definition rather than Text[\^1]. (#3434)
  • doc: legacy .doc extraction drops tracked-deletion runs (sprmCFRMarkDel) instead of emitting the deleted text beside its replacement, matching DOCX; text is kept when the character properties cannot be read. (#3435)
  • doc: a table nested in a legacy .doc table cell, including one that starts at level two, is now also emitted as a table of its own, after the outer table, with its rows and columns intact and an internal tag naming the containing cell (read from sprmPItap and the inner cell and row marks). The outer cell keeps the nested words as before, so they appear twice, once in the cell and once in the nested table; DOCX still only flattens nested tables. An inconsistent depth yields no extra table. (#3438)
  • xlsx: a date-formatted cell holding serial 0 in a workbook using the 1904 date system is rendered as the date 1904-01-01 instead of the time 00:00:00; time-formatted zeros stay 00:00:00. (#3441)
  • pdf: a centred title, author or affiliation block above two columns no longer stops the column cut, so the page is read column by column again instead of alternating lines of the left and right column (regression since 1.3.10). (#3446)
  • docx: include_headers and include_footers now put header and footer text into markdown and plain output for DOCX, DOC and ODT; the layers were kept but never rendered. The text follows the body, DOCX emits each distinct header or footer paragraph block and each distinct table once, and a header or footer table that the filter drops no longer stays in tables. Default markdown and plain output is unchanged; without a content filter, a header or footer table repeated across variants is now listed once in tables. (#3439)
  • ocr: a multi-page TIFF is now read frame by frame: every frame is OCR'd on its own and returned as its own page in pages[], in frame order, with metadata.pages.total_count set to the real frame count (also with OCR disabled), instead of OCR'ing the first frame and splitting its text across the other pages. A frame that cannot be read leaves a blank page and an ocr_page_failures entry, and a damaged frame directory ends the walk with a tiff_frames warning, instead of silently dropping frames. A TIFF with more frames than security_limits.max_pages is rejected, and when max_pages is unset the ceiling is 1000 frames. (#3447)
  • pdf: native PDF math reads the radical signs of the TeX extension fonts (CMEX and Latin Modern) as \sqrt{...} instead of the letter of their slot, nests consecutive radicals, takes the × or ÷ line between two rows of fractions as the axis, and sets a math glyph it leaves as plain text apart from the prose it overlaps. The radicand of a sign is not drawn, so it is read as the item after the sign and only where that item ends the formula or a relation, punctuation or a closing delimiter follows it (\sqrt{x^2+y^2} is not read); any other formula with a radical keeps its earlier reading. Centred title lines above a borderless table stay out of its header row and rows, except a line whose words each sit over a cell of the row below it, which is that row's header. (#3445)
  • pdf: native math keeps a degree'd radical's radicand whole where a relation ends it ((11)y=\sqrt[3]{\log_{\epsilon}x} on Gutenberg 33283 p161, whose line used to scatter into a bare sign and loose digits), a decimal point inside that radicand (\sqrt[3]{1.25}), reads the 1 drawn over a 3 at a superscript's height as \frac{1}{3}, and splits a formula row at a word between two statements instead of splicing across it, keeping every script the row attached to its base. A numerator stacked over its denominator 1.36 em away, as tall brackets stretch it, is bound to that denominator when the exercise number sits level with its bar, so p139's (18) reads \frac{x^{2}}{(x^{3}-8)(x-2)}. (#3445)
  • pdf: native math rebuild takes a problem label set level with a fraction bar as the formula's axis ((15)\frac{3x^{2}+2x+1}{(x+2)(x^{2}+x+1)^{2}}.), sets a numbered label apart from its formula (14.\ 16c^{2}), leaves the exponent of the next line to that line (12.\ (a+3b)^{2} instead of (a+3b)_{2}^{2}), and keeps a group's source text instead of publishing TeX that hangs a label as a script, splices across a word, joins two glyphs set apart, or drops part of a script or numerator. A number stacked over another keeps every piece of its scripts with its own row, so 3409.2^{+0.3}_{-1.0} set over 3409.0 reads whole instead of 3409.2^{+0}. (#3487)
  • pdf: a radical sign of a TeX extension font left as page text reads √ instead of the letter of its slot, and a literal brace inside an inline formula is written \{ or \}, so the formula's TeX stays balanced. (#3487)
  • pdf: a table follows a paragraph drawn under its top row even where that paragraph's block starts above the table, and a formula whose glyphs a table already holds, scripts included, is not printed again beside it. (#3487)
  • pdf: native math rebuild takes a text-font word set as a script of a formula into it as upright text (H^{(g),\mathrm{des}}) instead of printing it before the formula, and leaves a formula as its source text when a text-font script it cannot spell would be dropped from it (the þ a text font draws as the + of R_+^{n_x}), so that glyph stays on its base. (#3487)
  • pdf: native math rebuild refuses a script that is only punctuation, an operator or a printed label on no base ({}_{9.}, {}^{(16)}, K^{\times} only on a base), two or more base-less scripts that are each a piece of a number or a label ({}_{4}{}_{.}{}_{1}), a problem number set above an expression and hung on it as a script, and a run of table-cell fragments set at script size around a lone sign ({}_{1}- of a 1/2 column); it keeps the base-less indexes TeX sets on purpose ({}^{X^{\infty}}{}_{(n-1)!}, {}_{j=1}e, {}_{n-1}x, {}^{Z}{}_{0}{}^{\infty}). A full stop or comma printed after a formula is written as punctuation (]_{.} reads ].) instead of as a subscript. (#3487)
  • ocr: a table detected on a standalone image is placed before the first paragraph below its top edge instead of after every paragraph, so a summary under a table no longer reads before it. Tables are ordered top to bottom; images recognized rotated keep the previous order.
  • ocr: use_cache: false on the extraction request now bypasses the OCR result cache; before, repeated runs still read cached OCR results. An ocr.backend_options that sets only use_cache no longer moves OCR off the default route.
  • layout: multi-page 300 dpi scans no longer lose layout detection because a fixed eight-page chunk exceeded the content-size budget; chunks now close before the page that would exceed it.
  • pdf: a large scanned image painted near its own resolution is decoded or drawn within the image budget instead of leaving the page without an image for layout and OCR.
  • pdf: reads after a successful authenticate() no longer return page content, spans or characters cached before it.
  • docx: script carets in table cells are kept when markdown escaping is off.
  • docx: underline and strikethrough in table cells, footnotes, endnotes, comments, headers and footers render as <u>x</u> and ~~x~~ in Markdown output, as in body paragraphs, where they rendered escaped (\<u\>x\</u\>, and \~\~x\~\~ with escape_markdown); Djot output writes them as [x]{.underline} and {-x-}. A table's cells hold the text without the markup. (#3541)
  • markdown: DOCX table cells, footnotes, endnotes, comments, headers and footers, and HTML input, now write a superscript as <sup>x</sup> and a subscript as <sub>x</sub>, as the rest of Markdown output does, where they wrote ^x^ and ~x~. A DOCX table's cells hold the text without the script markers (H2O where they held H~2~O), its markdown holds the tags, and a cell's bold and links stay in cells as Markdown as before. An HTML table's cells also hold H2O when the source reading of the table accounts for every tag the conversion wrote; a nested table, or a table whose source spells a script tag as text or in an attribute, keeps H<sub>2</sub>O in its cells (#3546). Djot output writes table cell scripts as ^x^/~x~, now also for DOC, PDF and OCR tables, whose scripts it dropped; plain output no longer carries the markers. A sup_symbol/sub_symbol set in html_options is still used as given. (#3505)
  • markdown: DOCX table cells, footnotes, endnotes, comments, headers and footers, and HTML input, now write a superscript as <sup>x</sup> and a subscript as <sub>x</sub>, as the rest of Markdown output does, where they wrote ^x^ and ~x~. A DOCX table's cells hold the text without the script markers (H2O where they held H~2~O), its markdown holds the tags, and a cell's other Markdown (bold, links, underline) stays in cells as before. An HTML table's cells also hold H2O when the source reading of the cell accounts for every tag the conversion wrote; a nested table keeps H<sub>2</sub>O in its cells, and a cell whose source spells a script tag as text or in an attribute keeps its text as converted while the table's other cells hold their scripts as annotations (#3546). Djot output writes table cell scripts as ^x^/~x~, now also for DOC, PDF and OCR tables, whose scripts it dropped; plain output no longer carries the markers. A sup_symbol/sub_symbol set in html_options is still used as given. (#3505)
  • redaction: a term split by inline markup in a table's markdown, a cell or a column label (Jane <sup>Doe</sup>) is now redacted: each is matched as its Markdown reads, and one whose source matches cannot cover that reading is rewritten, a cell or label as its redacted text and the markdown from the redacted cells. Redaction fails when a cell's Markdown is too large or deeply nested to read. A table's markdown rendered from its cell annotations, as for DOCX tables with scripts or equations, now follows escape_markdown as content does, where it was always escaped. (#3541)
  • markdown: DOCX table cells, footnotes, endnotes, comments, headers and footers, and HTML input, now write a superscript as <sup>x</sup> and a subscript as <sub>x</sub>, as the rest of Markdown output does, where they wrote ^x^ and ~x~. A DOCX table's cells hold the text without the script markers (H2O where they held H~2~O), its markdown holds the tags, and a cell's other Markdown (bold, links, underline) stays in cells as before. An HTML table's cells also hold H2O when the source reading of the table accounts for every tag the conversion wrote; a nested table, or a table whose source spells a script tag as text or in an attribute, keeps H<sub>2</sub>O in its cells (#3546). Djot output writes table cell scripts as ^x^/~x~, now also for DOC, PDF and OCR tables, whose scripts it dropped; plain output no longer carries the markers. A sup_symbol/sub_symbol set in html_options is still used as given. (#3505)
  • docx: a table row whose deletion is tracked (w:trPr/w:del) is no longer extracted; it is dropped from every output, as Word hides it, while inserted rows stay (#3436).
  • pdf: native math in a list item renders as $..$ math instead of escaped TeX source; a raised mark in a short table cell (R2) keeps its superscript; and a table whose wrapped cells continue together and stop after one line, or whose lowercase unit names end in a short bracketed unit, is no longer rejected as side-by-side prose columns (columns that wrap on consecutive lines, or on rows the others do not, are still prose).
  • pdf: a table ruled by a single column rule over halves that each hold several text columns keeps those columns instead of fusing each half into one cell; a word wrapped at a hyphen drawn as its own run is rejoined; a formula inside a table is not printed again as prose unless the cells omit its words; a page whose native text differs from the structure only in how formulas are written keeps its structure; and rebuilt math with an empty group, a script after an operator or unbalanced braces stays as the plain reading.
  • docker: the core and full images no longer carry the Tesseract language data twice. A recursive chmod over the already world-readable tessdata copied every language file into a second layer.
  • helm: the full image's pre-downloaded PaddleOCR and layout models are used instead of downloaded again. The cache volume mounted at /app/.xberg hid them; a seed-cache init container now copies the image's /app/.xberg into the volume, keeping files it already holds. cache.seedFromImage: false turns it off.
  • Ruled PDF tables with an unruled text column are no longer split into fragments and duplicated as paragraph text (SGS lab reports). A wide unruled span between ruled columns is a cell when horizontal text runs down it, and a gap between side-by-side grids otherwise.
  • Markdown tables from DOCX files no longer backslash-escape the ^ of superscript runs (10^9^) when escape_markdown is off, matching the subscript ~. comrak 1.2 started escaping ^ in text.
  • PDF: a lone wide glyph raised above its base, such as the minus of 5.0 × 10^−4, no longer reads as a multi-glyph run, so a negative exponent stays in its sentence instead of splitting the line (regression from the ordinal-suffix fix).
  • PDF Markdown no longer wraps number records, tick-label rows, equation fragments or citation lists in $...$ math. An equation line needs a relation joining two operands on both the font-based and heuristic paths; native exponents and indices inside a math run or display equation are written as ^{..} and _{..} instead of being flattened (x5, HNf), and a bracketed reference such as [45, 48] stays outside inline math.
  • PDF tables drawn with a 90, 180 or 270 degree text matrix (no page /Rotate), such as a landscape table on a portrait sheet, now extract one row per line in displayed top-to-bottom order, each label next to its value, instead of scrambling the cell order.
  • security: DOCX, PPTX, XLSX and other ZIP-based documents with large EMF/WMF chart drawings are no longer rejected as ZIP bombs. These drawings reach several MiB at 100-300:1, past max_compression_ratio for the member and, in a short document, for the whole archive. The ratio limit now applies to a member or the archive total only from 32 MiB of uncompressed output, up from 1 MiB per member; max_archive_size and the per-member read caps still bound memory. (#3416)
  • excel: an XLSX, XLSM, XLTM or XLAM worksheet whose cells exceed the remaining security_limits.max_table_cells budget keeps its leading rows that fit instead of extracting as an empty sheet; a processing warning names the number of rows kept and the limit to raise. A later sheet with no budget left for even its first row is still skipped with a warning, and a truncated sheet's formulas are not collected. XLSB, XLS and ODS sheets over the budget are still skipped whole. (#3417)
  • ocr: cached OCR results, Tesseract engines and cached extractions are keyed on the model files that produced them, so replacing a .traineddata pack (or switching between fast and best) no longer serves results read with the old one. Pinned packs are keyed by their pin digest and other packs by their content; a pack that changes while a request uses it makes that request uncacheable, and a pack that cannot be identified disables caching for the extraction with a warning instead of keying it on nothing, and that includes archives, email, Word and PowerPoint files and Excel workbooks in the OOXML formats while max_archive_depth allows embedded objects to be extracted, since their children are read with the same models. A best pack found in xberg's cache or the built-in best directory is checked against its pin before use (an explicit tessdata_path or TESSDATA_PREFIX is used as given), and ensure_languages fails when a wrong best pack cannot be replaced (one in a read-only cache is used as given). A file in the managed best cache that is not the pinned pack is renamed to <lang>.traineddata.unverified before the pack is fetched, and every pack a best ensure provides is checked against its pin afterwards. Tesseract language names that are paths are rejected and names are limited to two components (script/Latin), failed tessdata downloads are not retried for 60 seconds, the bundled eng model is published atomically, and wasm builds prefer tessdata bytes supplied by the caller.
  • pdf: two placements of one Form XObject at different small scales no longer share a cache key, so the second is no longer dropped or given the first one's text; text in Type0 fonts with a UTF-8 CMap advances by one width per decoded character instead of one per byte, and under a predefined Uni*-UTF8-* CMap takes each width from the decoded character's CID instead of the raw bytes; and PNG-predicted streams use ceil(Colors * BitsPerComponent / 8) bytes per pixel, fixing 16-bit and multi-component sub-byte images. (#3471)
  • pdf: TIFF predictor 2 now differences 16-bit samples as big-endian 16-bit values and 1, 2 and 4-bit samples as packed samples within each row, instead of stepping by Colors bytes, so 16-bit and sub-byte images no longer decode corrupted. (#3481)
  • markdown: Markdown output now writes a subscript as <sub>x</sub> where it wrote ~x~, which GitHub-flavoured Markdown readers show as struck-through text; content, pages[].content and chunk text all change, matching superscript's <sup>. Readers that treat ~x~ as subscript, such as Pandoc, now see inline HTML. HTML input (html-to-markdown's default sub_symbol) and DOCX table cells, footnotes, endnotes, comments, headers and footers still write ~x~. (#3491)
  • markdown: Markdown output now writes a subscript as <sub>x</sub> where it wrote ~x~, which GitHub-flavoured Markdown readers show as struck-through text; content, pages[].content and chunk text all change, matching superscript's <sup>. Readers that treat ~x~ as subscript, such as Pandoc, now see inline HTML. (#3491)
  • pdf: a VLM answer for a table region keeps its rows on their own lines in Markdown output, so it reads as a table, and DOCX and PDF output, which render from that Markdown, show it as a table. Its text is still escaped like any other text, so <br> or other HTML in a cell is shown literally. (#3491)
  • email: mail-parser 1.0.3 ends the line at block elements when it converts an HTML body to plain text, so <div>One</div><div>Two</div> reads as two lines instead of OneTwo, a table cell is separated by a space, a <br> or <p> inside <template>, <style> or <script> adds no break, and an ISO-2022-JP run with two escape sequences in a row decodes without U+FFFD.
  • xlsx: calamine 0.39 refuses to build a worksheet range over 100 million cells instead of aborting the process while allocating it. A streamed sheet whose kept rows span more than that is now skipped with a warning naming the limit and the setting to lower, instead of failing the workbook; only security_limits.max_table_cells set above 100 million can reach it.

Don't miss a new xberg release

NewReleases is sending notifications on new releases.