The Story Loader is a dynamic content delivery system designed to load, interpret and display stories, books, articles and written works directly from plain text files.
Unlike traditional document readers, the Story Loader supports embedded metadata instructions that can automatically control language settings, narration options, content notices, AI disclosures and custom actions when a work is selected.
The system consists of three major components:
This allows each story to carry its own configuration and behaviour without requiring database fields or application-level programming.
Users may access works in several ways:
The system automatically loads the selected work into the reading area.
The Story Loader supports direct linking to individual works.
Example:
https://notepad.mydigitalbook.com/?story=A_New_Earth
When the page loads, the system checks for a story parameter in the URL.
If a matching title exists within the story index, the work is automatically loaded.
This allows:
Stories are stored as plain text documents.
Metadata instructions appear at the top of the file using hash-prefixed directives.
Example:
#AI:true #CHILDREN:true #LANG:en-AU Once upon a time...
Any line beginning with # is treated as an instruction.
All remaining lines become story content.
| Instruction | Description |
|---|---|
| #LANG | Sets language preferences for the story. |
| #VOICE | Selects a preferred narration voice. |
| #RATE | Controls speech speed. |
| #PITCH | Controls speech pitch. |
| #VOLUME | Controls narration volume. |
| #AI | Marks content as AI-assisted. |
| #ADULTS | Displays adult content notices. |
| #CHILDREN | Displays general audience notices. |
| #ONSELECT | Executes actions when the story is loaded. |
The Story Loader can automatically detect language directives contained within the story file.
Example:
#LANG:en-AU
When loaded, the language setting is passed to the application's language handler.
This enables:
Stories may define preferred narration settings.
Example:
#VOICE:David #RATE:1 #PITCH:1 #VOLUME:1
When narration systems are available, these settings can be applied automatically.
The Story Loader supports embedded content notices.
#ADULTS:true
Displays a prominent warning before the story content.
#CHILDREN:true
Displays a general audience notice.
#AI:true
Displays an AI-assisted content notice before the story text.
The Story Loader includes support for East Asian languages.
When a language begins with:
The system automatically applies character separation to improve readability and processing.
This behaviour is automatic and requires no additional configuration.
Stories may define actions that occur immediately after loading.
Example:
#ONSELECT:play();
This allows content creators to trigger supported functions when a work is selected.
Typical uses include:
The integrated search engine provides real-time filtering as the user types.
Searches are performed against:
Results are updated instantly without reloading the page.
The Story Loader retrieves available works from a central index.
The index contains metadata describing available stories, including:
This architecture separates content discovery from content delivery while maintaining a lightweight implementation.
#AI:true #CHILDREN:true #LANG:en-AU #VOICE:David #RATE:1 #PITCH:1 #VOLUME:1 #ONSELECT:play(); Once upon a time there was a small dragon who dreamed of exploring the world...
When selected, the Story Loader automatically:
The Story Loader combines content discovery, metadata interpretation and dynamic document delivery into a single lightweight system. By embedding instructions directly within story files, authors can control behaviour, accessibility settings, content classification and reader interaction without requiring additional programming.
The result is a flexible platform capable of supporting books, stories, articles, educational material and AI-assisted content while remaining simple enough to operate entirely from plain text documents.
Copyright © - MYDB Notepad | Ink it while you think it. | ... | NR