Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-15-2009, 04:28 PM   #46
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Personally I would like to see some sort of macro where I could just operate on the file and it would remember and could then duplicate this to other places. Perhaps I could tweak the macro to do something like a script.
DaleDe is offline   Reply With Quote
Old 10-16-2009, 11:43 AM   #47
radius
Lector minore
radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.
 
radius's Avatar
 
Posts: 649
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Samsung Galaxy Tab S5e, Google Pixel Slate
Quote:
Originally Posted by JohnnyD View Post
So here is another scripting alternative for Sigil: Global Search&Replace with support for regular expressions! It should be quite easy to implement in Sigil (there are lots of regex libraries with well-defined API's) and I think it will take care of 99% of my scripting needs...
Hi Johnny, (I'm sure you know this, but for the non-programmers at Mobileread...) regexes can do a lot for you as a user, but they only operate on your text. With scripting built into Sigil, we should be able to operate on Sigil itself (including some representation of the document, which comprises the text).

That means that other people can add functions to Sigil in an easy, and well defined way, or automate tedious operations. People who want to add more capability to Sigil could then write isolated plugins instead of having to change the core code of Sigil. Think of the way plugins work in web browsers, or how really advanced macros work in MS Word or Excel.

I believe the most popular choices mentioned so far include "good enough" regex support in any case (well, maybe not lua, but it has its own search and replace style operators IIRC).
radius is offline   Reply With Quote
Advert
Old 10-16-2009, 12:13 PM   #48
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by radius View Post
That means that other people can add functions to Sigil in an easy, and well defined way, or automate tedious operations. People who want to add more capability to Sigil could then write isolated plugins instead of having to change the core code of Sigil. Think of the way plugins work in web browsers, or how really advanced macros work in MS Word or Excel.
You're getting a bit ahead of yourself. Plugins are nowhere on my horizon. I'm not saying Sigil won't have them some day, I'm just saying it won't be any time soon. There's waaaay to much stuff to be done before I even start considering that.
Valloric is offline   Reply With Quote
Old 10-17-2009, 09:58 AM   #49
radius
Lector minore
radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.
 
radius's Avatar
 
Posts: 649
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Samsung Galaxy Tab S5e, Google Pixel Slate
Quote:
Originally Posted by Valloric View Post
You're getting a bit ahead of yourself. Plugins are nowhere on my horizon. I'm not saying Sigil won't have them some day, I'm just saying it won't be any time soon. There's waaaay to much stuff to be done before I even start considering that.
Sure, but the point is that it will be *possible* while with regex we can only operate on text in the document...
radius is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting with epub-meta averyml Calibre 20 11-17-2016 10:13 AM
Entourage Edge and the Android Scripting Environment paulckennedy enTourage eDGe 9 07-12-2011 12:32 PM
iLiad Lua: scripting for Iliad hansel iRex Developer's Corner 3 12-14-2008 06:51 PM
Simple browser scripting for content? mphuie Workshop 2 01-29-2008 08:38 PM
Any NetNewsWire Scripting Pros out there? adinb Sony Reader 0 02-25-2007 01:44 AM


All times are GMT -4. The time now is 04:37 PM.


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