可安裝容器
一個 package 是一個 work 與一個 edition 的單一可安裝邊界。
BookField 套件格式
BookField 可以驗證、安裝並閱讀的 package
版本快照
概要
一個 package 是一個 work 與一個 edition 的單一可安裝邊界。 manifest.json 是 BookField 在 import 前讀取的公開 contract。Legacy packageKind 與 presentation fields 不屬於目前的 package shape。
一個 package 是一個 work 與一個 edition 的單一可安裝邊界。
manifest.json 是 BookField 在 import 前讀取的公開 contract。Legacy packageKind 與 presentation fields 不屬於目前的 package shape。
ReaderDoc content 已為 import 準備好,因此 reader 在 runtime 不需要解析 EPUB、HTML 或 CSS。
navigationTree 決定 reader 的 entry point 和 package 層級目錄。
當 canonical docs 或 schema files 變更時,先更新 source,再刷新此 public snapshot 與說明。
Authored study plans 只有 package 含有 schedule data 時才會寫入 manifest.json。
Package 結構
Package paths 是以 package root 為基準的 POSIX paths。Text packages 會在 reader/ 下放置 ReaderDoc files;只有 image、audio 或 video 的 packages 可省略 reader/。
manifest.json
reader/{assetId}/reader_manifest.json
reader/{assetId}/reader.rdoc
images/{assetId}.{ext}
images/{assetId}-thumb.{ext}
media/{assetId}.{ext}
locator/{profileId}.json
Manifest contract
manifest.json 是 BookField 在 import 前讀取的公開 contract。Legacy packageKind 與 presentation fields 不屬於目前的 package shape。
manifest.json 是 BookField 在 import 前讀取的公開 contract。Legacy packageKind 與 presentation fields 不屬於目前的 package shape。
一個 package 是一個 work 與一個 edition 的單一可安裝邊界。
Package paths 是以 package root 為基準的 POSIX paths。Text packages 會在 reader/ 下放置 ReaderDoc files;只有 image、audio 或 video 的 packages 可省略 reader/。
navigationTree 決定 reader 的 entry point 和 package 層級目錄。
Authored study plans 只有 package 含有 schedule data 時才會寫入 manifest.json。
當 canonical docs 或 schema files 變更時,先更新 source,再刷新此 public snapshot 與說明。
Package 建立
準備 source content、metadata、media,以及 authored schedules 或 references。
產生含 manifest metadata、ReaderDoc content、media、navigation 與 locator files 的 installable package。
在 distribution 前檢查 package structure 與 schema compatibility。
Reader import
BookField 會檢查 package shape,並拒絕 unsupported 或 malformed packages。
Supported package assets 會解開到 app-owned local storage。
ReaderDoc payloads、navigation、locator indexes、search records 與 schedules 會註冊供 offline use。
相容性
Canonical references
此公開頁面是 implementation-facing overview,不是 canonical schema source。Canonical docs 與 schema files 隨 BookField source materials 管理。
00-spec-index.md
此公開頁面是 implementation-facing overview,不是 canonical schema source。Canonical docs 與 schema files 隨 BookField source materials 管理。
04-manifest-json-schema.md
manifest.json 是 BookField 在 import 前讀取的公開 contract。Legacy packageKind 與 presentation fields 不屬於目前的 package shape。
08-reader-app-design.md
BookField 在本機讀取 installed package
schemas/manifest-v5.schema.json / readerdoc-v3.schema.json
此公開頁面是 implementation-facing overview,不是 canonical schema source。Canonical docs 與 schema files 隨 BookField source materials 管理。
當 canonical docs 或 schema files 變更時,先更新 source,再刷新此 public snapshot 與說明。
返回 product overview,或討論 wbpkg distribution flow 是否符合你的 content model。