Jump to content

Please read the Forum Rules before posting.

Photo
- - - - -

Mac User In Search of Help with Tool Tips


  • Please log in to reply
12 replies to this topic

#11 Eliran Wong

Eliran Wong

    e-Sword Fanatic

  • Banned
  • PipPipPipPipPip
  • 283 posts
Offline

Posted 07 September 2016 - 10:45 AM

I think, if not underestimated, it is an easy task for you to create those links.

Here, I attached a simple script for you, which should add bible links and Strong's no. links to your files.

 

Steps,

1) download and unzip the file, you would find a folder "detechESlinks" (in this folder, 1 file - detectESlinks.sh, and 1 folder "run")

2) export your e-sword modules into csv format (easy task with a SQLite browser, I use "DB Browser for SQLite")

3) put those csv into the folder "run"  (if you have many modules, just put all csv files here)

4) open terminal (click the magnifying glass at right upper corner, and type 'terminal' and select)

5) type cd followed by a space, then drag the folder "detectESlinks" to the terminal, and press enter in the terminal

6) type ./detectESlinks.sh run/*.csv

7) the new csv files in folder "run" should contain the links you want, those files with .bak extension are backup files

8) import back into the SQLite file.

 

it takes about 5 min for simple files.

Attached Files



#12 SetApartChosenOne

SetApartChosenOne

    New to Bible Support

  • Members
  • Pip
  • 14 posts
Offline

Posted 08 September 2016 - 11:50 PM



I think you may needs about 15 min for that:

- re: bible links, e-Sword has a very standard set of abbreviations for 66 books, just do a search and replace, like searching (Gen|Exo|Lev|Num|Deu) ([0-9]+?:[0-9]+?)([^0-9]), replaced with <ref>\1 \2</ref>\3, may do many bible links for the first five books.  add more abb. in the first pair of ( ), do more, just simply click "replace all" save your time ...

- re: Strong's no., even easier, search: (G|H)([0-9]+?)([^0-9]), replace all with <num>\1\2</num>\3

 

if you have many modules, use TextWrangler.  I use this free software to do all my modules, can do search and replace for multiple files and folder.

 

Remarks: enable "case sensitive" and "regular expression" while you do search and replace

 

Thank you, Eliran Wong! I just tried to do what you say is the easier Strong's numbers search text and replace text, using TextWrangler, but I must not have done it correctly.

TextWrangler did not find the search string: (G|H)([0-9]+?)([^0-9]).

I'm sure what you shared does work, but using search strings like this are not something I've ever done. All I've ever done along this line of find and replace are simple words or phrases.

Besides, when I opened the file in TextWrangler, it showed up with a bunch of question marks within the text. So, maybe that's where I need to focus. All I did was open up the .lexi file for the Strong's Plus Dictionary in TextWrangler.

But I think I'm missing something. Thanks, again!

 

Blessings!


1 Corinthians 15:10


#13 Eliran Wong

Eliran Wong

    e-Sword Fanatic

  • Banned
  • PipPipPipPipPip
  • 283 posts
Offline

Posted 09 September 2016 - 05:04 AM



Thank you, Eliran Wong! I just tried to do what you say is the easier Strong's numbers search text and replace text, using TextWrangler, but I must not have done it correctly.

TextWrangler did not find the search string: (G|H)([0-9]+?)([^0-9]).

I'm sure what you shared does work, but using search strings like this are not something I've ever done. All I've ever done along this line of find and replace are simple words or phrases.

Besides, when I opened the file in TextWrangler, it showed up with a bunch of question marks within the text. So, maybe that's where I need to focus. All I did was open up the .lexi file for the Strong's Plus Dictionary in TextWrangler.

But I think I'm missing something. Thanks, again!

 

Blessings!

-  if you use TextWrangler to search with that pattern, you need to check the box "grep", which enables you to use regular expression for searching.

-  remarks, do not open .lexi directly with TextWrangler, export the dictionary table first ...

 

I suggest a quicker way in my another post above (Posted 07 September 2016 - 05:45 PM), please read that post and try.  I had written a simple script to do all the tasks for multiple files.  that should add bible links and Strong number links, not even need TextWrangler






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users




Similar Topics



Latest Blogs