是否可以使用 Asciidoc & Fopub 将文本环绕在图像周围?
Is it possible to wrap text around an image using Asciidoc & Fopub?
我使用 asciidoc 和 fopub 后端生成 docs for Codename One。 HTML 生成非常简单,但是当我生成 PDF 时,我无法正确包装图像文本。
仅 HTML 输出支持 asciidoc 的 float
属性和提示。 align
属性适用于 fop/docbook 后端,但不会像 float
参数那样让文本环绕图像。
有没有一种方法可以使文本换行与 fop PDF 输出一起使用?
我对 asciidoc 不是很熟悉,但根据此处的答案,我认为问题出在 FOP 中:Block Image Right and Flow Text Around It?
没有那个 asciidoc 甚至无法开始使用 fop 后端环绕图像。
Apache FOP 2.0 new features 包括 一些 对浮动的支持:
Floats (fo:float) are supported with some limitations:
- the "clear" fo:float attribute is ignored; only the float attribute (left or right) is used
overlapping of floats in the Y is not handled (even in the case there would not be overlap in the X direction)
- floats that extend beyond the body region are not properly handled and will overflow past the edge of the region
if a float extends to bottom of the body region and there are footnotes in the page the float may overlap with the footnote region
- floats next to a table are not supported unless the start and end of the table happens in between the start and end of the float
所以看来现在只是从 AsciiDoc 中获取正确的 DocBook 浮点数。
我使用 asciidoc 和 fopub 后端生成 docs for Codename One。 HTML 生成非常简单,但是当我生成 PDF 时,我无法正确包装图像文本。
仅 HTML 输出支持 asciidoc 的 float
属性和提示。 align
属性适用于 fop/docbook 后端,但不会像 float
参数那样让文本环绕图像。
有没有一种方法可以使文本换行与 fop PDF 输出一起使用?
我对 asciidoc 不是很熟悉,但根据此处的答案,我认为问题出在 FOP 中:Block Image Right and Flow Text Around It?
没有那个 asciidoc 甚至无法开始使用 fop 后端环绕图像。
Apache FOP 2.0 new features 包括 一些 对浮动的支持:
Floats (fo:float) are supported with some limitations:
- the "clear" fo:float attribute is ignored; only the float attribute (left or right) is used overlapping of floats in the Y is not handled (even in the case there would not be overlap in the X direction)
- floats that extend beyond the body region are not properly handled and will overflow past the edge of the region if a float extends to bottom of the body region and there are footnotes in the page the float may overlap with the footnote region
- floats next to a table are not supported unless the start and end of the table happens in between the start and end of the float
所以看来现在只是从 AsciiDoc 中获取正确的 DocBook 浮点数。