-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Allow Unicode symbols such as flags #163
Comments
I would imagine it would require both. Do you mean flags as in country flags? |
Regional identifiers are defined in ISO 3166-1 as follows:
In unicode this is implemented as code pairs which produce an image of the 2 letter alpha (not image of flag) https://apps.timwhitlock.info/emoji/tables/iso3166 To display the actual flag, the platforms unicode implementation would have to contain flag images instead of 2 letter alpha images. Supporting unicode will get you an image of 2 letter country codes. If you want actual flags, you might have to replace the platforms unicode library. The addon cannot supply flag images, only support unicode. But the 2 letter alpha is sufficient to distinguish national origin. Flag images reference https://en.wikipedia.org/wiki/ISO_3166-1 |
Kodi supports Unicode alright but as to how I read or pass that to Kodi I have no idea I’m afraid. |
ok I have run some tests on Windows & Linux. This is what I found:
∆ (2206)
֎ (058E) I therefore conclude that the missing support for emoji & country code is a Kodi bug, not a problem with IPTVsimple. I think the Arial font in Kodi may need to be updated because (0586) and (058E) both appear in the Character Map for Arial on the Windows platform but only (0586) will display in Kodi. |
Nice. Can you give an example M3U entry that works with Unicode? Do any of the flags work? |
https://iptv-org.github.io/iptv/index.m3u
No. In order to see any kind of regional identifier which is supported by unicode, Kodi needs to support that first. I am just pointing out that IPTVsimple does not need to be modified to support unicode. I know there are some Windows apps that dont support unicode even though the OS supports it. And some terminal applications on Linux (such as "vi") dont support unicode. So I modified other Kodi addons and found that those example characters which did not work will not be rendered on screen in any Kodi addon. I think there is nothing you can do to fix the issue here: We already have unicode support in IPTVsimple, but Kodi only has a partial implementation. The proof that we have unicode support is when you see oriental alphabets in channel names rendered on screen. https://en.wikipedia.org/wiki/Script_(Unicode) This is working in IPTVsimple on LibreELEC with all of the channels I tested, and it works in the YouTube addon (if your skin font is Arial based.) The bottom line is, Kodi lacks support for the subset of unicode which includes emoji & regional identifiers. If those characters appear in some addon source text that will be rendered on screen, they will all be rendered as a |
This is a really good explanation. Thanks. |
Yup, we have this on our wishlist as well. Would be nice to have emojis/icons for things like geo-blocked content or list-items that are being "followed" or tagged as "watch later". |
I don't know if this has to happen in Kodi or the addon but it would be nice if I could use flags in my m3u playlist.
The text was updated successfully, but these errors were encountered: