I recently switched from Word (and before that from WP and WordStar and XyWrite), and am trying to write macros to preprocess documents into HTML. Some of my LibreOffice questions have been answered here, but I haven’t yet been able to find a way to convert all words in italics (“target”) into:
< i >target< /i >
In other words, there are many italicized words in the document. I want a macro that will surround everything in italics with < i > and < /i > (or other codes like < em > < strong > etc).
It would be best if the replacement is in word units, but even single-character units is fine (I can easily delete extraneous < i > and < /i > entries with a different script).
For obvious reasons the HTML code above has extra spaces inserted.
If anyone can provide help or point me to a useful source I’d appreciate it.
Thanks for your time.