Reply to post

Hot!Omitting text within curved brackets

Author
Marcus Robbins
User
  • Total Posts : 0
  • Reward points: 0
  • Joined: 2018/05/29 07:07:48
  • Status: offline
2018/05/29 12:26:01 (permalink)

Omitting text within curved brackets

I'm reading theological documents with many short references in brackets. I have succesfully used RegEx to omit hearing all those within [square brackets] - following instructions in a previous thread - but have been unable to work out the code for omitting all short text references within (round brackets). Can you help please?

3 Replies Related Threads

    Admin
    Administrator
    • Total Posts : 275
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Omitting text within curved brackets 2018/05/29 16:35:34 (permalink)
    If both opening and closing bracket are within one sentence (one yellow highlight in @Voice app), then it's pretty easy to omit them. It is much more complex if they span across 2 or more yellow highlights. Here is the simple case:
     
    Replacement Type: RegEx
    Pattern: \(.*\)
    Replace with:                          (empty)
     
    This will skip anything in round bracket, provided both opening and closing bracket are within the same yellow highlight in @Voice app. It would be best to further fine-tune the inside of the brackets pattern, to only match references, and not (side remarks that you may want to here)...
     
    Greg
    Marcus Robbins
    User
    • Total Posts : 0
    • Reward points: 0
    • Joined: 2018/05/29 07:07:48
    • Status: offline
    Re: Omitting text within curved brackets 2018/05/29 18:54:45 (permalink)
    That works most of the time. But if there is a fullstop/period within the bracket eg (cf. Mt.....), it will read out the text (and biblical reference as is often the case as the highlight goes up to the stop. Also, if there are two instances of bracketed references in the highlighted text, it will also omit all text in between - which is a bit more serious. Think I'll have to learn to code! Many thanks for your help.
    post edited by Marcus Robbins - 2018/05/29 18:55:49
    Admin
    Administrator
    • Total Posts : 275
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Omitting text within curved brackets 2018/05/30 14:23:26 (permalink)
    Indeed, this is what also said in my first reply to you. I once considered this problem in depth and created complex RegEx rules for citations in scientific papers, which I guess is very similar. Please read this post:
     
    https://hyperionics.com/forum2/tm.aspx?m=12205
     
    I could probably help more if you would send me the original text and indicate exactly where are the problematic citations that you would like to silence. You may contact me directly by email, atVoice@hyperionics.com.
     
    Greg
    Jump to:
    © 2018 APG vNext Commercial Version 5.1