How mackenziet7/ao3-epub-to-odt works
AO3 EPUB to ODT Converter is a Windows desktop app for turning AO3 EPUBs into editable, print-ready ODT books. Users select an EPUB and output folder, configure layout, typography and options in a wizard—or choose a saved preset for quick conversion—then monitor progress and receive an ODT. The documented output includes book matter, chapters, optional QR and contents, running headers, and an author-notes appendix. The graph follows the sampled GUI-to-worker path and indexed converter modules; internal writer call details are limited where source excerpts do not show them.
Main entry points: worker.py Conversion worker · script_ao3_to_odt.py ODT conversion runner · page0_wiring.py File selection · wiring Book setup wizard
Components 21
Desktop workflow
- App window
gui/main_window.py - File selection
gui/wiring/page0_wiring.py - Book setup wizard
gui/wiring - Page preview
gui/widgets/page_preview_widget.py
Settings and presets
- App settings
gui/config.py - Preset controls
gui/wiring/page4_wiring.py - Wizard settings mapping
gui/wiring/preset_builder.py - Preset validation
scripts/ao3_to_odt/preset_schema.py
EPUB conversion
- Conversion worker
gui/worker.py - AO3 EPUB
- EPUB parser
scripts/ao3_to_odt/epub/parser.py - Book model
scripts/ao3_to_odt/epub/models.py - QR generation
scripts/ao3_to_odt/qr.py
ODT generation
- ODT conversion runner
scripts/script_ao3_to_odt.py - UNO connection
scripts/ao3_to_odt/writer/connection.py - Book content writer
scripts/ao3_to_odt/writer/content.py - Document styles
scripts/ao3_to_odt/writer/styles.py - Running headers
scripts/ao3_to_odt/writer/headers.py - Print-ready ODT
Other components
- Reader
- LibreOffice UNO
Connections 23
- Reader → File selection: selects EPUB
README.md - Reader → Book setup wizard: sets book options
README.md - App window → File selection: hosts workflow
gui/main_window.py - App window → Book setup wizard: wires pages
gui/main_window.py - Book setup wizard → Page preview: updates preview
gui/wiring/page1_wiring.py - File selection → Conversion worker: starts conversion
- Book setup wizard → Conversion worker: starts conversion
README.md - File selection → App settings: reads preferences
gui/wiring/page0_wiring.py - Preset controls → Wizard settings mapping: applies preset
gui/wiring/page6_wiring.py - Wizard settings mapping → Preset validation: uses schema
gui/wiring/preset_builder.py - Conversion worker → EPUB parser: parses EPUB
gui/worker.py - Conversion worker → Book model: serializes book
gui/worker.py - Conversion worker → QR generation: generates optional QR
gui/worker.py - Conversion worker → ODT conversion runner: launches runner
gui/worker.py - AO3 EPUB → Conversion worker: provides input
README.md - ODT conversion runner → UNO connection: uses UNO connection
scripts/script_ao3_to_odt.py - ODT conversion runner → Book content writer: uses content writer
scripts/script_ao3_to_odt.py - ODT conversion runner → Document styles: uses style writer
scripts/script_ao3_to_odt.py - ODT conversion runner → Running headers: uses header writer
scripts/script_ao3_to_odt.py - UNO connection → LibreOffice UNO: connects to
README.md - Book content writer → Print-ready ODT: writes document
README.md - Document styles → Print-ready ODT: formats document
README.md - Running headers → Print-ready ODT: adds running headers
README.md