制作一本 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 助手和编辑器能读的文件。