chordpro

The chordpro module provides the functionality for importing ChordPro files into the current database.

class openlp.plugins.songs.lib.importers.chordpro.ChordProImport(manager, **kwargs)[source]

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

The ChordProImport class provides OpenLP with the ability to import ChordPro files. This importer is based on the information available on these webpages: http://webchord.sourceforge.net/tech.html http://www.vromans.org/johan/projects/Chordii/chordpro/ http://www.tenbyten.com/software/songsgen/help/HtmlHelp/files_reference.htm http://linkesoft.com/songbook/chordproformat.html

do_import()[source]
do_import_file(song_file)[source]

Imports the songs in the given file :param song_file: The file object to be imported from.

parse_tag(line)[source]
Parameters:line – Line with the tag to be parsed
Returns:A tuple with tag name and tag value (if any)