Can I do this with ST and NB?

Ask here any questions regarding program functionality
kstbts
Posts: 5
Joined: Sun Oct 29, 2017 1:12 am

Can I do this with ST and NB?

Post 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?
User avatar
JG
Posts: 4602
Joined: Wed Jun 04, 2008 8:34 pm

Re: Can I do this with ST and NB?

Post 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>"
Jon
the
Word 6 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet
kstbts
Posts: 5
Joined: Sun Oct 29, 2017 1:12 am

Re: Can I do this with ST and NB?

Post by kstbts »

Thank you. That worked.
kstbts
Posts: 5
Joined: Sun Oct 29, 2017 1:12 am

Re: Can I do this with ST and NB?

Post 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?
User avatar
JG
Posts: 4602
Joined: Wed Jun 04, 2008 8:34 pm

Re: Can I do this with ST and NB?

Post by JG »

I would need to see your file to check. Can you zip and upload it.

I PM'd a link to you.
Jon
the
Word 6 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet
Post Reply