General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion XMetaL Author Enterprise 5.5 – search and replace string

  • formsandprecedents

    XMetaL Author Enterprise 5.5 – search and replace string

    Participants 0
    Replies 1
    Last Activity 5 years, 3 months ago

    Sorry 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.

    Reply

    Derek Read

    Reply to: XMetaL Author Enterprise 5.5 – search and replace string

    I 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.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support