Jump to content

Please read the Forum Rules before posting.

Photo

Perl scripts to convert e-Sword 9 bblx and cmtx modules to mysword


  • Please log in to reply
101 replies to this topic

#91 patchworkid

patchworkid

    Resource Builder

  • Members (T)
  • PipPipPipPipPip
  • 1,554 posts
  • LocationOld England
Offline

Posted 30 September 2014 - 12:49 AM

Hi

can you please give an example?

Thanks
Merismos the Scriptures with Patchworkid's Study Bible Set<p>http://www.biblesupp...tudy-bible-set/, MySword -http://www.biblesupp...tudy-bible-set/

#92 Pangit Robiso

Pangit Robiso

    New to Bible Support

  • Members
  • Pip
  • 1 posts
Offline

Posted 05 January 2015 - 09:27 AM

Hello Rob... Can i ask for a script for mysword dictionary? And a copy of TLB version? Thanks in advance...

#93 Edwin Velasco

Edwin Velasco

    New to Bible Support

  • Members
  • Pip
  • 2 posts
Offline

Posted 04 February 2015 - 09:44 PM

Hi,

Thanks for the script.... However I couldn´t run it sucessfully...

 

I got a e-sword 10.4.0 in Spanish.

I did the process you say but I don´t get a cero error log.

Below the log of the process..

Please can you helpme... NBJ stands for  New Jerusalen Bible (its an spanish catholic bible)

Thanks for your time...

Regards

Edwin
[root@ipbx esw2mysw-16293]#
[root@ipbx esw2mysw-16293]# ./esbblx2mys.pl NBJ.bblx
 RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_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0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0  RTF_ERR_0,0,0 closing dbh with active statement handles at ./esbblx2mys.pl line 110.

Gen 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
Exo 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
Lev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Num 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Deu 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
Jos 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Jdg 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Rth 1 2 3 4
1Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
2Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
1Ki 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
2Ki 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
1Ch 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
2Ch 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Ezr 1 2 3 4 5 6 7 8 9 10
Neh 1 2 3 4 5 6 7 8 9 10 11 12 13
Est 1 2 3 4 5 6 7 8 9 10
Job 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
Psa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
Pro 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Ecc 1 2 3 4 5 6 7 8 9 10 11 12
Son 1 2 3 4 5 6 7 8
Isa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
Jer 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
Lam 1 2 3 4 5
Eze 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
Dan 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Hos 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Joe 1 2 3
Amo 1 2 3 4 5 6 7 8 9
Oba 1
Jon 1 2 3 4
Mic 1 2 3 4 5 6 7
Nah 1 2 3
Hab 1 2 3
Zep 1 2 3
Hag 1 2
Zec 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Mal 1 2 3 4
Mat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Mar 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Luk 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Joh 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Act 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Rom 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1Co 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
2Co 1 2 3 4 5 6 7 8 9 10 11 12 13
Gal 1 2 3 4 5 6
Eph 1 2 3 4 5 6
Phi 1 2 3 4
Col 1 2 3 4
1Th 1 2 3 4 5
2Th 1 2 3
1Ti 1 2 3 4 5 6
2Ti 1 2 3 4
*** 1 2 3
Phm 1
Heb 1 2 3 4 5 6 7 8 9 10 11 12 13
Jam 1 2 3 4 5
1Pe 1 2 3 4 5
2Pe 1 2 3
1Jo 1 2 3 4 5
2Jo 1
3Jo 1
Jud 1
Rev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
UNK 1 2 3 4 5 6 7 8 9 10 11 12 13 14
UNK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
UNK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
UNK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
UNK 1 2 3 4 5 6
UNK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
UNK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15DBI::db=HASH(0x15c4c390)->disconnect invalidates 1 active statement handle (either destroy statement handles or call finish on them before disconnecting) at ./esbblx2mys.pl line 133.
closing dbh with active statement handles at ./esbblx2mys.pl line 133.

Finished NBJ.bbl.mybible
[root@ipbx esw2mysw-16293]#

 

 



#94 Anthony Grubb

Anthony Grubb

    New to Bible Support

  • Veterans
  • Pip
  • 7 posts
Offline

Posted 07 March 2015 - 11:17 PM

Any word on a script for the e-Sword 10 modules?



#95 Anthony Grubb

Anthony Grubb

    New to Bible Support

  • Veterans
  • Pip
  • 7 posts
Offline

Posted 08 March 2015 - 08:57 PM

This script doesn't work with e-Sword 10 files, it should be noted. Thanks.



#96 Josh Bond

Josh Bond

    Administrator

  • Administrators
  • PipPipPipPipPip
  • 2,890 posts
  • LocationGallatin, TN
Offline

Posted 09 March 2015 - 09:24 AM

This script doesn't work with e-Sword 10 files, it should be noted. Thanks.

 

The script is intended for CMTX and BBLX files. CMTX and BBLX files for e-sword 9.x are the same as e-Sword 10.x.

 

The script won't work with premium modules sold by e-Sword, though.



