博文

目前显示的是 二月, 2022的博文

外文阅读者的福音:生词提示功能

图片
 前言 某天浏览网页发现kindle有一个“生词提示”的功能,可以在英文书籍上面显示中文或英文释义,这样就免得查字典了。由于kindle上只有部分从商店购买的正版书支持该功能,在网上查询发现一个“wisecreator”可以让任意书籍支持生词提示。 只有kindle能用还不够,我也希望digital paper支持该功能,而digital paper只支持PDF。这时我想起以前在真白萌论坛看到有一种给汉字上加假名注解的方法,即html ruby标签,便写了一个简单的小工具自动为epub添加注解,然后使用calibre转换为PDF即可。 使用说明 for kindle 使用pip安装 wisecreator : git clone https://github.com/tmilovanov/wisecreator.git 装上还不能运行,参考 https://github.com/tmilovanov/wisecreator/issues/42 ,还需要替换wisecreator/third-party中的KindleUnpack为 这里的最新版 安装:pip install . 安装calibre(或它自带的ebook-convert) 然后就会出现一个wisecreator的命令,用它给mobi或azw3加入生词提示功能。 fore epub https://gist.github.com/the0demiurge/b88fd09221d205beb2b8fd5cdc17cc6f 装上依赖项,用python运行该代码即可。词典可以从 https://github.com/mahavivo/english-wordlists 下载,建议用GRE红宝书 NAME     add_annotations.py - dictionaries can be found at https://github.com/mahavivo/english-wordlists SYNOPSIS     add_annotations.py BOOK_PATH SAVE_PATH <flags> [DICT_LIST]... DESCRIPTION     add annotations for english words of zip-based ebooks such a

此博客中的热门博文

Flash被淘汰后打开swf文件的最佳方法

[SOLVED] Supermicro cannot connect to VGA video port or iKVM

MacBook日文键盘四种输入模式输入法切换(同样适用于其他布局的键盘)