製作一本 Ledu 圖書
一本 Ledu 圖書就是一個裝著 JSON、音訊和圖片的資料夾。這裡是完整的格式說明,以及在提交前檢查圖書的工具。
下載入門工具包Markdown 版規範JSON Schema
規範、Schema、驗證工具、範例圖書和 AI 說明 · ZIP,150 KB
從構想到成書
- 1
從範例開始
複製工具包裡的範例圖書,改名並換一個新的 id。
- 2
編寫章節
手寫、用自己的工具產生,或借助 AI 助手。
- 3
驗證
執行驗證工具,直到顯示 0 個錯誤。
- 4
提交給 Ledu
我們會在真機上檢查,並給你一個預覽碼。
Ideas in one minute
規範正文為英文。
- A book is a folder (a package). Its
book.jsonis the manifest: what the book is called, its cover, its languages and its table of contents. - The table of contents lists sections. Each section is one JSON file of blocks, read top to bottom: a heading, a paragraph, a word list, a dialogue, an exercise and so on.
- Sections sit directly in the book (
sections) or inside chapters (chapters), one level deep. Chapters can carry a group (a unit) for a second level in the contents. - A book teaches a target language to a reader of a base language. Base-language text is a
localized map (
{"en": "…", "zh-Hans": "…"}); target-language text is a plain string in a field namedfa. - Audio, images and stroke data are files inside the package, named by paths relative to the package folder.
格式詳解
Package and values
The book folder, and the value types every file shares.
The manifest
book.json: the book's identity, languages and table of contents.
Sections and blocks
Section files, and every block for text, lines, grammar and lesson flow.
Exercises
The six scored exercise types and how their answers are checked.
Passages and lexicon
Long texts with tap-a-word meanings and sentence audio.
Scripts and writing
Letter charts, stroke data, Japanese furigana and Chinese verse.
Validation and versions
What the validator checks, and how format versions keep books readable.
Writing a good book
Audio, ids, images and a lesson rhythm that works.
Publishing
From a validated package to a book in the Ledu app.
AI 助手
可直接貼上的提示,以及 AI 助手和編輯器能讀的檔案。