Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-30-2025, 11:53 PM   #91
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,433
Karma: 238916691
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by .tycho View Post
So can you please check if hyphenation is working in your KEPUBs?
Unfortunately I can't, as I disable hyphenation in the css.
Sirtel is online now   Reply With Quote
Old 03-31-2025, 11:28 AM   #92
.tycho
Enthusiast
.tycho began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
Since I read in left justified (AKA ragged right), hyphens are not of much interest. I did switch one ePub to justified and there were hyphens along with lines with wide word gaps and interword spacing. I'm back to left justified until micro-justification becomes a commonplace for ereaders. See micro-typography for more information.

Have you tried going to the Hypenation tab in the KoboTouch driver configuration and changing the values there to match the ones used by the KTE driver.
So, I know this may make we weird -- I read ragged right, but also with hyphenation. I installed 7.26 with KTE, and hyphenation is working again. But when I send a KEPUB with 8.1.1 and KT, hyphenation is gone. Anyone have any thoughts about what could be going wrong? Do you see hyphens only with justification, and not ragged right? Maybe that's the issue...
.tycho is offline   Reply With Quote
Advert
Old 03-31-2025, 01:41 PM   #93
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,921
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by .tycho View Post
So, I know this may make we weird -- I read ragged right, but also with hyphenation. I installed 7.26 with KTE, and hyphenation is working again. But when I send a KEPUB with 8.1.1 and KT, hyphenation is gone. Anyone have any thoughts about what could be going wrong? Do you see hyphens only with justification, and not ragged right? Maybe that's the issue...
When I tested a kepub with justification to see if I saw hyphens, I checked Enable/disable hyphenation in KEPUB books, set the minimum word length to hyphenate to 5, minimum before and after were left at 3 and maximum consecutive was set to 3.

I have only seen hyphens with justified text so not sure if you would see them with ragged right save for pathological cases such as word that was longer than the line length.
DNSB is offline   Reply With Quote
Old 03-31-2025, 02:42 PM   #94
.tycho
Enthusiast
.tycho began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
I have only seen hyphens with justified text so not sure if you would see them with ragged right save for pathological cases such as word that was longer than the line length.
That's right, and it's how I just like to read. With ragged right, I prefer that any words with 8+ characters that would reach the end of line are hyphenated. But I don't know why it's not working now with 8.1.1.

Last edited by .tycho; 03-31-2025 at 02:58 PM.
.tycho is offline   Reply With Quote
Old 03-31-2025, 04:08 PM   #95
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,181
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Hyphenation is still not working with 8.1.1, but using polish book add soft hyphens works very well with kpub.

bernie
\
Quote:
Originally Posted by .tycho View Post
That's right, and it's how I just like to read. With ragged right, I prefer that any words with 8+ characters that would reach the end of line are hyphenated. But I don't know why it's not working now with 8.1.1.
gbm is offline   Reply With Quote
Advert
Old 03-31-2025, 04:18 PM   #96
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,665
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by gbm View Post
Hyphenation is still not working with 8.1.1, but using polish book add soft hyphens works very well with kpub.

bernie
\
Do the soft hyphens cause a problem with searching?
JSWolf is offline   Reply With Quote
Old 03-31-2025, 04:35 PM   #97
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,181
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
?

bernie
Quote:
Originally Posted by JSWolf View Post
Do the soft hyphens cause a problem with searching?
gbm is offline   Reply With Quote
Old 03-31-2025, 04:47 PM   #98
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,665
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by gbm View Post
?

bernie
If you search for words with soft hyphens, does the search work?
JSWolf is offline   Reply With Quote
Old 03-31-2025, 05:07 PM   #99
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,181
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Oh why oh why would I need to ever search for words.

bernie
Quote:
Originally Posted by JSWolf View Post
If you search for words with soft hyphens, does the search work?
gbm is offline   Reply With Quote
Old 03-31-2025, 06:06 PM   #100
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,433
Karma: 238916691
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by gbm View Post
Oh why oh why would I need to ever search for words.

bernie
I do it often. Sometimes a character is introduced and not appearing again until later in the book/series, and I want to refresh my memory by looking up where they were first mentioned. Or I don't remember an important detail all that well and want to read it over again.

I guess if you have very good memory, you never need to use search, but I don't.
Sirtel is online now   Reply With Quote
Old 03-31-2025, 06:14 PM   #101
.tycho
Enthusiast
.tycho began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Searching is one of the main reasons I switched to an e-reader. How can I remember everything in a 1000+ page book!?
.tycho is offline   Reply With Quote
Old 03-31-2025, 08:06 PM   #102
Dal Bhat
Enthusiast
Dal Bhat began at the beginning.
 
