Jump to content

Please read the Forum Rules before posting.

Photo
* * * * * 3 votes

Adding pop-up notes to e-Sword bible modules


  • This topic is locked This topic is locked
18 replies to this topic

#11 xuartema

xuartema

    New to Bible Support

  • Members (T)
  • Pip
  • 8 posts
  • LocationLausanne, Switzerland
Offline

Posted 04 April 2023 - 11:17 PM

Hello everyone,

There are several wrong statements here that I want to amend (apart from the numerous typos, which I’ll not go into). It may be due to the fact there’s a new version of both SQLite and e-Sword nowadays:

 

1. “Note: before working on any modules that are installed into e-Sword, copy the module you want to edit to another folder. Modules in your e-Sword folder in the Program Files cannot be written or saved to!

That’s wrong: The changes are applied instantly in e-Sword when I edit the module with SLQLite and this, DIRECTLY INTO THE E-SWORD FOLDER (C:\Program Files\e-Sword). I am able to edit the module “on the fly”, with e-Sword open moreover. No need, even, to change tab and come back to see the changes, which is nothing short of amazing.

 

2. “Once the SQL Statement is pasted into the box, click the Apply Button near the bottom of the box. Clicking Apply will execute the SQL statement and create a new table in the module/database.”

Wrong again: one must click on the BLUE BUTTON (arrow) in order to do this, not “click the Apply Button” that is situated at the bottom-right corner. This blue arrow is situated ABOVE the box “Execute SQL”, below the tab. One can also hit the F5 key or do Ctrl+R or Ctrl+Return (in case you don’t have a mouse).

 

3. “and then add the following piece html code: <N1> . Click Apply to enter this code into the bible verse. The bible verse in the Bible table will look like this: And God said,<not>N1</not> Let there be light:<not>N2</not> and there was light.<not>N3</not>.”

Wrong too: from v.9 (as I recall, not sure) and beyond, e-Sword doesn’t read HTML code anymore. Instead, it looks like this now (this is one example of the module I did yesterday): {\fs18\super\cf2\b R16}.

 

\fs18 is for the Font Size of the reference (here, R16).

\super is to indicate it is a superscript.

\cf2 is to Color Font (here light blue in my case).

\b is for Bold.

R16 is “Reference 16).

 

I have 1819 references in the NT module I just recently created, from R16 to R1834 (the first 15 are in the Preface which I put in a .dctx module, along with all the references). It works flawlessly. The light blue color lower size superscript is discreet, doesn’t clutter the text too much, it’s perfect.

 

Also take note that one can IMPORT A TABLE in csv format (note.csv) into the bible module in SQLite. That is exactly what I did. I worked with MS-Word 2016, then copied-pasted the text into notepad++, saved it in the .csv format and voilà. In SQLite, in the dropdown menu, click on File, then Import, then “Table from CSV file...”. Then look for it on your computer, load it and SQLite will notice there’s already a table named “note”, will propose you to import the data into the existing table. Click ‘yes’ and that’s it. It is WAY easier to prepare your references with a word processor than to copy them one by one in SQLite, obviously. Unless you have time to lose. That option saved my life as I already had them ready in a .docx (MS-Word) file.

 

Hope that helps. God bless.



#12 JPG

JPG

    Jon.

  • Moderators
  • 1,678 posts
Online

Posted 05 April 2023 - 09:26 AM

Hello everyone,

There are several wrong statements here that I want to amend (apart from the numerous typos, which I’ll not go into). It may be due to the fact there’s a new version of both SQLite and e-Sword nowadays:

 

1. “Note: before working on any modules that are installed into e-Sword, copy the module you want to edit to another folder. Modules in your e-Sword folder in the Program Files cannot be written or saved to!

That’s wrong: The changes are applied instantly in e-Sword when I edit the module with SLQLite and this, DIRECTLY INTO THE E-SWORD FOLDER (C:\Program Files\e-Sword). I am able to edit the module “on the fly”, with e-Sword open moreover. No need, even, to change tab and come back to see the changes, which is nothing short of amazing.

 

2. “Once the SQL Statement is pasted into the box, click the Apply Button near the bottom of the box. Clicking Apply will execute the SQL statement and create a new table in the module/database.”

Wrong again: one must click on the BLUE BUTTON (arrow) in order to do this, not “click the Apply Button” that is situated at the bottom-right corner. This blue arrow is situated ABOVE the box “Execute SQL”, below the tab. One can also hit the F5 key or do Ctrl+R or Ctrl+Return (in case you don’t have a mouse).

 

3. “and then add the following piece html code: <N1> . Click Apply to enter this code into the bible verse. The bible verse in the Bible table will look like this: And God said,<not>N1</not> Let there be light:<not>N2</not> and there was light.<not>N3</not>.”

