I imported the markers from this cvs file:
1,\
2,序曲
3,第1乐章 Allegro energico\,ma non troppo. Heftig\, aber markig
4,第2乐章 Scherzo.Wuchtig
5,第3乐章 Andante moderato
6,第4乐章 Finale\, Andante moderato–Allegro energico
But it is converted into something like this:
Top: Original csv, in case the forum doesn't support the encoding.
Bottom: Chapter Markers seen in iTunes
Wrong Chapter Markers on svn6207
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.
*******************************
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.
*******************************
Re: Wrong Chapter Markers on svn6207
I am happy to see it tempered in svn6210. But then, something still doesn't come right.
1. When the cvs is imported, all the stuff after the commas are cut off. Manually putting the stuff back works fine.
2. The chapter markers display properly in The KMPlayer (although the player always mistake chapter markers as subtitles), but not in iTunes.
1. When the cvs is imported, all the stuff after the commas are cut off. Manually putting the stuff back works fine.
2. The chapter markers display properly in The KMPlayer (although the player always mistake chapter markers as subtitles), but not in iTunes.
Re: Wrong Chapter Markers on svn6207
What does the C in CSV stand for? Make sure you're escaping any embedded commas with a backslash.Iosue wrote:I am happy to see it tempered in svn6210. But then, something still doesn't come right.
1. When the cvs is imported, all the stuff after the commas are cut off. Manually putting the stuff back works fine.
Re: Wrong Chapter Markers on svn6207
All the commas are escaped. The file was exported by Handbrake and all commas are already there. When Handbrake imports this file back, the lines becomes like this:TedJ wrote:What does the C in CSV stand for? Make sure you're escaping any embedded commas with a backslash.Iosue wrote:I am happy to see it tempered in svn6210. But then, something still doesn't come right.
1. When the cvs is imported, all the stuff after the commas are cut off. Manually putting the stuff back works fine.
1,\
2,序曲
3,第1乐章 Allegro energico\ <------ cut off there
4,第2乐章 Scherzo.Wuchtig
5,第3乐章 Andante moderato
6,第4乐章 Finale\ <------ cut off there
And the characters still look like the iTunes screenshot, except chapters 1, 2 and 4 now display a correct entry, just incorrectly encoded.
Re: Wrong Chapter Markers on svn6207
Actually, any value that contains a comma should be wrapped in quotes, and any quotes within a value escaped by doubling it. If the library that is exporting the CSV changed a comma to "\,", then it's not a particularly compliant library...TedJ wrote:What does the C in CSV stand for? Make sure you're escaping any embedded commas with a backslash.
This would be a more standard way of representing the list in CSV:
Code: Select all
2,序曲
3,"第1乐章 Allegro energico,ma non troppo. Heftig, aber markig"
4,第2乐章 Scherzo.Wuchtig
5,第3乐章 Andante moderato
6,"第4乐章 Finale, Andante moderato–Allegro energico"
Re: Wrong Chapter Markers on svn6207
It is also possible to have a " in these markers. Do you suggest using "" or \"?
Besides, I think using Regular Expression to capture it would also be fine, like
[0-999], (.*?)\r\n
Besides, there are also problems on parsing these non-Latin words there. It worked fine with 0.9.9.1. Maybe we need to do it with Unicode?
Besides, I think using Regular Expression to capture it would also be fine, like
[0-999], (.*?)\r\n
Besides, there are also problems on parsing these non-Latin words there. It worked fine with 0.9.9.1. Maybe we need to do it with Unicode?
Re: Wrong Chapter Markers on svn6207
The most usual way of encoding a " character is to double it up, i.e.:
I have not seen \" used in any of the systems I've encountered, but, I have not seen everything out there.
Code: Select all
2,序曲
3,"第1乐章 Allegro energico,ma ""non troppo"". Heftig, aber markig"
4,第2乐章 Scherzo.Wuchtig
5,第3乐章 Andante moderato
6,"第4乐章 Finale, Andante moderato–Allegro energico"
Re: Wrong Chapter Markers on svn6207
I haven't either. But Regular Expression seems to cover it all.