View Single Post
Old 02-10-2018, 06:05 PM   #7
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,739
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by st_albert View Post
Here you go. Note that ark crashed at the end, after creating the archive, but the font seems OK.
Unfortunately, I'm not able to reproduce this error. I'm getting the following message:

Spoiler:
Code:
Status: success

Using external Python interpreter.

fontTools version: 3.21.2 

Characters used in this epub:

 !"#$%'()*,-./0123456789:;?@ABCDEFGHIJKLMNOPQRSTUVWXY[]abcdefghijklmnopqrstuvwxyz—

Processing font:  DejaVuSans.ttf...
Original file size:  756072
Subset file size:  22752 (3.01%)
Original font replaced with subset font.

Click OK to close.


Try the following:

change line #51 in plugin.py from:

Code:
text += BeautifulSoup(html).text
to:
Code:
text += BeautifulSoup(html,'html.parser').text
This should suppress the phony bs4 error message. Also please check if your DejaVuSans font files are read-only and/or obfuscated or if your temp folder requires special permissions.

IIRC, you also have a Windows machine. Please try to subset the same file on your Windows machine. This will use a Python library instead of the pyftsubset command line tool and you'll hopefully get a meaningful error message.

I'll look into this in more detail either tomorrow or on Monday.
Doitsu is offline   Reply With Quote