[www.theword.net]

Twitter live feed  
View unanswered posts | View active topics It is currently Wed Apr 14, 2021 4:34 am



Reply to topic  [ 14 posts ] 
 superscript in book module? 
Author Message

Joined: Thu Jun 28, 2018 4:45 am
Posts: 143
Post superscript in book module?
Hi all,
I haven't seen this discussed so I am wondering if super/sub script is available for book module, in my case, I was thinking a commentary module.

Perhaps I have overlooked this somewhere, if so, humor me and my ignorance.


Wed Apr 24, 2019 2:14 am
Profile

Joined: Mon Jul 13, 2009 7:56 pm
Posts: 408
Location: Wind River Range, WY
Post Re: superscript in book module?
RevSteve wrote:
Hi all,
I haven't seen this discussed so I am wondering if super/sub script is available for book module, in my case, I was thinking a commentary module.

Perhaps I have overlooked this somewhere, if so, humor me and my ignorance.

Should be there with the other formatting options on the main toolbar. (Make sure you have "View>Toolbars>Formatting" checked.)

Also hotkeys "Shift+Ctrl+=" for superscript, or "Ctrl+=" for subscript.

_________________
Jeff


Wed Apr 24, 2019 2:30 am
Profile

Joined: Thu Jun 28, 2018 4:45 am
Posts: 143
Post Re: superscript in book module?
Thanks Jeff,
Ah, so I am trying to analyze what I am getting from manually adding them...then trying to read what it should look like in a text editor.

I would want to make them/create them before the module goes into TheWord.
So I guess if someone knows what the rtf tag...wonder if it will work in rtf...

For instance, in bible module, without verse rule it would be something like The<sup>word</sup>of<sup>God</sup>.

Would it be the same for a book?
It doesn't appear so but I may be doing something wrong.
I may have to do some extensive testing to find what works if no one replies.


Wed Apr 24, 2019 4:47 am
Profile
User avatar

Joined: Wed Sep 29, 2010 10:04 pm
Posts: 903
Location: Colorado, United States
Post Re: superscript in book module?
Here is the rtf for it:
Superscript:
\super
I recommend a {} brackets to enclose like {\super words....} since there is no ending rtf for it.
Subscript:
\sub

Also there are some that are adjustable:
\upN Superscript position in half-points (the default is 6).
\dnN Subscript position in half-points (the default is 6).
You can with these make it kinda look like another line. If you do like \up24


Also if you like there is an RTF spec document.
https://www.microsoft.com/en-us/download/details.aspx?id=10725

I like this webpage:
http://www.biblioscape.com/rtf15_spec.htm

_________________
Jonathan Koehn @ http://www.thewordbooks.com
2 Timothy 2:15 “Make every effort to present yourself before God as a proven worker who does not need to be ashamed, teaching the message of truth accurately.” (NET2)


Wed Apr 24, 2019 7:34 pm
Profile WWW

Joined: Thu Jun 28, 2018 4:45 am
Posts: 143
Post Re: superscript in book module?
Thanks for that Jonathan, I'll need time to digest it.

Last night I was fooling with it to see what I could get to work and this is what I found would work, doing a find/replace of
the tags I had already, in my case, I was using the FR/Fr tag also...that was before I found the verse rule....
So in find:
<sup><FR>
Replace:
\\plain \\f3\\super\\ltrch\\fs20
Find:
</sup><Fr>
Replace:
\\plain \\f3\\ltrch\\fs20

The double back slash is used as an escape in this.

It appears from this that first one "turns on" with the \super then it appears necessary to "turn off" with \plain
though I am still just beginning to look at this.

I do wonder what the f3 and the fs20 does.

PS, this find/replace was a direct edit of the data base, not a rtf document.


Wed Apr 24, 2019 9:29 pm
Profile
User avatar

