Skip to content

v0.3.1

Choose a tag to compare

@Muralnick Muralnick released this 25 Nov 18:03
· 22 commits to main since this release
dcf8008

Changed

  • PDF engine decided (ADR-073): lite keeps PyMuPDF, which gave cleaner text
    and was 2 to 5 times faster on large files in the test on 73 real PDFs.
    The ADR names the conditions for moving to PDFium: better on a new
    measurement; approved by a community poll (ADR-074); a PyMuPDF
    vulnerability unfixed for over 30 days, or no PyMuPDF release for 12
    months; or a licence change.

  • Governance (ADR-074): users can decide on new features and changes
    through an official poll in GitHub Discussions. A poll opens with 10
    supporters; under 20 votes nothing changes, 20 to 99 votes need two
    thirds, 100 or more a simple majority. The licence, the principles and
    the security rules are never put to a poll; the maintainer may refuse an
    off-topic proposal with a detailed public explanation.

  • Dependency policy (ADR-035 amendment): a release that fixes a published
    vulnerability affecting Sugo may skip the 14-day minimum age, for that
    package and release only, after checking its source and its changes;
    exclude-newer-package in pyproject.toml records the exception, and
    uv.lock must resolve exactly the checked version. For a low severity,
    waiting stays the default; the maintainer decides.

  • MCP estimate_savings: its description now says that a first call may
    take longer than convert_document, which tokenizer it counts with, that
    the provider comparison is for images only, and what each top-level field
    of the answer means; the providers schema lists the valid names
    (ADR-049 amendment).

Fixed

  • A PDF page whose words are drawn as curves, with no characters and no
    images inside, gave empty Markdown with status ok: the words were lost
    without a trace. A page with almost no real text and something drawn on
    it now keeps its real text exactly and has only the drawn part read with
    OCR (ADR-043 amendment). Known limit: a page with 20 or more real
    characters, such as a footer, and a drawn body is not yet detected.
  • On a PDF page shown rotated (/Rotate 90, 180 or 270 degrees, as
    landscape pages often are), every visible line was marked hidden and
    removed from the Markdown with the reason "hidden text": text boxes were
    not turned with the page they were checked against (ADR-043 amendment).
  • Two faults in the check that renders a PDF page without its text: on a
    page with a /Rotate value that is not a quarter turn (45) the check was
    skipped, so a faint instruction over a picture could pass as visible text;
    on a page whose boxes do not start at the origin part of the text stayed,
    so visible text could be marked hidden (ADR-043 amendment).