Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-15-2017, 10:33 AM   #1
Michit1
Member
Michit1 began at the beginning.
 
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.
Michit1 is offline   Reply With Quote
Old 05-15-2017, 11:04 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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,
Turtle91 is offline   Reply With Quote
Old 05-15-2017, 11:14 AM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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
KevinH is online now   Reply With Quote
Old 05-21-2017, 11:11 PM   #4
Michit1
Member
Michit1 began at the beginning.
 
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
Michit1 is offline   Reply With Quote
Old 05-22-2017, 03:49 AM   #5
Michit1
Member
Michit1 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Apr 2017
Device: Tolino
What must be set?
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	157
Size:	25.1 KB
ID:	156925   Click image for larger version

Name:	2.png
Views:	155
Size:	32.4 KB
ID:	156926  
Michit1 is offline   Reply With Quote
Old 05-23-2017, 07:25 AM   #6
JustinThought
Groupie
JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.JustinThought ought to be getting tired of karma fortunes by now.
 
JustinThought's Avatar
 
Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
Quote:
Originally Posted by Michit1 View Post
What must be set?
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.
JustinThought is offline   Reply With Quote
Old 08-10-2017, 08:34 AM   #7
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
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.
WS64 is offline   Reply With Quote
Reply


Forum Jump

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


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


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