I developed some additional funcionality to show chords on stage view, because OpenLP doesn't solve chords in lyrics now. I only summarize
my work on this discussion.
Inspired by
http://wellstyled.com/css-chords-formatting.html.
Folow these steps:
- download
openlp_chords211.zip and unzip to OpenLP,
- import setting chords_tags.conf (it rewrites all custom tags!!!) or add formating tags:
add formating for chordline - {cl}: <span class="chordline"> .. </span>
add formating for chord - {c}: <span class="chord" style="display:nοne;"> .. </span>
Now edit your lyric in OpenLP like:
{cl}How {c}[G]{/c}great is our God,
{c}[D/F#]{/c}sing with me,{cl}
and open your browser
http://localhost:4316/files/slide.html and now you can see chords above text:

Transpose is still in my mind, but only on stage view.
Comments
txt_to_openlyrics.html
and
txt_to_openlp_en.html
A little correction for tx_to_openlp_en.html:
...
...
//---[Verse:1]---
//---[Chorus:1]---
//---[Bridge:1]---
//---[Pre-Chorus:1]---
//---[Intro:1]---
//---[Ending:1]---
//---[Other:1]---
function openVerse (theLang) {
v_Name = "Verse";
switch (verseName) {
case "v":
v_Name = "Verse";
break;
case "c":
v_Name = "Chorus";
break;
case "b":
v_Name = "Bridge";
break;
case "e":
v_Name = "Ending";
break;
case "p":
v_Name = "Pre-Chorus";
break;
default:
}
destLyrics = destLyrics + "---[" + v_Name + ":" + verseNum + "]---"; /* " <verse name=\"" + verseName + verseNum + "\""; */
...
...
here is the result: txt_to_openlyrics_mod_01.html
I uploaded file txt_to_openlp_en.html
I fixed some bugs and added function that if "With chords formatting" is unchecked then no chords are in converted lyric.
- fixed for OpenLP 2.1.4
- fixed chord formatting - chords close to each (ex.: S[F#m]o[A]ng)
- added print.html for print lyric with chords http://localhost:4316/files/print.html
- there is some bug with lyric title if song is not in service list (there is only api to get title from servicelist)
Feel free to comment this, thanks.http://localhost:4316/files/print.html
slimchars for my language (sk): slimchars = 'fiíIÍjlĺľrtť.,;/ ()|"\'!:\\';
I think, it's better now.
Sometimes I have problem with mol chords as small letter like h=Hm, c#=C#m. But it's not so big problem to change it to correct form.
Thanks again for your job.
change:
transposedChord += currentChord + rest;
to:
if(!(notesFlat.indexOf(note)===-1 && notesSharp.indexOf(note)===-1)) transposedChord += currentChord + rest; else transposedChord += note + rest;
In Japanese the Chinese characters used in writing often need to have the phonetic reading written above them if the character is not a common one, or to help children or foreigners. This happens regularly for words used in the Bible and in Christian songs. However among the free song presentation software programs there are no really competent programs that do that. So we have to use powerpoint and put the phonetic reading in little text boxes above the characters (ppt slide example attached, first word has phonetic reading above it). Very tedious, and inflexible. I think the showing chords function could be used for showing phonetic readings too ("ruby text" or "furigana"). Perhaps you could test it for doing that too and then document it as "adding phonetic readings" in the manual? It would be a great service to the Japanese church (I notice that a Japanese translation of the interface is already completed).
I've installed the OpenLP chords 2.14 plugin on Version 2.05 of OpenLP.
Used this line in a song to display chords :-
p, li { white-space: pre-wrap; }
{cl}I’m {c}C(A){/c} gonna be me, I’m gonna be me, I’m gonna be me,{/cl}
The resulting display at http://localhost:4316/files/slide.html shows the chords on the same line as the lyrics, not on the line above.
Screenshot below - Any assistance would be most appreciated. :-)
I don't use japanese or chinese characters, then I can not test it
slide.html
print.html