View Single Post
Old 09-14-2015, 05:34 AM   #4
geniale
Member
geniale began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2015
Device: none
My epub file has 17 chapters:
v3001.html
v3002.html
.......
v30017.html

Every chapter has almost 24 paragraph with this html:
<p class="calibre2"><sup class="calibre3">1</sup>
<p class="calibre2"><sup class="calibre3">2</sup>
.....
<p class="calibre2"><sup class="calibre3">24</sup>

Is there a way to add in every paragraph a bookmark or id like this:
id="id v3001001"
id="id v3001002"
......
id="id v3001024"

The final string it should be:
<p id="id v3001001" class="calibre1"><sup class="calibre2">1</sup>
<p id="id v3001002" class="calibre1"><sup class="calibre2">2</sup>
....
<p id="id v3001024" class="calibre1"><sup class="calibre2">24</sup>

In other word the string should read chapter name (v3001, v3002... v3014) and add paragraph number (001, 002... 024) and the final result (v3001001, v3001002... v3001024) and all this in every chapter (v3017001, v3017002... v3017024).

Any suggestion? Can anyone tell me que regular expression or is there another way?
Thank you.

Last edited by geniale; 09-14-2015 at 06:02 AM.
geniale is offline   Reply With Quote