• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I format the comments text?
#9
I use chordpro files a lot (I use pdfs  Just as much, so I appreciate being able to have so many features for both in one program!)

Many of these I personally would take advantage of, if implemented. I wouldn't use the charts myself, as I play the piano, but I'm glad you're adding them for the many guitarists out there. 

Since Mike added it, I have started using pango markup and it's quite helpful. I have found that the quotes are not necessary. 

I like to use blue text for instructions I want add to a comment line, like change key, repeat, etc. Like:

{c:Chorus - <span color=red>Key Change</span>}

This will result in just the words "Key Change" being red. It will already be italicized because it's inside the comment tag. Nothing else can be on that same line outside of the {c: } as it will be ignored. 

My favorite discovery is the word "oblique." I use it to add an instruction to the lyrics line. Oblique will give the same angle of slant as the italicized comment lines. <i> and </i> will work, but produces a more slanty slant, so I don't like it. <b> and </b> work as expected.

So for a made up example:
[C]He's [G]al - [C]right.    <span style=oblique color=blue>Last time, repeat</span>

Will add blue italicized text at the end of that lyric line, and the slant matches the same slant the comment {c: } lines natuarlly have, instead of be too slanted. (in my opinion)

Or
[C]He's [G]al - [C]right.    (<b><span style=oblique color=blue>Last time, repeat</span>(/b>

If you want the same thing, but the text will also be bold. 

If you want to affect a chord, it's a little awkward. The pango has to be put inside the brackets for each one. 

[<b><span style=oblique color=red background=yellow>C</span></b>]This is a Chord

This will produce a red italicized C with a yellow background. Not necessary, since we have settings for the chords already. But if you want to affect just one chord, or color an instruction that you want on the chord line by using the * this works well.

  [C]This is a Chord    [<span style=oblique color=blue>*Play 3x</span>]

This produces a blue italicized instruction that sits on the chord line instead of the lyric line. Note that I only told it oblique and blue, but it will also automatically be bold if you've chosen for chords to be bold in the settings. 

The word foreground also works in place of color and in addition to the basic color names, you can put in any hex number, #00DBFF for turquoise, for instance. (Be sure to include the #)

Hope this helps.
Reply


Messages In This Thread
Can I format the comments text? - by DamoS - 05-06-2024, 03:49 PM
RE: Can I format the comments text? - by DamoS - 05-07-2024, 06:18 AM
RE: Can I format the comments text? - by itsme - 05-07-2024, 03:16 PM
RE: Can I format the comments text? - by itsme - 05-07-2024, 09:58 PM
RE: Can I format the comments text? - by RoSong - 05-08-2024, 01:11 AM
RE: Can I format the comments text? - by spflmf - 05-08-2024, 06:33 PM



Users browsing this thread:
10 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.