Re: [sword-devel] Help converting text to imp

2011-06-15 Thread David Haslam
Paste is a very useful command in this context. Win32 folks can obtain it by visiting http://unxutils.sourceforge.net/ This includes the equivalent paste.exe David -- View this message in context: http://sword-dev.350566.n4.nabble.com/Help-converting-text-to-imp-tp3599284p3600605.html Sent from

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Angel Candelaria
Thanks for the suggestions. I got it done using the paste command along a text file with the verse references that Ryan sent me. Then I just ran the sed command and all worked out perfectly. I'm not familiar with Python (I'm not really a programmer) but thanks for the suggestion anyway. Mike: No

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Mike Hart
Angel are we stil talking about the RVR2011? The RVR (parent document), as well as the file sent to me, has 'scripture' in about 60 of the psalm titles that would be missing in the file you are describing. I spent some time redesigning the excel file logic to count the chapters instead of ext

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Karl Kleinpaste
Greg Hellings writes: > Perhaps for you. Some people don't like to put together pipes of that size One uses the weapons with which one is familiar. Between a one-line pipeline -vs- constructing a python program including several imports, knowledge of needed Sword methods (one of which you couldn

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Greg Hellings
On Wed, Jun 15, 2011 at 11:05 AM, Karl Kleinpaste wrote: > python is too big a weapon for this. Perhaps for you. Some people don't like to put together pipes of that size and/or don't grasp Bash well enough to see what is going on in your pipes. Just offering another possibility. --Greg __

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Mike Hart
The spreadsheet I just explained can be modified to COUNT the verse numbers instead of reading them by inserting another collumn like E and F. ___ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-dev

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Karl Kleinpaste
Karl Kleinpaste writes: > $ mod2imp KJV | grep '^\$' | tr -d '$' | grep : | head -2 | while read key ; > do read -u 17 line ; echo '$$$'"$key" "$line" ; done > text.vpl Oops, remove the "head -2" stage. That was just from using a 2-line test text. __

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Karl Kleinpaste
python is too big a weapon for this. given: a. text.orig containing verse reference-less text. b. you're using bash. $ exec 17 text.vpl ___ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Mike Hart
If you look at the The excel file I sent you on Friday(?) (RVR2011-VPL-heading.xlsx) ... A shortened example for another Bible version, converted into open office calc format is viewable at http://www.archive.org/details/ImportFilterWorksheetsForSwordExamples Open office is MUCH less efficie

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Greg Hellings
> comfortable to work at. > > Peter > > > > Original-Nachricht >> Datum: Wed, 15 Jun 2011 10:36:57 -0400 >> Von: Angel Candelaria >> An: "SWORD Developers\' Collaboration Forum" >> Betreff: Re: [sword-devel] Help c

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Peter von Kaehne
:36:57 -0400 > Von: Angel Candelaria > An: "SWORD Developers\' Collaboration Forum" > Betreff: Re: [sword-devel] Help converting text to imp > Ok, now I see the problem. > > You are assuming my text file has the verse references on it, but the > fact is that it

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Angel Candelaria
Ok, now I see the problem. You are assuming my text file has the verse references on it, but the fact is that it doesn't. Maybe I didn't explain myself well. My text file looks like this: In the beginning God created the heavens... And the earth was without form, and void... and so on; no vers

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Karl Kleinpaste
Angel Candelaria writes: > For some reason that didn't work $ cat text.vpl gen 1:1 in the beginning god created the heavens and the earth. john 3:16 for god so loved the world that he gave his only begotten son... $ sed -e 's/^\(.\+ [0-9]\+:[0-9]\+\) /\$\$\$\1\n/' < text.vpl > text.imp $ cat text

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Angel Candelaria
For some reason that didn't work, but I got it done using jedit and regular expressions. Now, is there a way to put the corresponding labels after the $$$'s? Maybe using another text file with the names of the labels in order, then copy them to the corresponding places in order using a special sea

Re: [sword-devel] Help converting text to imp

2011-06-15 Thread Karl Kleinpaste
Angel Candelaria writes: > Is there a way I can add the required imp markup (I mean, the $$$ > before each verse and sections) in an automated way sed -e 's/^\(.\+ [0-9]\+:[0-9]\+\) /\$\$\$\1\n/' < text.vpl > text.imp ___ sword-devel mailing list: swor

[sword-devel] Help converting text to imp

2011-06-15 Thread Angel Candelaria
Hi all. I need to convert another text I have to imp format. Right now I have it in vpl format, no book or chapter headings - just exactly 31,102 lines of verses. Is there a way I can add the required imp markup (I mean, the $$$ before each verse and sections) in an automated way (maybe using fi