Package Details: calibre-unicode-path 6.26.0-1

Git Clone URL: (read-only, click to copy)
Package Base: calibre-unicode-path
Description: Ebook management application. With unicode filename and path patch.
Upstream URL:
Licenses: GPL3
Conflicts: calibre, calibre-common, calibre-python3
Provides: calibre
Replaces: calibre, calibre-common, calibre-python3
Submitter: Jeffrey4l
Maintainer: Jeffrey4l
Last Packager: Jeffrey4l
Votes: 3
Popularity: 0.000093
First Submitted: 2022-05-04 01:47 (UTC)
Last Updated: 2023-09-16 09:35 (UTC)

Latest Comments

fzhang.foss commented on 2024-05-30 01:56 (UTC)

This is broken due to a python upgrade

Jigsaw commented on 2023-07-25 09:01 (UTC) (edited on 2023-07-25 09:01 (UTC) by Jigsaw)

Hi! I have tested a new patch about src/calibre/devices/usbms/ in 6.21.0, it will make the "Send to device" button send the unicode filename to divice.

--- a/src/calibre/devices/usbms/
+++ b/src/calibre/devices/usbms/
@@ -23,7 +23,6 @@
 from calibre.devices.errors import DeviceError
 from calibre.devices.interface import DevicePlugin
 from calibre.devices.usbms.deviceconfig import DeviceConfig
-from calibre.utils.filenames import ascii_filename as sanitize
 from polyglot.builtins import iteritems, string_or_bytes

 if ismacos:
@@ -32,6 +31,8 @@
 if iswindows:
     usb_info_cache = {}

+def sanitize(filename):
+    return re.sub(r"[\/\\\:\*\?\"\<\>\|]", "_", filename)

 def eject_exe():
     base = sys.extensions_location if hasattr(sys, 'new_app_layout') else os.path.dirname(sys.executable)

Jigsaw commented on 2023-03-15 09:55 (UTC)

@Jeffrey4l Thanks, it build perfectly now.

Jeffrey4l commented on 2023-03-12 15:54 (UTC)

@Jigsaw Try configure you language variable to en_US before building?

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

Jigsaw commented on 2023-02-24 08:37 (UTC)

Hi! It can't pass tests when building, could you fix it ?

FAIL: test_html2text_behavior (calibre.utils.html2text.find_tests.<locals>.TestH2T)
Traceback (most recent call last):
  File "/home/jigsaw/.cache/yay/calibre-unicode-path/src/calibre-6.8.0/src/calibre/utils/", line 38, in test_html2text_behavior
    self.assertEqual(html2text(src), expected)
AssertionError: '![未命名的图片](test.jpeg)\n' != '![Unnamed image](test.jpeg)\n'
- ![未命名的图片](test.jpeg)
+ ![Unnamed image](test.jpeg)