NARAVISTA PORTABLE STORY GALLERY — WINDOWS / LINUX ACCEPTANCE PACKAGE
2026-11-22

PURPOSE
A fully offline story gallery. The startup script discovers NaraVista Story Creation
Wizard version 1 project JSON exports in my-stories/, builds a lightweight catalog,
and separately generates reader scripts. The browser only loads a manuscript when
Read Story is selected. The original exports are never modified.

REQUIREMENTS
Windows: Windows 10/11, built-in Windows PowerShell 5.1, and a modern browser.
Linux: Bash, Python 3.8+, xdg-open, and a modern browser.
On both: a writable extracted folder; no web server, installer, administrator
privileges, Internet, or browser-security exceptions required. Corporate application
controls or browser policies can still block local content. macOS not validated.

START
1. Extract the entire ZIP into a writable directory (do not launch from inside ZIP).
2. The package ships with three DEMO stories in my-stories/ so the flow can be tested.
   To test your own collection, replace these with your authentic NaraVista exports.
   Optionally copy artwork and/or PDF with the EXACT same basename as the JSON.
3. Windows: double-click open.cmd (or run open.cmd in Command Prompt).
4. Linux: from terminal run: bash open.sh
   (or ./open.sh if executable permission was preserved).
5. Choose Enter Story Gallery; select Read Story; use arrows and chapter/scene
   links; close reader to return to the gallery. Open PDF when a PDF is available.

FILES
index.htm          welcome, gallery and floating reader browser shell
portable.css       welcome/gallery family-friendly styling
viewer.js          lightweight catalog + on-demand manuscript loading
reader.js          existing NaraVista parchment reader
open.cmd           Windows catalog, manuscript and welcome data generator
open.sh            Linux launcher
build-index.py      Linux catalog, manuscript and welcome data generator
word-patterns.json accepted word-count patterns
welcome.json       optional personalization configuration
personal/          add optional photo (see below)
my-stories/        original user exports and matching artwork/PDF
static/            offline artwork, styles, decorative assets
stories.js         generated lightweight catalog; recreated on launch
welcome.js         generated personalization data; recreated on launch
generated/         generated individual reader scripts; recreated on launch

PERSONALIZATION
Edit welcome.json to change "title", "subtitle", "message", and "image".
Copy an optional image into personal/, e.g. personal/family.jpg.
Use only a simple ASCII image name with .png, .jpg, .jpeg, or .webp suffix.
Set "image": "personal/family.jpg". Empty string shows branded default.
Rerun the startup script after any modification. Anyone receiving the USB
can view the included image, dedication, and complete story source JSON files.

BEHAVIOR
- Only the TOP LEVEL of my-stories is scanned; each NaraVista JSON must contain
  an accepted final_copy manuscript with chapters and scenes.
- A malformed/unsupported export is skipped with a warning.
- Launch after adding/removing stories to regenerate catalogs and remove old
  generated manuscript scripts.
- Linux headless catalog test: bash open.sh --index-only
- Windows source export filenames must not contain filesystem-special characters.
- Do not open index.htm directly before running a launcher on a new copy.
- The shipped demo content is only a functional test, not actual family stories.
- If local PDF is blocked by browser policy, open PDF directly from my-stories.

VALIDATION STATUS
Windows: prior user acceptance established for on-demand manuscript loading,
reader navigation/cleanup, cover artwork, PDF, correct 4,428-word count for real
story, and personalized welcome page. The shared Gallery background change is
awaiting cross-platform confirmation.
Linux: generator was exercised locally against three demo exports, including
JS syntax checks and file output. Browser validation on Linux and Windows of
THIS final combined package still requires acceptance on your machines.
