Last active
July 5, 2025 00:48
-
-
Save AndorChen/aea7c5e6bf207c0660cccfb9996a468d to your computer and use it in GitHub Desktop.
Revisions
-
AndorChen revised this gist
Mar 15, 2021 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,8 +22,6 @@ 1. 下载后解压,把 `kindlegen` 移到 `/usr/local/bin` 中 2. 修改文件模式:`sudo chmod a+x kindlegen` ### pdkfonts、pdftk ``` -
AndorChen revised this gist
Mar 15, 2021 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,6 +24,13 @@ ### MathJax-node ### pdkfonts、pdftk ``` sudo apt install pdftk sudo apt install poppler-utils ``` ### 字体 安装 PDF 文件中使用的字体:Helvetica, Times, Ubuntu Mono, SimSong, SimHei, KaiTi_GB2312。 -
AndorChen revised this gist
Mar 15, 2021 . 1 changed file with 35 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ ## 在 WSL 中安装电子书相关工具 ### PrinceXML 1. 到官网下载 Ubuntu 安装包 2. 解压缩,执行 `sh install.sh` #### 常见问题 ##### libgif.so.7 安装缺少的库:`sudo apt intall libgif7` ### epubcheck 安装:`sudo apt install epubcheck` ### kindlegen 官网已不提供下载,百度云中备份了。 1. 下载后解压,把 `kindlegen` 移到 `/usr/local/bin` 中 2. 修改文件模式:`sudo chmod a+x kindlegen` ### MathJax-node ### 字体 安装 PDF 文件中使用的字体:Helvetica, Times, Ubuntu Mono, SimSong, SimHei, KaiTi_GB2312。 这些文件文件在百度云中有备份。 安装方法:把字体文件复制到 `/usr/share/fonts/andor` 目录中,然后执行 `sudo fc-cache -fv` 命令更新缓存。 可以使用 `fc-list` 命令查看已安装的字体。 -
AndorChen revised this gist
Mar 3, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ## O'REILLY系列图书排版要求: **字体(均为汉仪字体)和字号(均为苹果字号)** @@ -33,7 +33,7 @@ 如果没有找到The Sans Mono condensed这款字体,就还用courier来替代。 ### 排式要求: - 段首不缩进,保持一定的段落间距。其它均是按照英文原书的样式排版。 -
AndorChen created this gist
Mar 3, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,71 @@ # O'REILLY系列图书排版要求: **字体(均为汉仪字体)和字号(均为苹果字号)** - 正文:书宋+times英文复合字体 (字号:9.5号) - 章节:中圆+helvetica英文复合字体 (字号:19号) - 章节标题:大黑+helvetica英文复合字体(字号:30号,字体宽度缩为80%) - 正文内标题字体:中黑+helvetica英文复合字体 (字号分别为:标题1:17号,标题2:14号,标题3:11号) - 表格字体: - 表格标题:中圆+helvetica复合字体(字号:9.7号) - 表格栏头:中等线+helvetica复合字体(字号:9.3号 ) - 表格内容:书宋+times复合字体(字号: 9号) - 图注:中圆+helvetica英文复合字体(字号:10号) - 代码示例:楷体+times英文复合字体(字号:10号) - 注解:楷体+times英文复合字体(字号:8.5号) 注解以右上角角标形式在内文中出现,编号为:注1,注2,...,每章独自排序 - 警告和注意(在英文书中出现的是齿轮和脚印的图标,可保留图标,也可换成文字): - 警告和注意:中黑 - 内容字体:书宋+times英文复合字体 (字号:8.5号) - 页眉:中等线+Myraid Pro英文复合字体(字号:9.5号) 以上均为普通的字体设置,每本书前面部分有对此书的字体要求,比如有需要改成 代码字体的部分则改成:The Sans Mono condensed,此字体还包含粗体(The Sans Mono condensed bold)和斜体(The Sans Mono condensed italic),可根据英文原书的具体情况来设定。另外,英文书有斜体的 名词解释,如果中文已经翻译,中文不需改成斜体,括号中的英文也不需要改成斜 体。注意,不得随意使用直接将中文字体加粗的设置。中文如需加粗,则采用“中 黑”字体样式。 如果没有找到The Sans Mono condensed这款字体,就还用courier来替代。 ## 排式要求: - 段首不缩进,保持一定的段落间距。其它均是按照英文原书的样式排版。 - 表格中的灰色条为“10%黑”。 - 图的左右外边框和版心齐。所用的线条为极细线(0.25) - 标题的段前距和段后距不一样,段前距要大于段后距。也就是标题要和它下面的内容稍微近一点。 - 动物系列的图书成品尺寸为:178*233mm。页面设置为:内部(订口)25mm,外 部(切口)21mm,顶部(天头)17mm,下部(地脚)23mm - 动物系列图书每章的章首页下方放一个动物的阴影,灰度为8%,可直接在indesign里把原图调成此灰度 Source: http://www.ituring.com.cn/article/45321 ## 多看 多看官方客户端可用字体列表: | CSS写法 | 效果 | |--------|------| | font-family: "DK-SONGTI"; | 使用多看系统自带宋体。 | | font-family: "DK-FANGSONG"; | 使用多看系统自带仿宋。 | | font-family: "DK-KAITI"; | 使用多看系统自带楷体。 | | font-family: "DK-HEITI"; | 使用多看系统自带黑体。 | | font-family: "DK-XIAOBIAOSONG"; | 使用多看系统自带小标宋。 | | font-family: "DK-XIHEITI"; | 使用多看系统自带细黑体。 | | font-family: "DK-SERIF"; | 使用多看系统自带衬线西文字体。 | | font-family: "DK-CODE"; | 使用多看系统自带等宽西文字体。 | | font-family: "DK-SYMBOL"; | 使用多看系统自带符号字体(不常见符号,如音标等)。 | Source: http://www.miui.com/thread-1960799-1-1.html