Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-18-2011, 10:52 AM   #1
Gwen Morse
Addict
Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.
 
Posts: 254
Karma: 59872
Join Date: Dec 2009
Location: New York, USA
Device: Kindle 3 (wifi) + nokia n900 tablet phone
Smart Single Quotes (RTF)

I have a RTF file with smart single quotes.

When converting to either epub or mobi, Calibre turns them into letters e and f (like so):

eYes, yes,f Dominic said, with a dismissive wave. eAnyone else would have done the same. Say no more about it.f

Is there a way to get Calibre to recognize them as quote marks and convert them properly?
Gwen Morse is offline   Reply With Quote
Old 06-18-2011, 01:07 PM   #2
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try saving your rtf as html in word and convert that.
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 06-19-2011, 05:06 AM   #3
Gwen Morse
Addict
Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.
 
Posts: 254
Karma: 59872
Join Date: Dec 2009
Location: New York, USA
Device: Kindle 3 (wifi) + nokia n900 tablet phone
This worked, thanks!
Gwen Morse is offline   Reply With Quote
Old 06-19-2011, 01:12 PM   #4
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 4,056
Karma: 46719512
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindles 2, KB, PW 1, PW 2, Voyage, & Fire 2 -- iPad mini
Cool even smarter

Quote:
Originally Posted by kovidgoyal View Post
Try saving your rtf as html in word and convert that.
is there a way to smarten the punctuation in the case where the quotes appear as ['] to quotes that appear like this ["] (except, of course as the smartened 'curly-type')
alansplace is offline   Reply With Quote
Old 06-19-2011, 01:22 PM   #5
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, not automatically. you can use smarten punctuation to make a single quote into a curly single quote but not a curly double quote
kovidgoyal is offline   Reply With Quote
Old 06-19-2011, 01:57 PM   #6
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 4,056
Karma: 46719512
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindles 2, KB, PW 1, PW 2, Voyage, & Fire 2 -- iPad mini
Cool thank you

Quote:
Originally Posted by kovidgoyal View Post
No, not automatically. you can use smarten punctuation to make a single quote into a curly single quote but not a curly double quote
yeah, i knew that and figured there wasn't a way to do what i asked, but thought that asking couldn't hurt. thanks.
alansplace is offline   Reply With Quote
Old 06-19-2011, 04:32 PM   #7
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,229
Karma: 5940081
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by alansplace View Post
yeah, i knew that and figured there wasn't a way to do what i asked, but thought that asking couldn't hurt. thanks.
Use the REGEX in Sigil.
It will take 2-3 passes to avoid apostrophes, and apply the correct curl.
Search for <space>'
replace with: space "

second pass [^n]'<space> try and skip words like nutn'
replace with: "<space>

Third pass MANUAL REPLACE MODE
n'<space> check the exceptions of pass 2, Next or Replace as needed.
theducks is offline   Reply With Quote
Old 06-19-2011, 06:59 PM   #8
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 4,056
Karma: 46719512
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindles 2, KB, PW 1, PW 2, Voyage, & Fire 2 -- iPad mini
Cool HUH!?

Quote:
Originally Posted by theducks View Post
Use the REGEX in Sigil.
It will take 2-3 passes to avoid apostrophes, and apply the correct curl.
Search for <space>'
replace with: space "

second pass [^n]'<space> try and skip words like nutn'
replace with: "<space>

Third pass MANUAL REPLACE MODE
n'<space> check the exceptions of pass 2, Next or Replace as needed.
ok....please understand that i'm a sigil neophyte and the question arises....

HUH!?

....by which i mean that i cannot find anything called regex in sigil 4.....ah ha, 'regular expressions' that's what you're referring to. so set the find/replace function to use regular expressions & use your recomendations in several passes.

thanks, i'll try it/them next time i hit a document with those offensive single quotes.

great minds, gotta' love 'em!
alansplace is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change single quotes to double quotes Elfwreck Workshop 16 04-26-2013 11:06 AM
Single quotes to double quotes? lunixer General Discussions 35 10-10-2010 06:47 AM
Smart Quotes Toxaris ePub 2 05-31-2010 11:32 AM
Smart quotes in XHTML? MaggieScratch ePub 12 03-28-2009 06:53 PM
Smart quotes in RTF? ogghead Sony Reader 8 01-23-2007 07:38 PM


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


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