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
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
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
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
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
__
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
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.
__
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
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
> 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
: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
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
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
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
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
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
16 matches
Mail list logo