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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-21-2014, 12:01 PM   #1
Alt68er
Member
Alt68er began at the beginning.
 
Posts: 19
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">
or

Code:
<p><span class="S-T">
or similar expressions.

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
Alt68er is offline   Reply With Quote
Old 01-21-2014, 12:33 PM   #2
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: 14,868
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
theducks is offline   Reply With Quote
Old 01-21-2014, 04:36 PM   #3
capidamonte
Not who you think I am...
capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!
 
capidamonte's Avatar
 
Posts: 346
Karma: 5337
Join Date: Jan 2010
Location: Honolulu
Device: Sony PRS-350
Try running these three sequences, in order:

Code:
Search: ([>\s])\&quot\;(.*?[^\s])\&quot\;([<\s])
Replace: \1&ldquo;\2&rdquo;\3

Search: ([>\s])\&quot\;(.*?[^\s])\&rdquo\;([<\s])
Replace: \1&ldquo;\2&rdquo;\3

Search: ([>\s])\&ldquo\;(.*?[^\s])\&quot\;([<\s])
Replace: \1&ldquo;\2&rdquo;\3
You can replace the entity names with whatever characters you need, such as " or ', or other appropriate entity names, such as British single-quotes, or cyrillic double-angle quotes, etc.

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.
capidamonte is offline   Reply With Quote
Old 01-21-2014, 06:47 PM   #4
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: 5,684
Karma: 5656630
Join Date: Jul 2011
Location: Australia
Device: Kobo Touch, Kobo Glo
Quote:
Originally Posted by theducks View Post
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
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.
davidfor is offline   Reply With Quote
Old 01-24-2014, 11:57 AM   #5
Alt68er
Member
Alt68er began at the beginning.
 
Posts: 19
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
Alt68er 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
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


All times are GMT -4. The time now is 11:58 AM.


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