![]() |
#1 |
Member
![]() Posts: 13
Karma: 10
Join Date: Sep 2013
Device: none
|
New line starts with a comma
I often edit books in Calibre to remove widows, orphans and space between paragraphs. With this one particular book I've noticed if a comma is set to end on a line, it gets shifted to the next line like this on my Kobo...
To get to the heart of a city [end of line] ‚ to learn its most subtle secrets [end of line] ‚ takes infinite tenderness‚ and [end of line] patience sometimes to the point of despair. [end of line] It doesn't happen with every comma, just when a line of text on the reader ends with a comma. This doesn't happen with periods or semicolons. The text is set to justified. I loaded the epub into Calibre and went to "Edit Book" to see if there was anything strange with the commas or formatting, but didn't see anything, no spaces before commas for example. Anyone encountered this problem? Thanks, Andy H. |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
ePub or KePub? What firmware?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 5935030
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Check if the book is set to some odd language.
|
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 13
Karma: 10
Join Date: Sep 2013
Device: none
|
This is an epub file. I am running 4.21.15015 on the Kobo. I cannot find a specific language set in the CSS file.
One strange thing I have noticed is if I open the epub on my computer on the Calibre ebook viewer and copy some text, paste it into Wordpad, then shrink down the Wordpad window size, I can never get a line of text there to END with a comma before it wraps to the next line. For example I copy the following sentence... You're no true Parisian, you do not know your city, if you haven't experienced its ghosts. I can get it to wrap this way... You're no true Parisian, you do not know your city, if [end] you haven't experienced its ghosts. Or shrink the window down further I can get this... You're no true Parisian, you do not know your [end] city, if you haven't experienced its ghosts. But I cannot get it to end THIS way... You're no true Parisian, you do not know your city, [end] if you haven't experienced its ghosts. Same in LibreOffice Writer. Neither of these will start a line with a comma as the kobo does, but it's like the word-comma-space-and-next word are all one unit. This is the first time I've ever encountered this, I can live with it for this one book, but I'd like to know if someone knows what is going on, maybe I can fix it if I encounter it again. Thanks! |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
We need to see the book to try an guess what is going. Unfortunately, comparing it to the calibre viewer, or LibreOffice does little more than say "Some other renderer handles the text in a different way". Using the clipboard to past the text elsewhere doesn't help much either. A lot of formatting will be lost that way. And characters can be stripped or converted to ASCII or something similar.
After posting the above, I reread what you had posted. The above is usually valid, but, I was probably overcomplicating it. You probably have a non-breaking space after the comma. Last edited by davidfor; 07-19-2020 at 10:47 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 13
Karma: 10
Join Date: Sep 2013
Device: none
|
|
![]() |
![]() |
![]() |
#8 | |
Member
![]() Posts: 13
Karma: 10
Join Date: Sep 2013
Device: none
|
Quote:
THANK YOU! This fixed it. I was confused because I didn't see anywhere in the code when I opened the book in Edit mode, and I don't have a ton of experience editing books. But I went ahead and just search/replaced all commas with , or simply comma-space would work too. It's a bit brute force perhaps, but it seems to have fixed the problem. Thank you for putting me on the right path. Andy H. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
space after comma in template | Tanjamuse | Library Management | 4 | 04-27-2020 05:39 PM |
Regexp for author name: No switching and no comma, how? | crdf | Library Management | 8 | 08-06-2013 05:45 PM |
_ before but now a comma | pghaworth | Calibre | 7 | 05-09-2013 09:22 PM |
Using a comma in the Tags field | Agama | Calibre | 1 | 11-22-2010 06:10 PM |