Skip to content

fontlabapp.studios.proof_studio.generators.real_text

real_text

Real text: five prose passages drawn without replacement, English or Spanish.

What: absorbs Scriptmix "Real English Text" and "Real Spanish Text". The 24 original passages per language (Apache-2.0, original to those tools; behaviour after Pedro Arilla's Real* text scripts) moved to App data fontlabapp/proof/real_text_passages.json byte for byte. A proof is " ".join(sample(passages, 5)) + " "; text with NUL, NBSP, U+2028 or U+2029 is refused. open repeats the script; open_current opens the previewed draw. The originals write nothing but the new tab; neither does this module.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
DRAW_COUNT attribute
GENERATOR attribute
NO_FONT attribute
REFUSED attribute
make function (language: str, options: Options) -> Proof Five passages of <code>language</code><code> (seeded when </code><code>options.seed</code> is set).
open_current function (language: str, context: Context) -> None Open the previewed draw in one new tab bound to the current font's id.
open_tab function (language: str) -> None The absorbed script: capture the font, draw five passages, open one new tab.
passages function (language: str) -> tuple[str, ...] The bundled passages of <code>language</code><code> (</code><code>english</code><code> or </code><code>spanish</code>), in source order.
proof_text function (language: str, rng: random.Random | None=None) -> str Five distinct passages and a final space, as the absorbed scripts build them.