08-27-2017, 04:07 PM | #16 |
♫
Posts: 661
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 ;) |
08-27-2017, 08:20 PM | #17 |
Resident Curmudgeon
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One thing that really gets me is useless IDs. I do remove them when I see them.
|
Advert | |
|
08-27-2017, 10:40 PM | #18 | |
A Hairy Wizard
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
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. |
|
01-12-2018, 04:53 AM | #19 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
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.
|
01-12-2018, 05:50 PM | #20 |
A Hairy Wizard
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Very Nice! Thanks!!
|
Advert | |
|
01-12-2018, 06:11 PM | #21 | |
Bibliophagist
Posts: 40,579
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
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 |
|
01-24-2018, 02:30 AM | #22 |
Connoisseur
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 |
01-24-2018, 08:26 AM | #23 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
01-25-2018, 05:12 AM | #24 |
Connoisseur
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 |
06-26-2018, 11:01 PM | #25 |
Guru
Posts: 677
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, 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. |
08-29-2018, 02:13 AM | #26 |
Guru
Posts: 891
Karma: 270670
Join Date: Jun 2016
Device: Kobo
|
Works great, thanks
I have a backward request, return as was or make a choice |
08-29-2018, 04:44 AM | #27 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
01-14-2022, 05:42 PM | #28 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2022
Device: Sigil
|
Running this plugin a second time renumbers the iDs of the selected tag. This will, of course, break any links to targets whose IDs have changed. Is there any chance that this plugin will be updated so that it automatically updates anchor tags that point to an element whose ID has been changed?
|
01-15-2022, 07:59 AM | #29 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Since such a feature would require major code changes, it's highly unlikely that it'll be added in a future version.
|
02-18-2022, 12:45 AM | #30 |
Evangelist
Posts: 440
Karma: 77256
Join Date: Sep 2011
Device: none
|
Hello,
Would you consider some way to id some set of tags hierarchically? Maybe there are other uses, though I am thinking of sections and subsections, e.g. H2 as sec1, H3 as sec1.X, H4 as sec1.X.X, etc. Such would allow XHTML TOCs with sections that may not have such numbering as text, but using such text in the TOC, and maybe there are other uses such as goto id or find or other. |
|
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 |