mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-09 04:06:42 +00:00
One predicate now answers what no translator may be handed, and both ends of the pipeline read it: the extraction withholds the message from the catalog, the client refuses to send it. What the catalogs keep back is exactly what the client would have declined. Two shapes qualify. A message with no word is markup. A message that is only a name is a label: a brand, this software, a credited person, or a bare URL. Inside a sentence the name stays protected by the span machinery and the sentence still needs translating. Three details each come from a finding. The comparison runs against the prose, because **Mastodon** is not the string Mastodon and prose() already strips the emphasis. Case is ignored, because a page writes the name the way its sentence needs it and **mailu** is still Mailu. The address is matched first, on the raw text, because masking protects the address of mailto:a@b.c but leaves the scheme behind and its prose reads as a word. Measured over the docs domain: 22745 messages fall to 22402 with zero warnings, and 145 of the 377 removed entries carried a corrupted brand that was being shipped - Keycloak read Schluesselmantel, OpenProject read offenes Projekt, micro read Mikrowelle. SOFTWARE_NAME is read from the group_vars SPOT beside SOFTWARE_REPOSITORY. It lived there already and no python had ever read it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
16 lines
692 B
Python
16 lines
692 B
Python
"""The software's identity: its repository, read from the group_vars SPOT, its author and address."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from utils.cache.files import PROJECT_ROOT
|
|
from utils.cache.yaml import load_yaml
|
|
|
|
SOFTWARE_VARS = PROJECT_ROOT / "group_vars" / "all" / "00_general.yml"
|
|
SOFTWARE_NAME: str = load_yaml(str(SOFTWARE_VARS))["SOFTWARE_NAME"]
|
|
SOFTWARE_REPOSITORY: str = load_yaml(str(SOFTWARE_VARS))["SOFTWARE_REPOSITORY"]
|
|
SOFTWARE_AUTHOR = "Kevin Veen-Birkenbach"
|
|
SOFTWARE_EMAIL = "kevinveenbirkenbach@infinito.nexus"
|
|
SOFTWARE_URL = "https://infinito.nexus"
|
|
SOFTWARE_CONTACT = "contact@infinito.nexus"
|
|
SOFTWARE_LICENSE = "Infinito.Nexus Community License (Non-Commercial)"
|