Page 1 of 1

Can I do this with ST and NB?

Posted: Sun Oct 29, 2017 10:24 pm
by kstbts
Some of the text I want to toggle and which is contained within <> brackets in the main text....needs to be formatted with italics or superscript. I've tried adding formatting tags to the main text within the <> but then the toggle doesn't work.

For example:
I have english text <E and·to·<sup>the</sup>·darkness> but it won't toggle with the superscript tags.

Is there another way?

Re: Can I do this with ST and NB?

Posted: Sun Oct 29, 2017 11:07 pm
by JG
The problem is that your regex is probably going to match the first >

So put a illegal <> at the end so that the whole match is picked up by a verse.rule as I have shown. The <> will be ignored as an invalid tag.

Text in Bible <E testing <sup>super</sup> normal<>>

verse.rule="<E (.+?)<>>" "<NB toggle=a>$1<Nb>"

Re: Can I do this with ST and NB?

Posted: Sun Oct 29, 2017 11:46 pm
by kstbts
Thank you. That worked.

Re: Can I do this with ST and NB?

Posted: Mon Oct 30, 2017 4:02 am
by kstbts
I have another question. Why do I have problems when I use a mixture of ST and NB in my main text, whereas no problems if they are all ST?

Re: Can I do this with ST and NB?

Posted: Mon Oct 30, 2017 10:30 am
by JG
I would need to see your file to check. Can you zip and upload it.

I PM'd a link to you.