Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 07-18-2020, 06:35 PM   #1
andy9279
Member
andy9279 began at the beginning.
 
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.
andy9279 is offline   Reply With Quote
Old 07-18-2020, 07:19 PM   #2
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,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?
JSWolf is offline   Reply With Quote
Advert
Old 07-18-2020, 09:43 PM   #3
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
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.
rashkae is offline   Reply With Quote
Old 07-19-2020, 07:30 AM   #4
andy9279
Member
andy9279 began at the beginning.
 
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!
andy9279 is offline   Reply With Quote
Old 07-19-2020, 10:42 AM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
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.
davidfor is offline   Reply With Quote
Advert
Old 07-19-2020, 10:42 AM   #6
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,741
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 andy9279 View Post
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.
The language is not set in the CSS. It is set in the OPF.
Code:
<dc:language>en-US</dc:language>
JSWolf is offline   Reply With Quote
Old 07-19-2020, 12:32 PM   #7
andy9279
Member
andy9279 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2013
Device: none
Quote:
Originally Posted by JSWolf View Post
The language is not set in the CSS. It is set in the OPF.
Code:
<dc:language>en-US</dc:language>

Thank you for that...I looked in the OPF file and it was set to "en" so I made it "en-US" but it didn't seem to fix it unfortunately.
andy9279 is offline   Reply With Quote
Old 07-19-2020, 01:50 PM   #8
andy9279
Member
andy9279 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2013
Device: none
Quote:
Originally Posted by davidfor View Post
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.

THANK YOU! This fixed it. I was confused because I didn't see &nbsp; 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.
andy9279 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


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


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