Can not subset embed fonts for a epub with "wide" Unicode char
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I try to subset a embed a epub file, it failed. The problem is that the epub file contains a character which is U+22FF1, not in the Unicode 0 plane, but in the 2 plane. Thus the ord() function in Python2 can not handle it, which documented at https:/
I raised two idea here,
1. Use a special calibre_ord function(if we have) to instead the ord, this calibre_ord can handle the 1-17 plane of Unicode specially.
2. According to https:/
What's your idea?
Thanks,
Shuode Li
Here is the error details.
calibre, version 3.37.0
ERROR: Unhandled exception: <b>TypeError<
calibre 3.37 [64bit] embedded-python: True is64bit: True
Windows-
('Windows', '10', '10.0.17763')
Python 2.7.12+
Windows: ('10', '10.0.17763', 'SP0', u'Multiprocessor Free')
Interface language: None
Traceback (most recent call last):
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
TypeError: ord() expected a character, but string of length 2 found
Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.
status fixreleased