2022-02-22, 04:38
Some outstanding Unicode issues are presenting serious problems for my new addon as well as fixing youtube-dl/ytdlp.
I have been looking a bit at some of the Unicode problems (such as the "Turkish I" problem, issue 19883). I am experimenting creating an api utilizing the icu4c library. I have built an api and icu4c outside of Kodi, but now I'm trying to figure out how to add icu4c libs to the Kodi build so that I can further experiment. As a minimum, I need to add the lib path to my hand built icu4c libs to the build. I'm sure that I can figure it out after a few days effort, but some hints would be appreciated.
I have done some experiments using the icu4c library to do case-folding, etc. I have created a simple xbmc api (xbmc.utf8_fold) so that I can use it from addons. In particular, I want to see how I can use it (or something like it) to do caseless comparison on file names, to comply with Kodi rules. I next want to use it to create case-folded (more or less lower-case) keys for settings, etc. I don't know if icu4c is the way to go or not. It is robust and has capabilities that I think Kodi needs but are not yet in c++ nor Python. I think it is likely to be better to go with an existing solution rather than reinvent the proverbial wheel.
I have been looking a bit at some of the Unicode problems (such as the "Turkish I" problem, issue 19883). I am experimenting creating an api utilizing the icu4c library. I have built an api and icu4c outside of Kodi, but now I'm trying to figure out how to add icu4c libs to the Kodi build so that I can further experiment. As a minimum, I need to add the lib path to my hand built icu4c libs to the build. I'm sure that I can figure it out after a few days effort, but some hints would be appreciated.
I have done some experiments using the icu4c library to do case-folding, etc. I have created a simple xbmc api (xbmc.utf8_fold) so that I can use it from addons. In particular, I want to see how I can use it (or something like it) to do caseless comparison on file names, to comply with Kodi rules. I next want to use it to create case-folded (more or less lower-case) keys for settings, etc. I don't know if icu4c is the way to go or not. It is robust and has capabilities that I think Kodi needs but are not yet in c++ nor Python. I think it is likely to be better to go with an existing solution rather than reinvent the proverbial wheel.