Hi guys, can anyone help to import file from a standard text file into OpenLP. I have about 800 songs to import. At this moment I add them manually one by one, but it is going to take some time to do them all. There must be a faster way. The text file is currently in this format (I copied a small part to illustrate). I also added some comments in [] brackets.
Lied 005 [Song ID]
Psalm 5 [Title of song]
1. Gee, Here, aan my woorde aandag, [Verse 1]
sodat U my versugting hoor;
ek lê dit biddend aan U voor.
U antwoord bly ek soggens afwag,
God, in my onmag.
2. U duld geen onreg en geen kwaad nie; [verse 2]
wie trots is sal verneder word,
U sal hom in die afgrond stort.
In moordenaars het U 'n afsku
en leuenaars straf U.
3. Maar ek mag in u tempel ingaan; [verse 3]
u troue liefde gun my dit.
Ek mag met eerbied U aanbid
wanneer ek in u woning skuilgaan
wat vir my oopstaan.
4. Die goddelose kom in opstand. [verse 4]
Leer U my egter wat is reg.
Dryf dié wat kwaad praat van U weg.
Laat val deur eie hand die vyand
en breek hul teenstand.
5. Laat dié wat by U skuil nou bly wees [verse 5]
en van u goedheid, Here, sing.
Beskermend sal U hul omring.
Mag hul u liefde toegewy wees,
U hul naby wees.
Words/Music: TT Cloete [Author]
NG Kerk Uitgewers [Copyright]
[then it have a few spaces and the next song continues in the same format]
All the needed info is there, but there has to be a quicker way to get it into OpenLP. Are there any changes I must make to the text file to have it work? Or can someone tell me how to import this type of text file.
Thanks
Comments
I haven't tried it, but OpenSong has a multi-purpose "OpenSong Import V1.3" on their download page: http://opensong.org/d/downloads
If you are able to convert them using this, you should then be able to convert the created OpenSong songs via the OpenLP import option.
Let us know how you get on.
i wrote a c# program that took a flat file just like the one u have that;
created an xml file with all songs in the flat file
as well as insert statements to place the songs into the openlp sql lite database with a blank author.
Its is however not production ready. If you send me your flat file, ill try to do it for you. tuju2@hotmail.com.