foilpresenter

The XML of Foilpresenter songs is of the format:

<?xml version="1.0" encoding="UTF-8"?>
<foilpresenterfolie version="00300.000092">
<id>2004.6.18.18.44.37.0767</id>
<lastchanged>2012.1.21.8.53.5</lastchanged>
<titel>
    <titelstring>Above all</titelstring>
</titel>
<sprache>1</sprache>
<ccliid></ccliid>
<tonart></tonart>
<valign>0</valign>
<notiz>Notiz</notiz>
<versionsinfo>1.0</versionsinfo>
<farben>
    <cback>0,0,0</cback>
    <ctext>255,255,255</ctext>
</farben>
<reihenfolge>
    <name>Standard</name>
    <strophennummer>0</strophennummer>
</reihenfolge>
<strophen>
    <strophe>
        <align>0</align>
        <font>Verdana</font>
        <textsize>14</textsize>
        <bold>0</bold>
        <italic>0</italic>
        <underline>0</underline>
        <key>1</key>
        <text>Above all powers, above all kings,
above all nature an all created things;
above all wisdom and all the ways of man,
You were here before the world began.</text>
        <sortnr>1</sortnr>
    </strophe>
</strophen>
<verkn>
    <filename>Herr du bist maechtig.foil</filename>
</verkn>
<copyright>
    <font>Arial</font>
    <textsize>7</textsize>
    <anzeigedauer>3</anzeigedauer>
    <bold>0</bold>
    <italic>1</italic>
    <underline>0</underline>
    <text>Text und Musik: Lenny LeBlanc/Paul Baloche</text>
</copyright>
<buch>
    <bucheintrag>
        <name>Feiert Jesus 3</name>
        <nummer>10</nummer>
    </bucheintrag>
</buch>
<kategorien>
    <name>Worship</name>
</kategorien>
</foilpresenterfolie>
class openlp.plugins.songs.lib.importers.foilpresenter.FoilPresenter(manager, importer)[source]

Bases: object

This class represents the converter for Foilpresenter XML from a song.

As Foilpresenter has a rich set of different features, we cannot support them all. The following features are supported by the Foilpresenter

OpenPL does not support styletype and font attributes like “align, font,
textsize, bold, italic, underline”
<lastchanged>
This property is currently not supported.
<title>
As OpenLP does only support one title, the first titlestring becomes
title, all other titlestrings will be alternate titles
<sprache>
This property is not supported.
<ccliid>
The <ccliid> property is fully supported.
<tonart>
This property is currently not supported.
<valign>
This property is not supported.
<notiz>
The <notiz> property is fully supported.
<versionsinfo>
This property is not supported.
<farben>
This property is not supported.
<reihenfolge> = verseOrder
OpenLP supports this property.
<strophen>
Only the attributes key and text are supported.
<verkn>
This property is not supported.
<verkn>
This property is not supported.
<copyright>
Only the attribute text is supported. => Done
<buch> = songbooks
As OpenLP does only support one songbook, we cannot consider more than one songbook.
<kategorien>
This property is not supported.
The tag <author> is not support by foilpresenter, mostly the author is
named in the <copyright> tag. We try to extract the authors from the <copyright> tag.
xml_to_song(xml)[source]

Create and save a song from Foilpresenter format xml to the database.

Parameters:xml – The XML to parse (unicode).
class openlp.plugins.songs.lib.importers.foilpresenter.FoilPresenterImport(manager, **kwargs)[source]

Bases: openlp.plugins.songs.lib.importers.songimport.SongImport

This provides the Foilpresenter import.

do_import()[source]

Imports the songs.

openlp.plugins.songs.lib.importers.foilpresenter.to_str(element)[source]

This returns the text of an element as unicode string.

Parameters:element – The element