• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Embedded URL handling?
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?
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.

ChordPro 6 has an extension to Pango markup for this. E.g.

{comment <span href="https://www.youtube.com/watch?v=BbRgkzw4cIs">View video</span>}

This should produce a comment that has a clickable link.
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).
I'll have to make sure to support that when I add the pango markup syntax support.

I tried both 

<a href='https://www.youtube.com/watch?v=RmP0PvPfa7w'>Link: Revivalists To Love Somebody</a>


{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 ...
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.


Users browsing this thread:
1 Guest(s)

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