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, 04: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: 644
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
Advert
Old 08-27-2017, 08: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: 50,872
Karma: 45230931
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, 10: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,542
Karma: 11635512
Join Date: Dec 2012
Location: Altus, Oklahoma 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-29-2017 at 12:38 AM.
Turtle91 is offline   Reply With Quote
Old 01-12-2018, 04: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: 3,999
Karma: 12185612
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, 05: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,542
Karma: 11635512
Join Date: Dec 2012
Location: Altus, Oklahoma 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, 06: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: 3,967
Karma: 17229392
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 06:14 PM. Reason: Adding comment about slot 5
DNSB 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 08:28 AM
search and replace with incremental number pimpoum General Discussions 4 07-08-2011 03:41 PM
Developers, please implement an incremental update feature usedtowork Calibre 7 03-21-2011 07:58 PM
Can we at least have an incremental firmware upgrade? mwlcarter Kobo Reader 2 05-23-2010 03:35 PM


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


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