{"id":685,"date":"2012-06-25T08:00:00","date_gmt":"2012-06-24T23:00:00","guid":{"rendered":"http:\/\/blog.antenna.co.jp\/ILSoft2\/?p=685"},"modified":"2012-06-25T08:00:00","modified_gmt":"2012-06-24T23:00:00","slug":"epub3-0%e3%81%a8ah-formatter%ef%bc%88%e5%be%8c%e7%b7%a8%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/685\/","title":{"rendered":"EPUB3.0\u3068AH Formatter\uff08\u5f8c\u7de8\uff09"},"content":{"rendered":"<p>\u4eca\u56de\u306f\u3001\u65e2\u5b58\u306eEPUB\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u306b\u3001\u7d44\u7248\u4f53\u88c1\u3092\u81ea\u7531\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305fCSS\uff08AH Formatter\u306eCSS3\u62e1\u5f35\u6a5f\u80fd\u3082\u5229\u7528\u3067\u304d\u308b\uff09\u3068\u3092\u3042\u308f\u305b\u3066AH Formatter\u3067\u7d44\u7248\u3057\u3066PDF\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\u984c\u6750\u3068\u3059\u308bEPUB\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u524d\u56de\u306b\u5f15\u304d\u7d9a\u304d\u3001<a href=\"http:\/\/code.google.com\/p\/epub-samples\/wiki\/SamplesListing\">IDPF\u3067EPUB3\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u516c\u958b<\/a>\u3055\u308c\u3066\u3044\u308b<a href=\"http:\/\/code.google.com\/p\/epub-samples\/downloads\/detail?name=kusamakura-japanese-vertical-writing-20120505.epub\">\u300e\u8349\u6795\u300f\u306eEPUB\u30d5\u30a1\u30a4\u30eb<\/a>\u3092\u4f7f\u3044\u307e\u3059\u3002\u307e\u305a\u3001\u3053\u306eEPUB\u306e\u4e2d\u8eab\u3092ZIP\u89e3\u51cd\u3057\u3066XHTML\u30d5\u30a1\u30a4\u30eb\u3068CSS\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u307e\u3059\u3002<\/p>\n<h4>\u30ab\u30b9\u30bf\u30de\u30a4\u30baCSS\u306e\u6307\u5b9a<\/h4>\n<p>\u8349\u6795EPUB\u306e\u4e2d\u306b\u306f\u3001\u7e26\u66f8\u304d\u7528\u306e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8 vertical.css \u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u5185\u5bb9\u306e\u30eb\u30fc\u30c8(html)\u8981\u7d20\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff1a<\/p>\n<pre>\nhtml\n{\n-epub-writing-mode: vertical-rl;\nfont-family: 'foobar', \"HiraMinProN-W3\", \"@\uff2d\uff33 \u660e\u671d\", serif, sans-serif;\nfont-size: 14pt;\nmargin: auto 1em;\npadding: 1em 0;\nmax-height: 28em;\nbackground-color: #fff4e7;\n}\n<\/pre>\n<p>AH Formatter\u3067\u306f\u3001<a href=\"http:\/\/www.w3.org\/TR\/css3-page\/\">CSS3 Paged Media<\/a>\u3092\u62e1\u5f35\u3057\u305f\u30da\u30fc\u30b8\u306e\u6307\u5b9a\u306b\u3088\u308a\u57fa\u672c\u7248\u9762\u306e\u8a2d\u5b9a\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u30eb\u30fc\u30c8\u8981\u7d20\u306b\u3042\u308bmargin\u3084padding\u306e\u6307\u5b9a\u30011\u884c\u306e\u6587\u5b57\u6570\u3092\u5236\u9650\u3059\u308b\u305f\u3081\u306emax-height\u306e\u6307\u5b9a\u306f\u3001\u4e0d\u8981\u3067\u3059\u3002\u672c\u6587\u306efont-size\u3082\u5909\u66f4\u3057\u305f\u3044\u3067\u3059\u3002\u305d\u308c\u304b\u3089\u3001\u67f1\u3068\u30ce\u30f3\u30d6\u30eb\u3092\u3064\u3051\u305f\u3044\u3067\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001\u3053\u306eCSS\u306b\u306f\u76f4\u63a5\u624b\u3092\u52a0\u3048\u306a\u3044\u3067\u3001\u5225\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u7528\u306eCSS\u30d5\u30a1\u30a4\u30eb <a href=\"https:\/\/blog.antenna.co.jp\/ILSoft\/2012\/06\/25\/ahcustom.css\">ahcustom.css<\/a> \u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u3053\u308c\u3092AH Formatter\u306b\u6587\u66f8XHTML\u30d5\u30a1\u30a4\u30eb\u3068\u4e00\u7dd2\u306b\u6307\u5b9a\u3059\u308b\u3068\u3001ahcustom.css\u304c\u30e6\u30fc\u30b6\u30fc\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3068\u3057\u3066\u3001\u6587\u66f8\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u308bCSS\uff08\u300c\u8457\u8005\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u300d\u3068\u8a00\u3046\uff09\u3068\u3068\u3082\u306b\u7d44\u7248\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u7528\u306eCSS\u30d5\u30a1\u30a4\u30eb ahcustom.css \u3067\u4f55\u3092\u3057\u3066\u308b\u304b\u3001\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30eb\u30fc\u30c8\u8981\u7d20\u306e\u30b9\u30bf\u30a4\u30eb\u8a2d\u5b9a<\/h4>\n<pre>\nhtml {\nfont-size: 12pt !important;\nline-height: 1.75 !important;\nmargin: 0 !important;\npadding: 0 !important;\nmax-height: none !important;\n}\n<\/pre>\n<p>font-size\u3092\u5909\u66f4\u3057\u3001margin\u3001padding\u3001max-height\u306e\u5143\u306eCSS\u3067\u306e\u6307\u5b9a\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u3066\u307e\u3059\u3002!important \u306e\u6307\u5b9a\u3092\u3059\u308b\u3053\u3068\u3067\u3001\u8457\u8005\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\uff08vertical.css\uff09\u3067\u306e\u6307\u5b9a\u3092\u30e6\u30fc\u30b6\u30fc\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\uff08ahcustom.css\uff09\u306e\u6307\u5b9a\u3067\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff08!important\u6307\u5b9a\u304c\u306a\u3044\u3068\u8457\u8005\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u306e\u307b\u3046\u304c\u512a\u5148\u5ea6\u304c\u9ad8\u3044\uff09\u3002<\/p>\n<h4>\u57fa\u672c\u7248\u9762\u8a2d\u5b9a<\/h4>\n<p>\u30da\u30fc\u30b8\u30b5\u30a4\u30ba\u3084\u30de\u30fc\u30b8\u30f3\u306e\u6307\u5b9a\u306f @page \u30eb\u30fc\u30eb\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>\n@page {\nsize: A5;\nmargin: auto;\nheight: 36rem;\nwidth: 15rlh;\nbackground-color: #fff4e7;\n}\n<\/pre>\n<p>\u30da\u30fc\u30b8\u30b5\u30a4\u30ba\u3092A5\u306b\u3057\u307e\u3057\u305f\u3002margin\u3092auto\u306b\u3057\u3066\u30011\u884c\u306e\u6587\u5b57\u6570\uff08height: 36rem\uff09\u30681\u30da\u30fc\u30b8\u306e\u884c\u6570\uff08width: 15rlh\uff09\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306fAH Formatter\u3067CSS3\u3092\u62e1\u5f35\u3057\u305f\u6a5f\u80fd\u3067\u3059\u300236rem\u306erem\u306f\u3001CSS3\u3067\u306e\u5358\u4f4d\u3067\u30eb\u30fc\u30c8\u8981\u7d20\u306efont-size\u300115rlh\u306erlh\u306fAH Formatter\u306e\u62e1\u5f35\u5358\u4f4d\u3067\u3001\u30eb\u30fc\u30c8\u8981\u7d20\u306eline-height\u304b\u3089\u8a08\u7b97\u3055\u308c\u308b\u884c\u9001\u308a\u91cf\u3067\u3059\u3002<\/p>\n<h4>\u67f1\u3068\u30ce\u30f3\u30d6\u30eb\u8a2d\u5b9a<\/h4>\n<pre>\n@page :right {\n@top-right {\n-ah-writing-mode: horizontal-tb;\nfont-size: 9pt;\ncontent: \"\";\n}\n@bottom-right {\n-ah-writing-mode: horizontal-tb;\nfont-size: 9pt;\ncontent: counter(page);\n}\n}\n<\/pre>\n<pre>\n@page :left {\n@top-left {\n-ah-writing-mode: horizontal-tb;\nfont-size: 9pt;\ncontent: string(title);\n}\n@bottom-left {\n-ah-writing-mode: horizontal-tb;\nfont-size: 9pt;\ncontent: counter(page);\n}\n}\n<\/pre>\n<pre>\ntitle {\n-ah-string-set: title content();\n}\n<\/pre>\n<p>\u3053\u308c\u306f\u3001\u53f3\u30da\u30fc\u30b8\u3068\u5de6\u30da\u30fc\u30b8\u305d\u308c\u305e\u308c\u306b\u67f1\u3068\u30ce\u30f3\u30d6\u30eb\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n@top-right\u3001@bottom-right\u3001@top-left\u3001@bottom-left\u306a\u3069\u306fCSS3 Paged Media\u306e\u30de\u30fc\u30b8\u30f3\u30dc\u30c3\u30af\u30b9\uff08\u30da\u30fc\u30b8\u30d8\u30c3\u30c0\u30fc\u3001\u30da\u30fc\u30b8\u30d5\u30c3\u30bf\u30fc\uff09\u306e\u6307\u5b9a\u3067\u3059\u3002<br \/>\n\u672c\u6587\u306f\u7e26\u66f8\u304d\u3067\u3059\u304c\u3001\u30da\u30fc\u30b8\u30d8\u30c3\u30c0\u30fc\u3001\u30da\u30fc\u30b8\u30d5\u30c3\u30bf\u30fc\u5185\u306f\u6a2a\u66f8\u304d\u3068\u3059\u308b\u305f\u3081\u306b\u3001-ah-writing-mode\uff08-epub-writing-mode \u3067\u3082\u540c\u3058\uff09\u3067\u6a2a\u66f8\u304d\u306e\u6307\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\ncontent: &#8220;&#8230;&#8221;; \u306f\u67f1\u306e\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002content: &#8220;\u8349\u6795&#8221;;\u306e\u3088\u3046\u306b\u3001\u76f4\u63a5\u30bf\u30a4\u30c8\u30eb\u3092\u66f8\u304f\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u901a\u5e38\u306f\u3001XHTML\u5185\u306etitle\u8981\u7d20\u3084h1\u8981\u7d20\u3067\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\u3057\u307e\u3059\uff08-ah-string-set: title content();\uff09\u3002content: counter(page) \u3067\u30da\u30fc\u30b8\u756a\u53f7\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/blog.antenna.co.jp\/ILSoft\/kusamaku2.html\" onclick=\"window.open('https:\/\/blog.antenna.co.jp\/ILSoft\/kusamaku2.html','popup','width=1124,height=798,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.antenna.co.jp\/ILSoft\/kusamaku2-thumb.png\" width=\"562\" height=\"399\" alt=\"\"  align=\"right\"\/><\/a>\u4ee5\u4e0a\u304c\u4eca\u56de\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30baCSS\u306e\u3060\u3044\u305f\u3044\u306e\u8aac\u660e\u3067\u3059\uff08\u5b9f\u969b\u306f\u3082\u3046\u5c11\u3057\u8abf\u6574\u306e\u305f\u3081\u306e\u6307\u5b9a\u3092\u52a0\u3048\u3066\u307e\u3059\uff09\u3002\u3053\u308c\u3092\u4f7f\u3063\u3066\u7d44\u7248\u3057\u305f\u7d50\u679c\u304c\u53f3\u306e\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3054\u304f\u57fa\u672c\u7684\u306a\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u3057\u304b\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u3088\u3046\u306a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306e\u65b9\u6cd5\u3092\u4f7f\u3063\u3066\u3001\u65e2\u5b58\u306eEPUB\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u597d\u307f\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u3066\u3001PDF\u306b\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u3001\u65e2\u5b58\u306eEPUB\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u306b\u3001\u7d44\u7248\u4f53\u88c1\u3092\u81ea\u7531\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305fCSS\uff08AH Formatter\u306eCSS3\u62e1\u5f35\u6a5f\u80fd\u3082\u5229\u7528\u3067\u304d\u308b\uff09\u3068\u3092\u3042\u308f\u305b\u3066AH Formatter\u3067\u7d44\u7248\u3057\u3066PDF\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002 \u984c [&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,27],"tags":[52],"class_list":["post-685","post","type-post","status-publish","format-standard","hentry","category-ah-formatter","category-epub","tag-ah-formatter"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/685","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=685"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/685\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}