General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › XMetaL Author Enterprise 5.5 – search and replace string
-
formsandprecedents June 29, 2017 at 2:55 am
XMetaL Author Enterprise 5.5 – search and replace string
June 29, 2017 at 2:55 amParticipants 0Replies 1Last Activity 5 years, 7 months agoSorry for the nooby question, but can anyone suggest a search and replace string for the following situation:
I am trying to move the punctuation mark to before the footnote mark throughout an entire document. The XML tags are as follows:
footnote text goes here .Derek Read June 29, 2017 at 10:44 pm
Reply to: XMetaL Author Enterprise 5.5 – search and replace string
June 29, 2017 at 10:44 pmI think you can only really do this in Plain Text view, since your id values and the content inside the
So, use Plain Text view and make two separate replacements like this:
Replacement #1:
Find:Replace: . Find: .
Replace:The other option would be to write a script. That would involve walking the document using a few different APIs, finding the element in question, checking to see if it has a period before it, if not add one, checking to see if it has a period after it and removing it. Unless you need to do this all the time (or for multiple users) I'd just use the Find described above.
-
AuthorPosts
- You must be logged in to reply to this topic.