2026年4月15日 星期三

Kindle 直排書 format 見鬼 part 2 (for firmware 5.19.3)

 Kindle scribe update to 5.19.2 , 災難! 
5.19.3.0.1 好一些, 記錄一下目前為止的解法

==== best solution ===========
1. opf : <dc:language>ja</dc:language>
            <spine page-progression-direction='rtl' toc="ncx">
       or <meta name="primary-writing-mode" content="vertical-rl"/>

             
2. xml footnote 一定要用  <a class='noteref' | <div class='footnote'  配對

然後, 用 kindlepreviewer  3.96.0 (不知新版如何, 這一版確定可行), 生成 kpf, 
calibre-debug -r "KFX Output" -- xx.kpf xx.kfx, 
以上這兩行 calibre on windows 可能可以一次做完(call kindlepreviewer ?)

usb 傳入 Kindle scribe

優點 : 翻頁方向正確, footnote popup 且不會被截掉, 劃線動作正常, 可調行距
缺點: 不能調行距, default font 是日文字型 (但中文顯示沒問題)


=== good solution ==============
1. opf : <meta name="primary-writing-mode" content="horizontal-rl"/>
            <dc:language>  zh-hant/zh/zh-TW 都一樣 ja 也無妨
2. 同 best solution 

epub send to kindle

優點 : 翻頁方向正確, footnote popup 且不會被截掉, 可調行距
缺點: 劃線動作不正常, default font 是簡中

===================
因為對劃線動作比較介意, 所以 better/good 是這麼排的

暫時都不連線以免又有什麼奇怪的 bug update, 下回連線之前得記得要搜一下 kindle update 災情

2026年1月14日 星期三

Kindle 直排書 epub fomat 見鬼

Old : kindlegen Linux v2.9
New : send to Kindle 2025

1. vertical-rl  (old) vs horizonal-rl (new)

according to https://kdp.amazon.com/en_US/help/topic/GFFHCXVPHRZW8SJ5, vertical-rl 才是正確的, 然而, 新的 kindle (2023 ? 以後), 如果在 opf 用
<meta name="primary-writing-mode" content="vertical-rl"/> 
send to kindle 會有 warning, 然後在 kindle 2024 還會無法開啟 =_=|||, 好在偉大的FB網友們試出來要用 horizonal-rl (in opf only,  css 還是用 vertical-rl -> 感覺是個 bug ? )

kindlegen 必需用 vertical-rl, 否則會有上下空白太多, 左右貼著牆壁的問題


2. footnote problem

New (with 1.horizonal-rl ) : epub:type noteref for a , epub:type footnote for div 註解才會完美呈現, 不然會跳轉到註解所在頁面 (2026/01/19 update, noteref 似乎非必要)
New (with 1.vertical-rl ) : 不需要 epub:type, 註解可pop-up, 但 kindle scribe with 5.18.6 會截斷長註解, 而且註解是一整個buttom長條

Old : epub:type 會導致無法 click (but clibre's ebook-convert OK )

..........

2026/02/05 update

by ebook-convert

for emphasis :

text-emphasis-position: under right; 
-webkit-text-emphasis-style: filled dot; -epub-text-emphasis-style:   filled dot; 

figure best on scribe , and oasis ok: 

figure { -webkit-writing-mode: horizontal-tb; -epub-writing-mode: horizontal-tb;  text-align: center;   margin : auto 1em;    page-break-inside: avoid;    page-break-before: auto;    }

figure img {  width: 60%vw;   page-break-inside: avoid;    }