Posts: 64
Threads: 13
Joined: Sep 2022
Reputation:
5
As a practice aid, I like to include a URL that links to the song (typically YouTube, but not always). What do you reckon would be "best practice" for including a URL in a ChordPro file? Seems to me that a "meta" directive might be useful. Or would it be easier to just add URL handling to MobileSheets?
Posts: 13,538
Threads: 302
Joined: Apr 2012
Reputation:
241
If you want it to be clickable, I would recommend dropping a smart button on top of the page which you can link to the URL. Tap the center of the screen to bring up the song overlay, tap the smart button icon at the bottom right that looks like a finger tapping a rectangle, tap the + icon to add a new one, then configure it as a URL.
Mike
Posts: 1,234
Threads: 194
Joined: May 2015
Reputation:
13
ChordPro 6 has an extension to Pango markup for this. E.g.
Code:
{comment <span href="https://www.youtube.com/watch?v=BbRgkzw4cIs">View video</span>}
This should produce a comment that has a clickable link.
Johan
johanvromans.nl — hetgeluidvanseptember.nl — mojore.nl -- howsagoin.nl
Samsung Galaxy Note S7FE (T733) 12.4", Android 13.0, AirTurn Duo & Digit (Gigs).
Samsung Galaxy Note S4 (T830) 10.5", Android 10.0 (maintenance and backup).
Samsung A3 (A320FL), Android 8.0.0 (emergency).
Posts: 13,538
Threads: 302
Joined: Apr 2012
Reputation:
241
I'll have to make sure to support that when I add the pango markup syntax support.
Mike
Posts: 24
Threads: 8
Joined: Sep 2023
Reputation:
0
I tried both
<a href='https://www.youtube.com/watch?v=RmP0PvPfa7w'>Link: Revivalists To Love Somebody</a>
and
{comment <span href="https://www.youtube.com/watch?v=RmP0PvPfa7w">View video</span>}
To my surprise, both of these created a clickable link in MobileSheets. BUT ALL THE CAPITAL LETTERS in the "v" variable BECOME LOWER CASE when the link executes, so they don't link to the actual video. I don't think this is caused by YouTube, because I changed the domain to my own domain and the link variable also displayed as all lower case.
So close ...
Posts: 13,538
Threads: 302
Joined: Apr 2012
Reputation:
241
Looks like an easy fix in MobileSheets. I just missed this for the 3.8.25 release, so it will be included with either 3.8.26 or 3.9.0.
Mike