Malcolm Tredinnick wrote: > > At the risk of offending everybody who uses a language requiring > accents, but this one of those "it's harder than it looks" problems in > Unicode. You need to have a mapping from every accented character (or a > reasonable set of them) to their unadorned equivalents. Many characters > are a single unicode character, not a unicode composition of two > characters, so it's not just a matter of "stripping the accent". So > either we're going to end up carrying around a fairly large mapping > table in the Javascript or we need a better solution.
Most probably I am missing something essential, but it does look simple to me. One possible solution is to provide a language-dependent function, which produces a slug. For one language (or a group of languages) it can be some simple substitution, for another language it can be a translation of native characters to latin characters (to my best knowledge many non-latin-based languages have some form of latin representation). Such set of functions should be written in Python, be a part of Django Admin i18n/l10n. The way to call them is to request a slug asynchronously using dojo.io.bind() in the manner similar to what I did in http://lazutkin.com/blog/2005/dec/24/live-filtering/. In fact the code will be much simpler. I am pretty sure that we will find knowledgeable volunteers to write a conversion function for their language. Now you can tell me what I missed. ;-) Thanks, Eugene --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---