Wrong too: from v.9 (as I recall, not sure) and beyond, e-Sword doesn’t read HTML code anymore. Instead, it looks like this now (this is one example of the module I did yesterday): {\fs18\super\cf2\b R16}.

 

\fs18 is for the Font Size of the reference (here, R16).

\super is to indicate it is a superscript.

\cf2 is to Color Font (here light blue in my case).

\b is for Bold.

R16 is “Reference 16).

 

I have 1819 references in the NT module I just recently created, from R16 to R1834 (the first 15 are in the Preface which I put in a .dctx module, along with all the references). It works flawlessly. The light blue color lower size superscript is discreet, doesn’t clutter the text too much, it’s perfect.

 

Also take note that one can IMPORT A TABLE in csv format (note.csv) into the bible module in SQLite. That is exactly what I did. I worked with MS-Word 2016, then copied-pasted the text into notepad++, saved it in the .csv format and voilà. In SQLite, in the dropdown menu, click on File, then Import, then “Table from CSV file...”. Then look for it on your computer, load it and SQLite will notice there’s already a table named “note”, will propose you to import the data into the existing table. Click ‘yes’ and that’s it. It is WAY easier to prepare your references with a word processor than to copy them one by one in SQLite, obviously. Unless you have time to lose. That option saved my life as I already had them ready in a .docx (MS-Word) file.

 

Hope that helps. God bless.

 

Quote from e-Sword update changes.

 

e-Sword version 11.0

E-Sword modules are now HTML-based! This change will allow many new and unique resources to be created for e-Sword. Don't worry, e-Sword will still work with the older RTF-based modules as well. Most of the resources have been updated to this new format, so you may want to download the updated versions of these modules, especially the non-English Bibles as they now contain the actual Unicode characters which makes for better search results. The new module format has also introduced a new Lexicon module type.



#13 Tj Higgins

Tj Higgins

    e-Sword Fanatic

  • Members (T)
  • PipPipPipPipPip
  • 1,467 posts
Offline

Posted 05 April 2023 - 12:12 PM

Hello everyone,

There are several wrong statements here that I want to amend (apart from the numerous typos, which I’ll not go into). It may be due to the fact there’s a new version of both SQLite and e-Sword nowadays:

 

1. “Note: before working on any modules that are installed into e-Sword, copy the module you want to edit to another folder. Modules in your e-Sword folder in the Program Files cannot be written or saved to!

That’s wrong: The changes are applied instantly in e-Sword when I edit the module with SLQLite and this, DIRECTLY INTO THE E-SWORD FOLDER (C:\Program Files\e-Sword). I am able to edit the module “on the fly”, with e-Sword open moreover. No need, even, to change tab and come back to see the changes, which is nothing short of amazing.

 

2. “Once the SQL Statement is pasted into the box, click the Apply Button near the bottom of the box. Clicking Apply will execute the SQL statement and create a new table in the module/database.”

Wrong again: one must click on the BLUE BUTTON (arrow) in order to do this, not “click the Apply Button” that is situated at the bottom-right corner. This blue arrow is situated ABOVE the box “Execute SQL”, below the tab. One can also hit the F5 key or do Ctrl+R or Ctrl+Return (in case you don’t have a mouse).

 

3. “and then add the following piece html code: <N1> . Click Apply to enter this code into the bible verse. The bible verse in the Bible table will look like this: And God said,<not>N1</not> Let there be light:<not>N2</not> and there was light.<not>N3</not>.”

Wrong too: from v.9 (as I recall, not sure) and beyond, e-Sword doesn’t read HTML code anymore. Instead, it looks like this now (this is one example of the module I did yesterday): {\fs18\super\cf2\b R16}.

 

\fs18 is for the Font Size of the reference (here, R16).

\super is to indicate it is a superscript.

\cf2 is to Color Font (here light blue in my case).

\b is for Bold.

R16 is “Reference 16).

 

I have 1819 references in the NT module I just recently created, from R16 to R1834 (the first 15 are in the Preface which I put in a .dctx module, along with all the references). It works flawlessly. The light blue color lower size superscript is discreet, doesn’t clutter the text too much, it’s perfect.

 

Also take note that one can IMPORT A TABLE in csv format (note.csv) into the bible module in SQLite. That is exactly what I did. I worked with MS-Word 2016, then copied-pasted the text into notepad++, saved it in the .csv format and voilà. In SQLite, in the dropdown menu, click on File, then Import, then “Table from CSV file...”. Then look for it on your computer, load it and SQLite will notice there’s already a table named “note”, will propose you to import the data into the existing table. Click ‘yes’ and that’s it. It is WAY easier to prepare your references with a word processor than to copy them one by one in SQLite, obviously. Unless you have time to lose. That option saved my life as I already had them ready in a .docx (MS-Word) file.

 

