![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2021
Device: none
|
epub to epub: removing hyphens without other changes
Hi! I need to remove unnecessary hyphens in an epub3, and have tried the heuristic processing option when converting from epub to epub. It seems that Calibre also edits file structure and contents, leaving the resulting epub3 unusable to my needs.
I have tried to tweak the settings to make Calibre edit just the hyphens, but to no avail. Is there a way to just remove the unnecessary hyphens without editing the entire epub? |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,038
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; -epub-hyphens: none; -webkit-hyphens: none; hyphens: none; } |
|
![]() |
![]() |
![]() |
#3 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2021
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Seems to me, that program needs to adjust its interpretation based upon context. double<very short new word pause>barreled I believe the CSS code JUST instructs the render engine (viewer) on how to BREAK words for visual line fit. Those places might not always coded in the book (soft). |
|
![]() |
![]() |
![]() |
#5 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 443
Karma: 3367292
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Quote:
If that is your case, you could remove them with search and replace, but like theducks said, what do you do where they are valid, like "forty-two"? If you just have a bad book to start with, your only option is to proofread it and manually remove the bad ones. Very tedious indeed. One thing you might try--examine them closely in the editor. I've seen the odd book where the end-of-line hyphens came through as "- " (hyphen space), but the valid ones had no space, and I could clean it up by searching out the "- " instances. But never perfect: proofing still needed. |
|
![]() |
![]() |
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,038
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Spell check the book. It should find words broken with hyphens.
|
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,613
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I would use the Editor's Tools->Reports->Words list with a '-' in the filter, it should be easy to spot any questionable hyphenation, and fix in the code editor, viz:
BR |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Sep 2016
Device: nexus 5X
|
brilliant !
|
![]() |
![]() |
![]() |
Tags |
conversion, epub, heuristic processing, unnecessary hyphens |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Soft hyphens lost on conversion to EPUB | David Booth | Conversion | 4 | 06-23-2017 06:33 AM |
hyphens - comparing epub - kepub in 3.15.0 | cramoisi | Kobo Reader | 13 | 05-24-2015 07:25 AM |
ePub to pdf: Doesn't respect soft hyphens in ePub | EbokJunkie | Conversion | 4 | 11-18-2013 03:27 AM |
Calibre deletes soft Hyphens in Epub ? | NASCARaddicted | Calibre | 4 | 09-20-2009 06:31 PM |
Certain hyphens being removed on HTML to ePub | phunkysai | Calibre | 4 | 05-19-2009 03:17 PM |