View Single Post
Old 04-14-2022, 06:53 PM   #10
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: 8,958
Karma: 6361444
Join Date: Nov 2009
Device: many
Then you will lose the xml:lang attribute by doing so. Are all divs with that spanish language attribute the ones you want to be converted?

Are there other divs in the file you do not want to be converted? Your request for an example makes no sense until you can specify the exact trigger that indicates which divs in the document need to be converted.

None of the metadata or other fields matter at all. A regex to find all nested divs and capture the inner div is possible as is a function to determine what the replacement is to be made but without knowing if it it is safe to do that for any set of nested divs in the document, it is all meaningless.
KevinH is offline   Reply With Quote