制作一本 Ledu 图书

一本 Ledu 图书就是一个装着 JSON、音频和图片的文件夹。这里是完整的格式说明,以及在提交前检查图书的工具。

下载入门工具包Markdown 版规范JSON Schema

规范、Schema、校验工具、示例图书和 AI 说明 · ZIP,150 KB

从构想到成书

  1. 1

    从示例开始

    复制工具包里的示例图书,改名并换一个新的 id。

  2. 2

    编写章节

    手写、用自己的工具生成,或借助 AI 助手。

  3. 3

    校验

    运行校验工具,直到显示 0 个错误。

  4. 4

    提交给 Ledu

    我们会在真机上检查,并给你一个预览码。

Ideas in one minute

规范正文为英文。

  • A book is a folder (a package). Its book.json is 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 named fa.
  • Audio, images and stroke data are files inside the package, named by paths relative to the package folder.

格式详解