| 1 |
|
- |
//! Render a Balanced Breakfast article body (HTML) to a PDF suitable
|
| 2 |
|
- |
//! for reading on a Supernote e-ink tablet.
|
|
1 |
+ |
//! Render a Balanced Breakfast article body (HTML) to a PDF suitable for
|
|
2 |
+ |
//! reading on an e-ink tablet.
|
| 3 |
3 |
|
//!
|
| 4 |
4 |
|
//! Pipeline: HTML -> `pter` markdown -> `pulldown-cmark` events -> a small
|
| 5 |
5 |
|
//! hand-rolled `printpdf` layout. A5 portrait, Helvetica, three levels of
|
| 6 |
6 |
|
//! headings, bold, italic, bulleted / ordered lists, blockquotes. Images
|
| 7 |
7 |
|
//! and tables are dropped for v1; code blocks render as monospace inline
|
| 8 |
8 |
|
//! text with no syntax highlighting.
|
|
9 |
+ |
//!
|
|
10 |
+ |
//! # Nothing calls this today, and that is deliberate
|
|
11 |
+ |
//!
|
|
12 |
+ |
//! This crate was written as the rendering half of Supernote push. That
|
|
13 |
+ |
//! feature was removed on 2026-08-06 when `supernote-push` was archived (the
|
|
14 |
+ |
//! reMarkable displaced the Supernote), which left this with no caller. Kept
|
|
15 |
+ |
//! on purpose: the intent is to re-integrate it with `Apps/memarkable`, which
|
|
16 |
+ |
//! already sideloads documents into the reMarkable's library over SSH. This is
|
|
17 |
+ |
//! the half of "read this article on the tablet" that exists; memarkable is
|
|
18 |
+ |
//! the other half.
|
|
19 |
+ |
//!
|
|
20 |
+ |
//! Nothing here was device-specific, which is why the retarget is cheap. The
|
|
21 |
+ |
//! page is plain A5 portrait (`layout.rs`), not Supernote hardware geometry,
|
|
22 |
+ |
//! and the output is an ordinary PDF. Worth a look at the target device's
|
|
23 |
+ |
//! aspect ratio when the time comes, but no rewrite is implied.
|
|
24 |
+ |
//!
|
|
25 |
+ |
//! So: do not delete this as dead code, and do not wire it back into
|
|
26 |
+ |
//! `src-tauri` without a real caller. Both are the same mistake in opposite
|
|
27 |
+ |
//! directions.
|
| 9 |
28 |
|
|
| 10 |
29 |
|
mod layout;
|
| 11 |
30 |
|
mod render;
|