Kindle 出版
Kindle 可能性 Kindle Format 理解
@ JEPA 2012/12/28
1
ン ャ ン 株式会社
Kindle ン ン 事業部
Kindle Format ン
橋 加藤
ン
» ン ーザから見た Kindle
» 出版社から見た Kindle
» Kindle Format
フ ー
固定 イアウ
Kindle Format 8
キン フ ーマッ 8
4
Kindle Format
» EPUB (.epub)
HTML5 ,CSS3 記述 .epub
順次 tag, style 張
EPUB Kindlegen . mobi(KF8) 変換
EPUB
Kindlegen.exe
Mobi fileKF8 確認: Kindle
EPUB
.mobi 結果 確認
» Kindle EPUB ン ン
» Kindlegen mobi 変換 表示
» USB PC 繋 Mobi Kindle
Documents
» Kindle Paperwhite
» Kindle app for Android/ Kindle Fire
8
KindleGen, Kindle
ン 日 語用資料
10
Tools
» 日
» https://kdp.amazon.co.jp/self-
publishing/help?topicId=A3IWA2TQYMZ5J6/
» US site
» http://www.amazon.com/kindleformat
11
Kindlegen 実行 方法
以 う .bat 作
»
C:¥BuildKF8¥EPUB 変換 .epub 置い あ
直 あ .epub 全 Kindlegen
変換 結果 .epub .txt いう
書 出
»
C:¥kindlegen¥kindlegen.exe 実際 kindlegen あ 指定
12
echo cd /D C:¥BuildKF8¥EPUB cd /D C:¥BuildKF8¥EPUB
for %%i in (*.epub) do (
C:¥kindlegen¥kindlegen.exe %%i > %%i.txt )
Pause
Kindle 用 EPUB
13
EPUB 基
mimetype 中身
application/epub+zip
Container.xml 中身
<?xml version="1.0" encoding="UTF-8"?>
<container version="1.0"
xmlns="urn:oasis:names:tc:opendocument:xmlns:container"> <rootfiles>
<rootfile full-path="OEBPS/content.opf" media- type="application/oebps-package+xml"/>
</rootfiles>
</container>
EPUB
»
.epub zip 縮 張子 .zip .epub 変更
mimetype け 縮 い .epub 含
»
.epub ン
7zip 使 例
15
echo cd /D C:¥yourfolder¥yourepub cd /D C:¥yourfolder¥yourepub
for /d %%i in (*) do ( echo ch %%i cd %%i
C:¥7-Zip¥7z.exe a -mx=0 -tzip ../%%i.epub mimetype C:¥7-Zip¥7z.exe a -r -tzip ../%%i.epub * -x!mimetype cd..
)
Pause
KF8 作成 種類
» 型
» 固定 型
Kindle 用 EPUB 注意点 : 表紙
» jpeg/png, 画像 .opf 内 指定
<metadata>
<meta name="cover" content="my-cover-image" />
</metadata>
<manifest>
<item href="MyCoverImage.jpg" id="my-cover-
image" media-type="image/jpeg" />
</manifest>
17
Kindle 用 EPUB 注意点 : 目次
»
論理目次 Toc.ncx ( ン )
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-
dtbncx+xml" />
<spine toc="ncx">
» 目次 ン
目次 ン メ 目次 飛 う
.opf 以 追加
<guide>
<reference href =“Text/nav.xhtml” title=“toc" type="toc" />
</guide>
18
型 文字
» 右綴 / 右開 (.opf)
<spine page-progression- direction=”rtl”>…</spine>
EPUB3 準
<meta name="primary-writing-mode" content="vertical-rl"/>
Kindle 専用
» 横書 縦書 (.xHTML / .CSS)
各 XHTML body 指定
body {
-webkit-writing-mode: vertical-rl;
}
日 語用 い
» 縦書
» 綴 方向 ( 右 / 左 )
» 禁則処理 ( 行頭 行 )
» 縦中横
» 画像外字
»
20
» 圏点 傍点
» 線 傍線
» 付 付 文字
» 文字 表示方向
文字 表示方向
21
作成時 注意点
»
.svg
»
挿絵 画像 画像中 文字 不鮮明 場合販売
»
使用 い 文字 注意 文字 向 異
全角英語 半角英語 混 い 英語
見 目 文字 様 い
»
-epub , -webkit ン 付
-epub-text-orientation: upright;, -webkit-text-orientation:
upright; ,Text-orientation: upright;
»
縦書 傍線 右 : a {text-decoration: overline}
»
背景色 文字色 指定 い 背景色 変更
黒文字 黒背景
22
固定
Fixed layout
23
固定 (Fixed layout)
» ン 絵 等
» 画面 枠い ぱい ン無 表示
» 見開 表示
» ャ ネ
» ネ
» 大
Xhtml 記述
» 1 1 画像 配置
» 1 最大画像 800KB
<head>
<title> </title>
</head>
<body>
<img src="../Images/image1.jpg" />
</body>
</html>
25
.opf : <meta>
<dc:language>ja</dc:language>
<meta content="my-cover-image" name="cover" />
<meta name="fixed- layout“ content="true" />
<meta name="book-type" content="comic" />
<meta name="orientation-lock" content="none" />
<meta content="800x1200" name="original-resolution" />
<meta name="primary-writing-mode" content="horizontal-rl" />
<manifest>
<item href="Images/cover.jpg" id="my-cover-image" media-type="image/jpeg" />
.opf : <spain> 見開 表示 指定
<spine page-progression-direction="rtl" toc="ncx">
<itemref idref="p1" properties="page-spread-left" />
<itemref idref="p2" properties="page-spread-right layout-blank" />
<itemref idref="p3" properties="page-spread-left" />
<itemref idref="p4" properties="page-spread-right" />
<itemref idref="p5" properties="page-spread-left" />
<itemref idref="p6" properties="page-spread-right" />
</spine>
画面 表示
<item href="Images/cover.jpg" id="my-cover-image" media-type="image/jpeg" /
<spine page-progression-direction="rtl" toc="ncx"> <itemref idref="p1" properties="page-spread-left" />
<itemref idref="p2" properties="page-spread-right layout-blank" /> <itemref idref="p3" properties="page-spread-left" />
<itemref idref="p4" properties="page-spread-right" /> <itemref idref="p5" properties="page-spread-left" />
<itemref idref="p6" properties="page-spread-right" /> </spine>
p1
p3 p2
白頁
p5 p4
表紙
p6
固定 作成時 注意点 (2012/12/18 現
» 固定 文字 含 い 画像
け 構成 い
» EPUB 100MB 以
1 800KB 以
» .opf original-resolution 必 正確 記述
<meta content="800x1200" name="original-resolution" />
» い
1 大量 指定 い 場合 画像 正常 表示
» 画像中 文字 不鮮明 読 い場合 販売
29
固定
Panel View ( パネ ビ ー )
30
Panel View ( ネ
» 起動
» ワ ン
次 ネ 表示
» “Ordinal”
設定 順番 表示
31
Kindle Panel View 記述方法
» OPF ネ 機能 設定
» Panel views .html 記述 ン 設定 .css 記述
» 150% 大率 標準 大率
可能
» 大 指定 大
場合:元 66%
画面 出 い限界
0.66 x 1.5 ≒ 1.0
う 画面 い ぱい
大 い メ
応 大率 変え
い
32
ネ 言 : OPF Metadata
<meta name="fixed-layout" content="true" />
<meta name="orientation-lock" content="none" />
<meta name="book-type" content="comic" />
<meta name="RegionMagnification" content="true" />
<meta name="original-resolution" content=“800x1280" />
33
Kindle Panel View: HTML
»
app-amzn-magnify: Panel View class 呼び出
»
targetID: Panel View 表示 要素 ID
»
Ordinal : 表示順序 指定
<a class =“app-amzn-magnify” … <div class”target-mag-parent”
id=“xxx… ネ 数分記述
34
<div class="main">
<div><img alt="Comic Book Images" class="singlePage" src="../Images/01.jpg" /></div> <div id="page1-1">
<a class="app-amzn-magnify" data-app-amzn-magnify="{‘targetId’:’page1-1- magTargetParent’, ‘ordinal’:1}"></a>
</div>
<div class="target-mag-parent" id="page1-1-magTargetParent"> <div class="target-mag-lb"></div>
<div class="target-mag" id="page1-1-magTarget"><img alt="Comic Book Images" src="../Images/01.jpg" /></div>
</div>
</div>
CSS: 画面 画像 指定
» 実際 画像 値 指定
» ( 例 Fire HD 画面 合わ 値
可 )
35
div.main {
position: relative; height: 1280px; width: 800px; }
img.singlePage { position: absolute; height: 1280px; width: 800px; }
CSS: メ 大率
» 標準 大 150% 設定 ( 値 可 )
» CSS height, width 画像 150% 値
指定
36
<div class="target-mag-parent" id="page1-1-magTargetParent"> <div class="target-mag-lb"></div>
<div class="target-mag" id="page1-1-magTarget"><img alt="Comic Book Images" src="../Images/01.jpg" /></div>
</div> CSS
div.target-mag img { position: absolute;
height: 1920px; (1280x1.5) width: 1200px; (800x 1.5) }
CSS: 可能 ネ 表示画像部分指定
» class =“app-amzn-magnify“ 囲
ネ 表示
位
置 指定
» ネ 表示位
置 指定
» ネ 表示 大画
像 ネ
位置 合わ 指定
ネ 対
比率 指定
37
/* page1 */
#page1-1 { top: 6.00%; left: 20.00%; height: 60.00%; width: 60.00%; }
#page1-1-magTarget { top: 2.00%;
left: 23.0%;
height: 72.00%; width: 72.00%; }
#page1-1-magTarget img { top: -7.20%;
left: -21.4%; }
CSS: ン 大画像 表示
»
ン
#page1-1 {
top: 6.00%;
left: 20.00%;
height: 60.00%;
width: 60.00%;
}
»
ネ 表示
#page1-1-magTarget {
top: 2.00%;
left: 23.0%;
height: 72.00%;
width: 72.00%;
}
38
CSS: 大画像 表示部分 指定
» ネ 表示 表示
い 合う う
150% 大 画
像 位置 指定 通常
値 Top, Left
#page1-1-magTarget img {
top: -7.20%;
left: -21.4%;
}
39
(0,0) (-7.2,-21.4)
ネ 表示結果
» ネ
大画像表示 窓
大画像 指定 位
置 表示
40
CSS: Tap Regions ( ン )
» 画面 全 全
う
ン 定義
ン
見え
必 ネ
表示 い ネ
あ 分
» ン ネ
表示 画像
可
緑 ン
赤 大表示
41
»
Amazon 様
»
Kindle: Fire/Paperwhite iPhone/iPad Android (PC, Mac)..
»
EPUB 3 Kindle 作成
表紙 設定 .opf 表紙画像 指定
»
KindleGen( ン ン ) Kindle 変換
»
型 固定型 2 種類
»
日 語 表現 豊富
»
ン 見開 表示可能
»
ネ 画面 小 対応
42
補足資料
» Kindle ン
https://kdp.amazon.co.jp/
» KindleGen, Kindle
https://kdp.amazon.co.jp/self-
publishing/help?topicId=A3IWA2TQYMZ5J6
» Kindle ン ン
http://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines_J P.pdf
日 語機能用 補足資料
http://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines_J P_appendix.pdf
» Panel View
http://www.amazon.com/kindleformat
43
あ う い
44