Jump to content

Please read the Forum Rules before posting.

Photo

Utility to convert doc to sqlite


  • Please log in to reply
5 replies to this topic

#1 tengwer

tengwer

    Liking e-Sword

  • Veterans
  • PipPip
  • 22 posts
Offline

Posted 26 February 2013 - 10:55 PM

On TheWord Import Utility there is a disk file conversion utility that allows you to put several files in a folder and then have them converted to a book with each file name being the topic name and each file content being the topic content.  If this can be done then isn't there a utility that can take a preformatted whole document with tags created to show each topic name and mark off the topic sections as below:

 

[Topic Name 1]

topic content

 

[Topic Name 2]

topic content

 

Is there a utility that could take the whole file and parse it and break it into its sections as above marked off by the tag lines to quicklly create a book or dictionary module in sqlite format?  I know this could be done from a programming perspective but is there a utility out there already created?   It sure would be immensley handy to use! :rolleyes:


Edited by tengwer, 26 February 2013 - 10:58 PM.


#2 BaptizedBeliever

BaptizedBeliever

    Christian

  • Members (T)
  • PipPipPipPipPip
  • 924 posts
Offline

Posted 27 February 2013 - 12:09 AM

ToolTip NT does that.

 

÷Topic title 1

contents of topic

 

÷Topic title 2

contents of topic

 

÷Topic title 3

contents of topic.

 

etc...

 

Of course, it converts it to an e-Sword format, and then you'll need to use the Word Importer to convert it to Word, but no big deal.



#3 tengwer

tengwer

    Liking e-Sword

  • Veterans
  • PipPip
  • 22 posts
Offline

Posted 27 February 2013 - 07:04 PM

I tried that out but I only saw a way to create a topic by hand -  nothing where you could paste a whole book in and have the program automatically turn it into a module.  Could you point me in the right direction in the program where this is possible?



#4 BaptizedBeliever

BaptizedBeliever

    Christian

  • Members (T)
  • PipPipPipPipPip
  • 924 posts
Offline

Posted 27 February 2013 - 10:38 PM

Open the book in MS Word (or another word-processing program).  Highlight the whole document (ctrl-a), and then hit ctrl-c.  Then open ToolTipNT and his ctrl-v.  That pastes the whole book.  Then place the ÷ symbol at the beginning of the title of each chapter.  Click "modules" and then "define module variables" and "topics".  At the top of the document, there will be some code entered "#define prefix=PRE-#0""  Change the 0 to 1.  Then click "modules", "topics", "save topic file"

 

That's the basic instructions.  Hope it helps.



#5 tengwer

tengwer

    Liking e-Sword

  • Veterans
  • PipPip
  • 22 posts
Offline

Posted 28 February 2013 - 05:45 AM

Thank you so much!  I figured this out just now before reading this post.  Just a question:

At the top I see the following in Tooltip:

define description=DESC

#define abbreviation=CWS

#define comments=CMTS

#define version=3

#define strong=0

#define nosort=0

 

 but do not see #define prefix=PRE-#0

I can add this in and change the PRE-#0 To #1 as you said but what does this line tell the program to do?



#6 DSaw

DSaw

    Resource Builder

  • Members (T)
  • PipPipPipPipPip
  • 1,159 posts
  • LocationEast Coast
Offline

Posted 28 February 2013 - 09:12 AM

Thank you so much!  I figured this out just now before reading this post.  Just a question:

At the top I see the following in Tooltip:

define description=DESC

#define abbreviation=CWS

#define comments=CMTS

#define version=3

#define strong=0

#define nosort=0

 

 but do not see #define prefix=PRE-#0

I can add this in and change the PRE-#0 To #1 as you said but what does this line tell the program to do?

what you have above is for a dictionary 

 

you want for a topx

 

#define prefix=PRE-#0

#define prefix2=" "

#define prefixstartnum=0

#define version=3

 

÷

 

 

see page 34 of the tooltip manual for setting the prefix

 

http://www.biblesupp...vision-1202012/


Edited by DSaw, 28 February 2013 - 09:14 AM.

May God change our hearts to what the truth is

2Ti_2:15 Study to shew thyself approved unto God, a workman that needeth not to be ashamed, rightly dividing the word of truth.

Rom_9:16 So then it is not of him that willeth, nor of him that runneth, but of God that sheweth mercy.

2Ti 2:24-25  And the servant of the Lord must not strive; but be gentle unto all men, apt to teach, patient, In meekness instructing those that oppose themselves; if God peradventure will give them repentance to the acknowledging of the truth; 
 

 

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users




Similar Topics



Latest Blogs