Skip to content

goooooouwa/calibre-do-not-translate-my-path

 
 

Repository files navigation

Calibre 不要翻译我的文件路径 | Calibre: Do not translate my file paths

如题所示,让你的 Calibre 不要把中文路径翻译成拼音。

As the title suggests, this is a guide on how to prevent Calibre from translating Chinese file paths into Pinyin or other Latin transliteration.

Github Action 每日北京时间 13:00 自动更新。

Auto check update and release at 05:00 UTC+0 every day using Github Action.

使用方法 | Usage

  1. v0: 最早的 patch 方案,现在应该已经没有对应的 release 了。同时 patch 了 bypy 和 Launcher,在 macOS 下会因为签名校验失败而无法使用。
  2. v1(backend): Patch 了 bypy 中的 backend.py,需要自行下载并替换文件。
  3. v2(backend+update): Patch 了 bypy 中的 backend.py 和 update.py,并重新打包了除 macOS 版之外的安装包。
    使用补丁版的话,在新补丁发布时才会收到更新通知,需要自行下载原版安装包和补丁;使用安装包版的话,在新补丁发布时才会收到更新通知,并且只下载重打包的安装包就可以了。

Windows & Linux V1

  1. 根据平台和 Calibre 版本下载 Release,覆盖原本 Calibre 文件。
  2. 没了

  1. Download the Release for your platform and replace the original Calibre files.
  2. Enjoy.

macOS V1 & V2

  1. 解压下载的包,得到 python-lib.bypy.frozen 文件。
  2. 打开 Finder,进入“应用程序” (/Applications),右键点击“Calibre——显示包内容”,进入 Contents/Frameworks/plugins (对应的完整路径是 /Applications/calibre.app/Contents/Frameworks/plugins )。将第 1 步下载包里的 python-lib.bypy.frozen,拷贝覆盖过来、关闭 Finder 窗口,正常打开 Calibre 即可。

  1. Unzip downloaded file and get file python-lib.bypy.frozen.
  2. Open Finder, right-click Calibre in /Applications, choose Show package content. Copy downloaded python-lib.bypy.frozen to Contents/Frameworks/plugins. Close Finder and now enjoy your new Calibre.

Older macOS

a. 官方最后一个支持旧版 macOS 的版本:v5.44.0,以及对应的补丁:v5.44.0

b. 实测可运行的版本:v6.11.0,以及对应的补丁:v6.11.0


a. latest offical support: v5.44.0, and patch: v5.44.0

b. Actually compatible: v6.11.0, and patch: v6.11.0

Additional

如果你已经创建了书库,希望将已有的书库改成非英文路径:

If you have already created a library and want to change the existing library to a non-English path:

  1. 备份你的书库(可选,建议)
  2. 打开书库,按下 Ctrl+A 选中所有书籍
  3. 右键 - 编辑元数据 - 批量编辑元数据 - “查找替换”页
  4. 查找模式:正则表达式,查找的字段:title,搜索:$,替换为:__DELME__
  5. 点击“应用”,等待 Calibre 完成(点击前注意看一下下面的替换预阅,新书名应当是原书名+__DELME__
  6. 查找模式:字符匹配,查找的字段:title,搜索:__DELME__,“替换为”保持为空(
  7. 点击“确定”,等待 Calibre 完成(点击前注意看一下下面的替换预阅,此时的新书名应当是原本的书名)

  1. Backup your library (optional, but recommended).
  2. Open the library and press Ctrl+A to select all books.
  3. Right-click and choose "Edit metadata," then select "Bulk metadata edit," and go to the "Search and Replace" page.
  4. Use regular expressions as the search mode and search for "title" by entering $ in the search field. Replace it with __DELME__.
  5. Click "Apply" and wait for Calibre to finish.
  6. Use character matching as the search mode and search for "title" by entering __DELME__ in the search field. Leave the "Replace with" field empty.
  7. Click "OK" and wait for Calibre to finish.

PS: English version is translated by ChatGPT. If you find any mistakes, feel free to open an issue or PR.

Star History

Star History Chart

原理 | Principle

后序写篇博客,在写了在写了.jpg

I will write a blog post about it later.

参考 | References

snomiao/calibre-utf8-path

About

Switch my calibre library from ascii path to plain Unicode path. 将我的书库从拼音目录切换至非纯英文(中文)命名

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.5%
  • HTML 2.5%