(最終更新日:2016/10/25、2019/02/05追記 *)
電書協仕様準拠版のEPUB3テンプレートを使ってご自分の書籍を作成するための編集方法です。
テンプレートは「dc_template_01_winered_ep3_ebpaj_03.epub」を例に解説しています。
確認用のリーディングシステムは『Adobe Digital Editions』(※注)、各ファイルの編集には文字コードが「UTF-8(BOM無しを推奨)」で保存できるエディタを使用します。
あらかじめこれらを《使用ツール/参考ツール》の項目を参考にインストールしておいてください。
C:. └─ebook │ dc_template_01_winered_ep3_ebpaj_03.epub │ └─files │ mimetype │ ├─META-INF │ container.xml │ └─items │ standard.opf ----------------- Package Document │ navigation-documents.xhtml --- EPUB Navigation Document │ ├─image(画像/abc順) │ cover.jpg ---------------- 表紙 │ cover_b.jpg -------------- 裏表紙 │ deco_l.png --------------- 本扉ページワンポイント(大) │ deco_s.png --------------- 奥付ページワンポイント(小) │ illust_fix.jpg ----------- 挿絵(固定レイアウト/中央ページ表示用サンプル) │ illust_fix_c.jpg --------- 挿絵(固定レイアウト/見開き中央ページ表示用サンプル) │ illust_fix_l.jpg --------- 挿絵(固定レイアウト/左ページ表示用サンプル) │ illust_fix_r.jpg --------- 挿絵(固定レイアウト/右ページ表示用サンプル) │ illust_fix_s.jpg --------- 挿絵(固定レイアウト/横位置ページ表示用サンプル) │ illust_ref.jpg ----------- 挿絵(リフロー型/キャプション付きページ用サンプル) │ illust_ref_l.jpg --------- 挿絵(リフロー型/左ページ表示用サンプル) │ illust_ref_r.jpg --------- 挿絵(リフロー型/右ページ表示用サンプル) │ ornament_l.png ----------- 本扉/奥付ページ共用ライン(下) │ ornament_u.png ----------- 本扉/奥付ページ共用ライン(上) │ ├─style(スタイルシート/abc順) │ book-style.css ----------- リフロー型/リセット用 │ fixed-layout-jp.css ------ 固定レイアウト用 │ style-advance.css--------- リフロー型/論理方向や組み方向の混在などに対応(除外可) │ style-check.css----------- リフロー型/Windowsのブラウザ確認用(納品時には読み込みを解除) │ style-darkcurrant.css----- リフロー型/版元別スタイルセット │ style-reset.css ---------- リフロー型/縦書き/横書き表示共用 │ style-standard.css-------- リフロー型/基本のスタイルセット │ └─xhtml(本文ページ/ページ順) p-cover.xhtml -------------- カバー p-titlepage.xhtml ---------- 本扉 p-caution.xhtml ------------ 電子版用の注意書き p-dedication.xhtml --------- 献辞 p-toc.xhtml ---------------- 目次 p-illustration.xhtml ------- 挿絵見本一覧 p-illust-ref-r.xhtml ------- 挿絵見本1 リフロー型/見開きの右ページ表示 p-illust-ref-l.xhtml ------- 挿絵見本2 リフロー型/見開きの左ページ表示 p-illust-ref.xhtml --------- 挿絵見本3 リフロー型/キャプション付きなりゆき表示 p-illust-fix.xhtml --------- 挿絵見本4 固定レイアウト/見開きの中央表示 p-illust-fix-s.xhtml ------- 挿絵見本5 固定レイアウト/見開きの中央ページ表示/画像横位置指定 p-illust-fix-r.xhtml ------- 挿絵見本6 固定レイアウト/見開きの右ページ表示 p-illust-fix-l.xhtml ------- 挿絵見本7 固定レイアウト/見開きの左ページ表示 p-illust-fix-c.xhtml ------- 挿絵見本8 固定レイアウト/見開きの中央表示 p-characters.xhtml --------- 登場人物 p-preface.xhtml ------------ まえがき p-prologue.xhtml ----------- プロローグ p-001-00.xhtml ------------- 扉(第一章) p-001-01.xhtml ------------- 本文(第一章 第一節) p-001-02.xhtml ------------- 本文(第一章 第二節) p-epilogue.xhtml ----------- エピローグ p-afterword.xhtml ---------- あとがき p-credit.xhtml ------------- クレジット p-colophon.xhtml ----------- 奥付 p-backcover.xhtml ---------- 裏表紙 |
XHTML 文書の「<title>~</title>」部分には、そのファイルに含まれる内容のタイトルを挿入します。複数の章を含む場合など、内容が一様でない場合は、各自ルールを決めて指示を出してください。特に指示がない場合は、作品名を挿入します。後述するパッケージ文書(OPF ファイル)の作品名情報を利用してください。メインタイトルと、サブタイトルやシリーズ名との間は、全角アキでつなぎます。ここに記されたタイトルがどのように利用されるかは、RS側の機能や考え方次第です。Web ブラウザの場合と同じように、画面のどこかに表示される可能性があります。読者の目に触れても大丈夫なように、入力された情報に間違いがないか注意してください。
―― 『電書協 EPUB 3 制作ガイド』より
1 2 3 4 5 6 7 8 9 10 11 12 13 | <? xml version = "1.0" encoding = "UTF-8" ?> <!DOCTYPE html> < html xmlns = "http://www.w3.org/1999/xhtml" xmlns:epub = "http://www.idpf.org/2007/ops" xml:lang = "ja" class = "vrtl" > < head > < meta charset = "UTF-8" /> < title >銀色の獅子 -テンプレート版- まえがき</ title > < link rel = "stylesheet" type = "text/css" href = "../style/book-style.css" /> </ head > |
1 2 3 4 5 6 7 8 9 10 11 12 13 | <? xml version = "1.0" encoding = "UTF-8" ?> <!DOCTYPE html> < html xmlns = "http://www.w3.org/1999/xhtml" xmlns:epub = "http://www.idpf.org/2007/ops" xml:lang = "ja" class = "vrtl" > < head > < meta charset = "UTF-8" /> < title >EPUB3版テンプレートの使い方 まえがき</ title > < link rel = "stylesheet" type = "text/css" href = "../style/book-style.css" /> </ head > |
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | < div class = "book-title" > < p >銀色の獅子</ p > </ div > < div class = "book-title-sub" > < p >- テンプレート版-</ p > </ div > < div class = "ornament-middle" > < p >< img src = "../image/deco_l.png" alt = "" /></ p > </ div > < div class = "author" > < p >Dark Currant</ p > </ div > |
21 22 23 24 25 26 27 28 29 30 31 32 | < div class = "book-title" > < p >EPUB3版テンプレートの使い方</ p > </ div > < div class = "ornament-middle" > < p >< img src = "../image/deco_l.png" alt = "" /></ p > </ div > < div class = "author" > < p >騨亜九 加蘭戸(著者)</ p > < p >Dark Currant(原作者)</ p > </ div > |
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | < div class = "book-title-sub" > < p >黒房すぐりの簡単作成シリーズ</ p > </ div > < div class = "book-title" > < p >EPUB3版テンプレートの使い方</ p > </ div > < div class = "book-title-sub" > < p >〈改訂版〉</ p > </ div > < div class = "ornament-middle" > < p >< img src = "../image/deco_l.png" alt = "" /></ p > </ div > < div class = "author" > < p >騨亜九 加蘭戸</ p > </ div > |
17 18 19 20 21 | < div class = "dedication" > < p >執筆の時間を与えてくれた家族と、< br /> この小説を書き始めてから虹の橋へ旅立った六匹と、< br /> 今もそばで和ませてくれている二匹の猫たちへ</ p > </ div > |
17 18 19 | < div class = "dedication" > < p >すべての本好きへ捧ぐ</ p > </ div > |
19 20 21 22 23 | < h4 class = "list-title gfont" >デルフィンデル王国</ h4 > < div class = "list-item" > < p >ガーランド……国王/先王オデイルの第一子</ p > < p >エレンディア……ガーランドの妃</ p > ------------ |
19 20 21 22 23 | < div class = "list-item" > < p >登場人物A……本編の主人公</ p > < p >登場人物B……主人公の妻</ p > < p >登場人物C……主人公の父</ p > ------------ |
15 16 17 18 19 20 21 22 23 24 25 26 27 28 | < div class = "main" > < p >聖レヴェリオスよ< br /> 我等が神、我等がすべての戦いを司る神よ< br /> あなたの御名において、我はここに誓う< br /> あなたの御心に従い、決してあなたの御名を汚さぬことを</ p > < p >< br /></ p > < div class = "align-end" > < p >――神書による〈剣の誓い〉の言葉より</ p > </ div > </ div > |
15 16 17 18 19 20 21 22 | < div class = "main" > < p >テンプレートの例では最後に引用元が入っています< br /> 引用元は下揃えで後ろ二文字空きになります< br /> 横書き表示の場合は右揃えで右二文字空きです。< br /> 引用元等がない場合はこのようになります</ p > </ div > |
17 18 19 | < div class = "credit" > < p >カバー・口絵・デザイン/Dark Currant</ p > </ div > |
17 18 19 20 21 22 23 24 25 | < div class = "credit" > < p >Dark Currant/作< br /> ○○生まれ。○○在住。代表作は『○○○○』『○○○○』など。</ p > < p >< br /></ p > < p >騨亜九 加蘭戸/カバーイラスト・口絵< br /> ○○生まれ。○○在住。『○○○○』などを手がける。</ p > </ div > |
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | < div class = "ornament-upper" > < p >< img src = "../image/ornament_u.png" alt = "" /></ p > </ div > < div class = "book-title" > < p >銀色の獅子</ p > </ div > < div class = "book-title-sub" > < p >-テンプレート版-</ p > </ div > < div class = "ornament-middle" > < p >< img src = "../image/deco_s.png" alt = "" /></ p > </ div > < div class = "author" > < p >著者 Dark Currant</ p > </ div > < div class = "copyright" > < p >(C) 2013 Dark Currant</ p > </ div > < div class = "release-date" > < p >2013年1月12日 初版</ p > < p >2016年10月15日 第三版</ p > </ div > < div class = "publisher-data link_none_underline" > < p >EPUB版制作/発行</ p > < p >『Dark Currant's Novels Site』</ p > < p >< a href = "http://www.darkcurrant.com/" >http://www.darkcurrant.com/</ a ></ p > </ div > < div class = "ornament-lower" > < p >< img src = "../image/ornament_l.png" alt = "" /></ p > </ div > |
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | < div class = "ornament-upper" > < p >< img src = "../image/ornament_u.png" alt = "" /></ p > </ div > < div class = "book-title-sub" > < p >黒房すぐりの簡単作成シリーズ</ p > </ div > < div class = "book-title" > < p >EPUB3版テンプレートの使い方</ p > </ div > < div class = "ornament-middle" > < p >< img src = "../image/deco_s.png" alt = "" /></ p > </ div > < div class = "copyright" > < p >著者 Dark Currant</ p > < p >著者 騨亜九 加蘭戸</ p > </ div > < div class = "copyright" > < p >(C) 2016 黒房すぐり</ p > </ div > < div class = "release-date" > < p >2016年10月15日 初版</ p > </ div > < div class = "publisher-data link_none_underline" > < p >EPUB版制作/発行</ p > < p >騨亜九 加蘭戸社</ p > < p >< a href = "http://www.hogehoge_dc.com/" >東京都騨亜区加蘭戸町1-1-1</ a ></ p > </ div > </ div > < div class = "ornament-lower" > < p >< img src = "../image/ornament_l.png" alt = "" /></ p > </ div > |
1 2 3 4 5 6 7 | < p > デルフィンデル王国で行われる剣闘大会は、アスティニアでは最も人気のある行事のひとつだった。</ p > < p > 希望すれば誰でも参加を許される。それは国の内外を問わず広く優秀な人材を集めようとするガーランド王の意向の表れでもあった。</ p > < p >< br /></ p > < p > この剣闘大会での規則はただひとつ、相手を殺さぬこと――ただそれのみだった。剣闘大会でその腕を認められれば傭兵として高額で雇われることも可能である。</ p > |
17 18 19 | < div class = "h-indent-4em" > < h1 id = "001-00" >その一</ h1 > </ div > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <? xml version = "1.0" encoding = "UTF-8" ?> <!DOCTYPE html> < html xmlns = "http://www.w3.org/1999/xhtml" xmlns:epub = "http://www.idpf.org/2007/ops" xml:lang = "ja" class = "vrtl" > < head > < meta charset = "UTF-8" /> < title >銀色の獅子 -テンプレート版- 第一章 第一節</ title > < link rel = "stylesheet" type = "text/css" href = "../style/book-style.css" /> </ head > < body class = "p-text" > < div class = "main" > < h2 id = "p-001-01" >ファイルの解凍</ h2 > ~~ この間のダミー本文を削除する ~~ </ div > </ body > </ html > |
14 15 16 17 18 19 20 21 22 23 | < body class = "p-text" > < div class = "main" > < h2 id = "p-001-02" >ファイルの編集</ h2 > < p > 主に目次などからジャンプするためのページ内のリンク先を示します。アンカー名は必ずしも連番になっている必要はなく、半角英数字であれば自由に付けられます。</ p > </ div > </ body > </ html > |
#f-000 p-cover.xhtml -------------- カバー ※リンクなし #f-001 p-titlepage.xhtml ---------- 本扉 ※リンクなし #f-002 p-caution.xhtml ------------ 電子版用の注意書き ※リンクなし #f-003 p-dedication.xhtml --------- 献辞 ※リンクなし #f-004 p-toc.xhtml ---------------- 目次 ※リンクなし #f-005 p-illustration.xhtml ------- 挿絵 #f-006 p-characters.xhtml --------- 登場人物 #f-007 p-preface.xhtml ------------ まえがき ※リンクなし #p-000-00 p-prologue.xhtml ----------- プロローグ #p-001-00 p-001-00.xhtml ------------- 扉(第一章) #p-001-01 p-001-01.xhtml ------------- 本文(第一章 第一節) #p-001-02 p-001-02.xhtml ------------- 本文(第一章 第二節) #p-001-03 p-001-03.xhtml ------------- 本文(第一章 第三節) ~~~~~~ #p-002-00 p-002-00.xhtml ------------- 扉(第二章) #p-002-01 p-002-01.xhtml ------------- 本文(第二章 第一節) #p-002-02 p-002-02.xhtml ------------- 本文(第二章 第二節) ~~~~~~ #p-900-00 p-epilogue.xhtml ----------- エピローグ #b-002 p-afterword.xhtml ---------- あとがき #b-003 p-credit.xhtml ------------- クレジット ※リンクなし #b-004 p-colophon.xhtml ----------- 奥付 ※リンクなし #b-005 p-backcover.xhtml ---------- 裏表紙 ※リンクなし |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <? xml version = "1.0" encoding = "UTF-8" ?> <!DOCTYPE html> < html xmlns = "http://www.w3.org/1999/xhtml" xmlns:epub = "http://www.idpf.org/2007/ops" xml:lang = "ja" > < head > < meta charset = "UTF-8" /> < title >EPUB3版テンプレートの使い方 表紙</ title > < link rel = "stylesheet" type = "text/css" href = "../style/fixed-layout-jp.css" /> < meta name = "viewport" content = "width=1200, height=1600" /> </ head > < body > < div class = "main" > < svg xmlns = "http://www.w3.org/2000/svg" version = "1.1" xmlns:xlink = "http://www.w3.org/1999/xlink" width = "100%" height = "100%" viewBox = "0 0 1200 1600" > < image width = "1200" height = "1600" xlink:href = "../image/cover.jpg" /> </ svg > </ div > </ body > </ html > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <? xml version = "1.0" encoding = "UTF-8" ?> <!DOCTYPE html> < html xmlns = "http://www.w3.org/1999/xhtml" xmlns:epub = "http://www.idpf.org/2007/ops" xml:lang = "ja" > < head > < meta charset = "UTF-8" /> < title >EPUB3版テンプレートの使い方 裏表紙</ title > < link rel = "stylesheet" type = "text/css" href = "../style/fixed-layout-jp.css" /> < meta name = "viewport" content = "width=1600, height=2560" /> </ head > < body > < div class = "main" > < svg xmlns = "http://www.w3.org/2000/svg" version = "1.1" xmlns:xlink = "http://www.w3.org/1999/xlink" width = "100%" height = "100%" viewBox = "0 0 1600 2560" > < image width = "1600" height = "2560" xlink:href = "../image/backcover.jpg" /> </ svg > </ div > </ body > </ html > |
14 15 16 17 18 | < body class = "p-image" > < div class = "main align-center" > < p >< img class = "fit" src = "../image/illust_ref_r.jpg" alt = "" /></ p > |
14 15 16 17 18 | < body class = "p-image" > < div class = "main align-center" > < p >< img class = "fit" src = "../image/illust-01.jpg" alt = "" /></ p > |
15 16 17 18 19 20 21 22 23 24 25 26 27 28 | < div class = "main align-center" > < p >< img class = "fit" src = "../image/illust_ref.jpg" alt = "" /></ p > < div class = "caption" > < div class = "align-start" > < p >< a href = "p-001-01.xhtml#illust-01" >王の言う“彼”とはファルナハトの盗賊の首領のことだった。</ a ></ p > </ div > < div class = "align-end" > < p >――< a href = "p-001-01.xhtml#illust-01" >「デルフィンデル」</ a >より</ p > </ div > </ div > </ div > |
15 16 17 18 19 20 21 22 23 | < div class = "main align-center" > < p >< img class = "fit" src = "../image/illust-01.jpg" alt = "" /></ p > < div class = "caption" > < p >< a href = "p-001-01.xhtml#illust-01" >キャプション文が長い時は、なりゆきで複数行になります。</ a ></ p > </ div > </ div > |
45 | < p > < span id = "illust-01" >王の言う〝彼〟とはファルナハトの盗賊の首領のことだった。</ span >長くその地位にあったグールドンという男の死後その後を継いだ若者で、〝銀の獅子〟という名で呼ばれていること以外、彼についてわかっていることはほとんどない。</ p > |
15 16 17 18 19 20 21 22 23 | < div class = "main align-center" > < p >< img class = "fit" src = "../image/illust-01.jpg" alt = "" /></ p > < div class = "caption" > < p >キャプション文が長い時は、なりゆきで複数行になります。</ p > </ div > </ div > |
└─Text(本文ページのファイル例/表示させるページ順) p-cover.xhtml -------------- カバー p-titlepage.xhtml ---------- 本扉 p-caution.xhtml ------------ 電子版用の注意書き p-dedication.xhtml --------- 献辞 p-toc.xhtml ---------------- 目次(※このファイル) p-illust-01.xhtml ---------- 挿絵1 p-illust-02.xhtml ---------- 挿絵2 p-illust-03.xhtml ---------- 挿絵3 #f-006 p-characters.xhtml --------- 登場人物 p-preface.xhtml ------------ まえがき #p-000-00 p-prologue.xhtml ----------- プロローグ #p-001-00 p-001-00.xhtml ------------- 扉(第一章) #p-001-01 p-001-01.xhtml ------------- 本文(第一章 第一節) #p-001-02 p-001-02.xhtml ------------- 本文(第一章 第二節) #p-001-03 p-001-03.xhtml ------------- 本文(第一章 第三節) #p-001-04 p-001-04.xhtml ------------- 本文(第一章 第四節) #p-002-00 p-002-00.xhtml ------------- 扉(第二章) #p-002-01 p-002-01.xhtml ------------- 本文(第二章 第一節) #p-002-02 p-002-02.xhtml ------------- 本文(第二章 第二節) #p-900-00 p-epilogue.xhtml ----------- エピローグ #b-002 p-afterword.xhtml ---------- あとがき p-credit.xhtml ------------- クレジット p-colophon.xhtml ----------- 奥付 p-backcover.xhtml ---------- 裏表紙 |
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | < h2 >目次</ h2 > < p >< a href = "p-illust-01.xhtml" >挿絵1</ a ></ p > < p >< a href = "p-illust-02.xhtml" >挿絵2</ a ></ p > < p >< a href = "p-illust-03.xhtml" >挿絵3</ a ></ p > < p >< a href = "p-characters.xhtml#f-006" >登場人物</ a ></ p > < p >< a href = "p-prologue.xhtml#000-00" >プロローグ</ a ></ p > < p >< br /></ p > < p >< a href = "p-001-00.xhtml#001-00" >その一</ a ></ p > < div class = "start-2em" > < p >< a href = "p-001-01.xhtml#001-01" >ファイルの解凍</ a ></ p > < p >< a href = "p-001-02.xhtml#001-02" >ファイルの編集</ a ></ p > < p >< a href = "p-001-03.xhtml#001-03" >ファイルの追加</ a ></ p > < p >< a href = "p-001-04.xhtml#001-04" >ファイルの削除</ a ></ p > </ div > < p >< br /></ p > < p >< a href = "p-002-00.xhtml#002-00" >その二</ a ></ p > < div class = "start-2em" > < p >< a href = "p-002-01.xhtml#002-01" >目次ファイルの編集</ a ></ p > < p >< a href = "p-002-02.xhtml#002-02" >ファイルの圧縮</ a ></ p > </ div > < p >< br /></ p > < p >< a href = "p-epilogue.xhtml#900-00" >エピローグ</ a ></ p > < p >< a href = "p-afterword.xhtml#b-002" >< span class = "font-0em90" >あとがき</ span ></ a ></ p > </ div > </ body > </ html > |
- リンク項目やリストの階層構造は作品内容により変更
- 版元から特に指示がないかぎり、カバーページ、目次ページ、奥付ページへのリンクのみとする
- ナビゲーション文書中にリンク以外の項目を含められるかどうかは、本仕様ではサポートしない
- ナビゲーション文書の表示のされ方については、RS に一任するものとする
- ナビゲーション文書を本文内の目次ページとしても表示させる場合は、後述する本文ページなどの例を参考に、スタイルシートの指定等を挿入すること
―― 『電書協 EPUB 3 制作ガイド』より
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <? xml version = "1.0" encoding = "UTF-8" ?> <!DOCTYPE html> < html xmlns = "http://www.w3.org/1999/xhtml" xmlns:epub = "http://www.idpf.org/2007/ops" xml:lang = "ja" > < head > < meta charset = "UTF-8" /> < title >Navigation</ title > </ head > < body > < nav epub:type = "toc" id = "toc" > < h1 >Navigation</ h1 > < ol > < li >< a href = "xhtml/p-cover.xhtml" >表紙</ a ></ li > < li >< a href = "xhtml/p-toc.xhtml" >目次</ a ></ li > < li >< a href = "xhtml/p-colophon.xhtml" >奥付</ a ></ li > </ ol > </ nav > </ body > </ html > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | <? xml version = "1.0" encoding = "UTF-8" ?> <!DOCTYPE html> < html xmlns = "http://www.w3.org/1999/xhtml" xmlns:epub = "http://www.idpf.org/2007/ops" xml:lang = "ja" > < head > < meta charset = "UTF-8" /> < title >Navigation</ title > </ head > < body > < nav epub:type = "toc" id = "toc" > < h1 >Navigation</ h1 > < ol > < li >< a href = "xhtml/p-cover.xhtml" >表紙</ a ></ li > < li >< a href = "xhtml/p-titlepage.xhtml" >本扉</ a ></ li > < li >< a href = "xhtml/p-caution.xhtml" >電子版用の注意書き</ a ></ li > < li >< a href = "xhtml/p-dedication.xhtml" >献辞</ a ></ li > < li >< a href = "xhtml/p-toc.xhtml" >目次</ a ></ li > < li >< a href = "xhtml/p-illust-01.xhtml" >挿絵1</ a ></ li > < li >< a href = "xhtml/p-illust-02.xhtml" >挿絵2</ a ></ li > < li >< a href = "xhtml/p-illust-03.xhtml" >挿絵3</ a ></ li > < li >< a href = "xhtml/p-characters.xhtml#f-006" >登場人物</ a ></ li > < li >< a href = "xhtml/p-/preface.xhtml" >まえがき</ a ></ li > < li >< a href = "xhtml/p-prologue.xhtml#p-000-00" >プロローグ</ a ></ li > < li > < a href = "xhtml/p-001-00.xhtml#p-001-00" >その一</ a > < ol > < li >< a href = "xhtml/p-001-01.xhtml#p-001-01" >ファイルの解凍</ a ></ li > < li >< a href = "xhtml/p-001-02.xhtml#p-001-02" >ファイルの編集</ a ></ li > < li >< a href = "xhtml/p-001-03.xhtml#p-001-03" >ファイルの追加</ a ></ li > < li >< a href = "xhtml/p-001-04.xhtml#p-001-04" >ファイルの削除</ a ></ li > </ ol > </ li > < li > < a href = "xhtml/p-002-00.xhtml#p-002-00" >その二</ a > < ol > < li >< a href = "xhtml/p-002-01.xhtml#p-002-01" >目次ファイルの編集</ a ></ li > < li >< a href = "xhtml/p-002-02.xhtml#p-002-02" >ファイルの圧縮</ a ></ li > </ ol > </ li > < li >< a href = "xhtml/p-epilogue.xhtml#p-900-00" >エピローグ</ a ></ li > < li >< a href = "xhtml/p-afterword.xhtml#b-002" >あとがき</ a ></ li > < li >< a href = "xhtml/p-credit.xhtml" >クレジット</ a ></ li > < li >< a href = "xhtml/p-colophon.xhtml" >奥付</ a ></ li > < li >< a href = "xhtml/p-backcover.xhtml" >裏表紙</ a ></ li > </ ol > </ nav > < nav epub:type = "landmarks" id = "guide" > < h1 >Guide</ h1 > < ol > < li >< a epub:type = "cover" href = "xhtml/p-cover.xhtml" >表紙</ a ></ li > < li >< a epub:type = "toc" href = "xhtml/p-toc.xhtml" >目次</ a ></ li > < li >< a epub:type = "bodymatter" href = "xhtml/p-titlepage.xhtml" >本編</ a ></ li > </ ol > </ nav > </ body > </ html > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <? xml version = "1.0" encoding = "utf-8" ?> < package version = "2.0" unique-identifier = "BookId" xmlns = "http://www.idpf.org/2007/opf" > < metadata xmlns:opf = "http://www.idpf.org/2007/opf" xmlns:dc = "http://purl.org/dc/elements/1.1/" > < dc:identifier opf:scheme = "UUID" id = "BookId" >urn:uuid:9dca9f66-3587-47fd-8e24-d0e153cc4fb2</ dc:identifier > < dc:language >en</ dc:language > < dc:title >[No data]</ dc:title > </ metadata > < manifest > < item id = "ncx" href = "toc.ncx" media-type = "application/x-dtbncx+xml" /> < item id = "Section0001.xhtml" href = "Text/Section0001.xhtml" media-type = "application/xhtml+xml" /> </ manifest > < spine toc = "ncx" > < itemref idref = "Section0001.xhtml" /> </ spine > < guide > </ guide > </ package > |
27 28 29 30 31 32 33 34 | <!-- 言語 --> < dc:language >ja</ dc:language > <!-- ファイルid --> < dc:identifier id = "unique-id" >urn:uuid:9dca9f66-3587-47fd-8e24-d0e153cc4fb2</ dc:identifier > <!-- 更新日 --> < meta property = "dcterms:modified" >2016-08-15T00:00:00Z</ meta > |
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | <!-- 作品名 --> < dc:title id = "title" >銀色の獅子 -テンプレート版-</ dc:title > < meta refines = "#title" property = "file-as" >ギンイロノシシ -テンプレートバン-</ meta > <!-- 著者名 --> < dc:creator id = "creator01" >Dark Currant</ dc:creator > < meta refines = "#creator01" property = "role" scheme = "marc:relators" >aut</ meta > < meta refines = "#creator01" property = "file-as" >ダーク・カラント</ meta > < meta refines = "#creator01" property = "display-seq" >1</ meta > <!-- 出版社名 --> < dc:publisher id = "publisher" >Dark Currant's Novels Site</ dc:publisher > < meta refines = "#publisher" property = "file-as" >ダーク・カラント・ノベルス・サイト</ meta > <!-- 言語 --> < dc:language >ja</ dc:language > <!-- ファイルid --> < dc:identifier id = "unique-id" >urn:uuid:cc9fce31-939f-41be-85ec-8d2d651a836d</ dc:identifier > <!-- 更新日 --> < meta property = "dcterms:modified" >2016-09-18T00:00:00Z</ meta > |
17 18 19 20 21 22 23 24 25 26 27 28 | <!-- 著者名 --> < dc:creator id = "creator01" >Dark Currant</ dc:creator > < meta refines = "#creator01" property = "role" scheme = "marc:relators" >aut</ meta > < meta refines = "#creator01" property = "file-as" >ダーク・カラント</ meta > < meta refines = "#creator01" property = "display-seq" >1</ meta > < dc:creator id = "creator02" >騨亜九 加蘭戸<</ dc:creator > < meta refines = "#creator02" property = "role" scheme = "marc:relators" >aut</ meta > < meta refines = "#creator02" property = "file-as" >ダークカラント</ meta > < meta refines = "#creator02" property = "display-seq" >2</ meta > <!-- 出版社名 --> |
└─image(画像) cover.jpg ----------- 表紙 deco_l.png ---------- 本扉ページワンポイント(大) deco_s.png ---------- 奥付ページワンポイント(小) ornament_l.png ------ 本扉/奥付ページ共用ライン(下) ornament_u.png ------ 本扉/奥付ページ共用ライン(上) illust_01.jpg ------- 挿絵1 illust_02.jpg ------- 挿絵2 illust_03.gif ------- 挿絵3 cover_b.jpg --------- 裏表紙 |
60 61 62 63 64 65 66 67 68 69 | <!-- image --> < item media-type = "image/jpeg" id = "cover" href = "image/cover.jpg" properties = "cover-image" /> < item media-type = "image/png" id = "deco_l" href = "image/deco_l.png" /> < item media-type = "image/png" id = "deco_s" href = "image/deco_s.png" /> < item media-type = "image/png" id = "ornament_l" href = "image/ornament_l.png" /> < item media-type = "image/png" id = "ornament_u" href = "image/ornament_u.png" /> < item media-type = "image/jpeg" id = "illust_01" href = "image/illust_01.jpg" /> < item media-type = "image/jpeg" id = "illust_02" href = "image/illust_02.jpg" /> < item media-type = "image/gif " id = "illust_03" href = "image/illust_03.gif" /> < item media-type = "image/jpeg" id = "cover_b" href = "image/cover_b.jpg" /> |
└─Text(本文ページ/ページ順) p-cover.xhtml -------------- カバー p-titlepage.xhtml ---------- 本扉 p-caution.xhtml ------------ 電子版用の注意書き p-dedication.xhtml --------- 献辞 p-toc.xhtml ---------------- 目次 p-illust-01.xhtml ---------- 挿絵1 ※元ファイル「p-illust-fix-r.xhtml」 p-illust-02.xhtml ---------- 挿絵2 ※元ファイル「p-illust-fix-l.xhtml」 p-illust-03.xhtml ---------- 挿絵3 ※元ファイル「p-illust-fix.xhtml」 p-characters.xhtml --------- 登場人物 p-preface.xhtml ------------ まえがき p-prologue.xhtml ----------- プロローグ p-001-00.xhtml ------------- 扉(第一章) p-001-01.xhtml ------------- 本文(第一章 第一節) p-001-02.xhtml ------------- 本文(第一章 第二節) p-001-03.xhtml ------------- 本文(第一章 第三節) p-001-04.xhtml ------------- 本文(第一章 第四節) p-002-00.xhtml ------------- 扉(第二章) p-002-01.xhtml ------------- 本文(第二章 第一節) p-002-02.xhtml ------------- 本文(第二章 第二節) p-epilogue.xhtml ----------- エピローグ p-afterword.xhtml ---------- あとがき p-credit.xhtml ------------- クレジット p-colophon.xhtml ----------- 奥付 p-backcover.xhtml ---------- 裏表紙 |
83 84 85 86 87 88 89 90 | < item media-type = "application/xhtml+xml" id = "p-illust-ref-r" href = "xhtml/p-illust-ref-r.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-illust-ref-l" href = "xhtml/p-illust-ref-l.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-illust-ref" href = "xhtml/p-illust-ref.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-illust-fix" href = "xhtml/p-illust-fix.xhtml" properties = "svg" /> < item media-type = "application/xhtml+xml" id = "p-illust-fix-s" href = "xhtml/p-illust-fix-s.xhtml" properties = "svg" /> < item media-type = "application/xhtml+xml" id = "p-illust-fix-r" href = "xhtml/p-illust-fix-r.xhtml" properties = "svg" /> < item media-type = "application/xhtml+xml" id = "p-illust-fix-l" href = "xhtml/p-illust-fix-l.xhtml" properties = "svg" /> < item media-type = "application/xhtml+xml" id = "p-illust-fix-c" href = "xhtml/p-illust-fix-c.xhtml" properties = "svg" /> |
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | <!-- xhtml --> < item media-type = "application/xhtml+xml" id = "p-cover" href = "xhtml/p-cover.xhtml" properties = "svg" /> < item media-type = "application/xhtml+xml" id = "p-titlepage" href = "xhtml/p-titlepage.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-caution" href = "xhtml/p-caution.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-dedication" href = "xhtml/p-dedication.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-toc" href = "xhtml/p-toc.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-illust-01" href = "xhtml/p-illust-01.xhtml" properties = "svg" /> < item media-type = "application/xhtml+xml" id = "p-illust-02" href = "xhtml/p-illust-02.xhtml" properties = "svg" /> < item media-type = "application/xhtml+xml" id = "p-illust-03" href = "xhtml/p-illust-03.xhtml" properties = "svg" /> < item media-type = "application/xhtml+xml" id = "p-characters" href = "xhtml/p-characters.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-preface" href = "xhtml/p-preface.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-prologue" href = "xhtml/p-prologue.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-001-00" href = "xhtml/p-001-00.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-001-01" href = "xhtml/p-001-01.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-001-02" href = "xhtml/p-001-02.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-001-03" href = "xhtml/p-001-03.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-001-04" href = "xhtml/p-001-04.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-002-00" href = "xhtml/p-002-00.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-002-01" href = "xhtml/p-002-01.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-002-02" href = "xhtml/p-002-02.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-epilogue" href = "xhtml/p-epilogue.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-afterword" href = "xhtml/p-afterword.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-credit" href = "xhtml/p-credit.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-colophon" href = "xhtml/p-colophon.xhtml" /> < item media-type = "application/xhtml+xml" id = "p-backcover" href = "xhtml/p-backcover.xhtml" properties = "svg" /> |
└─Text(本文ページ/ページ順) p-cover.xhtml -------------- カバー 中央 p-titlepage.xhtml ---------- 本扉 左 p-caution.xhtml ------------ 電子版用の注意書き なりゆき p-dedication.xhtml --------- 献辞 左 p-toc.xhtml ---------------- 目次 左 p-illust-01.xhtml ---------- 挿絵1 右 ※元ファイル「p-illust-fix-r.xhtml」 p-illust-02.xhtml ---------- 挿絵2 左 ※元ファイル「p-illust-fix-l.xhtml」 p-illust-03.xhtml ---------- 挿絵3 中央 ※元ファイル「p-illust-fix.xhtml」 p-characters.xhtml --------- 登場人物 右 p-preface.xhtml ------------ まえがき 左 p-prologue.xhtml ----------- プロローグ 左 p-001-00.xhtml ------------- 扉(第一章) 左 p-001-01.xhtml ------------- 本文(第一章 第一節) 左 p-001-02.xhtml ------------- 本文(第一章 第二節) 左 p-001-03.xhtml ------------- 本文(第一章 第三節) 左 p-001-04.xhtml ------------- 本文(第一章 第四節) 左 p-002-00.xhtml ------------- 扉(第二章) 左 p-002-01.xhtml ------------- 本文(第二章 第一節) 左 p-002-02.xhtml ------------- 本文(第二章 第二節) 左 p-epilogue.xhtml ----------- エピローグ 左 p-afterword.xhtml ---------- あとがき 左 p-credit.xhtml ------------- クレジット なりゆき p-colophon.xhtml ----------- 奥付 左 p-backcover.xhtml ---------- 裏表紙 中央 |
113 114 115 116 117 118 119 120 | < itemref linear = "yes" idref = "p-illust-ref-r" properties = "page-spread-right" /> < itemref linear = "yes" idref = "p-illust-ref-l" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-illust-ref" /> < itemref linear = "yes" idref = "p-illust-fix" properties = "rendition:layout-pre-paginated rendition:spread-none rendition:page-spread-center" /> < itemref linear = "yes" idref = "p-illust-fix-s" properties = "rendition:layout-pre-paginated rendition:orientation-portrait rendition:spread-none rendition:page-spread-center" /> < itemref linear = "yes" idref = "p-illust-fix-r" properties = "rendition:layout-pre-paginated page-spread-right" /> < itemref linear = "yes" idref = "p-illust-fix-l" properties = "rendition:layout-pre-paginated page-spread-left" /> < itemref linear = "yes" idref = "p-illust-fix-c" properties = "rendition:layout-pre-paginated rendition:spread-none rendition:page-spread-center" /> |
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | < spine page-progression-direction = "rtl" > < itemref linear = "yes" idref = "p-cover" properties = "rendition:layout-pre-paginated rendition:spread-none rendition:page-spread-center" /> < itemref linear = "yes" idref = "p-titlepage" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-caution" properties = "page-spread-right" /> < itemref linear = "yes" idref = "p-dedication" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-toc" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-illust-01" properties = "rendition:layout-pre-paginated page-spread-right" /> < itemref linear = "yes" idref = "p-illust-02" properties = "rendition:layout-pre-paginated page-spread-left" /> < itemref linear = "yes" idref = "p-illust-03" properties = "rendition:layout-pre-paginated rendition:spread-none rendition:page-spread-center" /> < itemref linear = "yes" idref = "p-characters" properties = "page-spread-right" /> < itemref linear = "yes" idref = "p-preface" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-prologue" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-001-00" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-001-01" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-001-02" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-001-03" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-001-04" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-002-00" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-002-01" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-002-02" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-epilogue" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-afterword" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-credit" properties = "page-spread-right" /> < itemref linear = "yes" idref = "p-colophon" properties = "page-spread-left" /> < itemref linear = "yes" idref = "p-backcover" properties = "rendition:layout-pre-paginated rendition:spread-none rendition:page-spread-center" /> </ spine > |
C:. └─ebook │ dc_template_01_winered_ep3_ebpaj_03.epub │ ├─epubcheck ←---- epubcheckツール用フォルダ │ │ COPYING.txt │ │ epubcheck.jar │ │ README.txt │ │ THIRD-PARTY.txt │ │ │ ├─lib │ │ │ └─licenses │ └─files ←---- 編集した各ファイル用フォルダ |
1 2 3 4 5 6 7 8 9 10 11 | @echo off echo epubファイルを作成しています. . . echo. cd epubcheck java -jar epubcheck.jar c:\ebook\files\ -mode exp -save cd .. echo. pause |
C:. └─ebook │ dc_template_01_winered_ep3_ebpaj_03.epub │ makeepubcheck.bat ←---- EpubCheck&Epub作成用バッチファイル │ ├─epubcheck ←----------- epubcheckツール用フォルダ ------------ |
epubファイルを作成しています. . . EPUB version 3.0.1 のルールを使って検証します. エラーも警告も検出されませんでした. epubcheck 完了 続行するには何かキーを押してください . . . |
7 | java -jar epubcheck.jar c:\ebook\files\ -mode exp -save 2> c:\ebook\~epubcheck.log |
iTunes のように、読み込んだ EPUB ファイル内に独自ファイルを埋め込む(そのデータは再度 epubcheck をかけるとエラーとなる)ような、ファイルの改変をしてしまう RS にご注意ください。監修時にはコピーを用いるなどして、一度他の RS に読み込ませたものを納品してしまわないことを推奨します。
―― 『電書協 EPUB 3 制作ガイド』より
rootフォルダ └─ mimetype ├─META-INFフォルダ │ container.xml └─itemフォルダ │ standard.opf │ navigation-documents.xhtml │ imageフォルダ │ styleフォルダ └─xhtmlフォルダ |