共同レビューでSVG画像が表示されないのはなぜですか?
共同レビューでSVGファイルを表示するために、出力ジェネレーターで設定を変更することができます。
説明
出力ジェネレーターの設定ファイルを更新して、MathMLとSVGファイルをPNGに変換し、共同レビューで表示できるようにすることができます。
解決法
-
data\commontargets-client.xmlファイルを編集して、以下を追加します:
<target name="extract_LowRes_images_cr"><echostart>extract_LowRes_images_cr</echostart> <!-- Will process the multiple images container. --> <!-- If the image to extract is a SVG or MathML file and the formatter is FOP, we need to generate a raster version of the SVG or MathML otherwise FOP will throw errors for these images --> <extract-images indir="${outgen.job.source.dir}" type="LowRes" extension=".image"> <equation mime="application/mathml+xml" ratio="1"> <param name="debug" value="0"/> </equation> <equation mime="image/svg+xml" ratio="1"> <!-- <param name="KEY_WIDTH" value="200"/>--> </equation> </extract-images> <echoend>extract_LowRes_images_cr</echoend> </target>
-
conductor-ixia-cr.xmlファイルで、承認とXHTMLターゲットを
extract_LowRes_images
からextract_LowRes_images_cr
に変更します:<target name="dita2xhtmlapproval" depends="default_dependencies, dita2xhtmlcr.init, flatten, resolve_container_keyref, dita2xhtmlcr.addchunkattr, extract_LowRes_images_cr">
<target name="dita2xhtmlcr" depends="default_dependencies, dita2xhtmlcr.init, flatten, resolve_container_keyref, dita2xhtmlcr.addchunkattr, extract_LowRes_images_cr">