Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-01-2022, 06:59 PM   #1
jmurphy
Connoisseur
jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.
 
Posts: 91
Karma: 1133066
Join Date: Sep 2007
Device: ipaq
Automate list and S&R

I'm doing two different S&Rs in my AutomateList.
Only the first one seems to work.

In order to search the CSS file, I use "SetBookBrowserToAllCSS". Is that correct?

(The S&R works fine in the normal GUI, if I select the CSS dropdown instead of HTML)

Below is my automate list and the log.
Can anyone tell me what I'm doing wrong?


==
-automate01.txt
SetBookBrowserToAllHTML
RunSavedSearchReplaceAll SplitDoc
SplitOnSGFSectionMarkers
SetBookBrowserToAllCSS
RunSavedSearchReplaceAll FixCSS

==
-log
SetBookBrowserToAllHTML running

RunSavedSearchReplaceAll SplitDoc running
Loaded: SplitDoc
Replacements made: 26
Replacements made: 26

SplitOnSGFSectionMarkers running
Split completed. You may need to update the Table of Contents.

SetBookBrowserToAllCSS running

RunSavedSearchReplaceAll FixCSS running
Loaded: FixCSS
No replacements made
No replacements made

Automation List Completed

==

jmurphy
jmurphy is offline   Reply With Quote
Old 11-01-2022, 07:18 PM   #2
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,657
Karma: 5433388
Join Date: Nov 2009
Device: many
No, the correct place for setting the files to be searched is in the Saved Search dialog itself. In the saved search dialog there is now an extra column (you may have to grow your window to see the Controls column). There you set the control codes for type of search, target set of files, etc.

There is no need to set the files selected in BookBrowser. The saved search itself now handles that (just like the pulldown menu in normal search).
KevinH is online now   Reply With Quote
Advert
Old 11-01-2022, 07:20 PM   #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,657
Karma: 5433388
Join Date: Nov 2009
Device: many
Those SetBookBrowserToAll* automation commands are primarily meant to be used just before launching a plugin that requires a specific selection to work.

That said, one of the Saved Search Control targets is Selected CSS Files or Selected Html Files, but setting the target directly in Saved Searches is far easier.

Last edited by KevinH; 11-01-2022 at 07:28 PM.
KevinH is online now   Reply With Quote
Old 11-01-2022, 07:26 PM   #4
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
Open Saved Searches windows and edit Controls for FixCSS.
Set at least three of them:
* Mode (Normal, case Sensitive or RegEx), be sure to set the Target (All CSS Files) and the Direction (Down).

EDIT: KevinH outlined details with which I fully agree.
Attached Thumbnails
Click image for larger version

Name:	sigil-saved-searches-controls.png
Views:	74
Size:	7.9 KB
ID:	197497  
BeckyEbook is offline   Reply With Quote
Old 11-01-2022, 07:46 PM   #5
jmurphy
Connoisseur
jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.
 
Posts: 91
Karma: 1133066
Join Date: Sep 2007
Device: ipaq
hmmm, I'm not sure all of the nuances of ALs are fully documented yet.
And, yes, the saved searches tool totally has a hidden column. Oops.
Thanks for the quick replies, that worked!
jmurphy is offline   Reply With Quote
Advert
Old 11-01-2022, 07:54 PM   #6
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,657
Karma: 5433388
Join Date: Nov 2009
Device: many
Yes, we added that new column a few releases back but if your sigil.ini remembers its size and orientation of the old saved search window, the new column ends up hidden until manually grown.
KevinH is online now   Reply With Quote
Old 11-01-2022, 08:02 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by jmurphy View Post
hmmm, I'm not sure all of the nuances of ALs are fully documented yet.
One could always join the small group of wonderful users who graciously volunteer their time to help keep Sigil's user guide updated.
DiapDealer is offline   Reply With Quote
Old 11-01-2022, 08:13 PM   #8
jmurphy
Connoisseur
jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.
 
Posts: 91
Karma: 1133066
Join Date: Sep 2007
Device: ipaq
Quote:
Originally Posted by DiapDealer View Post
One could always join the small group of wonderful users who graciously volunteer their time to help keep Sigil's user guide updated.
To what end? If I don't know what the bits and pieces do or what they are for, I can't help document them.
jmurphy is offline   Reply With Quote
Old 11-01-2022, 08:54 PM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Point missed entirely, I guess.
DiapDealer is offline   Reply With Quote
Old 11-01-2022, 11:43 PM   #10
jmurphy
Connoisseur
jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.
 
Posts: 91
Karma: 1133066
Join Date: Sep 2007
Device: ipaq
Quote:
Originally Posted by DiapDealer View Post
Point missed entirely, I guess.
I guess. What did you mean?
jmurphy is offline   Reply With Quote
Old 11-02-2022, 07:47 AM   #11
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,101
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
Lol

I’m thinking it is that it is a small group so it takes awhile to keep things caught up…. More volunteers would help.

Also, you don’t only need to document new features… you can help update the guide if things have changed with old features that simply need updated images, etc.
Turtle91 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to automate Calibre actions? bob.f Library Management 4 08-16-2021 08:07 AM
Automate epub editing? Montana Harper Calibre 2 12-27-2016 10:57 PM
automate on start up ladykayaker Kindle Developer's Corner 2 11-14-2013 08:30 AM
automate stylesheet cleanup ? cybmole Sigil 9 01-09-2013 06:42 AM


All times are GMT -4. The time now is 08:02 AM.


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