mirror of
https://github.com/Dasemu/faust-vn.git
synced 2026-11-26 23:36:25 +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).
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
"""JSON Schema validation helper shared by all pipeline stages."""
|
||||||
|
|
||||||
|
import json
|
||||||
|
from functools import cache
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
|
from jsonschema import Draft202012Validator
|
||||||
|
|
||||||
|
from vnpipe import SCHEMA_DIR
|
||||||
|
|
||||||
|
|
||||||
|
class SchemaError(ValueError):
|
||||||
|
"""Raised when an instance does not conform to its schema."""
|
||||||
|
|
||||||
|
|
||||||
|
@cache
|
||||||
|
def _validator(schema_name: str) -> Draft202012Validator:
|
||||||
|
path = SCHEMA_DIR / f"{schema_name}.schema.json"
|
||||||
|
if not path.is_file():
|
||||||
|
raise FileNotFoundError(f"unknown schema {schema_name!r}: {path} does not exist")
|
||||||
|
schema = json.loads(path.read_text(encoding="utf-8"))
|
||||||
|
Draft202012Validator.check_schema(schema)
|
||||||
|
return Draft202012Validator(schema)
|
||||||
|
|
||||||
|
|
||||||
|
def validate(instance: Any, schema_name: str) -> None:
|
||||||
|
"""Validate ``instance`` against ``SCHEMA_DIR/<schema_name>.schema.json``.
|
||||||
|
|
||||||
|
Raises ``SchemaError`` listing every problem found (path and message).
|
||||||
|
"""
|
||||||
|
errors = sorted(_validator(schema_name).iter_errors(instance), key=lambda e: list(e.path))
|
||||||
|
if not errors:
|
||||||
|
return
|
||||||
|
problems = [f" at /{'/'.join(str(p) for p in e.absolute_path)}: {e.message}" for e in errors]
|
||||||
|
raise SchemaError(
|
||||||
|
f"{len(errors)} problem(s) validating against {schema_name!r}:\n" + "\n".join(problems)
|
||||||
|
)
|
||||||
@@ -0,0 +1,258 @@
|
|||||||
|
"""Text stage: fetch the Gutenberg source, clean/scope it and parse it into parsed.json."""
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import hashlib
|
||||||
|
import json
|
||||||
|
import re
|
||||||
|
import urllib.request
|
||||||
|
from pathlib import Path
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
|
from vnpipe.config import Work, load_work
|
||||||
|
from vnpipe.schema import validate
|
||||||
|
|
||||||
|
BASE_INDENT = 4
|
||||||
|
UPPER = "A-ZÁÉÍÓÚÜÑ"
|
||||||
|
ILLUSTRATION_RE = re.compile(r"^\[Ilustración[^\]]*\]$")
|
||||||
|
HEADING_RE = re.compile(
|
||||||
|
rf"^(?P<name>[{UPPER}][{UPPER} ]*?)"
|
||||||
|
r"(?:,\s*_(?P<note1>[^_]+)_|\s*\(_(?P<note2>[^_]+)_\))?$"
|
||||||
|
)
|
||||||
|
|
||||||
|
Line = tuple[int, str] # (1-based raw line number, text without line ending)
|
||||||
|
|
||||||
|
|
||||||
|
class ParseError(ValueError):
|
||||||
|
"""The source text has a structure the parser does not know."""
|
||||||
|
|
||||||
|
|
||||||
|
def _split(raw_text: str) -> list[str]:
|
||||||
|
text = raw_text.removeprefix("").replace("\r\n", "\n").replace("\r", "\n")
|
||||||
|
return text.split("\n")
|
||||||
|
|
||||||
|
|
||||||
|
def clean(raw_text: str, scope_cfg: dict[str, Any]) -> list[Line]:
|
||||||
|
"""Cut the raw text to the configured scope and drop noise.
|
||||||
|
|
||||||
|
The start marker is the first line whose stripped text equals ``start_marker``; the end
|
||||||
|
marker is the ``end_occurrence``-th such line after it (exclusive). Illustration markers
|
||||||
|
are removed, trailing whitespace stripped and blank runs collapsed to a single blank line.
|
||||||
|
Returned line numbers refer to the raw file.
|
||||||
|
"""
|
||||||
|
lines = _split(raw_text)
|
||||||
|
start_marker, end_marker = scope_cfg["start_marker"], scope_cfg["end_marker"]
|
||||||
|
occurrence = scope_cfg.get("end_occurrence", 1)
|
||||||
|
start = next((i for i, ln in enumerate(lines) if ln.strip() == start_marker), None)
|
||||||
|
if start is None:
|
||||||
|
raise ParseError(f"scope start marker {start_marker!r} not found")
|
||||||
|
matches = [i for i in range(start + 1, len(lines)) if lines[i].strip() == end_marker]
|
||||||
|
if len(matches) < occurrence:
|
||||||
|
raise ParseError(f"scope end marker {end_marker!r} occurrence {occurrence} not found")
|
||||||
|
end = matches[occurrence - 1]
|
||||||
|
|
||||||
|
out: list[Line] = []
|
||||||
|
for i in range(start, end):
|
||||||
|
text = lines[i].rstrip()
|
||||||
|
if ILLUSTRATION_RE.match(text.strip()):
|
||||||
|
continue
|
||||||
|
if not text and out and not out[-1][1]:
|
||||||
|
continue
|
||||||
|
out.append((i + 1, text))
|
||||||
|
while out and not out[-1][1]:
|
||||||
|
out.pop()
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def clean_text(lines: list[Line]) -> str:
|
||||||
|
"""Render cleaned lines as the contents of play.txt."""
|
||||||
|
return "\n".join(text for _, text in lines) + "\n"
|
||||||
|
|
||||||
|
|
||||||
|
def _strip_markup(text: str) -> str:
|
||||||
|
return re.sub(r"\s+", " ", text.replace("_", "")).strip()
|
||||||
|
|
||||||
|
|
||||||
|
def _indent(text: str) -> int:
|
||||||
|
return len(text) - len(text.lstrip(" "))
|
||||||
|
|
||||||
|
|
||||||
|
def _match_heading(text: str) -> re.Match[str] | None:
|
||||||
|
return HEADING_RE.match(text) if text and not text[0].isspace() else None
|
||||||
|
|
||||||
|
|
||||||
|
class _SceneBuilder:
|
||||||
|
def __init__(self, scene_cfg: dict[str, Any]):
|
||||||
|
self.id: str = scene_cfg["id"]
|
||||||
|
self.heading: str = scene_cfg["heading"]
|
||||||
|
self.lines: list[dict[str, Any]] = []
|
||||||
|
self.speaker: str | None = None
|
||||||
|
self.note: str | None = None
|
||||||
|
self.speech = -1
|
||||||
|
self.stanza = 0
|
||||||
|
self.has_verse = False
|
||||||
|
self.pending_blank = False
|
||||||
|
|
||||||
|
def add(self, kind: str, text: str, src: int, indent: int = 0, speaker: Any = False) -> None:
|
||||||
|
self.lines.append(
|
||||||
|
{
|
||||||
|
"id": f"{self.id}_{len(self.lines) + 1:04d}",
|
||||||
|
"kind": kind,
|
||||||
|
"speaker": self.speaker if speaker is False else speaker,
|
||||||
|
"speaker_note": self.note if speaker is False else None,
|
||||||
|
"speech": max(self.speech, 0),
|
||||||
|
"stanza": self.stanza,
|
||||||
|
"indent": indent,
|
||||||
|
"text": text,
|
||||||
|
"src_line": src,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
def start_speech(self, speaker: str, note: str | None) -> None:
|
||||||
|
self.speech += 1
|
||||||
|
self.speaker, self.note = speaker, note
|
||||||
|
self.stanza, self.has_verse, self.pending_blank = 0, False, False
|
||||||
|
|
||||||
|
def verse(self, text: str, src: int) -> None:
|
||||||
|
if self.pending_blank and self.has_verse:
|
||||||
|
self.stanza += 1
|
||||||
|
self.pending_blank, self.has_verse = False, True
|
||||||
|
self.add("verse", _strip_markup(text), src, max(_indent(text) - BASE_INDENT, 0))
|
||||||
|
|
||||||
|
def to_dict(self) -> dict[str, Any]:
|
||||||
|
return {"id": self.id, "heading": self.heading, "lines": self.lines}
|
||||||
|
|
||||||
|
|
||||||
|
def parse(lines: list[Line], work_cfg: dict[str, Any], source_sha256: str) -> dict[str, Any]:
|
||||||
|
"""Parse cleaned lines into the structure described by parsed.schema.json."""
|
||||||
|
scenes_by_heading = {s["heading"]: s for s in work_cfg["scenes"]}
|
||||||
|
speakers: dict[str, str] = work_cfg["speakers"]
|
||||||
|
scenes: list[_SceneBuilder] = []
|
||||||
|
cur: _SceneBuilder | None = None
|
||||||
|
expect_block = False
|
||||||
|
i = 0
|
||||||
|
|
||||||
|
def fail(src: int, msg: str) -> ParseError:
|
||||||
|
return ParseError(f"raw line {src}: {msg}")
|
||||||
|
|
||||||
|
while i < len(lines):
|
||||||
|
src, text = lines[i]
|
||||||
|
stripped = text.strip()
|
||||||
|
i += 1
|
||||||
|
if not stripped:
|
||||||
|
if cur:
|
||||||
|
cur.pending_blank = True
|
||||||
|
continue
|
||||||
|
|
||||||
|
if not text[0].isspace() and stripped in scenes_by_heading:
|
||||||
|
cur = _SceneBuilder(scenes_by_heading[stripped])
|
||||||
|
scenes.append(cur)
|
||||||
|
expect_block = True
|
||||||
|
continue
|
||||||
|
if cur is None:
|
||||||
|
raise fail(src, f"text before any scene heading: {stripped!r}")
|
||||||
|
|
||||||
|
indent = _indent(text)
|
||||||
|
match = _match_heading(text)
|
||||||
|
is_heading = match is not None
|
||||||
|
if indent and indent < BASE_INDENT:
|
||||||
|
# Indented heading (a typesetting quirk): only accepted for known speakers.
|
||||||
|
m = HEADING_RE.match(stripped)
|
||||||
|
nxt = lines[i][1].strip() if i < len(lines) else ""
|
||||||
|
if m and m["name"] in speakers and not nxt:
|
||||||
|
match, is_heading = m, True
|
||||||
|
|
||||||
|
if expect_block:
|
||||||
|
expect_block = False
|
||||||
|
if indent < BASE_INDENT and (stripped.startswith("_") or not is_heading or indent):
|
||||||
|
block = [stripped]
|
||||||
|
while i < len(lines) and lines[i][1].strip():
|
||||||
|
block.append(lines[i][1].strip())
|
||||||
|
i += 1
|
||||||
|
kind = "direction" if stripped.startswith("_") else "cast"
|
||||||
|
cur.add(kind, _strip_markup(" ".join(block)), src, speaker=None)
|
||||||
|
continue
|
||||||
|
|
||||||
|
if stripped.startswith("(_"):
|
||||||
|
block = [stripped]
|
||||||
|
while not block[-1].endswith("_)"):
|
||||||
|
if i >= len(lines) or not lines[i][1].strip():
|
||||||
|
raise fail(src, "unterminated stage direction")
|
||||||
|
block.append(lines[i][1].strip())
|
||||||
|
i += 1
|
||||||
|
joined = " ".join(block)
|
||||||
|
cur.add("direction", _strip_markup(joined[2:-2]), src, speaker=None)
|
||||||
|
continue
|
||||||
|
|
||||||
|
if is_heading and match is not None:
|
||||||
|
name = match["name"].strip()
|
||||||
|
if name not in speakers:
|
||||||
|
raise fail(src, f"unknown speaker or scene heading {stripped!r}")
|
||||||
|
note = match["note1"] or match["note2"]
|
||||||
|
cur.start_speech(speakers[name], note.strip() if note else None)
|
||||||
|
continue
|
||||||
|
|
||||||
|
if indent == 0:
|
||||||
|
raise fail(src, f"unrecognised line {stripped!r}")
|
||||||
|
cur.verse(text, src)
|
||||||
|
|
||||||
|
return {
|
||||||
|
"work": work_cfg["work"]["id"],
|
||||||
|
"source_sha256": source_sha256,
|
||||||
|
"scenes": [s.to_dict() for s in scenes],
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def build(raw_bytes: bytes, work_cfg: dict[str, Any]) -> tuple[list[Line], dict[str, Any]]:
|
||||||
|
"""Clean and parse raw file bytes; returns (clean lines, validated parsed dict)."""
|
||||||
|
lines = clean(raw_bytes.decode("utf-8"), work_cfg["scope"])
|
||||||
|
parsed = parse(lines, work_cfg, hashlib.sha256(raw_bytes).hexdigest())
|
||||||
|
validate(parsed, "parsed")
|
||||||
|
return lines, parsed
|
||||||
|
|
||||||
|
|
||||||
|
def _raw_path(work: Work) -> Path:
|
||||||
|
return work.path(work.data["source"]["raw_file"])
|
||||||
|
|
||||||
|
|
||||||
|
def cmd_fetch(args: argparse.Namespace) -> int:
|
||||||
|
work = load_work(args.work)
|
||||||
|
dest = _raw_path(work)
|
||||||
|
if dest.exists():
|
||||||
|
print(f"fetch: {dest} already present, nothing to do")
|
||||||
|
return 0
|
||||||
|
url = work.data["source"]["url"]
|
||||||
|
dest.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
request = urllib.request.Request(url, headers={"User-Agent": "vnpipe/0.1"})
|
||||||
|
with urllib.request.urlopen(request, timeout=60) as response: # noqa: S310
|
||||||
|
payload = response.read()
|
||||||
|
tmp = dest.with_suffix(dest.suffix + ".part")
|
||||||
|
tmp.write_bytes(payload)
|
||||||
|
tmp.replace(dest)
|
||||||
|
print(f"fetch: wrote {dest} ({len(payload)} bytes)")
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
def cmd_parse(args: argparse.Namespace) -> int:
|
||||||
|
work = load_work(args.work)
|
||||||
|
raw = _raw_path(work)
|
||||||
|
if not raw.is_file():
|
||||||
|
raise SystemExit(f"parse: {raw} missing; run `vnpipe fetch` first")
|
||||||
|
lines, parsed = build(raw.read_bytes(), work.data)
|
||||||
|
out_dir = work.path("data")
|
||||||
|
out_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
(out_dir / "play.txt").write_text(clean_text(lines), encoding="utf-8", newline="\n")
|
||||||
|
payload = json.dumps(parsed, ensure_ascii=False, indent=2) + "\n"
|
||||||
|
(out_dir / "parsed.json").write_text(payload, encoding="utf-8", newline="\n")
|
||||||
|
for scene in parsed["scenes"]:
|
||||||
|
kinds: dict[str, int] = {}
|
||||||
|
for ln in scene["lines"]:
|
||||||
|
kinds[ln["kind"]] = kinds.get(ln["kind"], 0) + 1
|
||||||
|
print(f"parse: {scene['id']}: {kinds}")
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
def register(subparsers: argparse._SubParsersAction) -> None:
|
||||||
|
fetch = subparsers.add_parser("fetch", help="Download the Gutenberg source if missing")
|
||||||
|
fetch.set_defaults(handler=cmd_fetch)
|
||||||
|
parse_cmd = subparsers.add_parser("parse", help="Clean, scope and parse the source text")
|
||||||
|
parse_cmd.set_defaults(handler=cmd_parse)
|
||||||
Vendored
+103
@@ -0,0 +1,103 @@
|
|||||||
|
The Project Gutenberg eBook of Fausto
|
||||||
|
|
||||||
|
*** START OF THE PROJECT GUTENBERG EBOOK FAUSTO ***
|
||||||
|
|
||||||
|
DEDICATORIA ................................................ 17
|
||||||
|
TEODORO LLORENTE.
|
||||||
|
|
||||||
|
DEDICATORIA
|
||||||
|
|
||||||
|
|
||||||
|
Tornáis de nuevo, hermosas imágenes flotantes,
|
||||||
|
que dulce y melancólico un día contemplé.
|
||||||
|
¿Asiros y teneros podré feliz como antes?
|
||||||
|
¡Aún vuela hacia vosotras el alma cuando os ve!
|
||||||
|
|
||||||
|
Hoy vuelven de otro tiempo mejor la alegre historia,
|
||||||
|
y las risueñas sombras de la feliz edad,
|
||||||
|
|
||||||
|
[Ilustración]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[Ilustración]
|
||||||
|
|
||||||
|
PRÓLOGO EN EL TEATRO
|
||||||
|
|
||||||
|
|
||||||
|
EL DIRECTOR, EL POETA DRAMÁTICO, EL GRACIOSO
|
||||||
|
|
||||||
|
EL DIRECTOR
|
||||||
|
|
||||||
|
Decid, buenos amigos,
|
||||||
|
de mi afán camaradas y testigos,
|
||||||
|
¿qué pensáis? Es mi anhelo preferente
|
||||||
|
|
||||||
|
En complacer al público soy ducho;
|
||||||
|
mas tranquilo no estoy, no estoy sereno:
|
||||||
|
|
||||||
|
EL POETA
|
||||||
|
|
||||||
|
¡Vete, profano!
|
||||||
|
¡Vete! Romper mi servidumbre quiero.
|
||||||
|
|
||||||
|
[Ilustración]
|
||||||
|
|
||||||
|
PRÓLOGO EN EL CIELO
|
||||||
|
|
||||||
|
|
||||||
|
EL SEÑOR,
|
||||||
|
_los_ EJÉRCITOS CELESTIALES. _Después_ MEFISTÓFELES.
|
||||||
|
_Los tres_ ARCÁNGELES _se adelantan_
|
||||||
|
|
||||||
|
EL SEÑOR
|
||||||
|
|
||||||
|
¿Conoces a Fausto?
|
||||||
|
|
||||||
|
MEFISTÓFELES
|
||||||
|
|
||||||
|
¿A Fausto
|
||||||
|
el Doctor?
|
||||||
|
|
||||||
|
EL SEÑOR
|
||||||
|
|
||||||
|
¡Mi siervo!
|
||||||
|
|
||||||
|
(_El cielo se cierra y los Arcángeles se dispersan._)
|
||||||
|
|
||||||
|
MEFISTÓFELES, _solo_
|
||||||
|
|
||||||
|
De vez en cuando olvido mis rencillas,
|
||||||
|
y busco al Viejo, y pláticas entablo.
|
||||||
|
|
||||||
|
DE NOCHE
|
||||||
|
|
||||||
|
|
||||||
|
_En un aposento gótico, estrecho, con elevada bóveda_, FAUSTO
|
||||||
|
_intranquilo sentado a su pupitre._
|
||||||
|
|
||||||
|
FAUSTO
|
||||||
|
|
||||||
|
Filosofía, ¡ay, Dios!, Jurisprudencia,
|
||||||
|
Medicina además, y Teología,
|
||||||
|
la _Razón_ lo nombra
|
||||||
|
|
||||||
|
(_Toma el libro y pronuncia misteriosamente el nombre del Espíritu.
|
||||||
|
Enciéndese una luz rojiza y trémula. El Espíritu aparece en ella._)
|
||||||
|
|
||||||
|
EL ESPÍRITU
|
||||||
|
|
||||||
|
¿Quién me llama?
|
||||||
|
|
||||||
|
FAUSTO (_aterrado_)
|
||||||
|
|
||||||
|
¿No a ti? Pues dime: ¿a quién? ¿Imagen
|
||||||
|
soy de Dios, y ni a ti llegar podría?
|
||||||
|
|
||||||
|
(_Llaman._)
|
||||||
|
|
||||||
|
WAGNER
|
||||||
|
|
||||||
|
Not in scope.
|
||||||
|
*** END OF THE PROJECT GUTENBERG EBOOK FAUSTO ***
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
from vnpipe.schema import SchemaError, validate
|
||||||
|
|
||||||
|
|
||||||
|
def test_valid_instance_passes():
|
||||||
|
validate(
|
||||||
|
{
|
||||||
|
"work": "x",
|
||||||
|
"source_sha256": "a" * 64,
|
||||||
|
"scenes": [{"id": "s", "heading": "H", "lines": []}],
|
||||||
|
},
|
||||||
|
"parsed",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def test_reports_all_problems():
|
||||||
|
with pytest.raises(SchemaError) as exc:
|
||||||
|
validate({"work": 1, "source_sha256": "bad", "scenes": []}, "parsed")
|
||||||
|
message = str(exc.value)
|
||||||
|
assert "3 problem(s)" in message
|
||||||
|
assert "/work" in message and "/source_sha256" in message and "/scenes" in message
|
||||||
|
|
||||||
|
|
||||||
|
def test_unknown_schema():
|
||||||
|
with pytest.raises(FileNotFoundError):
|
||||||
|
validate({}, "nope")
|
||||||
@@ -0,0 +1,229 @@
|
|||||||
|
import argparse
|
||||||
|
import json
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
from vnpipe import text
|
||||||
|
from vnpipe.config import load_work
|
||||||
|
from vnpipe.schema import validate
|
||||||
|
|
||||||
|
ROOT = Path(__file__).resolve().parent.parent
|
||||||
|
FIXTURE = Path(__file__).parent / "fixtures" / "mini_raw.txt"
|
||||||
|
RAW = ROOT / "works/faust/data/raw/pg68566.txt"
|
||||||
|
|
||||||
|
CFG = {
|
||||||
|
"work": {"id": "mini"},
|
||||||
|
"scope": {"start_marker": "DEDICATORIA", "end_marker": "(_Llaman._)", "end_occurrence": 1},
|
||||||
|
"speakers": {
|
||||||
|
"EL DIRECTOR": "director",
|
||||||
|
"EL POETA": "poet",
|
||||||
|
"MEFISTÓFELES": "mephisto",
|
||||||
|
"EL SEÑOR": "lord",
|
||||||
|
"FAUSTO": "faust",
|
||||||
|
"EL ESPÍRITU": "spirit",
|
||||||
|
},
|
||||||
|
"scenes": [
|
||||||
|
{"heading": "DEDICATORIA", "id": "dedicatoria"},
|
||||||
|
{"heading": "PRÓLOGO EN EL TEATRO", "id": "prologo_teatro"},
|
||||||
|
{"heading": "PRÓLOGO EN EL CIELO", "id": "prologo_cielo"},
|
||||||
|
{"heading": "DE NOCHE", "id": "noche"},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
SHA = "0" * 64
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="module")
|
||||||
|
def raw() -> str:
|
||||||
|
return FIXTURE.read_text(encoding="utf-8")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="module")
|
||||||
|
def parsed(raw):
|
||||||
|
return text.parse(text.clean(raw, CFG["scope"]), CFG, SHA)
|
||||||
|
|
||||||
|
|
||||||
|
def scene(parsed, scene_id):
|
||||||
|
return next(s for s in parsed["scenes"] if s["id"] == scene_id)
|
||||||
|
|
||||||
|
|
||||||
|
def test_scope_cut(raw):
|
||||||
|
lines = text.clean(raw, CFG["scope"])
|
||||||
|
joined = "\n".join(t for _, t in lines)
|
||||||
|
assert lines[0][1] == "DEDICATORIA"
|
||||||
|
assert lines[0][0] == 8 # first whole-line match, not the indented TOC entry
|
||||||
|
assert "Gutenberg" not in joined
|
||||||
|
assert "TEODORO LLORENTE" not in joined
|
||||||
|
assert "Llaman" not in joined
|
||||||
|
assert "WAGNER" not in joined
|
||||||
|
assert "Ilustración" not in joined
|
||||||
|
assert "\n\n\n" not in joined
|
||||||
|
|
||||||
|
|
||||||
|
def test_scope_missing_marker(raw):
|
||||||
|
with pytest.raises(text.ParseError):
|
||||||
|
text.clean(raw, {**CFG["scope"], "start_marker": "NOPE"})
|
||||||
|
with pytest.raises(text.ParseError):
|
||||||
|
text.clean(raw, {**CFG["scope"], "end_occurrence": 5})
|
||||||
|
|
||||||
|
|
||||||
|
def test_crlf_is_normalised(raw):
|
||||||
|
crlf = raw.replace("\n", "\r\n")
|
||||||
|
assert text.clean(crlf, CFG["scope"]) == text.clean(raw, CFG["scope"])
|
||||||
|
|
||||||
|
|
||||||
|
def test_scenes_in_order_with_ids(parsed):
|
||||||
|
assert [s["id"] for s in parsed["scenes"]] == [
|
||||||
|
"dedicatoria",
|
||||||
|
"prologo_teatro",
|
||||||
|
"prologo_cielo",
|
||||||
|
"noche",
|
||||||
|
]
|
||||||
|
first = scene(parsed, "noche")["lines"][0]
|
||||||
|
assert first["id"] == "noche_0001"
|
||||||
|
|
||||||
|
|
||||||
|
def test_dedicatoria_has_no_speaker(parsed):
|
||||||
|
lines = scene(parsed, "dedicatoria")["lines"]
|
||||||
|
assert all(ln["speaker"] is None and ln["kind"] == "verse" for ln in lines)
|
||||||
|
assert [ln["stanza"] for ln in lines] == [0, 0, 0, 0, 1, 1]
|
||||||
|
assert [ln["indent"] for ln in lines] == [2, 0, 0, 0, 2, 0]
|
||||||
|
|
||||||
|
|
||||||
|
def test_cast_list_detection(parsed):
|
||||||
|
teatro = scene(parsed, "prologo_teatro")["lines"][0]
|
||||||
|
assert teatro["kind"] == "cast"
|
||||||
|
assert teatro["text"] == "EL DIRECTOR, EL POETA DRAMÁTICO, EL GRACIOSO"
|
||||||
|
assert teatro["speaker"] is None
|
||||||
|
cielo = scene(parsed, "prologo_cielo")["lines"][0]
|
||||||
|
assert cielo["kind"] == "cast"
|
||||||
|
assert cielo["text"] == (
|
||||||
|
"EL SEÑOR, los EJÉRCITOS CELESTIALES. Después MEFISTÓFELES. "
|
||||||
|
"Los tres ARCÁNGELES se adelantan"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def test_setting_is_joined_direction(parsed):
|
||||||
|
first = scene(parsed, "noche")["lines"][0]
|
||||||
|
assert first["kind"] == "direction"
|
||||||
|
assert first["text"] == (
|
||||||
|
"En un aposento gótico, estrecho, con elevada bóveda, FAUSTO "
|
||||||
|
"intranquilo sentado a su pupitre."
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def test_stanza_counting(parsed):
|
||||||
|
lines = [ln for ln in scene(parsed, "prologo_teatro")["lines"] if ln["speaker"] == "director"]
|
||||||
|
assert [ln["stanza"] for ln in lines] == [0, 0, 0, 1, 1]
|
||||||
|
assert {ln["speech"] for ln in lines} == {0}
|
||||||
|
|
||||||
|
|
||||||
|
def test_split_verse_indentation(parsed):
|
||||||
|
poet = [ln for ln in scene(parsed, "prologo_teatro")["lines"] if ln["speaker"] == "poet"]
|
||||||
|
assert poet[0]["indent"] == 26
|
||||||
|
assert poet[1]["indent"] == 0
|
||||||
|
assert poet[0]["speech"] == 1
|
||||||
|
|
||||||
|
|
||||||
|
def test_indented_speaker_heading(parsed):
|
||||||
|
lines = scene(parsed, "prologo_cielo")["lines"]
|
||||||
|
mephisto = [ln for ln in lines if ln["text"] in ("¿A Fausto", "el Doctor?")]
|
||||||
|
assert [ln["speaker"] for ln in mephisto] == ["mephisto", "mephisto"]
|
||||||
|
assert [ln["indent"] for ln in mephisto] == [19, 0]
|
||||||
|
assert [ln["speech"] for ln in lines if ln["speaker"]] == [0, 1, 1, 2, 3, 3]
|
||||||
|
|
||||||
|
|
||||||
|
def test_speaker_note(parsed):
|
||||||
|
solo = [ln for ln in scene(parsed, "prologo_cielo")["lines"] if ln["speaker_note"]]
|
||||||
|
assert {ln["speaker_note"] for ln in solo} == {"solo"}
|
||||||
|
assert {ln["speaker"] for ln in solo} == {"mephisto"}
|
||||||
|
noche = scene(parsed, "noche")["lines"]
|
||||||
|
terrified = [ln for ln in noche if ln["speaker_note"] == "aterrado"]
|
||||||
|
assert len(terrified) == 2
|
||||||
|
assert terrified[0]["speaker"] == "faust"
|
||||||
|
|
||||||
|
|
||||||
|
def test_multiline_stage_direction(parsed):
|
||||||
|
directions = [ln for ln in scene(parsed, "noche")["lines"] if ln["speaker"] is None][1:]
|
||||||
|
assert len(directions) == 1
|
||||||
|
assert directions[0]["kind"] == "direction"
|
||||||
|
assert directions[0]["text"] == (
|
||||||
|
"Toma el libro y pronuncia misteriosamente el nombre del Espíritu. "
|
||||||
|
"Enciéndese una luz rojiza y trémula. El Espíritu aparece en ella."
|
||||||
|
)
|
||||||
|
assert directions[0]["src_line"] == 86
|
||||||
|
inline = [ln for ln in scene(parsed, "prologo_cielo")["lines"] if ln["kind"] == "direction"]
|
||||||
|
assert inline[0]["text"] == "El cielo se cierra y los Arcángeles se dispersan."
|
||||||
|
|
||||||
|
|
||||||
|
def test_italics_stripped(parsed):
|
||||||
|
texts = [ln["text"] for ln in scene(parsed, "noche")["lines"]]
|
||||||
|
assert "la Razón lo nombra" in texts
|
||||||
|
assert not any("_" in t for s in parsed["scenes"] for t in (ln["text"] for ln in s["lines"]))
|
||||||
|
|
||||||
|
|
||||||
|
def test_src_lines_point_to_raw(raw, parsed):
|
||||||
|
raw_lines = raw.split("\n")
|
||||||
|
for s in parsed["scenes"]:
|
||||||
|
for ln in s["lines"]:
|
||||||
|
if ln["kind"] == "verse":
|
||||||
|
assert raw_lines[ln["src_line"] - 1].strip().replace("_", "") == ln["text"]
|
||||||
|
|
||||||
|
|
||||||
|
def test_unknown_speaker_fails(raw):
|
||||||
|
cfg = {**CFG, "speakers": {k: v for k, v in CFG["speakers"].items() if k != "FAUSTO"}}
|
||||||
|
with pytest.raises(text.ParseError, match="FAUSTO"):
|
||||||
|
text.parse(text.clean(raw, CFG["scope"]), cfg, SHA)
|
||||||
|
|
||||||
|
|
||||||
|
def test_unknown_scene_heading_fails(raw):
|
||||||
|
cfg = {**CFG, "scenes": CFG["scenes"][:3]}
|
||||||
|
with pytest.raises(text.ParseError, match="DE NOCHE"):
|
||||||
|
text.parse(text.clean(raw, CFG["scope"]), cfg, SHA)
|
||||||
|
|
||||||
|
|
||||||
|
def test_deterministic_and_schema_valid(raw, parsed):
|
||||||
|
again = text.parse(text.clean(raw, CFG["scope"]), CFG, SHA)
|
||||||
|
assert json.dumps(again) == json.dumps(parsed)
|
||||||
|
validate(parsed, "parsed")
|
||||||
|
|
||||||
|
|
||||||
|
def test_build_hashes_raw_bytes():
|
||||||
|
data = FIXTURE.read_bytes()
|
||||||
|
_, result = text.build(data, CFG)
|
||||||
|
import hashlib
|
||||||
|
|
||||||
|
assert result["source_sha256"] == hashlib.sha256(data).hexdigest()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(not RAW.is_file(), reason="raw Gutenberg file not downloaded")
|
||||||
|
def test_real_file_integration():
|
||||||
|
work = load_work(ROOT / "works/faust")
|
||||||
|
_, parsed = text.build(RAW.read_bytes(), work.data)
|
||||||
|
assert [s["id"] for s in parsed["scenes"]] == [
|
||||||
|
"dedicatoria",
|
||||||
|
"prologo_teatro",
|
||||||
|
"prologo_cielo",
|
||||||
|
"noche",
|
||||||
|
]
|
||||||
|
known = set(work.speakers.values())
|
||||||
|
for s in parsed["scenes"]:
|
||||||
|
assert s["lines"]
|
||||||
|
assert {ln["speaker"] for ln in s["lines"]} - {None} <= known
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(not RAW.is_file(), reason="raw Gutenberg file not downloaded")
|
||||||
|
def test_cli_parse_is_byte_identical(tmp_path):
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
work_dir = tmp_path / "faust"
|
||||||
|
(work_dir / "data/raw").mkdir(parents=True)
|
||||||
|
shutil.copy(ROOT / "works/faust/work.toml", work_dir / "work.toml")
|
||||||
|
shutil.copy(RAW, work_dir / "data/raw/pg68566.txt")
|
||||||
|
args = argparse.Namespace(work=work_dir)
|
||||||
|
assert text.cmd_parse(args) == 0
|
||||||
|
first = (work_dir / "data/parsed.json").read_bytes()
|
||||||
|
assert text.cmd_parse(args) == 0
|
||||||
|
assert (work_dir / "data/parsed.json").read_bytes() == first
|
||||||
|
assert first.endswith(b"\n")
|
||||||
|
assert (work_dir / "data/play.txt").read_text(encoding="utf-8").startswith("DEDICATORIA\n")
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,798 @@
|
|||||||
|
DEDICATORIA
|
||||||
|
|
||||||
|
Tornáis de nuevo, hermosas imágenes flotantes,
|
||||||
|
que dulce y melancólico un día contemplé.
|
||||||
|
¿Asiros y teneros podré feliz como antes?
|
||||||
|
¡Aún vuela hacia vosotras el alma cuando os ve!
|
||||||
|
Venid, y medio envueltas en el brumoso velo,
|
||||||
|
a mi poder sumisas, girad en derredor;
|
||||||
|
el corazón aún late con juvenil anhelo,
|
||||||
|
si aspira vuestro mágico aliento hechizador.
|
||||||
|
|
||||||
|
Hoy vuelven de otro tiempo mejor la alegre historia,
|
||||||
|
y las risueñas sombras de la feliz edad,
|
||||||
|
y como añejo cuento, perdido en la memoria,
|
||||||
|
sus cándidos amores, su crédula amistad;
|
||||||
|
y aquel hondo lamento que en las revueltas vías
|
||||||
|
de la existencia, amargo, del corazón brotó,
|
||||||
|
y los queridos seres que en venturosos días
|
||||||
|
la momentánea dicha traidora nos robó.
|
||||||
|
|
||||||
|
No escucharéis gozosos mi renaciente canto,
|
||||||
|
vosotros para quienes la cítara pulsé;
|
||||||
|
deshízose ¡ay! el coro que comprendió su encanto,
|
||||||
|
apenas apagándose el eco débil fue.
|
||||||
|
Hoy mis acentos oye tropel desconocido,
|
||||||
|
y hasta su mismo aplauso me hiela el corazón;
|
||||||
|
los pocos que a mi canto prestaran el oído,
|
||||||
|
si alientan, lejos viven en triste dispersión.
|
||||||
|
|
||||||
|
Al reino de los puros espíritus me impulsa
|
||||||
|
afán en mí dormido, que despertando va;
|
||||||
|
mas, como el arpa eolia, que un soplo errante pulsa,
|
||||||
|
incoherentes notas mi labio al viento da.
|
||||||
|
Del alma opresa brotan suspiro tras suspiro;
|
||||||
|
ternura enervadora siento surgir en mí:
|
||||||
|
cuanto poseo y gozo como apariencia miro,
|
||||||
|
y como bien presente cuanto gocé y perdí.
|
||||||
|
|
||||||
|
PRÓLOGO EN EL TEATRO
|
||||||
|
|
||||||
|
EL DIRECTOR, EL POETA DRAMÁTICO, EL GRACIOSO
|
||||||
|
|
||||||
|
EL DIRECTOR
|
||||||
|
|
||||||
|
Decid, buenos amigos,
|
||||||
|
de mi afán camaradas y testigos,
|
||||||
|
de nuestra empresa, entre alemana gente,
|
||||||
|
¿qué pensáis? Es mi anhelo preferente
|
||||||
|
al público dar gusto:
|
||||||
|
pues que vivimos de él, nada más justo.
|
||||||
|
Con los postes y tablas bien dispuesta
|
||||||
|
está la sala: en apretadas filas
|
||||||
|
aguarda el auditorio una gran fiesta;
|
||||||
|
eleva el ceño, ensancha las pupilas
|
||||||
|
y mudo espera --¡gente bondadosa!-- que
|
||||||
|
venga a sorprenderle cualquier cosa.
|
||||||
|
En complacer al público soy ducho;
|
||||||
|
mas tranquilo no estoy, no estoy sereno:
|
||||||
|
es verdad que no ha visto nada bueno;
|
||||||
|
pero, en cambio, esa gente ha visto mucho.
|
||||||
|
¿Cómo lo dispondremos, de qué modo,
|
||||||
|
para que nuevo le parezca todo?
|
||||||
|
Porque me esponjo viendo que a torrentes,
|
||||||
|
cuando luce aún el sol y dan las cuatro,
|
||||||
|
la multitud, con gritos impacientes,
|
||||||
|
pugna en la angosta puerta del teatro;
|
||||||
|
y como en la tahona, en días de hambre,
|
||||||
|
pelea por un pan furioso enjambre,
|
||||||
|
en la taquilla así, por un asiento,
|
||||||
|
el puño esgrime el pueblo turbulento.
|
||||||
|
Tanto poder sobre la grey inquieta
|
||||||
|
no más lo tienes tú, feliz poeta:
|
||||||
|
repite hoy, pues, el sin igual portento.
|
||||||
|
|
||||||
|
EL POETA
|
||||||
|
|
||||||
|
No me hables de esa, que la austera Musa
|
||||||
|
siempre huyó con horror, turba insensata;
|
||||||
|
¡lejos de mí la multitud confusa
|
||||||
|
que al abismo fatal nos arrebata!
|
||||||
|
|
||||||
|
Llévame allá do en limpios resplandores
|
||||||
|
nos brinda el cielo goce soberano;
|
||||||
|
do la dulce amistad y los amores
|
||||||
|
obran y crean con divina mano.
|
||||||
|
|
||||||
|
Lo que allí el labio trémulo murmura,
|
||||||
|
lo que allí sueña el alma delirante,
|
||||||
|
tal vez sublimidad, tal vez locura,
|
||||||
|
lampo es quizás, que se apagó al instante.
|
||||||
|
|
||||||
|
Pero a veces también duerme el profundo
|
||||||
|
sueño, siglos y siglos, del olvido,
|
||||||
|
y aparece después y asombra al mundo
|
||||||
|
del esplendor de la beldad ceñido.
|
||||||
|
|
||||||
|
Lo brillante, que viste oropel vano,
|
||||||
|
fugaz momento dura; pero el sello
|
||||||
|
de la inmortalidad ostenta ufano
|
||||||
|
y para el porvenir vive lo bello.
|
||||||
|
|
||||||
|
EL GRACIOSO
|
||||||
|
|
||||||
|
¡El porvenir! ¡El porvenir!... ¡Manía!
|
||||||
|
Si yo en el porvenir también pensase,
|
||||||
|
a los presentes --¡respetable clase!--
|
||||||
|
¿quién los divertiría?
|
||||||
|
Quieren reír, y con razón. Da gozo
|
||||||
|
ver salir a las tablas un buen mozo;
|
||||||
|
y si sabe expresar su pensamiento,
|
||||||
|
¿para qué otro recurso?
|
||||||
|
Cuanto más numeroso es el concurso,
|
||||||
|
lo conmueve mejor. Tomad aliento
|
||||||
|
y obrad con energía.
|
||||||
|
Suelta dad a la errante Fantasía;
|
||||||
|
la Razón, la Agudeza, el Sentimiento
|
||||||
|
vayan en seguimiento;
|
||||||
|
y si queréis que la obra satisfaga,
|
||||||
|
la loca Insensatez no quede en zaga.
|
||||||
|
|
||||||
|
EL DIRECTOR
|
||||||
|
|
||||||
|
Procurad, ante todo,
|
||||||
|
que la acción sea vasta y estupenda:
|
||||||
|
el vulgo, a cuyo gusto me acomodo,
|
||||||
|
quiere ver mucho, aun cuando no lo entienda.
|
||||||
|
Si embrolláis vuestra fábula de modo
|
||||||
|
que el abobado espectador se asombre,
|
||||||
|
la victoria es cabal; sois el gran hombre.
|
||||||
|
A muchos, dadles mucho. Bien presente
|
||||||
|
tened que cada cual algo desea
|
||||||
|
hallar en la obra que a su afán se ajuste:
|
||||||
|
cuanto más varia y complicada sea,
|
||||||
|
más fácil será, pues, que cada oyente
|
||||||
|
encuentre alguna cosa que le guste.
|
||||||
|
Pensar en unidades es simpleza;
|
||||||
|
servidnos bien trinchada vuestra pieza:
|
||||||
|
¿por qué buscar armónico conjunto,
|
||||||
|
si cada cual os lo destroza al punto?
|
||||||
|
|
||||||
|
EL POETA
|
||||||
|
|
||||||
|
¡Industria degradada
|
||||||
|
a la que nunca se doblega el Arte!
|
||||||
|
La de los charlatanes tropa osada
|
||||||
|
¿ya os puso de su parte?
|
||||||
|
|
||||||
|
EL DIRECTOR
|
||||||
|
|
||||||
|
Impropio es tal reproche:
|
||||||
|
¿no ha de tomar el operario en cuenta
|
||||||
|
cuál será la más útil herramienta?
|
||||||
|
¿Para quién escribís? Aquí la noche
|
||||||
|
pasa el que sufre el tedio de la holganza,
|
||||||
|
el que llenó, en hartazgos nada módicos,
|
||||||
|
de pesado manjar la oronda panza,
|
||||||
|
o el menguado caletre de periódicos.
|
||||||
|
Vienen como al paseo,
|
||||||
|
al circo o a las máscaras: la inquieta
|
||||||
|
curiosidad les guía, o la costumbre.
|
||||||
|
Las bellas, con sus galas y su arreo,
|
||||||
|
nos dan otro espectáculo. Poeta,
|
||||||
|
¿qué es lo que sueñas en la excelsa cumbre?
|
||||||
|
¿Te envanece quizás el teatro lleno?
|
||||||
|
Baja y mira tu gente:
|
||||||
|
este se maravilla, al arte ajeno;
|
||||||
|
aquel, docto, bosteza indiferente.
|
||||||
|
Hay quien está soñando en los tesoros
|
||||||
|
que le brindan las copas o los oros;
|
||||||
|
hay quien pensando goza
|
||||||
|
que le aguardan los brazos de su moza.
|
||||||
|
¡Por ellos, vates, molestáis con grave
|
||||||
|
ansia a la Musa en su región serena!...
|
||||||
|
Dadnos mucho, y aún más, y aún más, si cabe:
|
||||||
|
ese es todo el secreto de la escena.
|
||||||
|
Satisfacer al auditorio es cosa
|
||||||
|
asaz dificultosa:
|
||||||
|
entretenedlo, divertidlo. Pero
|
||||||
|
¿qué tenéis? ¿Qué os acosa?
|
||||||
|
¿Es júbilo? ¿Es dolor?...
|
||||||
|
|
||||||
|
EL POETA
|
||||||
|
|
||||||
|
¡Vete, profano!
|
||||||
|
¡Vete! Romper mi servidumbre quiero.
|
||||||
|
Por llenar tu gaveta,
|
||||||
|
¿a conmover el corazón humano
|
||||||
|
renunciará el poeta?
|
||||||
|
Ese poder que el sentimiento excita,
|
||||||
|
ese poder que irrita
|
||||||
|
los rudos elementos y los calma,
|
||||||
|
es la armonía que en su ser palpita
|
||||||
|
y el mundo encierra en su alma.
|
||||||
|
Mientras Naturaleza indiferente
|
||||||
|
la hebra retuerce con dormida diestra
|
||||||
|
de la efímera vida renaciente;
|
||||||
|
mientras de opuestos modos,
|
||||||
|
en confusión siniestra
|
||||||
|
se agitan sin cesar los seres todos,
|
||||||
|
¿quién a la desacorde muchedumbre
|
||||||
|
el ser arranca, que distinto vive,
|
||||||
|
y en él enciende, porque al mundo alumbre,
|
||||||
|
la excelsa idea que inmortal concibe?
|
||||||
|
¿Quién de la audaz pasión fulmina el rayo?
|
||||||
|
¿Quién de sereno encanto el cielo viste
|
||||||
|
cuando en suave desmayo
|
||||||
|
halaga el sol poniente al ojo triste?
|
||||||
|
¿Quién deshoja tus flores, dulce mayo,
|
||||||
|
de la adorada virgen en la falda?
|
||||||
|
¿Quién de las ramas, viento, que despojas,
|
||||||
|
para todos los triunfos, en guirnalda
|
||||||
|
eterna teje las caducas hojas?
|
||||||
|
¿Quién el Olimpo crea
|
||||||
|
y convoca en su cima a las deidades?
|
||||||
|
La oculta fuerza de la humana idea
|
||||||
|
que revela el poeta a las edades.
|
||||||
|
|
||||||
|
EL GRACIOSO
|
||||||
|
|
||||||
|
Usad tan poderosas facultades;
|
||||||
|
la fábula forjad como querella
|
||||||
|
amorosa: se encuentran él y ella,
|
||||||
|
brota la chispa y vuelve de rechazo,
|
||||||
|
crece el sabroso anhelo,
|
||||||
|
se estrecha el tierno lazo,
|
||||||
|
insta el afán, y la razón el tino
|
||||||
|
pierde; sube el placer al quinto cielo;
|
||||||
|
y en esto, cuando nadie lo recela,
|
||||||
|
acude el desencanto repentino,
|
||||||
|
y acaba la novela.
|
||||||
|
Trazad por ese estilo un argumento.
|
||||||
|
Os da la humana vida larga tela;
|
||||||
|
cicatriz tienen todos escondida:
|
||||||
|
poned el dedo en la llagada herida,
|
||||||
|
y el ansioso interés surge al momento.
|
||||||
|
Muchos tropos, imágenes y flores;
|
||||||
|
de verdad una chispa, un mar de errores:
|
||||||
|
veréis cuán dulce sabe
|
||||||
|
al paladar del vulgo ese jarabe.
|
||||||
|
Veréis cómo devora vuestro cuento
|
||||||
|
el de la juventud crédulo coro,
|
||||||
|
a cada frase palpitando atento.
|
||||||
|
En vuestro verso fingirá sonoro
|
||||||
|
un eco cada tierno sentimiento,
|
||||||
|
y cada oyente, con feliz zozobra,
|
||||||
|
lo que hay en su alma lo verá en vuestra obra.
|
||||||
|
La sonrisa y el llanto
|
||||||
|
fáciles brotan a tan dulce encanto,
|
||||||
|
y ya el aplauso embriagador escucho.
|
||||||
|
Duro es de conmover el hombre ducho;
|
||||||
|
mas contad con el nuevo
|
||||||
|
corazón entusiasta del mancebo.
|
||||||
|
|
||||||
|
EL POETA
|
||||||
|
|
||||||
|
Vuélveme, pues, al venturoso día
|
||||||
|
en que el futuro bien me sonreía;
|
||||||
|
cuando de nobles cantos la copiosa
|
||||||
|
fuente brotaba, y ocultaba pía
|
||||||
|
el mundo nube de zafiro y rosa.
|
||||||
|
Vuélveme al tiempo aquel en que las flores
|
||||||
|
brotaban a mi paso, siempre bellas;
|
||||||
|
y cada vez mejores,
|
||||||
|
fragancias y matices y esplendores
|
||||||
|
mi no saciado afán hallaba en ellas.
|
||||||
|
Nada tenía, ni pedía al cielo;
|
||||||
|
para mí era bastante
|
||||||
|
de la verdad el generoso anhelo,
|
||||||
|
la eterna sed de la ilusión brillante.
|
||||||
|
Vuélveme la pasión nunca vencida;
|
||||||
|
la dicha humana, que profunda gime;
|
||||||
|
la fuerza que hace, al despertar la vida,
|
||||||
|
sangriento el odio y el amor sublime:
|
||||||
|
¡dame otra vez la juventud perdida!
|
||||||
|
|
||||||
|
EL GRACIOSO
|
||||||
|
|
||||||
|
¡La juventud! ¿Y para qué la quieres?
|
||||||
|
Si en dura lid acometido fueres;
|
||||||
|
si una mujer en torno de tu cuello
|
||||||
|
tendiera el brazo bello;
|
||||||
|
si allá en lejana meta
|
||||||
|
la que audaz ambiciona
|
||||||
|
el generoso atleta
|
||||||
|
vieras brillar, olímpica corona;
|
||||||
|
si tras la danza inquieta
|
||||||
|
te brindara la copa loca orgía,
|
||||||
|
llorar la juventud justo sería.
|
||||||
|
Pero en cítara de oro
|
||||||
|
el vuelo de la libre fantasía
|
||||||
|
seguir y el canto acompañar sonoro,
|
||||||
|
tarea, ¡oh mis señores los ancianos!,
|
||||||
|
es adecuada a vuestras flacas manos.
|
||||||
|
Leí en libros añejos
|
||||||
|
que niños otra vez se hacen los viejos;
|
||||||
|
mas yo diré, si a la verdad me ciño,
|
||||||
|
que al hombre la vejez sorprende aún niño.
|
||||||
|
|
||||||
|
EL DIRECTOR
|
||||||
|
|
||||||
|
Ya de cháchara inútil basta y sobra;
|
||||||
|
cerrad el pico, y manos a la obra.
|
||||||
|
Mientras charlabais, algo de provecho
|
||||||
|
pudierais haber hecho.
|
||||||
|
¿De qué sirve la hueca teoría,
|
||||||
|
si, de valor desnuda,
|
||||||
|
la incertidumbre duda?
|
||||||
|
¿Poeta sois? Pues dadnos poesía.
|
||||||
|
Qué gusta al vulgo ¿lo ignoráis acaso?
|
||||||
|
Pide su paladar licor hirviente;
|
||||||
|
hasta los bordes, pues, llenadle el vaso;
|
||||||
|
lo que hoy no hagáis, mañana os saldrá al paso,
|
||||||
|
y un día habréis perdido tristemente.
|
||||||
|
Una idea coged por los cabellos:
|
||||||
|
en nuestra patria escena
|
||||||
|
todo novel autor su drama estrena;
|
||||||
|
haced lo que hacen ellos.
|
||||||
|
Compasión no tengáis del tramoyista:
|
||||||
|
mudad decoraciones;
|
||||||
|
haced brillar a nuestra absorta vista
|
||||||
|
la luz del cuarto y la del quinto cielo,
|
||||||
|
y sin ningún recelo
|
||||||
|
derramad las estrellas a millones.
|
||||||
|
La escena está provista
|
||||||
|
de riscos y de selvas y cascadas,
|
||||||
|
de aves, monstruos y fieras.
|
||||||
|
En esas cuatro tablas mal pintadas,
|
||||||
|
orbes amontonad, cielos y esferas;
|
||||||
|
y en vuelo cadencioso,
|
||||||
|
desde el opaco mundo,
|
||||||
|
remontadnos al cielo esplendoroso
|
||||||
|
y hundidnos en el báratro profundo.
|
||||||
|
|
||||||
|
PRÓLOGO EN EL CIELO
|
||||||
|
|
||||||
|
EL SEÑOR,
|
||||||
|
_los_ EJÉRCITOS CELESTIALES. _Después_ MEFISTÓFELES.
|
||||||
|
_Los tres_ ARCÁNGELES _se adelantan_
|
||||||
|
|
||||||
|
RAFAEL
|
||||||
|
|
||||||
|
Une su añejo ritmo a la armonía
|
||||||
|
de la celeste esfera el sol sereno,
|
||||||
|
y exacto sigue la prescrita vía
|
||||||
|
con los potentes ímpetus del trueno.
|
||||||
|
Presta vigor al Ángel su mirada,
|
||||||
|
aunque él en vano sondearla intente:
|
||||||
|
como al salir risueña de la nada,
|
||||||
|
la obra inmensa de Dios brilla esplendente.
|
||||||
|
|
||||||
|
GABRIEL
|
||||||
|
|
||||||
|
Con rapidez inconcebible gira
|
||||||
|
la Tierra, fulgurante de hermosura,
|
||||||
|
y la luz del Edén rápida mira
|
||||||
|
trocada en noche tétrica y oscura.
|
||||||
|
|
||||||
|
Y el mar contra las rocas espumante
|
||||||
|
estrella pertinaz sus aguas locas,
|
||||||
|
y en el eterno círculo incesante
|
||||||
|
rodando van al par aguas y rocas.
|
||||||
|
|
||||||
|
MIGUEL
|
||||||
|
|
||||||
|
Del mar la tempestad corre a la tierra,
|
||||||
|
y de la tierra al mar vuelve rugiendo;
|
||||||
|
y en órbita fatal al mundo encierra
|
||||||
|
con fiero afán y encadenado estruendo.
|
||||||
|
|
||||||
|
Luto y desolación, terror y espanto,
|
||||||
|
el rayo, al estallar, delante envía;
|
||||||
|
pero tus mensajeros, ¡oh Dios santo!,
|
||||||
|
el curso alaban de tu hermoso día.
|
||||||
|
|
||||||
|
LOS TRES ARCÁNGELES
|
||||||
|
|
||||||
|
Presta al Ángel vigor vuestra mirada,
|
||||||
|
aunque él en vano sondearla intente;
|
||||||
|
como al salir risueña de la nada,
|
||||||
|
aún vuestra obra, Señor, brilla esplendente.
|
||||||
|
|
||||||
|
MEFISTÓFELES
|
||||||
|
|
||||||
|
Señor, pues aún a nosotros
|
||||||
|
te aproximas complaciente,
|
||||||
|
y lo que pasa allá abajo
|
||||||
|
con mil preguntas inquieres,
|
||||||
|
aquí, en medio de tus siervos,
|
||||||
|
de nuevo, Señor, me tienes.
|
||||||
|
Perdona; a mis labios faltan
|
||||||
|
palabras grandilocuentes;
|
||||||
|
pero, aunque el público silbe,
|
||||||
|
como pueda explicareme.
|
||||||
|
Reír a las mismas piedras
|
||||||
|
hiciéranles mis sandeces;
|
||||||
|
mas tú por nada del mundo
|
||||||
|
la gravedad, Señor, pierdes.
|
||||||
|
Comienzo, y nada te digo
|
||||||
|
del sol, astros ni satélites:
|
||||||
|
yo en el orbe solo veo
|
||||||
|
al mortal y sus reveses.
|
||||||
|
Ese Dios diminutivo
|
||||||
|
del pobre globo terrestre,
|
||||||
|
guarda inmutable el tipo
|
||||||
|
de su ridícula especie,
|
||||||
|
y aún hoy, como el primer día,
|
||||||
|
me maravilla y divierte.
|
||||||
|
Tan desdichado no fuera
|
||||||
|
si en su envanecida mente
|
||||||
|
no hubieras puesto el reflejo
|
||||||
|
de tu resplandor celeste.
|
||||||
|
_Razón_ lo nombra, y le sirve
|
||||||
|
para ser el más imbécil
|
||||||
|
de los que orgulloso y fatuo
|
||||||
|
llama irracionales seres.
|
||||||
|
Con permiso de tu Alteza,
|
||||||
|
a mí el hombre me parece
|
||||||
|
el cigarrón que en el campo
|
||||||
|
salta y canta eternamente,
|
||||||
|
siempre con los mismos brincos,
|
||||||
|
con la misma canción siempre.
|
||||||
|
¡Y ojalá solo en la hierba
|
||||||
|
arrastrase inquieto el vientre!
|
||||||
|
Pero en toda porquería
|
||||||
|
la atrevida nariz mete.
|
||||||
|
|
||||||
|
EL SEÑOR
|
||||||
|
|
||||||
|
¡Siempre es igual tu querella!
|
||||||
|
¿Nada más decirme quieres?
|
||||||
|
¿Nada bueno has encontrado
|
||||||
|
en el mundo?
|
||||||
|
|
||||||
|
MEFISTÓFELES
|
||||||
|
|
||||||
|
Francamente,
|
||||||
|
hallo hoy el mundo tan malo
|
||||||
|
cual pareciome otras veces.
|
||||||
|
Compasión me dan, no envidia,
|
||||||
|
los hombres y las mujeres;
|
||||||
|
y ya tentar me repugna,
|
||||||
|
Señor, a esa pobre gente.
|
||||||
|
|
||||||
|
EL SEÑOR
|
||||||
|
|
||||||
|
¿Conoces a Fausto?
|
||||||
|
|
||||||
|
MEFISTÓFELES
|
||||||
|
|
||||||
|
¿A Fausto
|
||||||
|
el Doctor?
|
||||||
|
|
||||||
|
EL SEÑOR
|
||||||
|
|
||||||
|
¡Mi siervo!
|
||||||
|
|
||||||
|
MEFISTÓFELES
|
||||||
|
|
||||||
|
¡Ese!
|
||||||
|
¡Pues me place la manera
|
||||||
|
como os sirve el tal sirviente!
|
||||||
|
Manjares no hay en la tierra
|
||||||
|
que sus labios no desdeñen;
|
||||||
|
y al espacio imaginario
|
||||||
|
le arrastra su extraña fiebre.
|
||||||
|
De su insensata locura
|
||||||
|
a medias conciencia tiene;
|
||||||
|
al cielo le pide el astro
|
||||||
|
que más puro resplandece,
|
||||||
|
y al mundo la más intensa
|
||||||
|
sensación de sus placeres;
|
||||||
|
y ni el cielo ni la tierra
|
||||||
|
juntando todos sus bienes,
|
||||||
|
llenar podrán el vacío
|
||||||
|
de su corazón estéril.
|
||||||
|
|
||||||
|
EL SEÑOR
|
||||||
|
|
||||||
|
Aún hoy, perdida la ruta,
|
||||||
|
me sirve. A sus ojos fieles
|
||||||
|
brillará la luz mañana.
|
||||||
|
Bien el hortelano entiende,
|
||||||
|
cuando el botón rompe el árbol,
|
||||||
|
qué fruto ha de prometerse.
|
||||||
|
|
||||||
|
MEFISTÓFELES
|
||||||
|
|
||||||
|
Gran Señor, ¿apuestas algo
|
||||||
|
a que tu siervo te vende,
|
||||||
|
si llevarlo por mis sendas
|
||||||
|
me dejas?
|
||||||
|
|
||||||
|
EL SEÑOR
|
||||||
|
|
||||||
|
Tentarlo puedes
|
||||||
|
mientras viva. Está en peligro
|
||||||
|
de errar quien busca y pretende
|
||||||
|
los aciertos.
|
||||||
|
|
||||||
|
MEFISTÓFELES
|
||||||
|
|
||||||
|
Te doy gracias,
|
||||||
|
Señor, pues no me apetecen
|
||||||
|
los muertos. Carnes rollizas
|
||||||
|
y frescas son mi deleite.
|
||||||
|
Si se trata de un cadáver,
|
||||||
|
cargue otro con ese huésped:
|
||||||
|
soy cual los gatos, que solo
|
||||||
|
a las ratas vivas muerden.
|
||||||
|
|
||||||
|
EL SEÑOR
|
||||||
|
|
||||||
|
Pues bien: te entrego mi siervo.
|
||||||
|
De la originaria fuente
|
||||||
|
desvía el alma piadosa
|
||||||
|
y el cauce, si sabes, tuerce;
|
||||||
|
mas confiesa tu derrota,
|
||||||
|
si un ser tan pobre y tan débil
|
||||||
|
el camino recto encuentra
|
||||||
|
entre tantas lobregueces.
|
||||||
|
|
||||||
|
MEFISTÓFELES
|
||||||
|
|
||||||
|
No ha de ser larga la prueba:
|
||||||
|
confío en mi buena suerte,
|
||||||
|
y si ella el triunfo me otorga,
|
||||||
|
los lauros no me cercenes.
|
||||||
|
El doctor morderá el polvo,
|
||||||
|
lo morderá relamiéndose,
|
||||||
|
como aquella del manzano
|
||||||
|
mi buena tía la Sierpe.
|
||||||
|
|
||||||
|
EL SEÑOR
|
||||||
|
|
||||||
|
Ancho campo te concedo.
|
||||||
|
Nunca odié a los de tu especie;
|
||||||
|
entre todos los que niegan,
|
||||||
|
genios a mi ley rebeldes,
|
||||||
|
pobre bufón malicioso,
|
||||||
|
el menos dañino tú eres.
|
||||||
|
El hombre, a menudo, en brazos
|
||||||
|
del reposo desfallece,
|
||||||
|
y es bueno que en el camino
|
||||||
|
le anime, aguije y despierte
|
||||||
|
un compañero de viaje,
|
||||||
|
aunque el mismo diablo fuere.
|
||||||
|
|
||||||
|
(_A los Arcángeles._)
|
||||||
|
|
||||||
|
La que brilla inmortal santa hermosura
|
||||||
|
gozad, hijos de Dios, en mi regazo;
|
||||||
|
la sustancia, que vive eterna y pura,
|
||||||
|
de amor os ligue con el tierno lazo,
|
||||||
|
y a la incierta apariencia del momento
|
||||||
|
forma dé vuestro fijo pensamiento.
|
||||||
|
|
||||||
|
(_El cielo se cierra y los Arcángeles se dispersan._)
|
||||||
|
|
||||||
|
MEFISTÓFELES, _solo_
|
||||||
|
|
||||||
|
De vez en cuando olvido mis rencillas,
|
||||||
|
y busco al Viejo, y pláticas entablo.
|
||||||
|
Pláceme que un Señor de campanillas
|
||||||
|
trate con atención a un pobre diablo.
|
||||||
|
|
||||||
|
DE NOCHE
|
||||||
|
|
||||||
|
_En un aposento gótico, estrecho, con elevada bóveda_, FAUSTO
|
||||||
|
_intranquilo sentado a su pupitre._
|
||||||
|
|
||||||
|
FAUSTO
|
||||||
|
|
||||||
|
Filosofía, ¡ay, Dios!, Jurisprudencia,
|
||||||
|
Medicina además, y Teología,
|
||||||
|
por desgracia también, lo estudié todo,
|
||||||
|
todo lo escudriñé con ansia viva,
|
||||||
|
y hoy, ¡pobre loco!, tras afanes tantos,
|
||||||
|
¿qué es lo que sé? Lo mismo que sabía.
|
||||||
|
Doctor me llamo, dígome maestro,
|
||||||
|
y hace diez años ya que abajo, arriba,
|
||||||
|
acá y allá, y a diestra y a siniestra,
|
||||||
|
a rastras llevo la escolar traílla.
|
||||||
|
¡Solo pude aprender que no sé nada,
|
||||||
|
y el alma en la contienda está rendida!
|
||||||
|
Bachiller o doctor, seglar o preste,
|
||||||
|
nadie su ciencia iguala con la mía;
|
||||||
|
ni escrúpulo ni duda me atormentan;
|
||||||
|
ni demonio ni infierno me intimidan;
|
||||||
|
y así, de sombras y de espantos libre,
|
||||||
|
huyó todo el encanto de mi vida.
|
||||||
|
Al hombre inútil, para el bien estéril,
|
||||||
|
nada puedo enseñar que de algo sirva,
|
||||||
|
y sin caudal, ni crédito, ni honores,
|
||||||
|
vida arrastro que un can despreciaría.
|
||||||
|
Doyme a la Magia, pues. ¡Oh, si pudiera
|
||||||
|
el vigor del Espíritu, que anima
|
||||||
|
al Verbo humano, la secreta clave
|
||||||
|
revelarme de todos los enigmas!
|
||||||
|
No con pálido afán sudara sangre
|
||||||
|
para hacer comprender lo que mi misma
|
||||||
|
razón no comprendió; y en las entrañas
|
||||||
|
penetrando del mundo, encontraría
|
||||||
|
del eterno Poder vivificante,
|
||||||
|
allí dentro, las fuentes escondidas,
|
||||||
|
y no hiciera, en insulsas peroratas,
|
||||||
|
tráfago insustancial de charla ambigua.
|
||||||
|
A mi angustioso afán, ¡oh luna llena!,
|
||||||
|
da por última vez tu luz amiga:
|
||||||
|
¡cuántas, a media noche, tus destellos
|
||||||
|
bebí ansioso, postrado en esta silla,
|
||||||
|
cuando aquí, entre volúmenes y folios,
|
||||||
|
tristes y misteriosos descendían!
|
||||||
|
¡Fuérame dado en tu viviente lumbre
|
||||||
|
feliz vagar sobre las altas cimas;
|
||||||
|
en los antros seguir los vagarosos
|
||||||
|
espíritus; flotar con tu indecisa
|
||||||
|
muriente claridad en las praderas,
|
||||||
|
y olvidando las ásperas vigilias
|
||||||
|
del inútil saber, en tu rocío
|
||||||
|
bañar feliz la sien enardecida!
|
||||||
|
¿Hasta cuándo será mi calabozo
|
||||||
|
este tugurio, madriguera indigna,
|
||||||
|
en donde hasta la pura luz del cielo
|
||||||
|
la pintada vidriera nubla y filtra?
|
||||||
|
Cíñeme en torno cúmulo de libros,
|
||||||
|
que el polvo ensucia y muerde la polilla;
|
||||||
|
papelotes y viejos pergaminos
|
||||||
|
suben al techo en apretadas pilas.
|
||||||
|
Cóncavos vidrios, botes y redomas,
|
||||||
|
extraños instrumentos hechos trizas
|
||||||
|
--¡única y triste herencia de mis padres!--,
|
||||||
|
¡mi vida llenan, si mi vida es vida!
|
||||||
|
Y pregunto: ¿por qué, medroso y débil,
|
||||||
|
mi desmayado corazón palpita?
|
||||||
|
Y pregunto: ¿por qué mortal angustia
|
||||||
|
mis flacas pulsaciones paraliza?
|
||||||
|
Lo pregunto, y sin ti, Naturaleza,
|
||||||
|
en cuyo seno Dios nos forma y cría,
|
||||||
|
en el polvo, en el humo y la carcoma,
|
||||||
|
vivo enterrado entre osamentas frías.
|
||||||
|
¡Fuera de aquí! ¡Luz! ¡Aire! ¡Campo abierto!
|
||||||
|
Este libro me da segura guía:
|
||||||
|
por la mano del docto Nostradamus
|
||||||
|
fueron todas sus páginas escritas.
|
||||||
|
El curso aprenderé de las estrellas,
|
||||||
|
y de nueva virtud mi alma provista,
|
||||||
|
sabré cómo el Espíritu invocado
|
||||||
|
al invocante Espíritu adoctrina.
|
||||||
|
Con las áridas reglas, nuestra mente
|
||||||
|
los signos misteriosos no descifra;
|
||||||
|
pues que vagáis, Espíritus, en torno,
|
||||||
|
oíd, y contestad a la voz mía.
|
||||||
|
|
||||||
|
(_Abre el libro y se presenta el signo del Macrocosmos._)
|
||||||
|
|
||||||
|
¡Cuán sabrosa fruición, ante esa imagen,
|
||||||
|
mi ser inunda y mi sentido anima!
|
||||||
|
Por mis arterias y mis nervios corre
|
||||||
|
el santo hervor de renaciente vida.
|
||||||
|
¿Fue un Dios acaso quien trazó este signo,
|
||||||
|
que el hondo afán del corazón mitiga,
|
||||||
|
al Espíritu presta nuevas alas
|
||||||
|
y a la Naturaleza el velo quita?
|
||||||
|
¿Un Dios yo mismo soy? Todo a mis ojos
|
||||||
|
aparece distinto: en esas líneas
|
||||||
|
vi a la Naturaleza productora,
|
||||||
|
que al alma está patente y sometida.
|
||||||
|
El Sabio dijo bien --hoy lo comprendo--:
|
||||||
|
«Barrera impenetrable no limita
|
||||||
|
el mundo del Espíritu: ¿está muerto
|
||||||
|
tu pobre corazón, tu alma rendida?
|
||||||
|
¡Álzate, pues, y tu terrena frente
|
||||||
|
baña en el rosicler del nuevo día!»
|
||||||
|
|
||||||
|
(_Contempla el signo._)
|
||||||
|
|
||||||
|
Todo se mueve, completando el todo,
|
||||||
|
y cada parte enlázase distinta;
|
||||||
|
los celestes Espíritus, que ascienden
|
||||||
|
y descienden al par en dobles filas,
|
||||||
|
pasan de mano en mano el áureo sello;
|
||||||
|
y en el éter batiendo alas benditas,
|
||||||
|
van de la tierra al cielo, cielo y tierra
|
||||||
|
llenando de inefables armonías.
|
||||||
|
¡Bella visión, pero visión al cabo!
|
||||||
|
¡Cómo asir y estrechar a la infinita
|
||||||
|
Naturaleza, y exprimir sus pechos!
|
||||||
|
Manantial ellos son de toda vida;
|
||||||
|
de ellos penden los cielos y la tierra;
|
||||||
|
su fecundo raudal todo lo anima,
|
||||||
|
y en vano pide mi sediento labio
|
||||||
|
una gota, no más, de esa ambrosía.
|
||||||
|
|
||||||
|
(_Vuelve la hoja involuntariamente y ve el signo del Espíritu de la
|
||||||
|
Tierra._)
|
||||||
|
|
||||||
|
¡Cuánto es diversa, Genio de la Tierra,
|
||||||
|
tu acción! Estás más cerca, y a tu vista
|
||||||
|
crecen mis bríos, cual si rojo mosto
|
||||||
|
inundara mi ser: con frente erguida
|
||||||
|
quiero lanzarme al mundo; afrontar quiero
|
||||||
|
sus infortunios, afrontar sus dichas;
|
||||||
|
provocar la tormenta, y sin espanto
|
||||||
|
ver la nave a mis pies rota y hundida.
|
||||||
|
|
||||||
|
Pero nublose el cielo;
|
||||||
|
la luna en él se eclipsa;
|
||||||
|
mi lámpara se apaga,
|
||||||
|
y ráfagas rojizas
|
||||||
|
descienden y circundan
|
||||||
|
mi sien descolorida.
|
||||||
|
Vertiginoso anhelo
|
||||||
|
dentro de mí palpita,
|
||||||
|
y siento que el Espíritu
|
||||||
|
siniestro se aproxima.
|
||||||
|
¡Rasga el velo! ¡Aparece!
|
||||||
|
¡Cuál sufre el alma mía!
|
||||||
|
Por abrir nuevo cauce
|
||||||
|
mis sentimientos lidian,
|
||||||
|
y hacia ti, fatal Genio,
|
||||||
|
todos se precipitan.
|
||||||
|
¡Preséntate, aunque fuere
|
||||||
|
al precio de mi vida!
|
||||||
|
|
||||||
|
(_Toma el libro y pronuncia misteriosamente el nombre del Espíritu.
|
||||||
|
Enciéndese una luz rojiza y trémula. El Espíritu aparece en ella._)
|
||||||
|
|
||||||
|
EL ESPÍRITU
|
||||||
|
|
||||||
|
¿Quién me llama?
|
||||||
|
|
||||||
|
FAUSTO
|
||||||
|
|
||||||
|
¡Visión espantadora!
|
||||||
|
|
||||||
|
EL ESPÍRITU
|
||||||
|
|
||||||
|
Audaz me evocas y a venir me obligas,
|
||||||
|
y ahora...
|
||||||
|
|
||||||
|
FAUSTO
|
||||||
|
|
||||||
|
Me aterra tu presencia. Aparta...
|
||||||
|
|
||||||
|
EL ESPÍRITU
|
||||||
|
|
||||||
|
Con largo afán llamábasme, y querías
|
||||||
|
ver mi semblante y escuchar mi acento;
|
||||||
|
cedo a tu voz, preséntome a tu vista:
|
||||||
|
¿qué cobarde congoja rinde y postra
|
||||||
|
tu valor sobrehumano? ¿Quién tu altiva
|
||||||
|
aspiración rindió? ¿Por qué desmaya
|
||||||
|
el corazón soberbio, que en sus vivas
|
||||||
|
palpitaciones engendraba un mundo,
|
||||||
|
y con su propia savia lo nutría?
|
||||||
|
¿Cómo sucumbes, si tender el vuelo
|
||||||
|
al par de los Espíritus querías?
|
||||||
|
¡Y eres tú Fausto, el Fausto que me invoca!
|
||||||
|
¡Eres tú Fausto, y, ¡despreciable hormiga!,
|
||||||
|
al soplo solo de mi voz, heladas
|
||||||
|
temblaron tus entrañas conmovidas!
|
||||||
|
|
||||||
|
FAUSTO
|
||||||
|
|
||||||
|
¡Oh, no, roja visión, hijo del fuego!
|
||||||
|
Soy Fausto, soy tu igual; no me intimidas.
|
||||||
|
|
||||||
|
EL ESPÍRITU
|
||||||
|
|
||||||
|
En la incesante ráfaga
|
||||||
|
de actividad continua,
|
||||||
|
vuelo de arriba abajo,
|
||||||
|
vuelo de abajo arriba;
|
||||||
|
y en ese veloz torno,
|
||||||
|
que el Tiempo mueve y gira,
|
||||||
|
mis dedos impalpables
|
||||||
|
las tenues hebras hilan
|
||||||
|
de la vida y la muerte,
|
||||||
|
de la muerte y la vida,
|
||||||
|
tejiendo a Dios, en el telar eterno,
|
||||||
|
la que viste inmortal túnica viva.
|
||||||
|
|
||||||
|
FAUSTO
|
||||||
|
|
||||||
|
¡Cómo sintiendo voy que a ti me acerco,
|
||||||
|
Espíritu que flotas y te agitas
|
||||||
|
sobre el mundo!
|
||||||
|
|
||||||
|
EL ESPÍRITU
|
||||||
|
|
||||||
|
Al Espíritu que sueñas
|
||||||
|
y tu mente concibe, te aproximas,
|
||||||
|
no a mí.
|
||||||
|
|
||||||
|
FAUSTO (_aterrado_)
|
||||||
|
|
||||||
|
¿No a ti? Pues dime: ¿a quién? ¿Imagen
|
||||||
|
soy de Dios, y ni a ti llegar podría?
|
||||||
Reference in new issue
Block a user