Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-02-2017, 07:02 PM   #1
Strel
Member
Strel began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2017
Device: none
Redundant spaces in dialogues

Hi,


I have redundant spaces in dialogues after the dashes, see :



It's totally random, it does not seem to follow a particular pattern. The problem appears on the whole book, so I can not edit this manually for each space. Is there a way to do it automatically?

The problem also appears on my Kobo. However if I set the justification by default, the problem disappears (the book is not justified by default). In other words, I do not have this problem on an unjustified text.

Thanks.

Last edited by Strel; 06-02-2017 at 07:04 PM.
Strel is offline   Reply With Quote
Old 06-02-2017, 10:11 PM   #2
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
Have you looked at the book in the editor? If there are extra spaces or other unexpected characters, you should be able to use search and replace, but you need to know what is there before you can fix it.

But, I doubt that there is a problem in the book.

If extra space appears when full justification is on, but not when it is off, then it is probably created by the justification engine in the reader. If that screenshot is from your Kobo device, is it a kepub? If so, it isn't unexpected as the kepub render adds spaces around em-dashes when doing the justification.
davidfor is offline   Reply With Quote
Advert
Old 06-03-2017, 04:09 AM   #3
Strel
Member
Strel began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2017
Device: none
The screenshot comes from Calibre, so, I don't think the spaces are created by the readers since I have this problem on two different readers (Calibre and Kobo and I just Sumatra).

Concerning the file, it's an epub (in the screenshot). The problem is the same on the kepub converted from the epub.

I did not examine the book : I am a novice, I don't know anything about it.
Strel is offline   Reply With Quote
Old 06-03-2017, 04:23 AM   #4
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,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
There is nothing wrong. What I do if I see em dashes with spaces around them is remove the spaces. I prefer without the spaces.
JSWolf is offline   Reply With Quote
Old 06-03-2017, 04:40 AM   #5
Paulie_D
Connoisseur
Paulie_D began at the beginning.
 
Paulie_D's Avatar
 
Posts: 67
Karma: 10
Join Date: Apr 2011
Device: Kindle 3, Samsung Tab 4
If it's actually two "spaces" in the HTML, it can be addressed with a Search and Replace in editing.

Regex Search for \s\s+

Replace with a single space.
Paulie_D is offline   Reply With Quote
Advert
Old 06-03-2017, 04:59 AM   #6
Strel
Member
Strel began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2017
Device: none
Are you sure that everything is fine?

I just noticed one thing in Sigil, it looks like it's a layout problem or I do not know how to call it :

When the text is condensed, spaces appear : http://i.imgur.com/C76Fll1.png

But if the text is more spread out, they disappear :
http://i.imgur.com/b6IypzV.png

Moreover, I forgot to mention it, the publisher offers several versions : an epub edition in two large parts and a kobo edition (in epub, that I convert un kepub) in three smaller files. The issues appears only in the kobo version (the part 2/3), so I don't think it's intentional from the publisher. I wanted to get around the problem using the epub version but I can't convert it, the file is too big.

Last edited by Strel; 06-03-2017 at 05:03 AM.
Strel is offline   Reply With Quote
Old 06-03-2017, 05:32 AM   #7
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Strel View Post
Are you sure that everything is fine?

I just noticed one thing in Sigil, it looks like it's a layout problem or I do not know how to call it :

When the text is condensed, spaces appear : http://i.imgur.com/C76Fll1.png

But if the text is more spread out, they disappear :
http://i.imgur.com/b6IypzV.png
That's just justification inserting the extra space. Nothing unexpected. If you don't want to the space to appear, you'd need to edit the book and replace the dash followed by whitespace with just a dash.
HarryT is offline   Reply With Quote
Old 06-03-2017, 05:49 AM   #8
Strel
Member
Strel began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2017
Device: none
Actually, I don't see any redundant space here :

http://i.imgur.com/gFzBlMC.png

The three lines appear to be perfectly the same.
But if I press left-align, the problem is solved but the text is not justified.

http://i.imgur.com/HxH78d3.png

I also have tried to manually remove the space with backspace : it works.

http://i.imgur.com/U2PrBOA.png


But I can't do that thousands of times for each space... So, is there a way to do it automatically? If not, so be it, and thanks for your help.
Strel is offline   Reply With Quote
Old 06-03-2017, 05:50 AM   #9
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Sure - use "search and replace" in Calibre's editor.
HarryT is offline   Reply With Quote
Old 06-03-2017, 06:38 AM   #10
Strel
Member
Strel began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2017
Device: none
OK, thanks. I partially solved the problem : I can edit one htm file at a time, but not all of them. I can't select them all one by one with CTRL since there are more than 5,000 files. I would like to select them all at the same time, is there a way ?

Last edited by Strel; 06-03-2017 at 06:52 AM.
Strel is offline   Reply With Quote
Old 06-03-2017, 06:52 AM   #11
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
You can set the scope of the search and replace operation to be across all files in the book.
HarryT is offline   Reply With Quote
Old 06-03-2017, 11:38 AM   #12
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,740
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 Strel View Post
The three lines appear to be perfectly the same.
But if I press left-align, the problem is solved but the text is not justified.

http://i.imgur.com/HxH78d3.png
I do see another problem. There should not be a space in front of a semicolon or a colon.
JSWolf is offline   Reply With Quote
Old 06-03-2017, 11:41 AM   #13
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by JSWolf View Post
I do see another problem. There should not be a space in front of a semicolon or a colon.
In French, Jon, it's the normal practise to put a space before semicolons, colons, question marks, etc. Punctuation conventions differ between languages.
HarryT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redundant TOC in Mobi drmar35mm Conversion 5 02-14-2014 01:51 PM
Pruning redundant and partially redundant tags Sidetrack Library Management 0 03-01-2013 05:05 PM
Redundant topic line Steven630 Recipes 6 06-22-2012 12:43 PM
bad / redundant html ? cybmole Calibre 0 12-29-2010 11:49 AM
Redundant collections after using calibre Yarrow Calibre 0 12-25-2008 04:30 PM


All times are GMT -4. The time now is 11:47 PM.


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