#97 Antonio Fernandez

Antonio Fernandez

    New to Bible Support

  • Members
  • Pip
  • 1 posts
Offline

Posted 12 April 2015 - 05:13 AM

download The script link



#98 Richard

Richard

    Liking e-Sword

  • Veterans
  • PipPip
  • 26 posts
  • LocationHeswall, United Kingdom
Offline

Posted 09 April 2016 - 08:17 AM

Thanks. This worked for me for a couple of interlinear bblx files I found burried away! Renewing an interest in eSword again!



#99 xyan043

xyan043

    New to Bible Support

  • Members
  • Pip
  • 3 posts
Offline

Posted 26 February 2019 - 01:13 PM

I have written two simple perl scripts to convert unencrypted e-Sword 9 bible and commentary modules to MySword. Besides perl, the script requires the DBI and DBD::SQLite perl modules. Unzip the perl scripts into the directory with the ".bblx" or ".cmtx" files that you wish to convert.

If you run any major Linux distribution, you already have perl on board. To test if you have the modules installed, issue the command "perl -e 'use DBI; use DBD::SQLite;'" (the single quotes are part of the command, the double quotes ae not). If you get an error, indicating that a module is missing from @INC, you need to install the modules. On Debian or a derivative distribution (like Ubuntu), use the command "apt-get install libdbd-sqlite3-perl". On Fedora and RedHat derivatives, the command is "yum install perl-DBD-SQLite" (on RHEL, CentOS or Scientific Linux you may want to include the "rpmforge" repository).

If you run Windows, this script can be used with Strawberry Perl. I advise you to download the portable executable, because that doesn't need installation. Just unpack the distribution somewhere, run the "portableshell.bat" batch file and you have a DOS box where you're good to go (see screen dump).

Change to the directory where you have the perl scripts and bible/commentary files and execute "perl esbblx2mys.pl <bible file>" or "perl escmtx2mys.pl <commentary file>" This will create a MySword file in the same directory. Repeat as needed.


strawberryh.png

Some things to consider:

  • The MySword names are based on the bible abbreviations. If you have a file named "king_james.bblx" that uses the abbreviation "KJV", the MySword file becomes "KJV.bbl.mybible".
  • In e-Sword, commentary files can cross chapters, in MySword they cannot. If you have a ".cmtx" file that has a companion ".bblx", have the ".bblx" present in the same directory as the commentary file with the same name except for the ".bblx" extension i.o. ".cmtx". This will be used to find the last verse number of the chapter. If the bible file is not present, the current verse is used, followed by the range in the next chapter.
  • If in a bible file, we encounter green superscript numbers, possibly preceded by a "G" or "H", it is considered to be a Strong's dictionary reference and it is encoded as such in the MySword bible file.
  • If in a bible file, we encounter red superscript text (like in the NET bible), we consider it a commentary reference and it will be encoded as such. This will reference a commentary module with the same abbreviation as the bible. If the reference text includes a chapter and verse, that is the place where the reference will point to in the commentary module. Else, it will point to the current verse.

Drop me a note if you have a question or if you notice some markup that I missed. In the latter case I might require you to send me your module file so I can see what the markup looks like in the original.

Regards,
Rob

P.S., as my handle implies, I am actually an atheist with an interest in the bible. Please refrain from proselytizing. Let's just agree to disagree on the question of the existence of gods.

Edited to add 2012-08-29: I modified the bible conversion script to better handle UTF characters and RTF tags. If you find a bug, please send me a PM. Thanks to user ebulerdo for thr references to the RTF tags that are being used. If I have some spare time I will also edit the comment conversion script.

Edited to add 2014-08-08: I modified the bible conversion script slightly to better handle nested RTF tags and to do more in memory so it runs faster.

 

Edited to add 2014-08-11: The commentary conversion script has been modified to fix the same issues as the bible conversion script. Created a single zip file with both scripts.

 

Hi Rob,

I know it's been a very old post. But the link of the scripts have expired. Any chance you may email me the 2 scripts to my mailbox: xyan043@gmail.com?

 

I am trying to convert Chichewa NT bblx module into MySword for both preaching and teaching. This will greatly leverage my Chichewa ability. Sorry but there's not much resource for Chichewa learning...

 

Blessings,

Steven



#100 Tj Higgins

Tj Higgins

    e-Sword Fanatic

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

Posted 26 February 2019 - 01:38 PM

Hi Rob,

I know it's been a very old post. But the link of the scripts have expired. Any chance you may email me the 2 scripts to my mailbox: xyan043@gmail.com?

 

I am trying to convert Chichewa NT bblx module into MySword for both preaching and teaching. This will greatly leverage my Chichewa ability. Sorry but there's not much resource for Chichewa learning...

 

Blessings,

Steven

You need to download a program called Simple Bible Reader which can read and convert modules including converting e-Sword modules to Mysword sword modules

The program can be downloaded from the following link:

 

https://trumpet-call...e-bible-reader/






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users




Similar Topics



Latest Blogs