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 03-11-2013, 05:01 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,920
Karma: 1170716
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
force tidy to run without saving

in previous version there was a yellow broom icon but that has now gone. I cannot see any "clean this code - now" option

I do have clean set to operate on opening / saving but can find no way to force a cleanup without saving ( and in this crummy code instance - the clean on save operation hangs up...)

I had a poor source where each chapter was one paragraph with double <br class=.../> separators between sentences.

I tried all regexing those into<p ... > & letting tidy insert the matching end tags but could not succeed with that approach, because I could not force tidy to run on the whole book except by saving - which hung up.
I could force a tidy on a per chapter basis by toggling into book view and selecting fix automatically, but there a lot of chapters & I did not want to do them individually like that; I wanted to force a clean of the entire book.

I wimped out, went to calibre & did epub to mobi, then mobi back to epub,.

That sorted it, but what could/should I have done ?
cybmole is offline   Reply With Quote
Old 03-11-2013, 08:13 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,031
Karma: 4002933
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Not trust on Tidy to correctly insert matching end tags? When I do a RegEx S&R which includes changing tags, I always include the closing tags. Seen to many issues with Tidy not identifying the needed end tag correctly or placing it wrong.
This is especially true for nested tags...
Toxaris is offline   Reply With Quote
 
Enthusiast
Old 03-11-2013, 10:46 AM   #3
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,920
Karma: 1170716
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
I agree but could see no obvious single pass regex solution for repairing this structure:
multiple chapters like this:
<body>
< p class =...> 1st sentence <br class =.../>
<br class=.../>2nd sentence<br class =.../>
<br class=.../>3rd sentence<br class =.../>
....
</p>
</body>

NB all classes were the same - calibre4
cybmole is offline   Reply With Quote
Old 03-11-2013, 01:19 PM   #4
yekim54
What the Dog Saw
yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.
 
yekim54's Avatar
 
Posts: 305
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-505, PRS-650, Asus TF101
Quote:
Originally Posted by cybmole View Post
in previous version there was a yellow broom icon but that has now gone. I cannot see any "clean this code - now" option
Maybe this is what you are looking for:
1. In code view, right click anywhere in the code view window.
2. Select "Reformat HTML"
3. Click on "Clean Source" to clean the file in current tab only
4. Click on "Clean Source - All HTML Files" to clean the entire epub book
yekim54 is offline   Reply With Quote
Old 03-11-2013, 01:46 PM   #5
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,920
Karma: 1170716
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
Quote:
Originally Posted by yekim54 View Post
Maybe this is what you are looking for:
1. In code view, right click anywhere in the code view window.
2. Select "Reformat HTML"
3. Click on "Clean Source" to clean the file in current tab only
4. Click on "Clean Source - All HTML Files" to clean the entire epub book
YES! thanks
cybmole is offline   Reply With Quote
Old 03-15-2013, 12:05 PM   #6
ZoeRochelle
Sigil Addict
ZoeRochelle began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2012
Device: Apple iPad 3rd Gen
I've been looking for this also. Thank you!
ZoeRochelle 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
'RUN, RUN, RUN' a crime thriller $1.61 tothepoint Self-Promotions by Authors and Publishers 10 09-01-2014 12:07 PM
Journal Not Saving Writing When Moving to a New Page or Saving it eberhardt333 enTourage Archive 5 11-24-2010 12:47 AM
[Apple]Java Embedding Plugin 0.9.2: Force java to run in browsers other than Safari Zire Lounge 4 05-24-2005 09:12 PM


All times are GMT -4. The time now is 10:01 PM.


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