Skip to main content

Emmanuel Cosquin's Lorraine folk tales (French regional folklore) provider skill for ovos-common-reading-pipeline-plugin

Project description

Cosquin Tales (provider)

A provider skill for ovos-common-reading-pipeline-plugin, delivering Emmanuel Cosquin's collection of Lorraine (French regional) folk tales.

A genuinely different register than ovos-skill-perrault-tales-style literary fairy tales: these are folk-collected, with the collector's own comparative scholarly notes ("Remarques") on how each tale relates to variants told elsewhere in France and abroad (excluded from what's read aloud - see below).

Tests PyPI version

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.

French only, no translation. Same situation as ovos-skill-andrew-lang-tales/ovos-skill-bechstein-tales, just for French. On any device language other than French, this provider never loads at all: initialize() checks the device's language against SUPPORTED_LANGUAGES = {"fr"} before loading the index or registering any bus events, logging why. Set your OVOS device's language to French (fr-*) to use this provider.

Install

pip install ovos-skill-cosquin-tales ovos-common-reading-pipeline-plugin

Story index

The story index (title, anchor per story) is bundled with this package (locale/fr-fr/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.

30 stories from volume 1 of Cosquin's "Contes populaires de Lorraine" (Project Gutenberg ebook #57892). The index was built via scripts/build_index.py, which scans for <h2 id="ROMAN_NUMERAL"> headings (the book's own per-story anchoring) and excludes non-story sections (front matter, appendices) by requiring the id to actually look like a Roman numeral.

Known gap: volume 2 not included. Volume 2 (ebook #50838) uses a different, page-number-based anchor scheme (<a id="Page_N"> nested inside an unlabelled <h2>, rather than the h2 itself carrying a roman-numeral id) - the same class of problem that excluded the Olive Fairy Book from ovos-skill-andrew-lang-tales. Not handled yet; a follow-up could add volume 2's ~30 additional stories with a second anchor-extraction path.

Story extraction stops each tale at the following <h3>REMARQUES</h3> - the scholarly comparative commentary that follows every story here is deliberately excluded from what gets read aloud, not just the next story's heading.

Collection hints

Responds to collection_hint values like "cosquin", "lorraine", "lorraine tales", "contes de lorraine", "emmanuel cosquin", matched fuzzily (see COLLECTION_ALIASES in __init__.py).

Content type

Identifies as content_type: "story" or "tale". A search with a content_type hint for anything else gets no response from this provider.

Credits

Content sourced from Project Gutenberg. Scraping/extraction/caching logic ported from ovos-skill-andrew-lang-tales and ovos-skill-bechstein-tales.

Category

Entertainment

Tags

#stories #fairytales #folklore #cosquin #lorraine #french #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

ovos_skill_cosquin_tales-0.1.1.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_skill_cosquin_tales-0.1.1-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file ovos_skill_cosquin_tales-0.1.1.tar.gz.

File metadata

  • Download URL: ovos_skill_cosquin_tales-0.1.1.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ovos_skill_cosquin_tales-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fea4ae3eec570b0269765b308dad439f4acef1d2b710041e429ce2c77332adae
MD5 da16ef2b692ceafb60eb9cb02b9752bb
BLAKE2b-256 d853ba6a595640398c5e105dd533ef7d37b95dbb924872b36dd9b2ba423689be

See more details on using hashes here.

Provenance

The following attestation bundles were made for ovos_skill_cosquin_tales-0.1.1.tar.gz:

Publisher: publish.yml on andlo/ovos-skill-cosquin-tales

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ovos_skill_cosquin_tales-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_skill_cosquin_tales-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 249577b577bec45e742c45bd67d92021eb714c6916e84339b1f57424a47862a0
MD5 262f9c75540177258d6feeeb9470068b
BLAKE2b-256 a1746a5f6a1b5ab315322a884408e86813eecdbeab4cfc7b1a1caf9023390afa

See more details on using hashes here.

Provenance

The following attestation bundles were made for ovos_skill_cosquin_tales-0.1.1-py3-none-any.whl:

Publisher: publish.yml on andlo/ovos-skill-cosquin-tales

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page