View Single Post
Old 10-07-2024, 11:04 AM   #16
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,682
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by foosion View Post
BTW, if I wanted to eliminate all <section epub:type="bodymatter chapter"> or the like, how would I set the plugin? I could use regex to add a, for example, id tag, then match the id with the plugin, but that would seem to defeat the purpose.
There'd be no need to add an id tag to then match with the plugin. What would be the point of that? You could just match the attribute string of the section tag with the plugin (one attribute and literal value pair, or some regex subset of the attribute value).

You may need to first add "epub:type" as one of the attributes to search on in the plugin's config. But that's a permanent change, not a one-time thing.

Click image for larger version

Name:	modify.jpg
Views:	123
Size:	76.9 KB
ID:	211261 Click image for larger version

Name:	delete.jpg
Views:	129
Size:	72.4 KB
ID:	211260

Last edited by DiapDealer; 10-07-2024 at 11:20 AM.
DiapDealer is online now   Reply With Quote