Andrew Lang's Fairy Books provider skill for ovos-common-reading-pipeline-plugin
Project description
Andrew Lang Tales (provider)
A provider skill for ovos-common-reading-pipeline-plugin, delivering Andrew Lang's twelve "Coloured" Fairy Books.
"These fairy tales are the oldest stories in the world." — Andrew Lang, preface to The Green Fairy Book
This skill has no standalone voice interface. It registers no intents and never speaks. It only answers ovos.common_reading.* bus messages, so you also need ovos-common-reading-pipeline-plugin installed and added to your pipeline config for it to be useful at all.
English only, no translation. Unlike
ovos-skill-andersen-tales/ovos-skill-grimm-tales(real per-language sources) orovos-skill-ovosblog/ovos-skill-arxiv-papers(machine-translated), this provider has no non-English content and does not attempt to translate - the stories themselves are long, literary prose, where per-request machine translation is both expensive and a much bigger quality risk than translating a short blog post or paper abstract (see ovos-common-reading-pipeline-plugin#5 for the reasoning). Your OVOS device's language needs to be set to English (en-*) to use this provider at all - on any other language, the skill never loads (see "Languages" below).
Install
pip install ovos-skill-andrew-lang-tales ovos-common-reading-pipeline-plugin
Story index
Unlike the other providers here, the story index (title, book, author,
Project Gutenberg anchor per story) is bundled with this package
(locale/en-us/index.json), not scraped live - browsing/matching needs
no internet at all. Only fetching a specific story's actual text (once
chosen) needs a live request to Project Gutenberg.
382 stories across 11 of Andrew Lang's 12 "Coloured" Fairy Books
(the 12th, the Olive Fairy Book, uses an incompatible page-based
anchor scheme on Gutenberg and isn't included - tracked as a known gap,
see scripts/build_lang_index.py's docstring).
The index was built once via scripts/build_lang_index.py, which:
- Fetches Andrew Lang's master index (Gutenberg ebook #30580)
- Repairs anchors for books Gutenberg has since re-published with a different scheme (Red and Brown Fairy Books)
- Validates every entry actually extracts real text before including it
Languages
English only. Andrew Lang's Fairy Books are sourced from Project
Gutenberg in English; no other language editions exist for this
collection, and this provider makes no attempt to machine-translate (see
the note above). On any other device language, this provider never
loads at all: initialize() checks the device's language against
SUPPORTED_LANGUAGES = {"en"} before loading the index or registering
any bus events, and logs a clear message explaining why, rather than
loading fully and declining searches at runtime. Set your OVOS device's
language to English (en-*) to use this provider.
Collection hints
Responds to collection_hint values like "andrew lang", "lang", "the
fairy books", matched fuzzily (see COLLECTION_ALIASES in
__init__.py). "lang" alone is short enough to be worth double-checking
for false positives - verified via match_one against "grimm",
"andersen", "arxiv", "language", etc.
Content type
Identifies as content_type: "story" or "tale". A search with a
content_type hint for anything else (e.g. "article", "paper") gets no
response from this provider.
Credits
Content sourced from Project Gutenberg. Scraping/extraction logic ported from ovos-skill-worldtales (archived - this provider supersedes it).
Category
Entertainment
Tags
#stories #fairytales #gutenberg #provider
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos_skill_andrew_lang_tales-0.1.3.tar.gz.
File metadata
- Download URL: ovos_skill_andrew_lang_tales-0.1.3.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
386a737c1018831017858b0d6331a0b26134a239516aafe9038e2504932dc93a
|
|
| MD5 |
c7c10cdf5b114b895ecedcd23b6605dc
|
|
| BLAKE2b-256 |
9c3b33de02d8b54276d9ef4c63b6e822ecad64f58a581faaf604b2a96c1d3a6b
|
Provenance
The following attestation bundles were made for ovos_skill_andrew_lang_tales-0.1.3.tar.gz:
Publisher:
publish.yml on andlo/ovos-skill-andrew-lang-tales
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ovos_skill_andrew_lang_tales-0.1.3.tar.gz -
Subject digest:
386a737c1018831017858b0d6331a0b26134a239516aafe9038e2504932dc93a - Sigstore transparency entry: 2217616180
- Sigstore integration time:
-
Permalink:
andlo/ovos-skill-andrew-lang-tales@ac6e6460e0827994fc2d8e96ee97595162aa9c64 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/andlo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ac6e6460e0827994fc2d8e96ee97595162aa9c64 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ovos_skill_andrew_lang_tales-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ovos_skill_andrew_lang_tales-0.1.3-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7a30e142b0a03eb896263bd4f7f4fc1d1329cf731a495cf7b0bde4be96b4d99
|
|
| MD5 |
13f8b48f0f9921dad15c0d0fee6d4f8f
|
|
| BLAKE2b-256 |
4a906426b93e43dddc5f492af4597833b8b7aa7120c84cc7a64c737b5c5642bf
|
Provenance
The following attestation bundles were made for ovos_skill_andrew_lang_tales-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on andlo/ovos-skill-andrew-lang-tales
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ovos_skill_andrew_lang_tales-0.1.3-py3-none-any.whl -
Subject digest:
f7a30e142b0a03eb896263bd4f7f4fc1d1329cf731a495cf7b0bde4be96b4d99 - Sigstore transparency entry: 2217616231
- Sigstore integration time:
-
Permalink:
andlo/ovos-skill-andrew-lang-tales@ac6e6460e0827994fc2d8e96ee97595162aa9c64 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/andlo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ac6e6460e0827994fc2d8e96ee97595162aa9c64 -
Trigger Event:
push
-
Statement type: