Page 1 of 1

Auto-number elements

Posted: Sun Jun 26, 2022 8:58 pm
by ellensf
Hello,
I'm wondering if it is possible to auto-generate n="x" for <p>, <s>, and <w> elements.
So far, I've been adding the numbers manually, but with a large document or large corpus, this is exceedingly tedious and time-consuming. Is there a way to select, say, a group of words tagged with <w> and auto-add n="x" in proper sequence?
Thanks!
-Ellen

Re: Auto-number elements

Posted: Mon Jun 27, 2022 6:21 am
by Radu
Hi Ellen,

I'm afraid we do not have such default functionality in the TEI editing framework bundled with Oxygen.
There is a TEI users list, maybe you could ask there if others have created such a customization: https://tei-c.org/support/
Generally speaking Oxygen has API support for adding specific custom actions, are you editing the XML content in the Text or in the Author visual editing mode?
We have for example the possibility to add a custom XML refactoring operation based on XSLT which would be applied on the entire XML document:
https://www.oxygenxml.com/doc/versions/ ... tools.html

Regards,
Radu