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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-22-2023, 09:17 AM   #1
Radim
Junior Member
Radim began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2023
Device: PocketBook
Auto increase number in HTML tag as Clip?

It is possible to add in Clip Editor such posibility?

How can it work?

1. in Clip Editor I create initial template:
<p style="text-align: center;"><img alt="{01;1}" src="../Images/{01;1}.jpg"/></p>

where this part: {01;1}
represents initial value: "01" and increment "1" at next paste againt previous one.

2. so in next use of my Clip, let it call as "imgAutoInc" I get this text:
<p style="text-align: center;"><img alt="01" src="../Images/01.jpg"/></p>

next Clip "imgAutoInc" generate:
<p style="text-align: center;"><img alt="02" src="../Images/02.jpg"/></p>

next:
<p style="text-align: center;"><img alt="03" src="../Images/03.jpg"/></p>

etc.
Thanks. It needs also some "RESET" to initial value solution...
Attached Thumbnails
Click image for larger version

Name:	screen 2023-05-22 1.png
Views:	90
Size:	22.7 KB
ID:	201651  
Radim is offline   Reply With Quote
Old 05-22-2023, 09:53 AM   #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,602
Karma: 5433388
Join Date: Nov 2009
Device: many
No, but you can create a plugins to do what you want. Or alternatively use an existing incremental id numbering plugin to add incremented ids to select elements and then use regular expressions find and replace to capture that id and use it in a paste.

There is also an existing a python function replacement plugin that would work as well.

See our Sigil plugin index.
KevinH is offline   Reply With Quote
Advert
Reply

Tags
auto increase

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase the number of 36 letters in the Titles column to 50 pmattera Library Management 1 10-04-2022 05:44 PM
html to EPUB - added class into <html> tag etihwmot Conversion 25 08-05-2020 04:20 PM
html img tag versus svg wrapped image tag hobnail ePub 8 02-27-2020 03:16 AM
Aura Increase auto shutdown time to be more than 60minutes gonzule Kobo Reader 4 08-18-2018 09:54 PM
Increase the number of items per page? tmb20x Amazon Kindle 1 11-04-2010 02:12 PM


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


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