View Single Post
Old 08-08-2015, 03:09 AM   #12
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
PS the guitarappp approach uses a song format called chordpro,

https://linkesoft.com/songbook/chordproformat.html.

the coding challenge is to lift out what is in square brackets and position it on a preceding line ( not a trivial exercise even if justification is turned off .

you will see that in the example copy / pasted below , MR renders the example wrongly - chord names are not aligned correctly, but on the linkesoft URL given, the same example works . maybe their source code is worth examining also ?

In the chordpro format chords are denoted in square brackets [] in the text, e.g.

[Em]Alas, my [G]love, you [D]do me [Bm]wrong,

SongBook will render this as

Em G D Bm
Alas, my love, you do me wrong,

i checked their code for the above & on this example it is simple padding used to space out the chord names
<tt>Em&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;G& nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D &nbsp;&nbsp;&nbsp;&nbsp;Bm<br> Alas, my love, you do me wrong,</tt><p>

so it is still possible that converting a word doc, but using only spaces when writing that, no tabs, and using monospace font, you may get a good conversion

Last edited by cybmole; 08-08-2015 at 03:14 AM.
cybmole is offline   Reply With Quote