パラグラフのレイアウトが決まったら本文に組み込む見ます。 「:script:」の問題があるので「HTML or Epub」と「PDF」で分けて自分は処理します。 インクルードするファイルを次のような形にしてみました。 // PDF用 ifdef::backend-pdf[] :scripts: cjk :pdf-themesdir: .
# Fills a PDF by adding text annotations defined in `fields.json`. See forms.md. def transform_coordinates(bbox, image_width, image_height, pdf_width, pdf_height): """Transform bounding box from image ...