edubuntu-bugs team mailing list archive
-
edubuntu-bugs team
-
Mailing list archive
-
Message #06497
[Bug 1363028] [NEW] renaming incorrectly named fonts fails
Public bug reported:
stylesheet.css
The font family name specified in the CSS @font-face rule: "Arial_avs_space_Narrow" does not match the font name inside the actual font file: "Arial Narrow". This can cause problems in some viewers. You should change the CSS font name to match the actual font name.
Change the font name Arial_avs_space_Narrow to Arial Narrow everywhere
clicking the above link causes the following error
calibre, version 2.1.0
ERROR: Unhandled exception: <b>TypeError</b>:expected string or buffer
calibre 2.1 isfrozen: True is64bit: True
Linux-3.13.0-34-generic-x86_64-with-debian-jessie-sid Linux ('64bit', 'ELF')
('Linux', '3.13.0-34-generic', '#60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014')
Python 2.7.8
Linux: ('debian', 'jessie/sid', '')
Successfully initialized third party plugins: Goodreads && Beam Ebooks && Generate Cover && Open With && Quality Check && Find Duplicates && KindleUnpack - The Plugin && Barnes & Noble && Kobo Utilities && Fantastic Fiction && Fantastic Fiction Adults && Modify ePub && Manage Series && FictionDB
Traceback (most recent call last):
File "site-packages/calibre/gui2/tweak_book/boss.py", line 62, in ans
File "site-packages/calibre/gui2/tweak_book/boss.py", line 1066, in fix_requested
File "site-packages/calibre/gui2/tweak_book/check.py", line 222, in fix_errors
File "site-packages/calibre/ebooks/oeb/polish/check/main.py", line 101, in fix_errors
File "site-packages/calibre/ebooks/oeb/polish/check/fonts.py", line 78, in __call__
File "site-packages/calibre/ebooks/oeb/polish/container.py", line 494, in parse_css
File "site-packages/calibre/ebooks/oeb/polish/utils.py", line 171, in parse_css
File "site-packages/cssutils/parse.py", line 148, in parseString
File "site-packages/cssutils/css/cssstylesheet.py", line 355, in _setCssTextWithEncodingOverride
File "site-packages/cssutils/css/cssstylesheet.py", line 303, in _setCssText
File "site-packages/cssutils/util.py", line 461, in _parse
File "site-packages/cssutils/tokenize2.py", line 123, in tokenize
TypeError: expected string or buffer
note there is also a similar bug when running the modify epub plugin
when selecting "strip cobo DRM elements" or "strip spans" i am guessing
the plugin relies on the same base functionality
** Affects: calibre
Importance: Undecided
Status: New
** Package changed: calibre (Ubuntu) => calibre
--
You received this bug notification because you are a member of Edubuntu
Bugsquad, which is subscribed to calibre in Ubuntu.
https://bugs.launchpad.net/bugs/1363028
Title:
renaming incorrectly named fonts fails
To manage notifications about this bug go to:
https://bugs.launchpad.net/calibre/+bug/1363028/+subscriptions
Follow ups
References