![]() |
#16 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Well, to be fair, there simply shouldn't be any spaces. Same way there shouldn't be spaces before ? ! . ,
Cause it looks like crap when the line happens to break there and the punctuation just goes into the next line , because there was a space in front of it. The smartypants code only looks at chars before/after the ", so it relies on the formatting alone. It does not have a logic that makes the first " in a paragraph opening, the next one closing, etc. |
![]() |
![]() |
![]() |
#17 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |||
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Quote:
Quote:
In Gregor and the Curse of the Warmbloods it looks like this: Quote:
I haven't found a book where it's actually a space. If it's actually necessary, a nonbreakable space should be used instead, as it otherwise can turn out ugly depending on screen / font size. |
|||
![]() |
![]() |
![]() |
#19 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
It's clearly a space in my printed "Sherlock Holmes" books, and I think personally it looks a lot better like that - it's much easier to read. I guess it's an editorial choice at the end of the day.
|
![]() |
![]() |
![]() |
#20 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
I've got a complete collection of Sherlock Holmes, reprints of the Strand magazines.
As well as what HarryT says there's a space following any open quote, also has spaces between words an question/exclamation marks and also another space if there's a following quote. From A Study In Scarlet Quote:
From The Murder at the Vicarage. Quote:
|
||
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
That's horrible.
I couldn't read an ebook like that. I'd have to fix this with search&replace first. |
![]() |
![]() |
![]() |
#22 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#23 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Yes, sure. One could also argue that it should never close a quote when there it has no opening quote to partner it. But that's simply not how the code works at the moment. It's called smart punctuation but it's really just a simple heuristic which may or may not work.
It actually works quite well all things considered, but with strange formatting such as these space characters it fails. Also I'm not sure if the original code has a concept of paragraphs at all, looks more like it's originally designed for plain text, such as what people write in a textarea form field. |
![]() |
![]() |
![]() |
#24 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,428
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#25 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
Em dashes should be wrapped with a thin space if the glyph isn't designed to provide the space. Leaving out the space is a modern electronic font habit since may fonts and layout programs kern (letterspace) the character properly with a space. Traditionally (read: hand set metal type) a thin space should be added before and after an em dash. Since most fonts in ereaders seem to not provide any kerning/letterspacing and since most ereaders won't break a line at an em dash when there is no space, ebooks should have a space before and after an em dash when it occurs in its proper position between two words. The examples I listed occur when my S&R sweeps miss this inappropriate use of trailing em dashes. Using such em dashes seems to have been common with some writers and publishers. In truth, they should be ellipses. I some times change them and sometimes retain the original typography. When my S&R sweeps work correctly, the trailing em dashes are spaced with a non-breaking space to avoid the evil "only the punctuation wraps" error, omitting the trailing space before the end punctuation. |
|
![]() |
![]() |
![]() |
#26 | |||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
Fixes for following should be in next release.
Quote:
Quote:
Quote:
![]() |
|||
![]() |
![]() |
![]() |
#27 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
@HarryT, and others, can you test and let me know if everything is now correct for you.
|
![]() |
![]() |
![]() |
#28 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Sorry, I've been away for the last week. Do I just download the latest version of Calibre and test with that?
|
![]() |
![]() |
![]() |
#29 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
Yes, the changes went into the latest version. Can you test on file/s which was/were showing incorrect smartened quotes.
Thanks. |
![]() |
![]() |
![]() |
#30 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
In 0.8.51 it still fails with a closing italics (</ i> or </ em>) tag just before the close quote. See attached examples (original tick-mark quotes in ePub and conversion to MOBI with smart quotes)
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Smarten punctuation slows conversion | kakkalla | Calibre | 22 | 01-20-2011 07:22 AM |
Configuration of "Smarten Punctuation" | Korben Dallas | Calibre | 2 | 12-31-2010 07:12 AM |
Simpler Way to Smarten Punctuation | Rand Brittain | Calibre | 3 | 10-10-2010 08:16 PM |
Thanks for new 'Smarten Punctuation' feature | jackie_w | Calibre | 1 | 09-21-2010 02:53 PM |
"The Situation" by Jeff VanderMeer - free download | Kingston | Deals and Resources (No Self-Promotion or Affiliate Links) | 10 | 03-17-2008 11:39 PM |