Page 1 of 1

Auto generated IDs

Posted: Wed Oct 24, 2012 9:31 pm
by rknechte
I am wondering if there is anyway to auto-generate id numbers for paragraphs in a TEI document (<p xml id="p11"> or something like that) without using an xslt transformation - thoughts?

Re: Auto generated IDs

Posted: Thu Oct 25, 2012 8:40 am
by Radu
Hi,

Here's one way:
If you open the TEI document in the Author page, in the TEI P5 main menu there is an entry called ID Options....
You can check the auto-generate IDs checkbox and add <p> to the list (maybe removing <div>).

Then select the entire content in the Author page, right click and choose Generate IDs.

The IDs will also be generated when new paragraphs are inserted when working in the Author page.

The ID pattern can use either ${id} or ${uuid} to generate an unique identifier, the ${id} generates a shorter unique ID.

Regards,
Radu