superscript in book module?

Ask here any questions regarding program functionality
RevSteve
Posts: 143
Joined: Thu Jun 28, 2018 5:45 am

superscript in book module?

Post by RevSteve »

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.
Jeff
Posts: 434
Joined: Mon Jul 13, 2009 8:56 pm
Location: Wind River Range, WY

Re: superscript in book module?

Post by Jeff »

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


Using theWord Beta on MX Linux via Wine.
RevSteve
Posts: 143
Joined: Thu Jun 28, 2018 5:45 am

Re: superscript in book module?

Post by RevSteve »

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.
User avatar
jonathangkoehn
Posts: 1261
Joined: Wed Sep 29, 2010 11:04 pm
Location: Colorado, United States
Contact:

Re: superscript in book module?

Post by jonathangkoehn »

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/downloa ... x?id=10725

I like this webpage:
http://www.biblioscape.com/rtf15_spec.htm
Jonathan Koehn @ https://www.thewordbooks.com
TotheWord make resources for theWord
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
RevSteve
Posts: 143
Joined: Thu Jun 28, 2018 5:45 am

Re: superscript in book module?

Post by RevSteve »

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.
User avatar
jonathangkoehn
Posts: 1261
Joined: Wed Sep 29, 2010 11:04 pm
Location: Colorado, United States
Contact:

Re: superscript in book module?

Post by jonathangkoehn »

\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 @ https://www.thewordbooks.com
TotheWord make resources for theWord
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
User avatar
jonathangkoehn
Posts: 1261
Joined: Wed Sep 29, 2010 11:04 pm
Location: Colorado, United States
Contact:

Re: superscript in book module?

Post by jonathangkoehn »

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 @ https://www.thewordbooks.com
TotheWord make resources for theWord
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
RevSteve
Posts: 143
Joined: Thu Jun 28, 2018 5:45 am

Re: superscript in book module?

Post by RevSteve »

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.
User avatar
jonathangkoehn
Posts: 1261
Joined: Wed Sep 29, 2010 11:04 pm
Location: Colorado, United States
Contact:

Re: superscript in book module?

Post by jonathangkoehn »

ah ok, have fun!
Jonathan Koehn @ https://www.thewordbooks.com
TotheWord make resources for theWord
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
RevSteve
Posts: 143
Joined: Thu Jun 28, 2018 5:45 am

Re: superscript in book module?

Post by RevSteve »

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 \
RevSteve
Posts: 143
Joined: Thu Jun 28, 2018 5:45 am

Re: superscript in book module?

Post by RevSteve »

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.
RevSteve
Posts: 143
Joined: Thu Jun 28, 2018 5:45 am

Re: superscript in book module?

Post by RevSteve »

Thank you for your help and patience, as it stands right now, I will use something similar to this:

{\super\fs30\cf3 word2}
User avatar
JG
Posts: 4604
Joined: Wed Jun 04, 2008 8:34 pm

Re: superscript in book module?

Post by JG »

Do as Jonathan mentioned. Just shift the letter up. 1 to 6 are half points
word{\up6\ 2}
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
RevSteve
Posts: 143
Joined: Thu Jun 28, 2018 5:45 am

Re: superscript in book module?

Post by RevSteve »

Ah, thanks, that is even more efficient.
So this is sort of what it will look:
{\up6\cf3 Abraham}
Post Reply