Joined: Wed Sep 29, 2010 10:04 pm
Posts: 903
Location: Colorado, United States
Post Re: superscript in book module?
\f3 is the 3rd or 4th font that has been set in the RTF header (I think it is \f0 \f1 \f2 \f3. . . .)
\fs20 is the font size

_________________
Jonathan Koehn @ http://www.thewordbooks.com
2 Timothy 2:15 “Make every effort to present yourself before God as a proven worker who does not need to be ashamed, teaching the message of truth accurately.” (NET2)


Thu Apr 25, 2019 6:45 pm
Profile WWW
User avatar

Joined: Wed Sep 29, 2010 10:04 pm
Posts: 903
Location: Colorado, United States
Post Re: superscript in book module?
Is the database a theWord book? so a sql database?

theWord uses RTF in its book view. Also it uses RVF which is a bit different. I don't know much about that one.

_________________
Jonathan Koehn @ http://www.thewordbooks.com
2 Timothy 2:15 “Make every effort to present yourself before God as a proven worker who does not need to be ashamed, teaching the message of truth accurately.” (NET2)


Thu Apr 25, 2019 6:48 pm
Profile WWW

Joined: Thu Jun 28, 2018 4:45 am
Posts: 143
Post Re: superscript in book module?
jonathangkoehn wrote:
Is the database a theWord book? so a sql database?

theWord uses RTF in its book view. Also it uses RVF which is a bit different. I don't know much about that one.


Yes, it is sqlite with .twm extension, a commentary designated file.
It is rtf.

I was just referring to which file I did the edit on...which is a theWord commentary module file.


Thu Apr 25, 2019 8:26 pm
Profile
User avatar

Joined: Wed Sep 29, 2010 10:04 pm
Posts: 903
Location: Colorado, United States
Post Re: superscript in book module?
ah ok, have fun!

_________________
Jonathan Koehn @ http://www.thewordbooks.com
2 Timothy 2:15 “Make every effort to present yourself before God as a proven worker who does not need to be ashamed, teaching the message of truth accurately.” (NET2)


Thu Apr 25, 2019 8:41 pm
Profile WWW

Joined: Thu Jun 28, 2018 4:45 am
Posts: 143
Post Re: superscript in book module?
Yes, I may use this some time in future...
Anyway, I did edit out the f3 and fs20 and it still works, that is the superscript still works.
Normal position below I designated as "word" and superscripted word as "word2"
Something like this:
word \plain \super\ word2\plain \ word \plain \super\ word2\plain \ word \plain \


Thu Apr 25, 2019 9:46 pm
Profile

Joined: Thu Jun 28, 2018 4:45 am
Posts: 143
Post Re: superscript in book module?
So I did per your instructions in your first reply, that is more efficient than my last above reply.
It takes me a while to figure things out:)

It appears that TheWord naturally makes the superscript smaller than normal position script but I will want superscript as the same size font as normal position.
Also, I will like to add color to superscript, maybe blue as in 3A32C3...at least that is the designation that works in bible module with a verse rule.


Fri Apr 26, 2019 12:26 am
Profile

Joined: Thu Jun 28, 2018 4:45 am
Posts: 143
Post Re: superscript in book module?
Thank you for your help and patience, as it stands right now, I will use something similar to this:

{\super\fs30\cf3 word2}


Fri Apr 26, 2019 4:58 am
Profile
User avatar

Joined: Wed Jun 04, 2008 7:34 pm
Posts: 4156
Post Re: superscript in book module?
Do as Jonathan mentioned. Just shift the letter up. 1 to 6 are half points
word{\up6\ 2}

_________________
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


Fri Apr 26, 2019 9:02 am
Profile

Joined: Thu Jun 28, 2018 4:45 am
Posts: 143
Post Re: superscript in book module?
Ah, thanks, that is even more efficient.
So this is sort of what it will look:
{\up6\cf3 Abraham}


Sat Apr 27, 2019 8:31 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ] 

Who is online

Users browsing this forum: No registered users and 6 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.
[ Time : 1.157s | 11 Queries | GZIP : Off ]