Hope that helps. God bless.

Which SQL program are you using my instructions are for a program called DB Browser which I used to add pop up notes to three bible modules. As JPG said e-Sword starting with version 11 can read html modules this was an upgrade to the program which made it equal to the Apple/MAC and now Android versions of e-Sword. The Apple/Mac versions of e-Sword have always been html based which is why there are two different sets of module file extensions. Modules whose file extensions end with the letter "x" only work on the Windows versions of e-Sword while modules whose file extensions end with the letter "i" will work with all versions of e-Sword.

Your comment numbered 1 is incorrect as the program DB Browser will not write to files in the e-Sword program files folder. Again the is the SQL Program I used and wrote the instructions for not SQL Lite.
 

The instruction about creating the note table is accurate and correct for the program DB Browser which again is the program I used.

 

The code you used is RTF code which means your module is created as a bblx module this means it cannot be used with the Apple/Mac or Android versions ot e-Sword. When I added the Pop-Up notes to the three bible modules I was working with, I only created the notes table once. The three modules I added notes two were three editions of the World English Bible or WEB bible module. Each version uses the same set of footnotes so I copied the first notes table into the other two modules. The three modules I created can be download from here on bible support and are html based modules. As such I used html code to create the notes and the required note markers in the bible text

Here is a link to one of the modules:

http://www.biblesupp...n-edition-2022/

 

This module works in all version e-Sword not just the Windows version

You are correct about importing the notes in a CSV file however I did not have such a file to work with, I was simply learning the method as I went along. As for executing the SQL to create the notes table again my instructions are for the program DB Browser not SQLite. I have both programs installed on my PC and DB Browser was recommended to me by another member of Bible Support. DB Browser is a much more robust program with much nicer interface and easy to work with.

You can download the program for free from this website:

DB Browser for SQLite (sqlitebrowser.org)


Edited by Tj Higgins, 05 April 2023 - 12:34 PM.


#14 PeanutGallery

PeanutGallery

    e-Sword Fanatic

  • Members
  • PipPipPipPipPip
  • 155 posts
Offline

Posted 05 April 2023 - 04:21 PM

...
Your comment numbered 1 is incorrect as the program DB Browser will not write to files in the e-Sword program files folder....

 

I use e-Sword 11.2.2 with WINE on Linux, and Linux DB Browser. I can edit/apply/write to files located in e-Sword program files folder; the changes will appear in e-Sword by refreshing the page, which will force e-Sword to re-read the file. In my case it is a bible.bbli file.



#15 Tj Higgins

Tj Higgins

    e-Sword Fanatic

  • Members (T)
  • PipPipPipPipPip
  • 1,467 posts
Offline

Posted 05 April 2023 - 04:56 PM

I use e-Sword 11.2.2 with WINE on Linux, and Linux DB Browser. I can edit/apply/write to files located in e-Sword program files folder; the changes will appear in e-Sword by refreshing the page, which will force e-Sword to re-read the file. In my case it is a bible.bbli file.

Again the program I used does not write to files in the e-Sword folder



#16 APsit190

APsit190

    e-Sword Tools Developer

  • Members (T)
  • PipPipPipPipPip
  • 2,875 posts
  • LocationLand of the Long White Cloud (AKA New Zealand)
Offline

Posted 06 April 2023 - 05:09 PM



Again the program I used does not write to files in the e-Sword folder


Hey Higgsy, maybe you might need to go into a tad more depth and show what you are using, and thus one can see what is happening, perhaps learn from.

 

Blessings,

Autograph.png

X (formerly Twitter)

 


#17 JPG

JPG

    Jon.

  • Moderators
  • 1,678 posts
Online

Posted 06 April 2023 - 05:26 PM

He mentions and gives a link to the program used in the post above here http://www.biblesupp...ge-2#entry44273



#18 Tj Higgins

Tj Higgins

    e-Sword Fanatic

  • Members (T)
  • PipPipPipPipPip
  • 1,467 posts
Offline

Posted 07 April 2023 - 09:08 AM

Hey Higgsy, maybe you might need to go into a tad more depth and show what you are using, and thus one can see what is happening, perhaps learn from.

 

Blessings,

 

My original set of instructions are very detailed and very clear and the program I used is called DB Browser



#19 JPG

JPG

    Jon.

  • Moderators
  • 1,678 posts
Online

Posted 07 April 2023 - 10:34 AM

Shall I close this topic now?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users




Similar Topics



Latest Blogs