Skip to content

Parabloom v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Nov 16:44
8794e61

This release changes how lines group into paragraphs and which text a highlight reaches near the bottom of a page, so some highlights come out differently than in 0.2.0.

Fixed

  • A one-line text block that sits flush with the page's left margin, or with its body-text margin, no longer counts as an indented paragraph start just because that margin lies past --indent-x. PDFs that put every line in its own block with a margin past 80 pt (such as browser print-to-PDF pages) used to get one highlight per line instead of one per paragraph. A larger gap than the paragraph's own line spacing, or a line set in much larger or smaller type, still starts a new paragraph, so a heading at the body margin stays separate.
  • Body text that runs below --footnote-y is no longer cut off as a footnote. A line below the cut-off is kept when it continues the lines above it: same column, same left edge, same line height and the same line spacing, set at the body size of the rest of the page (so a block of notes can't vouch for its own size). Notes in smaller type, or after a larger gap, are still dropped. Before, a paragraph whose last line fell below the cut-off lost that line, and could then look unfinished and bridge onto the next page.
  • A one-line block that starts at the same left edge as the line before it, while that line's sentence is still running, no longer counts as an indented paragraph start. Indented quotes and columns set one line per block now expand as whole paragraphs instead of one highlight per line.
  • A line whose box is stretched by a superscript or a taller glyph (a footnote reference such as "[5]") no longer splits its paragraph by pushing the measured line gap past --gap-threshold. While the sentence is still running, a height difference of up to a quarter of a line is discounted from the gap; a heading after a finished sentence, or in much larger type, still starts its own paragraph.
  • Running heads and footers are recognised when they sit at the top or bottom edge of the page and the same text (ignoring page numbers) sits at the same height on at least two other pages up to two pages away. Repeated rows elsewhere on the page stay body text. A running head opening a page blocks a page bridge, as a heading does, so a bridge can no longer highlight it (such as the title and URL a browser prints at the top of each page). A running footer, such as a browser's "7 of 16" and date, is no longer taken as the page's last paragraph.

Install

Install from crates.io (builds MuPDF from source, so it needs a C toolchain and libclang):

cargo install parabloom --locked

Or download the archive for your platform, check it, and put parabloom on your PATH:

shasum -a 256 -c SHA256SUMS --ignore-missing
tar -xzf parabloom-v0.3.0-<target>.tar.gz

Linux binaries are built on Ubuntu 24.04 and need a glibc at least that recent. macOS binaries target macOS 11 and later and are not notarized; if macOS blocks the binary, run xattr -d com.apple.quarantine parabloom.

To confirm an archive was built by this repository's release workflow:

gh attestation verify parabloom-v0.3.0-<target>.tar.gz --repo jag3773/parabloom

License

Parabloom's source is MIT licensed. The binaries statically link MuPDF, which is AGPL-3.0, so they are distributed under the AGPL. parabloom-v0.3.0-source.tar.gz is the complete corresponding source, with all dependencies vendored; build it offline with cargo build --release --frozen.