View Single Post
Old 05-31-2016, 09:52 AM   #184
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Formatting centuries (French)

Hi
Putting the Calibre editor "report" to good use, I obtained a list of Roman digits (see screenshot). I wish to enclose them in a span only if they are followed by the expression
Code:
<sup>e</sup>*
My aim is to obtain for them this code for example:
Code:
<span class="century">XII</span><sup>e</sup>*
Code:
.century {
 font-size: smaller;
 text-transform: uppercase;
}
* is (&)#160;
Doing this way, I do not modify other names like: Chapter XII, Charles IV which are NOT centuries.

To check them one by one for each number would be very long for a full book. Is there a code I could use to get this result? Up to now none of them has a span. All the centuries have this <sup>e</sup>
Attached Thumbnails
Click image for larger version

Name:	century.png
Views:	720
Size:	79.0 KB
ID:	149063  

Last edited by roger64; 05-31-2016 at 10:02 AM.
roger64 is offline   Reply With Quote