電子書基本上是一組網頁,打包成一個 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