电子书基本上是一组网页打包在一个 zip 文件中,其布局由电子书阅读器控制,页面可以重新排版等。
PTXprint 是一个 Python 前端,用于对 USFM 进行一些预处理,并生成 XeTeX 的配置文件,然后由 XeTeX 生成 PDF 文件,控制页面上每个字母的位置、脚注等。
虽然有一些方法可以从某些特定类型的 TeX 输入文件(例如 LaTeX)的较小子集生成 HTML,但我非常非常惊讶它们能可靠地从 ptx2pdf 宏中产生可用的结果,直接从 USFM 生成 HTML 会更好。
我不确定,但我在想 scripture app builder 是否具备这种能力。对于 SAB(假设它目前还没有此功能)来说,转向 epub 要比 PTXprint 容易得多。
An ebook is basically a set of webpages wrapped up in a zip file, where the layout is controlled by the ebook reader and the page can be reflowed, etc.
PTXprint is a python front-end to do some pre-processing on the USFM and otherwise to generate the configuration files for XeTeX, which then generates PDF files, controlling the positioning of each letter on the page, footnotes, etc.
While there are some ways of generating HTML from a small subset of certain flavours of TeX input files (e.g. LaTeX) I’d be very very surprised if they reliably produced usable results from the ptx2pdf macros, it would be better to go directly from the USFM to HTML.
I don’t know, but I wonder if scripture app builder has the capability. It would be a much much smaller leap to epub for SAB (assuming it doesn’t currently do it) than for PTXprint.
机器翻译自 English