mirror of
https://github.com/Dasemu/faust-vn.git
synced 2026-11-26 15:26:20 +00:00
feat: add deterministic text stage (fetch, scope cut, parser) with tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
10af4346f6
commit
fdfe6d057e
9 files changed
+8589
No files matched your search
@@ -0,0 +1,32 @@
|
||||
# Licensing and credits
|
||||
|
||||
## Text
|
||||
|
||||
- *Faust* by Johann Wolfgang von Goethe (died 1832): public domain.
|
||||
- Spanish translation by Teodoro Llorente (died 1911): public domain.
|
||||
- Edition: Montaner y Simón, Barcelona, 1905.
|
||||
- Source: Project Gutenberg eBook #68566, https://www.gutenberg.org/ebooks/68566.
|
||||
|
||||
### Project Gutenberg licence
|
||||
|
||||
The Project Gutenberg licence (https://www.gutenberg.org/policy/license.html) allows the
|
||||
text of public-domain works to be reused freely. Its trademark terms apply only to
|
||||
redistribution that keeps the "Project Gutenberg" name: a derived work that removes the
|
||||
Gutenberg header, footer and licence text, and does not use the trademark, may be
|
||||
redistributed without further conditions. This project strips all of that (see `scope.md`)
|
||||
and does not use the Project Gutenberg name for the visual novel. The raw download is
|
||||
gitignored and never redistributed.
|
||||
|
||||
### Transcription credits
|
||||
|
||||
The Gutenberg text was transcribed by Ramón Pajares Box and the Distributed Proofreaders
|
||||
(PGDP) team. Thanks to them.
|
||||
|
||||
## Images
|
||||
|
||||
All images (backgrounds, sprites, portraits) are AI-generated with ChatGPT image
|
||||
generation. They are not photographs or scans of existing artwork.
|
||||
|
||||
## Code
|
||||
|
||||
The pipeline code in this repository is released under the MIT licence.
|
||||
@@ -0,0 +1,46 @@
|
||||
# Scope
|
||||
|
||||
The prototype adapts the opening of *Fausto* (Goethe, transl. Teodoro Llorente) from
|
||||
Project Gutenberg #68566.
|
||||
|
||||
## Included
|
||||
|
||||
Raw file lines 1092-1921 (`works/faust/data/raw/pg68566.txt`), i.e. from the `DEDICATORIA`
|
||||
heading up to, but excluding, the `(_Llaman._)` direction at line 1923.
|
||||
|
||||
| Scene id | Heading | Verse lines | Directions | Cast lines | Speeches |
|
||||
|---|---|---|---|---|---|
|
||||
| `dedicatoria` | DEDICATORIA | 32 | 0 | 0 | 1 (no speaker) |
|
||||
| `prologo_teatro` | PRÓLOGO EN EL TEATRO | 254 | 0 | 1 | 11 |
|
||||
| `prologo_cielo` | PRÓLOGO EN EL CIELO | 162 | 2 | 1 | 19 |
|
||||
| `noche` | DE NOCHE | 182 | 5 | 0 | 11 |
|
||||
|
||||
Total: 630 verse lines (about 15-20 printed pages).
|
||||
|
||||
## Where and why it is cut
|
||||
|
||||
The scope ends at the Earth Spirit's rejection of Faust ("¿No a ti? Pues dime: ¿a quién?"),
|
||||
right before the knock that announces Wagner. It is a natural dramatic break: the evocation
|
||||
ends in Faust's collapse, and the next beat (Wagner, the Easter walk, the pact) is a new
|
||||
movement.
|
||||
|
||||
## Stripped
|
||||
|
||||
- Gutenberg header/footer, transcriber's note and licence text.
|
||||
- Title pages, table of contents, and Llorente's prologue letter ("A Vicente W. Querol").
|
||||
- `[Ilustración...]` markers (the book's own engravings).
|
||||
- Everything after the end marker.
|
||||
|
||||
## Scope rule
|
||||
|
||||
Defined in `works/faust/work.toml` under `[scope]` and applied by `vnpipe.text.clean`:
|
||||
|
||||
- Start: the first line whose stripped text equals `start_marker`. Table of contents entries
|
||||
carry page numbers, so they never match as whole lines.
|
||||
- End: the `end_occurrence`-th line after the start whose stripped text equals `end_marker`
|
||||
(exclusive).
|
||||
- Illustration lines are dropped, trailing whitespace is removed, blank runs collapse to one.
|
||||
|
||||
`vnpipe parse` writes the result to `works/faust/data/play.txt` and the structured form to
|
||||
`works/faust/data/parsed.json` (line ids `<scene>_<NNNN>`, numbered from 0001 per scene;
|
||||
`src_line` points back to the raw file).
|
||||
Reference in new issue
Block a user