Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-22-2014, 01:24 PM   #1
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Calibre 2.0 soft hyphenation handling seems to have changed

Today I've updated to Calibre version 2.0. While putting some books into shape, I've noticed that the lines were all out of sorts. They lost their justification on the right, and now display ragged. It comes down to using Hyphenate This, which is a plugin that puts soft hyphens into the text. See the attachments:

soft_hyphens_none.png: without soft hyphens
soft_hyphens_yes.png: with soft hyphens

After putting in the soft hyphens, the lines get out of wack, and get justified properly when removing the hyphens. I'm seeing this issue in both the Calibre Viewer, and the Ebook Editor, and with all books I've tested (all EPUB).

If necessary, I could return to version 1.48 to test and be 100% sure, but I'm quite certain I've never seen this before.
Attached Thumbnails
Click image for larger version

Name:	soft_hyphens_none.png
Views:	326
Size:	195.6 KB
ID:	127162   Click image for larger version

Name:	soft_hyphens_yes.png
Views:	316
Size:	205.2 KB
ID:	127163  

Last edited by Katsunami; 08-22-2014 at 02:34 PM.
Katsunami is offline   Reply With Quote
Old 08-22-2014, 01:44 PM   #2
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Attach a book where you see the incorrect justification behavior.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-22-2014, 02:29 PM   #3
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Here you go

Another screenshot, of a different book (and the book itself). Left shows the book before Hyphenate This! applied, right shows it with. AFAIK, the plugin hasn't changed for ages apart from the conversion to QT5, and I have not seen anything weird after that, using Calibre 1.48.

PS: I remember that Sigil had this exact same issue, so it may have something to do with the settings or configuration of the browser component.
Attached Thumbnails
Click image for larger version

Name:	hyphens.png
Views:	262
Size:	236.2 KB
ID:	127167  
Attached Files
File Type: epub hyphens_none.epub (225.4 KB, 168 views)
File Type: epub hyphens_yes.epub (229.5 KB, 250 views)

Last edited by Katsunami; 08-22-2014 at 02:33 PM.
Katsunami is offline   Reply With Quote
Old 08-22-2014, 02:41 PM   #4
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
To be 100% sure, I have installed Calibre 1.48 Portable.

This viewer handles the hyphens as expected; in the attachment below you can see the viewer of Calibre 1.48, without hyphens left, and with hyphens right.

The book is the same as the one linked above.
Attached Thumbnails
Click image for larger version

Name:	hyphens-148.png
Views:	274
Size:	218.8 KB
ID:	127169  
Katsunami is offline   Reply With Quote
Old 08-22-2014, 03:24 PM   #5
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Again, looks fine for me, see screenshot of hyphens_yes.epub

Try restoring the viewer preferences to defaults and see if that makes a difference.
Attached Thumbnails
Click image for larger version

Name:	justify.png
Views:	267
Size:	77.6 KB
ID:	127176  
kovidgoyal is offline   Reply With Quote
Advert
Old 08-22-2014, 03:48 PM   #6
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
I have reset the viewer to the default settings, and at first, that seems to have fixed the problem, but there is still a difference between the 1.48 and 2.0 viewer.

DejaVu Serif and DejaVu Sans work in both 1.48 and 2.0.
Gentium Basic works in both 1.48 and 2.0

However, Verdana works in 1.48, but not 2.0.
Constantia works in 1.48, but not in 2.0.
Georgia... Same deal.

The viewer in Calibre 2.0 seems to have problems with some fonts in combination with soft-hyphens, while the viewer in 1.48 does not.

Last edited by Katsunami; 08-22-2014 at 04:19 PM.
Katsunami is offline   Reply With Quote
Old 08-22-2014, 04:08 PM   #7
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This is most definitely a Qt 5 bug, there are dozens of these, most of them I have managed to workaround, a few, like this one, I cannot. I suggest you use the fonts that work and wait until Qt gets around to fixing this issue.

Text rendering in Qt is a real crapshoot, there are many text rendering bugs that Qt 5 fixed over Qt 4, and some that it introduced.

EDIT: see https://bugreports.qt-project.org/browse/QTBUG-40912

Last edited by kovidgoyal; 08-22-2014 at 04:19 PM.
kovidgoyal is offline   Reply With Quote
Old 08-22-2014, 04:12 PM   #8
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
OK, thanks for looking into it

If it's just cosmetic, I'll just switch to a working font. I don't actually read in the viewer anyway; I use it to see if everything is in order after I edited a book. I can do it faster there than in the editor itself.

Weird bug though... But then again, I'm not a font rendering expert.

Don't you sometimes hate (developing) software? Be honest, sometimes you do I know I sometimes wish the computer was never invented

Last edited by Katsunami; 08-22-2014 at 04:16 PM.
Katsunami is offline   Reply With Quote
Old 08-22-2014, 04:21 PM   #9
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I usually only hate developing software when I have to deal with large blobs of code written in legacy languages like C/C++ (Qt is the biggest such culprit). They are very hard to debug, have all sorts of logic errors, tend to crash with segmentation violations all the time and are developed glacially thanks to the highly inefficient languages they are written in.
kovidgoyal is offline   Reply With Quote
Old 08-22-2014, 04:28 PM   #10
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
LOL. I like C and C++, for writing embedded software (without gui) that has to be extremely small and fast . If I had to write a desktop application in one of them nowadays, I'd probably prefer to shoot myself though

I'll drop the other pending reports on the viewer and editor then, because I expect they are all caused by the same bug(s) in QT5.
Katsunami is offline   Reply With Quote
Old 08-22-2014, 04:29 PM   #11
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sure C/C++ have their place. Desktop software is not that place.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre remove soft hyphens? zuli Calibre 3 11-08-2017 09:20 PM
Cover Handling changed in 0.8.65? Cap.T Conversion 5 08-26-2012 10:08 PM
Calibre breaking Nook Touch hyphenation? jclim00 Calibre 8 09-04-2011 06:28 PM
EPUB to MOBI hyphenation using Calibre nargyris Kindle Formats 2 02-04-2011 05:33 PM
Calibre fixes Hyphenation on iPad Dwayne Smith Devices 11 02-03-2011 11:11 PM


All times are GMT -4. The time now is 09:37 AM.


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