https://github.com/mrlsd/book-formatter
Format text book to html formatted with page separation
https://github.com/mrlsd/book-formatter
Last synced: 6 months ago
JSON representation
Format text book to html formatted with page separation
- Host: GitHub
- URL: https://github.com/mrlsd/book-formatter
- Owner: mrLSD
- License: mit
- Created: 2022-11-08T20:24:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T16:36:57.000Z (over 1 year ago)
- Last Synced: 2025-01-06T14:42:32.872Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Book formatter
Format text book to html formatted with page separation. Formatting
with html tag `
`, with page counter insertion (calculated by symbols count).
## How it works
1. You should have Text book
2. Book should separate paragraph as new line.
3. Run: `cargo run -- file_name`
4. Result: `index.html`
5. To change page size set: `const PAGE_SIZE: u64 = 5400;`
Page size calculated by word symbol count.
### LICENSE: MIT