05-06-2023, 06:06 PM
I've been busy working on all of the changes for the new chord pro features, and I've finished the implementation for the pango markup syntax support. It's now possible to provide coloring, styling, etc for individual sections of a line. For example, you can enter statements such as:
[A]<span color="red">Hello [Bm]World!</span>
[A]<span color="red">Hello [*<span color="green">Coda</span>]World!</span>
<b>This is bold</b> <i>while this is italic</i>
The first line would color "Hello World!" red, but the chord placed above it would use the chord colors specified in MobileSheets. The second example shows how you can use chord pro annotations (which are positioned like chords) with the pango markup syntax. The third statements hows the shortcuts for making a section bold or italic. The main chord pro website on the pango markup covers all of the supported options well: https://chordpro.org/chordpro/pango_markup/. You can also look at the main documentation: https://docs.gtk.org/Pango/pango_markup....ngo-markup. I decided to support a few things in MobileSheets like the accumulating baseline_shift that may work differently in the reference chord pro implementation. I also always use convenience mode so values are assumed to be in points for things like font sizes.
Due to the large amount of changes that had to be made for this (which significantly changed all of the measurement logic), I'm looking for some volunteers to help test out the changes before the next update. I'm also working on other changes for chord grids and chord diagrams that are not included in this test build. If anyone would like to help test this on an Android device that purchased through Google Play, please either message me on the forum or send an email to mike@zubersoft.com. I greatly appreciate the help.
Thanks,
Mike
[A]<span color="red">Hello [Bm]World!</span>
[A]<span color="red">Hello [*<span color="green">Coda</span>]World!</span>
<b>This is bold</b> <i>while this is italic</i>
The first line would color "Hello World!" red, but the chord placed above it would use the chord colors specified in MobileSheets. The second example shows how you can use chord pro annotations (which are positioned like chords) with the pango markup syntax. The third statements hows the shortcuts for making a section bold or italic. The main chord pro website on the pango markup covers all of the supported options well: https://chordpro.org/chordpro/pango_markup/. You can also look at the main documentation: https://docs.gtk.org/Pango/pango_markup....ngo-markup. I decided to support a few things in MobileSheets like the accumulating baseline_shift that may work differently in the reference chord pro implementation. I also always use convenience mode so values are assumed to be in points for things like font sizes.
Due to the large amount of changes that had to be made for this (which significantly changed all of the measurement logic), I'm looking for some volunteers to help test out the changes before the next update. I'm also working on other changes for chord grids and chord diagrams that are not included in this test build. If anyone would like to help test this on an Android device that purchased through Google Play, please either message me on the forum or send an email to mike@zubersoft.com. I greatly appreciate the help.
Thanks,
Mike