{"id":15464,"date":"2023-01-30T16:56:33","date_gmt":"2023-01-30T07:56:33","guid":{"rendered":"https:\/\/blog.antenna.co.jp\/ILSoft2\/?p=15464"},"modified":"2023-01-30T16:56:33","modified_gmt":"2023-01-30T07:56:33","slug":"xsl-fo-%e8%a9%a6%e8%a1%8c%e9%8c%af%e8%aa%a4-svg-2-0-inline-size%e3%81%aetips","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/15464\/","title":{"rendered":"XSL-FO \u8a66\u884c\u932f\u8aa4 SVG 2.0 inline-size\u306eTips"},"content":{"rendered":"<p>2023\u5e7401\u670819\u65e5\u306b\u300e<a href=\"https:\/\/www.antenna.co.jp\/AHF\/\">Antenna House Formatter V7.3<\/a>\u300f\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\uff01<br \/>\n\u95a2\u9023\u3057\u3066\u30012023\u5e7401\u670831\u65e5\uff08\u706b\uff0916:00-17:00 \u306bZoom\u30a6\u30a7\u30d3\u30ca\u30fc\u3068\u3057\u3066\u300eAntenna House Formatter V7.3 \u30ea\u30ea\u30fc\u30b9\uff01 \u3000\u65b0\u6a5f\u80fd\u3068\u5229\u7528\u30b7\u30fc\u30f3\u7d39\u4ecb\u300f\u3092\u958b\u50ac\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/us06web.zoom.us\/webinar\/register\/4716717860524\/WN_ElB-ZrzFQzShzKGqWZMHqg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-content\/uploads\/2023\/01\/webinar-20230131-400.png\" alt=\"\" width=\"400\" height=\"125\" class=\"aligncenter size-full wp-image-15471\" \/><br \/>\nhttps:\/\/us06web.zoom.us\/webinar\/register\/4716717860524\/WN_ElB-ZrzFQzShzKGqWZMHqg<\/a><\/p>\n<p>\u65b0\u6a5f\u80fd\u7d39\u4ecb\u3068\u3044\u3046\u3053\u3068\u3067\u3001XSL-FO\u3084CSS\u30da\u30fc\u30b8\u7d44\u7248\u306e\u57fa\u790e\u77e5\u8b58\u304c\u3042\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u7279\u306b\u77e5\u8b58\u306e\u7121\u3044\u65b9\u3067\u3082\u300c\u81ea\u52d5\u7d44\u7248\u3067\u3053\u3093\u306a\u7d30\u304b\u3044\u30ec\u30a4\u30a2\u30a6\u30c8\u8abf\u6574\u304c\u52b9\u304f\u306e\u304b\u300d\u3068\u697d\u3057\u3081\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u304a\u6642\u9593\u304c\u5408\u3044\u307e\u3057\u305f\u3089\u662f\u975e\u53c2\u52a0\u767b\u9332\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\u30a6\u30a7\u30d3\u30ca\u30fc\u30b9\u30e9\u30a4\u30c9\u306fFormatter V7.3\u3067\u7d44\u7248\u3057\u3066\u3044\u307e\u3059\u3002\u30b9\u30e9\u30a4\u30c9\u306fCSS\u3067\u7d44\u3093\u3067\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u8a71\u984c\u304cSVG\u306b\u3064\u3044\u3066\u306a\u306e\u3067\u3001\u66ab\u304f\u3076\u308a\u3068\u306a\u308b\u300cXSL-FO \u8a66\u884c\u932f\u8aa4\u300d\u30b7\u30ea\u30fc\u30ba\u3092\u984c\u306b\u542b\u3081\u307e\u3057\u305f\u3002<br \/>\n\uff08\u524d\u56de\u306eXSL-FO\u8a66\u884c\u932f\u8aa4\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u4f5c\u6210\u306e\u7d9a\u304d\u306b\u3064\u3044\u3066\u306f\u307e\u305f\u6642\u9593\u304c\u3042\u308b\u3068\u304d\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u2026\u2026\uff09<\/p>\n<p>\u3055\u3066\u3001\u672c\u8a18\u4e8b\u3067\u306f\u30a6\u30a7\u30d3\u30ca\u30fc\u3067\u5272\u611b\u3059\u308b\u90e8\u5206\u306b\u3064\u3044\u3066\u3001\u5148\u884c\u3057\u3066\u88dc\u8db3\u3057\u307e\u3059\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u898b\u305f\u76ee\u304c\u5730\u5473\u306a\u306e\u3067\u3042\u307e\u308a\u6df1\u304f\u6398\u308a\u4e0b\u3052\u306a\u3044\u4e88\u5b9a\u306einline-size\u306b\u3088\u308b\u30c6\u30ad\u30b9\u30c8\u306e\u6298\u308a\u8fd4\u3057\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>\u767a\u8868\u30b9\u30e9\u30a4\u30c9\u306e\u898b\u51fa\u3057\u90e8\u5206\u306b\u306fSVG 2.0\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30ad\u30b9\u30c8\u3092\u914d\u7f6e\u3059\u308b\u3068\u304d\u3001SVG 1.x\u3067\u306f\u6298\u308a\u8fd4\u3057\u3092\u6271\u3048\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u3088\u3063\u3066\u3001\u8907\u6570\u884c\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u914d\u7f6e\u3059\u308b\u3068\u304d\u306f\u6b21\u306e\u624b\u9806\uff08\u3053\u308c\u4ee5\u5916\u306b\u3082\u306a\u304f\u306f\u306a\u3044\u3067\u3059\u304c\uff09\u3067\u3059\u3002<\/p>\n<p>\u53f3\u63c3\u3048\u30673\u884c\u3067\u30c6\u30ad\u30b9\u30c8\u3092\u63cf\u753b\u3059\u308b\u3068\u3057\u307e\u3059\u3002\u5ea7\u6a19\u306f\u9069\u5f53\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u6539\u884c\u4f4d\u7f6e\u3067\u30c6\u30ad\u30b9\u30c8\u3092\u5206\u5272\u3057\u3001\u5225\u306etspan\u306b\u5206\u3051\u308b<\/li>\n<li>\u305d\u308c\u305e\u308c\u306etspan\u306bx,y\u306e\u5ea7\u6a19\u3092\u6307\u5b9a\u3059\u308b\u30022\u884c\u76ee\u3067\u3042\u308c\u30701\u884c\u76ee\u304b\u30891\u6587\u5b57\u5206\u4ee5\u4e0a\u96e2\u308c\u305f\u4f4d\u7f6e\u306by\u3092\u8a2d\u5b9a\u3059\u308b<\/li>\n<\/ol>\n<pre><code>&lt;!-- SVG 1.x --&gt;\n&lt;text x=\"0\" y=\"0\">\n&lt;tspan text-anchor=\"end\" x=\"250\" y=\"0\">Formatter V7.3&lt;\/tspan>\n&lt;tpsan text-anchor=\"end\"  x=\"250\" y=\"10\">\u30ea\u30ea\u30fc\u30b9\uff01&lt;\/tspan>\n&lt;tspan text-anchor=\"end\"  x=\"250\" y=\"20\">\u65b0\u6a5f\u80fd\u3068\u5229\u7528\u30b7\u30fc\u30f3&lt;\/tspan>\n&lt;text><\/code><\/pre>\n<p>text-anchor=&#8221;end&#8221;\u306b\u3088\u3063\u3066\u3001x\u306e\u4f4d\u7f6e\u304c\u30c6\u30ad\u30b9\u30c8\u306e\u7d42\u7aef\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>x,y\u306fSVG\u5185\u306e\u5ea7\u6a19\u7cfb\u306a\u306e\u3067\u3001font-size:18pt\u306e\u3088\u3046\u306b\u7d76\u5bfe\u5358\u4f4d\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u3068\u5bfe\u5fdc\u3059\u308b\u9ad8\u3055\u3092\u8abf\u6574\u3059\u308b\u306e\u306f\u3061\u3087\u3063\u3068\u624b\u9593\u3067\u3059\u306d\u3002<br \/>\n\u4ed6\u306b\u3082\u62e1\u5927\u7e2e\u5c0f\u306e\u969b\u306a\u3069\u306b\u3053\u308c\u3092\u5fd8\u308c\u305a\u306b\u5909\u66f4\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30e1\u30ea\u30c3\u30c8\u3001\u3068\u3044\u3048\u308b\u304b\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u3042\u3089\u304b\u3058\u3081\u5206\u5272\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u610f\u56f3\u3057\u306a\u3044\u884c\u5206\u5272\u304c\u767a\u751f\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>SVG 2.0\u306e\u30c6\u30ad\u30b9\u30c8\u6298\u308a\u8fd4\u3057\u6a5f\u80fd\u3092\u4f7f\u3048\u3070\u3001\u6298\u308a\u8fd4\u3057\u3092\u81ea\u52d5\u5316\u53ef\u80fd\u3067\u3059\u3002Formatter V7.3\u3067\u306finline-size\u306b\u3088\u308b\u6298\u308a\u8fd4\u3057\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.w3.org\/TR\/SVG2\/text.html#InlineSize\">Scalable Vector Graphics (SVG) 2 11.4.1. The \u2018inline-size\u2019 property<\/a><\/p>\n<pre><code>\n\n&lt;text x=\"0\" y=\"0\" inline-size=\"1000\"&gt;Formatter V7.3\u30ea\u30ea\u30fc\u30b9\uff01 \u65b0\u6a5f\u80fd\u3068\u5229\u7528\u30b7\u30fc\u30f3&lt;\/text&gt;\n<\/code><\/pre>\n<p>inline-size\u306b\u306f\u30c6\u30ad\u30b9\u30c8\u306e\u884c\u9577\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u4e21\u7aef\u63c3\u3048\u304c\u3067\u304d\u306a\u3044<\/li>\n<li>\u65e5\u672c\u8a9e\u306f\u884c\u982d\u30fb\u884c\u672b\u7981\u5247\u4ee5\u5916\u3067\u306f\u57fa\u672c\u7684\u306b\u6539\u884c\u53ef\u80fd\u3068\u5224\u65ad\u3055\u308c\u308b<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u898b\u51fa\u3057\u306e\u3088\u3046\u306a\u7b87\u6240\u3067\u4f7f\u3046\u5834\u5408\u3001\u6b21\u306e\u3053\u3068\u3092\u610f\u8b58\u3057\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u307e\u3067\u624b\u52d5\u3067\u3084\u3063\u3066\u3044\u305f\u884c\u5206\u5272\u3092\u81ea\u52d5\u51e6\u7406\u306b\u3059\u308b\u90fd\u5408\u4e0a\u3001\u7279\u306b\u3001\u672c\u6587\u3067\u306a\u3044\u7b87\u6240\u3067\u306e\u884c\u5206\u5272\u898f\u5247\u306f\u610f\u8b58\u3057\u3066\u304a\u304b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<br \/>\n\u8a00\u8a9e\u51e6\u7406\u304c\u65e5\u672c\u8a9e\u306b\u306a\u3063\u3066\u3044\u308c\u3070(xml:lang=&#8221;ja&#8221;\u304c\u9069\u7528\u3055\u308c\u308b\u3088\u3046\u306a\u7b87\u6240\u3067\u3042\u308c\u3070)<br \/>\n\u610f\u56f3\u3057\u3066\u305d\u3046\u3057\u306a\u3044\u9650\u308a\u300c\u30fc\u300d\u306f\u5148\u982d\u306b\u6765\u307e\u305b\u3093\u304c\u3001\u300c\u30ea\u300d\u306f\u305d\u3046\u3067\u306f\u306a\u3044\u306e\u3067\u3001<\/p>\n<pre>Formatter V7.3 \u30ea\n\u30ea\u30fc\u30b9\uff01\n<\/pre>\n<p>\u3068\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u7279\u5b9a\u5358\u8a9e\u306e\u884c\u5206\u5272\u3092\u9632\u3050\u305f\u3081\u3001\u305d\u306e\u7b87\u6240\u306e\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u3092tspan\u306b\u3057\u3066\u3001\u5206\u5272\u7981\u6b62\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4ed8\u3051\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/>\n\u300ctspan\u3092\u4f7f\u3046\u306a\u3089\u7d50\u5c40SVG 1.x\u3068\u3042\u307e\u308a\u5909\u308f\u3089\u306a\u3044\uff1f\u300d\u3068\u601d\u308f\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u5ea7\u6a19\u306e\u660e\u793a\u304c\u306a\u304f\u306a\u308b\u306e\u3067\u51e6\u7406\u306f\u304b\u306a\u308a\u5358\u7d14\u5316\u3057\u307e\u3059\u3002<br \/>\n\u300c\u3053\u306e\u5358\u8a9e\u3067\u884c\u5206\u5272\u3055\u308c\u308b\u306e\u306f\u56f0\u308b\u304c\u3001\u3053\u3053\u4ee5\u5916\u3067\u3042\u308c\u3070\u5225\u306b\u69cb\u308f\u306a\u3044\u300d\u3068\u3044\u3046\u30b1\u30fc\u30b9\u304c\u591a\u3044\u3068\u307f\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3069\u3046\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<pre><code>&lt;!-- &lt;heading>Formatter V7.3&lt;keep>\u30ea\u30ea\u30fc\u30b9\uff01&lt;\/keep>&lt;keep>\u65b0\u6a5f\u80fd&lt;\/keep>\u3068&lt;keep>\u5229\u7528\u30b7\u30fc\u30f3&lt;\/keep>&lt;\/heading> -->\n...\n&lt;xsl:template match=\"heading\">\n  &lt;svg:svg viewBox=\"0 0 1920 1080\" >\n  ...\n    &lt;svg:style>\n      svg|tspan.keep {\n        word-break: keep-all;\n      }\n    &lt;\/svg:style>\n\n    &lt;svg:text x=\"1800\" y=\"100\" text-anchor=\"end\">&lt;xsl:apply-templates mode=\"#current\"\/>&lt;\/svg:text>\n  &lt;\/svg:svg>\n&lt;\/xsl:template>\n...\n\n&lt;xsl:template match=\"keep\">\n  &lt;svg:tspan class=\"keep\">&lt;xsl:apply-templates mode=\"#current\"\/>&lt;\/svg:tspan>\n&lt;\/xsl:template><\/code><\/pre>\n<p>\u4e0a\u8a18\u306f\u5b9f\u969b\u306b\u4f7f\u7528\u3057\u305f\u30b3\u30fc\u30c9\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u53c2\u8003\u7a0b\u5ea6\u306b\u304a\u8003\u3048\u304f\u3060\u3055\u3044\u3002<br \/>\ninline-size\u304c\u5bfe\u5fdc\u3059\u308balign\u8abf\u6574\u306ftext-anchor\u306b\u3088\u308b\u3082\u306e\u306b\u306a\u308b\u305f\u3081\u3001\u4e21\u7aef\u63c3\u3048\u306e\u81ea\u52d5\u914d\u7f6e\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u3001SVG\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u4f7f\u3046\u5834\u5408\u306e\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001FO\u306e\u30d6\u30ed\u30c3\u30af\u3084HTML\u306e\u30c6\u30ad\u30b9\u30c8\u3068\u7570\u306a\u308a\u3001<br \/>\n\u300cviewBox\u306f\u4f38\u9577\u3057\u306a\u3044\u305f\u3081\u3001\u60f3\u5b9a\u3088\u308a\u30c6\u30ad\u30b9\u30c8\u304c\u9577\u304f\u306a\u308b\u3068\u8868\u793a\u304c\u898b\u5207\u308c\u308b\u300d\u3068\u3044\u3046\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001\u300c\u30da\u30fc\u30b8\u5358\u4f4d\u3067\u8868\u793a\u9818\u57df\u3092\u78ba\u4fdd\u3067\u304d\u308b\u300d\u306a\u3069\u3001\u7279\u306b\u9ad8\u3055\u30fb\u30c6\u30ad\u30b9\u30c8\u9577\u304c\u3042\u3089\u304b\u3058\u3081\u60f3\u5b9a\u3067\u304d\u308b<br \/>\n\u7bc4\u56f2\u3067\u4f7f\u3046\u3088\u3046\u306b\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001Formatter V7.3\u3067\u5bfe\u5fdc\u3057\u305fSVG\u30d5\u30a3\u30eb\u30bf\u30fb\u30de\u30b9\u30af\u6a5f\u80fd\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u6587\u5b57\u5217\u306b\u52b9\u679c\u3092\u4ed8\u52a0\u3067\u304d\u307e\u3059\uff01<\/p>\n<figure>\n<a href=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-content\/uploads\/2023\/01\/logo-sample.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-content\/uploads\/2023\/01\/logo-sample-1024x563.png\" alt=\"\" width=\"625\" height=\"344\" class=\"aligncenter size-large wp-image-15467\" \/><\/a><figcaption>SVG\u30c6\u30ad\u30b9\u30c8\u3068\u30de\u30b9\u30af<\/figcaption><\/figure>\n<p>\u753b\u50cf\u306b\u5bfe\u3057\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u30de\u30b9\u30af\u3068\u3057\u3066\u88ab\u305b\u305f\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306eSVG\u3067\u306ftext-anchor=&#8221;middle&#8221;\u3067\u3059\u3002<br \/>\n\u5b9f\u306e\u3068\u3053\u308d\u3001SVG\u30de\u30b9\u30af\u4ee5\u5916\u306e\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u3001\u305f\u3060\u3001SVG\u30de\u30b9\u30af\u3084\u30d5\u30a3\u30eb\u30bf\u306f\u6c4e\u7528\u7684\u3067\u3059\u3057\u3001\u8ffd\u52a0\u306e\u72ec\u81ea\u4ed5\u69d8\u7121\u3057\u3067XSL-FO\u3067\u3082\u4f7f\u3048\u308b\u3068\u3044\u3046\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2023\u5e7401\u670819\u65e5\u306b\u300eAntenna House Formatter V7.3\u300f\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\uff01 \u95a2\u9023\u3057\u3066\u30012023\u5e7401\u670831\u65e5\uff08\u706b\uff0916:00-17:00 \u306bZoom\u30a6\u30a7\u30d3\u30ca\u30fc\u3068\u3057\u3066\u300eAntenna Hou [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,47,48],"tags":[52,89,254,661],"class_list":["post-15464","post","type-post","status-publish","format-standard","hentry","category-ah-formatter","category-xml-dita","category-xsl-fo","tag-ah-formatter","tag-css","tag-xml","tag-661"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/15464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/comments?post=15464"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/15464\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=15464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=15464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=15464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}