Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-05-2009, 03:03 PM   #466
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
Quote:
Originally Posted by kovidgoyal View Post
The cover inclusion bug will be fixed in 0.6. The hyphen problem is a problem in the HTML itself. If you open the HTML in an edior, you will see that the hyphen character is not correctly encoded. This probably happened either when you pasted it into Word or converted from rtf to html
Hm. I see that the hyphen is rendered in html as ‑ which means, I know not what.

But the conversion to LRF correctly renders it as a hyphen. Why does LRF do it but not EPUB?

EDIT: That's interesting. I put in "‑" but it showed up on the board as a hyphen.

EDIT OF EDIT: Dang. How do you display an HTML entity here? I'll spread it out: & # 8 2 0 9 ;

Last edited by starrigger; 05-05-2009 at 03:05 PM.
starrigger is offline   Reply With Quote
Old 05-05-2009, 03:08 PM   #467
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,392
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah my mistake, it is a hypen, but a special hypen, a "non-breaking hyphen" ADE evidently doesn't have the fonts to display this character correctly. If you view the EPUB in calibre it should be fine
kovidgoyal is offline   Reply With Quote
Old 05-05-2009, 03:08 PM   #468
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by starrigger View Post
EDIT OF EDIT: Dang. How do you display an HTML entity here? I'll spread it out: & # 8 2 0 9 ;

It's sufficient to use just once space, as: & #8209;
nrapallo is offline   Reply With Quote
Old 05-05-2009, 03:18 PM   #469
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
Quote:
Originally Posted by kovidgoyal View Post
Ah my mistake, it is a hypen, but a special hypen, a "non-breaking hyphen" ADE evidently doesn't have the fonts to display this character correctly. If you view the EPUB in calibre it should be fine
Nope, in Calibre, it displays as a black vertical bar.

Actually, I use nonbreaking hyphens all the time in my manuscripts (to keep -- dashes from breaking), and need to remember to convert them back at the end.

Could the conversion to epub be made to convert these to regular hyphens? Either the LRF conversion does that already, or the viewer handles it. (I haven't tried in on the Reader yet.)
starrigger is offline   Reply With Quote
Old 05-05-2009, 03:19 PM   #470
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
Quote:
Originally Posted by nrapallo View Post
It's sufficient to use just once space, as: & #8209;
Ah--thanks.
starrigger is offline   Reply With Quote
Old 05-05-2009, 03:25 PM   #471
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by starrigger View Post
Nope, in Calibre, it displays as a black vertical bar.
Actually, my text editor cannot handle that UTF-8 encoded character and also displays it as a "black vertical bar".

To be able to re-edit the .epub, it would be better to retain the HTML entities ( like & #8209; ) instead of their UTF-8 / Unicode counterpart.

When all else fails, I've used the 'recode' unix command to convert all such UTF-8 characters back into HTML entities; that my text editor does understand.
nrapallo is offline   Reply With Quote
Old 05-05-2009, 03:28 PM   #472
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,392
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by starrigger View Post
Nope, in Calibre, it displays as a black vertical bar.

Actually, I use nonbreaking hyphens all the time in my manuscripts (to keep -- dashes from breaking), and need to remember to convert them back at the end.

Could the conversion to epub be made to convert these to regular hyphens? Either the LRF conversion does that already, or the viewer handles it. (I haven't tried in on the Reader yet.)
Works for me in the calibre viewer. (But the fonts for the calibre viewer on windows are different, so probably that's why it doesn't work for you). The conversion of non breaking hyphens will be in the next release.
kovidgoyal is offline   Reply With Quote
Old 05-05-2009, 03:30 PM   #473
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,392
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by nrapallo View Post
Actually, my text editor cannot handle that UTF-8 encoded character and also displays it as a "black vertical bar".

To be able to re-edit the .epub, it would be better to retain the HTML entities ( like & #8209; ) instead of their UTF-8 / Unicode counterpart.

When all else fails, I've used the 'recode' unix command to convert all such UTF-8 characters back into HTML entities; that my text editor does understand.
The problem is many epub readers get confused by numerical entities, plus they increase file size.
kovidgoyal is offline   Reply With Quote
Old 05-05-2009, 03:41 PM   #474
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by kovidgoyal View Post
The problem is many epub readers get confused by numerical entities, plus they increase file size.
Thanks Kovid. That explains a lot to me!

I recently had to re-edit a .epub created by calibre and had difficulty editing some minor textual changes no matter what I tried, using my so-called unicode compliant text editor, TextPad. It just didn't know how to handle those UTF-8 encoded characters. That's when I used 'recode' to solve this re-editing problem I encountered.

Thanks again, and it's a much better answer than " It does that? "
nrapallo is offline   Reply With Quote
Old 05-05-2009, 03:51 PM   #475
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
Quote:
Originally Posted by kovidgoyal View Post
The conversion of non breaking hyphens will be in the next release.
Excellent.
starrigger is offline   Reply With Quote
Old 05-10-2009, 04:54 AM   #476
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
hi, kovidgoyal

I found a bug relatived to encoding.

I has a txt file with gbk encoding, so I use any2epub with --encoding gbk. Any2epub convert the txt from gbk txt to utf-8 html, it's ok. But, in the second step, any2epub pass the original encoding opts (gbk) to html2epub, so the final result is wrong.

I think changing the encoding opts to utf-8 before calling html2epub should fix it.
thawk is offline   Reply With Quote
Old 05-10-2009, 05:01 AM   #477
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,392
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Will be fixed in next release.
kovidgoyal is offline   Reply With Quote
Old 05-11-2009, 01:46 AM   #478
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
I tried searching but I couldn't find the relevant information. How do I use multi-byte UTF-8 characters via command-line?

I tried html2epub -t "u'title" but that didn't work.
ilovejedd is offline   Reply With Quote
Old 05-11-2009, 01:49 AM   #479
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,392
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
it depends on the level of unicode support in terminals in your OS. Basically you have to encode them in the encoding supported by the terminal and hope calibre correctly decodes them to unicode
kovidgoyal is offline   Reply With Quote
Old 05-11-2009, 11:11 AM   #480
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
In that case, it's probably none as I'm using Windows XP. Thanks for the help. Guess I'll just have to convert titles to ASCII.

By the way, I was just checking the online manual (*gasp* yes, I read the manual ) and I noticed the conversion options have changed. I looked at the changelog and didn't see any comments regarding the change. Has this been implemented yet? Currently, I'm still using older versions (0.4.143, 0.5.3, 0.5.8, basically whatever was out at the time I rebooted my computers) and I have a bunch of PHP scripts that rely heavily on the Calibre command-line utilities so I can't just upgrade arbitrarily.
ilovejedd is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Epub Output: Line Height greenapple Conversion 20 01-27-2013 09:27 AM
EPUB output justification toki08 Calibre 10 01-08-2011 04:14 PM
Calibre epub output details and Nook squidward Calibre 6 11-24-2010 03:21 PM
epub output metadata troymc Calibre 5 05-22-2010 12:23 AM
Problem with epub output in Cybook Gen3 fjf Calibre 3 02-03-2010 02:23 AM


All times are GMT -4. The time now is 10:27 PM.


MobileRead.com is a privately owned, operated and funded community.