[www.theword.net]

Twitter live feed  
View unanswered posts | View active topics It is currently Fri Jan 19, 2018 7:41 pm



Reply to topic  [ 5 posts ] 
 Can I do this with ST and NB? 
Author Message

Joined: Sun Oct 29, 2017 12:12 am
Posts: 5
Post Can I do this with ST and NB?
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?


Sun Oct 29, 2017 9:24 pm
Profile
User avatar

Joined: Wed Jun 04, 2008 7:34 pm
Posts: 3539
Post Re: Can I do this with ST and NB?
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 5 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet


Sun Oct 29, 2017 10:07 pm
Profile

Joined: Sun Oct 29, 2017 12:12 am
Posts: 5
Post Re: Can I do this with ST and NB?
Thank you. That worked.


Sun Oct 29, 2017 10:46 pm
Profile

Joined: Sun Oct 29, 2017 12:12 am
Posts: 5
Post Re: Can I do this with ST and NB?
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?


Mon Oct 30, 2017 3:02 am
Profile
User avatar

Joined: Wed Jun 04, 2008 7:34 pm
Posts: 3539
Post Re: Can I do this with ST and NB?
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 5 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet


Mon Oct 30, 2017 9:30 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.