Install
openclaw skills install @orionshaowswmw/persian-pdf-studyguide-forgeConvert Persian RTL PDF slide decks into offline-first, accessible, exam-review HTML study-guide bundles using a staged fidelity-first workflow, evidence-based corrections, and automated QA.
openclaw skills install @orionshaowswmw/persian-pdf-studyguide-forgeTurn operator-provided Persian (fa, RTL) PDF slide decks into self-contained, offline-first, accessible exam-review HTML bundles. This skill is fidelity-first: source-slide text is preserved inside <pre> blocks; editorial enrichment is clearly separated; every transformation is audited.
uploads_backup_original/.CHANGES_APPLIED.md.Inputs: PDFs; optionally an existing HTML bundle, local assets, and a design reference.
Outputs: index.html, one NN_topic_review.html per PDF, assets/, reports, reusable scripts, and a fresh ZIP excluding input PDFs unless requested.
Use templates/build_manifest.yaml to record actual files, source page counts, kept/dropped units, figure counts, and design constraints. Do not copy example target counts from a reference project into a new project.
page.get_text("text") in logical order.Maintain two representations: original extraction for fidelity evidence and normalized text for search/display work. Normalize NFKC, Arabic ي/ك to Persian ی/ک, Arabic-Indic digits contextually to Persian digits, unwanted bidi controls, and obvious watermark/page-number noise. Preserve ZWNJ. Escape raw HTML-sensitive text. Never silently “correct” uncertain clinical or source wording.
For search, normalize both query and cached haystack with the same function; make ی/ي, ک/ك, and digit variants searchable. Debounce input and cap highlights per element.
Each guide uses lang="fa" dir="rtl", local @font-face, semantic metadata, a skip link, hero, sticky navigation, main content, footer, to-top control, and embedded scripts. Use accessible labels, visible focus states, reduced-motion support, responsive tables, lazy local images, and print rules.
Build the instructional order as:
search → overview → text → comparisons → flashcards → mnemonics → review → quiz → bank.
The source corpus uses contiguous or documented source-page IDs, foldable <article class="source-unit"> structures, deep-linkable unit anchors, a unit TOC, and previous/index/next navigation. Open folds on desktop, collapse them on narrow screens, and automatically open a deep-linked fold.
Drop only recorded ceremonial material. Never mix additions into a source <pre>. Put educational additions in a labelled supplement with source-unit links. Ensure comparison tables, flashcards, mnemonics, review bullets, quizzes, and scenario questions trace to source units. Each question needs four options, one answer, and a valid unit reference; provide a usable no-JavaScript fallback.
Optional external educational images require operator approval, local storage, visual inspection, provenance labeling, and no watermarks, tracking, or misleading claims.
Polish only editorial UI and teaching text, never the verified source corpus. Keep the visual system consistent across guides; use semantic tables, captions, scope, image alt text, and aria-hidden="true" on decorative emoji spans. Package only freshly built output and verify that no files are newer than the ZIP.
Run and report, at minimum:
Write improvements_report.md and per-round reports containing: change, rationale, method, measured count, QA outcome, backup/snapshot location, and deferred items. Present index.html and the final report; provide the ZIP when requested.
See AGENT_DISCOVERY.md for a concise, operator-respecting use/not-use decision card. It is informational only and never authorizes autonomous installation or engagement.