Skip to content

A fast, helpful, and open-source document parser

nit

Logan Markewichd3e283286e59
diff --git a/crates/liteparse/src/extract.rs b/crates/liteparse/src/extract.rs
index d828337..797eecd 100644
--- a/crates/liteparse/src/extract.rs
+++ b/crates/liteparse/src/extract.rs
@@ -1110,7 +1110,7 @@ struct FontGlyphInfo {
/// the ToUnicode as garbage): PDFium's unicode values for this font are
/// untrusted, so every charcode gets a recovery try.
untrusted: bool,
- /// The font's name matches the legacy buggy-subset heuristic while
+ /// The font's name matches the buggy-subset heuristic while
/// declaring a *standard* base encoding (e.g. MacRomanEncoding) — the
/// encoding is a lie, so PDFium derives glyph names from it that are just
/// as wrong as the unicode. Skip glyph-name recovery for these and rely on
@@ -1160,7 +1160,7 @@ impl<'a> GlyphDecoder<'a> {
self.fonts.entry(key).or_insert_with(|| {
let has_to_unicode = font.has_to_unicode();
let encoding = font.encoding();
- // Embedded subset fonts whose name matches the legacy "buggy
+ // Embedded subset fonts whose name matches the "buggy
// font" heuristic (TrueType `+TT` / Type1 `......_` subset tags)
// routinely lie about their encoding: a standard base encoding
// (e.g. MacRomanEncoding) decodes to a shifted alphabet because
diff --git a/crates/liteparse/src/ocr/http_simple.rs b/crates/liteparse/src/ocr/http_simple.rs
index 9a9e4f0..f55e1d8 100644
--- a/crates/liteparse/src/ocr/http_simple.rs
+++ b/crates/liteparse/src/ocr/http_simple.rs
@@ -109,8 +109,8 @@ pub struct HttpOcrEngine {
/// Retry/backoff policy for OCR HTTP requests. The default is up to 10
/// attempts, 1s base backoff doubling to a 10s cap, plus jitter, with a fast
-/// path for dropped connections) so that liteparse-driven OCR is as resilient
-/// to a down / rate-limited `/ocr` endpoint as the legacy worker path was.
+/// path for dropped connections) so that liteparse-driven OCR is resilient
+/// to a down / rate-limited `/ocr` endpoint.
/// Without this, a transient outage or a 429 burst exhausts the old 3-attempt /
/// sub-second-backoff budget and the page's OCR is lost.
#[derive(Debug, Clone)]