• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ChordPro versus Text
#1
Hi,

When a ChordPro file that has extension ".txt" is imported, [Chords] are still recognized, but {directives} are not. Is this intentional?
Johan
http://www.johanvromans.nlhttp://www.howsagoin.nlhttp://www.hetgeluidvanseptember.nl
Samsung Galaxy Note 2 (N8010) 10.1", Android 7.1.2 (LineageOS), AirTurn Duo.
Asus Zenpad (Z300M) 10.1", Android 7.0 (backup tablet).
Samsung A3 (SM-A320FG), Android 7.0 (emergency).
Reply
#2
Yes, I don't treat text files as chord pro files. I process the two files differently as I have to do more processing to figure out what things are valid chords in a text file and what lines are chord lines versus lyrics. If there was some way to uniquely identify that a text file is actually a chord pro file, I could treat it as such, but the problem is that various parts of my application care about the extension that is used, so unless I renamed the file during import, it could cause issues in my code.
Reply
#3
I assume you mean this text format:
Code:
      D          G    D
Swing low, sweet chariot,

In the case I have at hand the files are real ChordPro files, there's just some tool (GuitarTapp?) that shares them with extension .txt.

I think you may safely assume a .txt file to contain ChordPro content when it starts with {title...} or {new_song} and then rename it during import.
Johan
http://www.johanvromans.nlhttp://www.howsagoin.nlhttp://www.hetgeluidvanseptember.nl
Samsung Galaxy Note 2 (N8010) 10.1", Android 7.1.2 (LineageOS), AirTurn Duo.
Asus Zenpad (Z300M) 10.1", Android 7.0 (backup tablet).
Samsung A3 (SM-A320FG), Android 7.0 (emergency).
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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