Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 12-06-2022, 04:36 PM   #1
mcandre
Connoisseur
mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!
 
Posts: 54
Karma: 5000
Join Date: Oct 2012
Device: Kindle
Question How to normalize smart quotes and apostrophes for Kindle?

It's nearly 2023 and Amazon Kindle still does a shite job of rendering Unicode smart quotes and smart apostrophes. Normally when this happens, I edit the reflowable ePUB with the Sigil application, performing four Find & Replace All in all HTML file operations, one for each type of smart quote / apostrophe.

Is there an automated way to accomplish this directly in Calibre? Perhaps an option within the ePUB conversion default configuration, so that converting MOBI -> ePUB or ePUB -> ePUB results in books with strictly ASCII double quotes (") and apostrophes (')?

I already have Kindle Paperwhite set as the default target, but evidently that option is not aggressively ensuring that ebooks are formatted for consumption by Kindles.
mcandre is offline   Reply With Quote
Old 12-06-2022, 05:10 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: 74,037
Karma: 129333114
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 mcandre View Post
It's nearly 2023 and Amazon Kindle still does a shite job of rendering Unicode smart quotes and smart apostrophes. Normally when this happens, I edit the reflowable ePUB with the Sigil application, performing four Find & Replace All in all HTML file operations, one for each type of smart quote / apostrophe.

Is there an automated way to accomplish this directly in Calibre? Perhaps an option within the ePUB conversion default configuration, so that converting MOBI -> ePUB or ePUB -> ePUB results in books with strictly ASCII double quotes (") and apostrophes (')?

I already have Kindle Paperwhite set as the default target, but evidently that option is not aggressively ensuring that ebooks are formatted for consumption by Kindles.
Use the Modify ePub plugin with Claibre to set your ePub to be UTF-8. Then that should solve the problem. You can stop all this excess converting.
JSWolf is offline   Reply With Quote
Old 12-06-2022, 05:18 PM   #3
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,169
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
It is the lack of a UTF-8
No need for HTML entities. “and” with ‘and’ are all fine with epub to KDP. The " and ' are only for typewriters and programming. Feet is ′ and inches are ″ (prime and double prime and work on Amazon). The ' might be used in some transliterations of some languages, maybe Farsi or Arabic. The ` on keyboards is only meant as a dead key for words like Sìde (Scottish) or some continental words, it’s not an opening quote. MS Word and LO Writer sometimes use an opening quote instead of an apostrophe, you need to explicitly type ’90s and not expect correct smart conversion of '90.

Blame IBM for basically using a 1928 teletype keyboard design based on Victorian typewriter for all the issues of quotes and apostrophes and primes and blame earlier USA (not IBM as they used EBCDIC) for wasting lots of the 126 characters on control functions instead of fewer and Escape for rest. Even 255 characters was still not used by email in 21st C.

Last edited by Quoth; 12-06-2022 at 05:35 PM.
Quoth is offline   Reply With Quote
Old 12-06-2022, 07:25 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Paperwhite's can reder smart quotes just fine. Convert your book to azw3 and send it to the kindle via USB and it will work fine.
kovidgoyal is offline   Reply With Quote
Old 12-31-2022, 03:14 PM   #5
Patricia1066
Zealot
Patricia1066 is a splendid one to beholdPatricia1066 is a splendid one to beholdPatricia1066 is a splendid one to beholdPatricia1066 is a splendid one to beholdPatricia1066 is a splendid one to beholdPatricia1066 is a splendid one to beholdPatricia1066 is a splendid one to beholdPatricia1066 is a splendid one to beholdPatricia1066 is a splendid one to beholdPatricia1066 is a splendid one to beholdPatricia1066 is a splendid one to behold
 
Patricia1066's Avatar
 
Posts: 131
Karma: 19894
Join Date: Mar 2010
Location: Bromley, UK
Device: Kindle PW 10th gen, Kindle Fire 7 9th gen, Kindle KB 3rd gen
I assume my epubs will fail to render when emailed to my paperwhite kindle, and convert epub to epub with utf-8 specified. It is very quick
Patricia1066 is offline   Reply With Quote
Old 12-31-2022, 04:16 PM   #6
mcandre
Connoisseur
mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!
 
Posts: 54
Karma: 5000
Join Date: Oct 2012
Device: Kindle
I may try the plugin.

That should really be the default behavior when importing reflowable text ebooks into the Calibre library. And the default behavior for Amazon's WhisperSync upload.

Meanwhile, I have been forcibly converting all smartquotes and smart apostrophes with a command line script:

https://github.com/mcandre/nile
mcandre is offline   Reply With Quote
Reply

Tags
conversion, kindle, smart, unicode


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert straight quotes to smart 'curly' typographer's quotes bookman156 ePub 52 06-20-2016 03:09 PM
Curly quotes or apostrophes? storax Workshop 2 06-19-2013 11:43 AM
Stranger conversion of quotes and apostrophes MartinGFoster Calibre 1 05-16-2013 02:41 AM
Quotes, apostrophes, what a pain. draconic Conversion 4 12-30-2011 10:23 AM
Help - Calibre stripping out apostrophes and quotes GingerTez Calibre 3 11-13-2008 04:31 PM


All times are GMT -4. The time now is 04:26 PM.


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