Thanks for the feedback. For many countries, the name is likely to be in double-width characters, so as you said unicodedata.normalize wouldn't do much to help in this case. Adding dependencies is a non-started at this point. I may just go with my initial idea, and revisit this in the future.
On Wednesday, March 29, 2017 at 6:59:34 PM UTC+9, Daniel Gillet wrote: > > Hello, > > I'm no Linux user, so bear with me. :) > > For the limitation regarding WM_CLASS accepting ascii only, maybe you > could first try to use unicodedata.normalize > <https://docs.python.org/2/library/unicodedata.html#unicodedata.normalize> to > get a decent name in ascii. Of course this wouldn't work with funny quotes > or symbols. But for accents and the like, it should give you back an ascii > representation. > > Otherwise there is a module for doing that. But I wouldn't add a > dependency just for this feature. > > Dan > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
