Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-27-2017, 03:07 PM   #16
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: 650
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
No idea why one would need incremental IDs...
I use this plugin to add incremental IDs to headers, and in a second search and replace step I'll number my headlines (and remove the IDs).
I doubt the plugin was made for that, but it works for me that way ;)
WS64 is offline   Reply With Quote
Old 08-27-2017, 07:20 PM   #17
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 52,393
Karma: 47520109
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
One thing that really gets me is useless IDs. I do remove them when I see them.
JSWolf is offline   Reply With Quote
Old 08-27-2017, 09:40 PM   #18
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: 1,674
Karma: 11766398
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
Quote:
Originally Posted by WS64 View Post
No idea why one would need incremental IDs...
I use this plugin to add incremental IDs to headers, and in a second search and replace step I'll number my headlines (and remove the IDs).
I doubt the plugin was made for that, but it works for me that way
This is how I use it mostly as well...especially when I am trying to put a chapter number or something into the toc and it doesn't have one originally....

BUT.... It is certainly possible to use an incremented ID. For example: if you have lots of images and want to put specific css for each individual image...then give the ID an incremented name and style it to #img01, #img02, #img03, etc.

Code:
img       {width:50%}
#img01 {max-width:300px}
#img02 {max-width:400px}
#img03 {max-width:525px}

<body>
<div id="img01"><img alt="" src="../Images/img1.jpg" /></div>
<div id="img02"><img alt="" src="../Images/img2.jpg" /></div>
<div id="img03"><img alt="" src="../Images/img3.jpg" /></div>
</body>

edit: I meant ID when I typed class...

Last edited by Turtle91; 08-28-2017 at 11:38 PM.
Turtle91 is offline   Reply With Quote
Old 01-12-2018, 03:53 AM   #19
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,281
Karma: 14242649
Join Date: Dec 2010
Device: Kindle PW2
I've attached a new version, which requires Sigil 0.9.8 or higher, to the first post. The new version allows users to automatically add title attributes with consecutive numbers, e.g. title="Chapter I", in addition to ids with consecutive numbers.
Doitsu is offline   Reply With Quote
Old 01-12-2018, 04:50 PM   #20
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: 1,674
Karma: 11766398
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
Very Nice! Thanks!!
Turtle91 is offline   Reply With Quote
Old 01-12-2018, 05:11 PM   #21
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,030
Karma: 21690670
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by Doitsu View Post
I've attached a new version, which requires Sigil 0.9.8 or higher, to the first post. The new version allows users to automatically add title attributes with consecutive numbers, e.g. title="Chapter I", in addition to ids with consecutive numbers.
Arrgghhh! Where was this plugin two months back when I was adding chapter numbers to an ebook which used 117 images with entertaining graphics as the chapter numbers? Pretty on the page but useless for generating a meaningful TOC. At least regex/S&R kept it from taking too long.

Ooppss.. there went slot 5 for the plugins. More please, sir?

Last edited by DNSB; 01-12-2018 at 05:14 PM. Reason: Adding comment about slot 5
DNSB is offline   Reply With Quote
Old 01-24-2018, 01:30 AM   #22
Maui
Connoisseur
Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.
 
Maui's Avatar
 
Posts: 57
Karma: 600000
Join Date: Jan 2018
Device: Galaxy Tab S2
Hi,
maybe you can consider creating leading zeroes to get a fix length in the numbering?

instead of c1, c2, c3, ... c9, c10, c11..

c001, ..., c009, c010, c011...

IDs are then sorted correctly e.g. in the add id command in sigil

M
Maui is offline   Reply With Quote
Old 01-24-2018, 07:26 AM   #23
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,281
Karma: 14242649
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Maui View Post
Hi,
maybe you can consider creating leading zeroes to get a fix length in the numbering?
Done. The latest version will add up to three leading zeros (0001-9999).
Doitsu is offline   Reply With Quote
Old 01-25-2018, 04:12 AM   #24
Maui
Connoisseur
Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.Maui ought to be getting tired of karma fortunes by now.
 
Maui's Avatar
 
Posts: 57
Karma: 600000
Join Date: Jan 2018
Device: Galaxy Tab S2
Hi,

that was really quick. So quick that you forgot the osx in the OS list in the plugin.xml file.

M
Maui is offline   Reply With Quote
Old 06-26-2018, 10:01 PM   #25
AlanHK
Evangelist
AlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheese
 
AlanHK's Avatar
 
Posts: 430
Karma: 1002
Join Date: Apr 2014
Device: PW-3, Android phone
Thanks. Useful for adding chapter numbers, not just IDs.

There is a "?" button, for Help, that does not appear to do anything, for me at least, using Sigil.9.9 on Win.
AlanHK is offline   Reply With Quote
Old 08-29-2018, 01:13 AM   #26
Semwize
 
Semwize has become a pillar of the MobileRead communitySemwize has become a pillar of the MobileRead communitySemwize has become a pillar of the MobileRead communitySemwize has become a pillar of the MobileRead communitySemwize has become a pillar of the MobileRead communitySemwize has become a pillar of the MobileRead communitySemwize has become a pillar of the MobileRead communitySemwize has become a pillar of the MobileRead communitySemwize has become a pillar of the MobileRead communitySemwize has become a pillar of the MobileRead communitySemwize has become a pillar of the MobileRead community
 
Posts: 124
Karma: 15528
Join Date: Jun 2016
Device: Kobo
Works great, thanks
Quote:
Originally Posted by Maui View Post
Hi,
maybe you can consider creating leading zeroes to get a fix length in the numbering?

instead of c1, c2, c3, ... c9, c10, c11..

c001, ..., c009, c010, c011...

IDs are then sorted correctly e.g. in the add id command in sigil

M
I have a backward request, return as was or make a choice
Semwize is online now   Reply With Quote
Old 08-29-2018, 03:44 AM   #27
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,281
Karma: 14242649
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Semwize View Post
Works great, thanks
I have a backward request, return as was or make a choice
I've added an "Add leading zeros" option.
Doitsu 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
The new PaperWhite snuck out! Incremental update mewmartigan News 192 09-13-2013 07:28 AM
search and replace with incremental number pimpoum General Discussions 4 07-08-2011 02:41 PM
Developers, please implement an incremental update feature usedtowork Calibre 7 03-21-2011 06:58 PM
Can we at least have an incremental firmware upgrade? mwlcarter Kobo Reader 2 05-23-2010 02:35 PM


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


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