Complex wrap (Cmd+E) or Find/Replace
Posted: Mon Nov 02, 2020 3:54 am
Hello everyone,
In the context of an XML/TEI-based diplomatic edition of a Chinese Buddhist text, I have to markup several hundred Chinese characters that I have previously identified as non-standard. The markup (following TEIP4 for this particular element) in the <text> should be as follows:
I used to do this manually, but I wonder if there might not be an easier way to markup these non-standard characters. I have tried using the "Surround with" option (Cmd+E), but unfortunately the closest I can get to is with an <orig>text</orig> markup, which I can then edit through the Find/Replace function (replace all <orig> with <orig ref=""> and replace all </orig> with <g ref="#"/></orig>. Still, in the end the result would look like this: where I have to cut/paste all characters inside the value location of their @reg and then copy/paste the value for the @ref according to an external list.
My question is rather simple: would there be a manipulation that I am not aware of, perhaps by combining both approaches mentioned above, to make the text value (i.e. the characters) appear right away in the markup as: <orig reg="卷">?
Thank you for your attention!
Kind regards,
Fang Luohang.
In the context of an XML/TEI-based diplomatic edition of a Chinese Buddhist text, I have to markup several hundred Chinese characters that I have previously identified as non-standard. The markup (following TEIP4 for this particular element) in the <text> should be as follows:
Code: Select all
<orig reg="卷"><g ref="#REF_001-01.01.01"/></orig>
Code: Select all
<orig reg="">卷<g ref="#"/></orig>
My question is rather simple: would there be a manipulation that I am not aware of, perhaps by combining both approaches mentioned above, to make the text value (i.e. the characters) appear right away in the markup as: <orig reg="卷">?
Thank you for your attention!
Kind regards,
Fang Luohang.