![]() |
#1 |
Member
![]() Posts: 20
Karma: 10
Join Date: Dec 2013
Device: Pocketbook touch lux (623)
|
How to search/replace double quote with left/right double quote ?
Hi,
I have a lot of ebooks which are using the correct left double quote but at the end the double quote instead of the correct right double quote. When doing a search and replace then ALL the double quotes are replaced which is not really helpfull in case of Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> Code:
<p><span class="S-T"> I want to replace them only within the "normal" text. Can anyone tell me please how I can do that? I did not find a way by myself... 1000 thanks in advance and regards, Peter |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
ebook-editor (part of) Calibre has smartypants built in
You don't need to convert to use the new editor, but you do need to install Calibre |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Not who you think I am...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Try running these three sequences, in order:
Code:
Search: ([>\s])\"\;(.*?[^\s])\"\;([<\s]) Replace: \1“\2”\3 Search: ([>\s])\"\;(.*?[^\s])\&rdquo\;([<\s]) Replace: \1“\2”\3 Search: ([>\s])\&ldquo\;(.*?[^\s])\"\;([<\s]) Replace: \1“\2”\3 Don't forget to notice the "literal" slashes if you modify the expression. It should properly ignore the quotation marks inside of HTML tags. Nonetheless, experiment with care. I've modified this slightly from my NoteTab use to suit Sigil -- it may have errors -- if anyone notices, please inform and update. Aloha. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
The Polish Books function in calibre also has it as an option. As does the Modify ePub plugin which is what I normally use out of long standing habit.
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 20
Karma: 10
Join Date: Dec 2013
Device: Pocketbook touch lux (623)
|
Thanks a lot for your attention and hints.
First I tried the "Polish books function" in the calibre ebook-editor. This really works great with one mouseclick. Thanks again and a nice weekend, Peter |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Literature Quiz Game - Quote for Quote | glowingeyegames | Self-Promotions by Authors and Publishers | 0 | 07-16-2012 12:50 PM |
epub "padding left" to mobi "block quote" conversion issue | 1611mac | Conversion | 3 | 01-11-2012 02:10 PM |
Single-quote/Double-quote | Rand Brittain | ePub | 9 | 09-01-2011 11:34 AM |
Quote's | aadvlag | Conversion | 3 | 06-14-2011 01:23 AM |
The Kno: A giant double-screen tablet to replace giant textbooks | Sweetpea | News | 25 | 06-19-2010 03:48 PM |