製作一本 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.

格式詳解