Posts: 49
Karma: 10
Join Date: Apr 2024
Device: Kindle 11th Gen
Quote:
Originally Posted by gbm View Post
Oh why oh why would I need to ever search for words.
Oh why oh why would you think one wouldn't?
Dal Bhat is offline   Reply With Quote
Old 04-01-2025, 04:00 AM   #103
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,311
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
See if this fixes it:
https://github.com/kovidgoyal/calibr...48668f37968ca6
kovidgoyal is offline   Reply With Quote
Old 04-01-2025, 11:45 AM   #104
.tycho
Enthusiast
.tycho began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
Is there a way to download the latest commit as a compiled binary for macOS? I couldn't find one, so I cloned the repo using git and ran "calibre-debug -g", which showed the version as "8.1.1*", which I'm pretty sure tells me I'm running the latest commit.

I sent a KEPUB to my Kobo, checked how it looks, and what do I see? Hyphens at the end of lines!!

I opened a chapter to view the code, and here's what I now see:
Code:
    <style type="text/css" id="kobostylehacks">div#book-inner { margin-top: 0; margin-bottom: 0; }</style>
    <style type="text/css" id="kepubify-extra-css">
* {
    /* Vendor-prefixed CSS properties for hyphenation. Keep -webkit first since
     * some user agents also recognize -webkit properties and will apply them.
     */
    -webkit-hyphens: auto;
    -webkit-hyphenate-limit-after: 5;
    -webkit-hyphenate-limit-before: 3;
    -webkit-hyphenate-limit-chars: 8 3 5;
    -webkit-hyphenate-limit-lines: 2;

    /* CSS4 standard properties for hyphenation. If a property isn't represented
     * in the standard, don't put a vendor-prefixed property for it above.
     */
    hyphens: auto;
    hyphenate-limit-chars: 8 3 5;
    hyphenate-limit-lines: 2;
    hyphenate-limit-last: page;
}

h1, h2, h3, h4, h5, h6, td {
    -webkit-hyphens: none !important;
    hyphens: none !important;
}
</style>
So I think you fixed it!! It looks like adding the hyphenation under 'kepubify-extra-css' was the trick.

Thank you so much, Kovid!! Sorry to be such a bother, now I shall return to reading Dan Moren's The Nova Incident...
.tycho is offline   Reply With Quote
Old 04-01-2025, 04:58 PM   #105
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,665
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by .tycho View Post
Is there a way to download the latest commit as a compiled binary for macOS? I couldn't find one, so I cloned the repo using git and ran "calibre-debug -g", which showed the version as "8.1.1*", which I'm pretty sure tells me I'm running the latest commit.

I sent a KEPUB to my Kobo, checked how it looks, and what do I see? Hyphens at the end of lines!!

I opened a chapter to view the code, and here's what I now see:
Code:
    <style type="text/css" id="kobostylehacks">div#book-inner { margin-top: 0; margin-bottom: 0; }</style>
    <style type="text/css" id="kepubify-extra-css">
* {
    /* Vendor-prefixed CSS properties for hyphenation. Keep -webkit first since
     * some user agents also recognize -webkit properties and will apply them.
     */
    -webkit-hyphens: auto;
    -webkit-hyphenate-limit-after: 5;
    -webkit-hyphenate-limit-before: 3;
    -webkit-hyphenate-limit-chars: 8 3 5;
    -webkit-hyphenate-limit-lines: 2;

    /* CSS4 standard properties for hyphenation. If a property isn't represented
     * in the standard, don't put a vendor-prefixed property for it above.
     */
    hyphens: auto;
    hyphenate-limit-chars: 8 3 5;
    hyphenate-limit-lines: 2;
    hyphenate-limit-last: page;
}

h1, h2, h3, h4, h5, h6, td {
    -webkit-hyphens: none !important;
    hyphens: none !important;
}
</style>
So I think you fixed it!! It looks like adding the hyphenation under 'kepubify-extra-css' was the trick.

Thank you so much, Kovid!! Sorry to be such a bother, now I shall return to reading Dan Moren's The Nova Incident...
@kovidgoyal would it be possible to please put the hyphenation code into it's own CSS (aka hyphenation.css) so we don't have all of that code bloat? Thanks.
JSWolf is offline   Reply With Quote
Reply

Tags
calibre, kepub, kobo, sideloading


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Calibre library with only kepub Regard_39 Kobo Reader 48 07-18-2024 02:40 AM
Creating epub/kepub books (docx→epub/kepub via MS Word→Calibre) SJC-Caron ePub 18 04-21-2016 11:10 AM
Is there a way to import kepub to calibre/convert a kepub to other formats? Major General Library Management 9 04-08-2014 10:00 PM
Mini kepub not showing in Calibre paola Kobo Reader 10 08-11-2013 09:34 AM
Touch Sideloaded EPUBs with KEPUB features jpelgrom Kobo Reader 22 08-01-2012 04:27 PM


All times are GMT -4. The time now is 08:02 PM.


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