Book

Calibre 直式電子書排版 


樣式的「額外的CSS」


@page{margin:5%;}
/*強制使用Kindle內建繁體字型for 5.9.7*/@font-face {font-family: "songti";src: local("Song T")   }@font-face {font-family: "Heiti";src: local("MYing Hei T")   }
/*強制使用Kindle內建繁體字型for 5.10.1.1*/@font-face {    font-family: "songtiTC";    src: local("STSongTC"), local("st"), local("st"), local("SongTi"), local("Songti"), local("Songti"), local("Songti SC"), local("Songti TC"), local("STSongti"), local("STSong"), local("Song S"), local("STBShusong"), local("TBMincho"), local("HYMyeongJo"), local("DK-SONGTI")    }@font-face {    font-family: "HeitiTC";    src: local("STHeitiTC"), local("ht"), local("STHeiti"), local("STHei"), local("MYing Hei S"), local("TBGothic"), local("Heiti"), local("Heiti SC"), local("Heiti TC"), local("DK-HEITI")    } @font-face {    font-family: "KaiTC";    src: local("STKaitiTC"),local("kt"), local("KaiTi"), local("STKaiti"), local("STKai"), local("Kaiti"), local("Kaiti TC"), local("Kaiti SC"), local("DK-KAITI");    }@font-face {    font-family: "YuantiTC";    src: local("STYuanTC"), local("yuan"), local("STYuan"), local("Yuanti"), local("Yuanti SC"), local("Yuanti TC")    } 
body{-epub-writing-mode: vertical-rl;   /*直式設定 for epub*/-epub-line-break: normal;          /*斷行設定 for epub*/-webkit-writing-mode: vertical-rl; /*直式設定*/-webkit-line-break: normal;        /*斷行設定*/line-break: strict;                /*斷行設定,參數(normal , auto , strict)*/writing-mode: vertical-rl;         /*直式設定 for Kindle*/line-height: 1.4;                  /*控制行間距(可忽略)*/text-indent: 2em;                  /*首行空兩格*/margin: 3%;}

https://grizzle.video.blog/2022/02/17/calibre-直式電子書排版-筆記-導入前置作業/