05-15-2017, 10:33 AM | #1 |
Member
Posts: 17
Karma: 10
Join Date: Apr 2017
Device: Tolino
|
Quotation mark
Hello, I have an epub where no typographical quotation marks are in (Inch ").
If I want to change it, he also changes the XML Attribute e.g. <link rel="stylesheet" href="../Styles/main.css" type="text/css"/> with. How can I change the quotation marks to » and « or typographic correct “…” Sorry for my bad english. |
05-15-2017, 11:04 AM | #2 |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
There are a few different ways to do this each with their own drawbacks:
1) You could remove the <link> by selecting all your html files in the book view, right click and select link stylesheets, then clear the checkboxes. Then run your search/replace, Then re-link the stylesheets. Unfortunately most headers include " in other locations like the doctype. 2) Run the search and replace in 2 passes. The first pass to replace the ", the second pass to replace the corrupted headers with a good one. Highlight the entire corrupted header, Push the Find&Replace button to copy the bad header, then type or paste a good header into the replace field. You may have to select the "DotAll" option. 3) Perform the Search/Replace on each individual html sheet (select "Current File") and deselect "Wrap". When you place your cursor just below the header it will replace all " until the bottom of the file. This will replace any " you have in class names though, so you would have to do a second search to replace those with the ". 4) Do a first pass to change the good " to something that is not used anywhere else in the book like: search: " replace: zzzxxxccc Than do your normal search(es) to fix the ". Then search and replace to put the original " back: search: zzzxxxccc replace: " 5) I'm sure some of the regex guru's have a method to ignore what's inside of the <> tag symbols, but I'm not smart enough to do that - maybe they can chime in with something. I'd recommend #4 as being the least complicated, but choose whichever method you prefer. Cheers, |
Advert | |
|
05-15-2017, 11:14 AM | #3 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
The easiest way might be to install the "Smarten Punctuation Plugin" which you can download from our forum
It will ignore all attributes and any quotes within tags. Check out ... https://www.mobileread.com/forums/sh...d.php?t=247088 and for a complete list of Sigil Plugins see: https://www.mobileread.com/forums/sh...d.php?t=247431 |
05-21-2017, 11:11 PM | #4 |
Member
Posts: 17
Karma: 10
Join Date: Apr 2017
Device: Tolino
|
"Smarten Punctuation Plugin"
how does it work ? I do not understand the tool and it does not go. https://www.mobileread.com/forums/sh...d.php?t=247088 |
05-22-2017, 03:49 AM | #5 |
Member
Posts: 17
Karma: 10
Join Date: Apr 2017
Device: Tolino
|
What must be set?
|
Advert | |
|
05-23-2017, 07:25 AM | #6 |
Groupie
Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
|
From the screen you have given us, select the files you want to smarten--Chap1 through Chap8, then press "Process." After a moment you will be told "8 files processed," click okay. Now you can do your search and replace on the new “smart quotes”, both the opening and the closing ones.
|
08-10-2017, 08:34 AM | #7 |
♫
Posts: 660
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
This thread is a bit older, but anyway, here's what I do in these cases:
Search for (>[^<]*)old and replace it with \1new "old" may include ", but anything (including ") within html tags will not be touched. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EPUB to MOBI, kindle shows extra space after quotation mark | akita | Kindle Formats | 29 | 02-05-2016 02:14 AM |
Wrong line breaks after quotation mark - Abbyy Finereader | 1v4n0 | Workshop | 6 | 09-20-2014 05:17 AM |
Kindle: left double quotation mark + n shows as Lowercase N-apostrophe(before) | pajen | Devices | 0 | 08-30-2014 10:20 AM |
Help with quotation please | AlexBell | Reading Recommendations | 6 | 05-13-2013 02:35 AM |
Forcing a quotation mark style | Hoods7070 | Sigil | 27 | 05-04-2013 03:41 AM |