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 10-06-2012, 12:20 PM   #16
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
Posts: 320
Karma: 56788
Join Date: Jun 2011
Device: Kindle
@meme-- what does (?si) mean? Also, I haven't been able to find anything that lists these kinds of statements (eg (?si), (?s), (?U), etc...), do you know of a website that does?
ElMiko is offline   Reply With Quote
Old 10-06-2012, 12:23 PM   #17
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Try the Sigil User Guide tutorial on Regex...it has links to other sites.

i is ignore case
s is dot all
meme is offline   Reply With Quote
Advert
Old 10-06-2012, 02:20 PM   #18
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
Posts: 320
Karma: 56788
Join Date: Jun 2011
Device: Kindle
Thanks meme. I'm still struggling with understanding part of the regex though, specifically:

Code:
(?![^<>]*>)
The double negative is scrambling my brain. Think you could sort me out?
ElMiko is offline   Reply With Quote
Old 10-06-2012, 02:25 PM   #19
GraciousMe
Zealot
GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.
 
Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
Quote:
Originally Posted by meme View Post
Yes. Open the Find & Replace Window (Ctrl-F). In the Find text box put the Find text above. In the Replace put the replace text. Select Regex, All HTML Files and then click Replace All.

Thanks, Meme. That helped. Don´t need Santa now.

However, some tags with <&nbsp;> got erased as well. Have to solve that.
Will check if some other tags are in danger as well.
GraciousMe is offline   Reply With Quote
Old 10-06-2012, 02:31 PM   #20
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Sorry, the regex was borrowed from the Regex Examples thread and adapted - you'll need a regex guru around here to explain it.

<&nbsp;> is a bit odd. &nbsp; is an HTML entity not a tag, so it won't be inside < >. Haven't tested it with those.
meme is offline   Reply With Quote
Advert
Old 10-06-2012, 02:32 PM   #21
GraciousMe
Zealot
GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.
 
Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
Quote:
Originally Posted by mrmikel View Post
If you are stuck on a special layout, you are likely to be disappointed if you start changing size on a real device or on one of the PC versions, like the Sony Reader Library. You need to check it out.

PDF may be the way to go if you must have a fixed layout. But it has its own problems. You may be able to work around these by limiting the amount of text per page and size of images so the page can be increased in size without everything going sideways.
Not special or fixed, but SPECIFIC layout, I would say. Different chapters being built in different ways.

I think I have digested the hard fact that in an e-book you cannot have control over how the book looks to the reader. PDF is not the way I want to go here.
GraciousMe is offline   Reply With Quote
Old 10-07-2012, 03:24 AM   #22
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by meme View Post
Replaces are done in Code View
Ah... that makes my suggestion significantly harder, indeed...
Jellby is offline   Reply With Quote
Old 10-07-2012, 05:10 AM   #23
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
At beginning of the Group created to change the characters, have another regex which will alter any entities to include '<' & '>', then also have one at end of group which removes them again.
EDIT: remove space after ';' chars (poxy smilies )
EDIT (Jellby): no need to remove anything, you can use the [noparse] tag when posting
Before
Find: (&.{,5};)
Replace: <\1>

After
Find <(&.{,5};)>
Replace: \1

Last edited by Jellby; 10-07-2012 at 05:39 AM.
Perkin 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
PDF Placeholder for Calibre's Publisher Field Themus Calibre 1 09-04-2012 11:56 PM
Need Help with Search and Replace please! worley Conversion 2 07-28-2012 09:29 AM
Find Replace unrulyguides Sigil 5 02-17-2012 08:38 PM
search and replace - drops blanks in replace ? cybmole Conversion 10 03-13-2011 03:07 AM
regex replace??? schuster Conversion 14 01-29-2011 09:02 AM


All times are GMT -4. The time now is 04:41 AM.


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