4

I have searched without success a JQuery plugin able to filter an HTML list (list of li, div or others) based on its content. I found numerous ones, but none of them seems to support what's called collation in MySQL (and certainly in other places).

For those not familiar with this concept, collation is the way some characters in foreign languages (other than English, I mean) are considered equivalent. For instance, in French, filtering for ‘Éléphant’, ‘éléphant’ or ‘elephant’ should give you identical results. It's a kind of lax filtering where derived accented characters like ‘é’, ‘è’, ‘ê’ and ‘ë’ are considered equivalent to the unaccented letter ‘e’.

This question is quite linked to this other one: How does internationalization work in JavaScript?.

My question is double:

  • Does somebody have a good pointer on this unfindable plugin (tired of playing Indy in the JQuery plugins jungle to find the graal and I haven't brought my whip)?
  • Failing that, I will be glad with some good tips or resources on which is the easiest way to build this sort of mechanism.
Community
  • 1
  • 1
Doc Davluz
  • 4,154
  • 5
  • 30
  • 32

2 Answers2

2

You already looked at https://github.com/Teradata/lasca ?

Seems to fit or at least to be a starting point for implementing a jquery plugin.

jamuhl
  • 4,352
  • 2
  • 25
  • 31
  • Thanks! Indeed, great start. Haven't found it before. Have you googled it or did you know it before? No completely what I need: perfect String match with compare, no regexp or partial match (seems difficult to achieve). Commited 7 months ago without activity since, but still a good start. Didn't know [UCA Collation Tables](http://www.unicode.org/charts/uca/) before. – Doc Davluz Dec 20 '12 at 07:59
  • oh and if you will publish a own plugin - let us know - might be handy some day – jamuhl Dec 20 '12 at 15:18
  • Ok, you've been smarter than me for in your Googling. Don't really know if I will have the time to work on this, not a top priority demand of my employer, but will tell you if something concrete is made. – Doc Davluz Dec 21 '12 at 10:47
  • I have used the given piece of code and it works like a charm. Thanks. – Doc Davluz Jan 28 '14 at 13:00
0

This is not the searched JQuery plugin, but it seems that the new Internationalization API specification embraces the expressed needs with for instance collation handling.

Doc Davluz
  • 4,154
  • 5
  • 30
  • 32