JS for find-as-type doesn't work (for me) with 8bits (pure russian) tag. It just do nothing (correction - doesn't show SELECT), but work for us-ascii tags (after first entered letter I get select with all choices, even with letter in the middle of word, while expected behavior /for me/ is to show only started with).
Well, consider this as 2-bugs (maybe bugs, maybe dis-function) report
Event_freetag and "Find-tags-as-you-type"
-
LazyBadger
- Regular
- Posts: 176
- Joined: Mon Aug 25, 2008 12:25 pm
- Location: Russia
- Contact:
Event_freetag and "Find-tags-as-you-type"
Quis custodiet ipsos custodes?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Event_freetag and "Find-tags-as-you-type"
Hi!
Hm, we use the jquery.autocomplete plugin for that, maybe it's not 8bit-safe. With 8bit, which charset do you mean? UTF-8?
Having it match for *word* is IMHO a huge advantage, especially if you use multi-word tags.
Regards,
Garvin
Hm, we use the jquery.autocomplete plugin for that, maybe it's not 8bit-safe. With 8bit, which charset do you mean? UTF-8?
Having it match for *word* is IMHO a huge advantage, especially if you use multi-word tags.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
LazyBadger
- Regular
- Posts: 176
- Joined: Mon Aug 25, 2008 12:25 pm
- Location: Russia
- Contact:
Re: Event_freetag and "Find-tags-as-you-type"
Yes, UTF8. At least I tried only with this charset in Russiangarvinhicking wrote:Hm, we use the jquery.autocomplete plugin for that, maybe it's not 8bit-safe. With 8bit, which charset do you mean? UTF-8?
Well, maybe... I can live with it, but when I write "ass" in tags, I expect to see "assember"|"assembly", not "embassy" or "my ass"Having it match for *word* is IMHO a huge advantage, especially if you use multi-word tags.
Just opinion
Quis custodiet ipsos custodes?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Event_freetag and "Find-tags-as-you-type"
Hi!
When you view the HTML source of the page where you use "find-tags-as-you-type", please search for "var tags", this should show you a JS assignment of all available tags. Are they properly encoded there?
It seems the jquery.autocomplete.min.js is there only minified, and thus hard to debug. I couldn't find a non-minified version right now...
Regards,
Garvin
When you view the HTML source of the page where you use "find-tags-as-you-type", please search for "var tags", this should show you a JS assignment of all available tags. Are they properly encoded there?
It seems the jquery.autocomplete.min.js is there only minified, and thus hard to debug. I couldn't find a non-minified version right now...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
LazyBadger
- Regular
- Posts: 176
- Joined: Mon Aug 25, 2008 12:25 pm
- Location: Russia
- Contact:
Re: Event_freetag and "Find-tags-as-you-type"
AFAIS, UTF8-texts are not encoded at all
Code: Select all
<script type="text/javascript" language="Javascript">
var tags = ['Assembla','сервисы','русский язык','s9y','Serendipity','Twitter','анонсы','блог','обновления','перевод'];
...Quis custodiet ipsos custodes?
-
LazyBadger
- Regular
- Posts: 176
- Joined: Mon Aug 25, 2008 12:25 pm
- Location: Russia
- Contact:
Re: Event_freetag and "Find-tags-as-you-type"
Latest archive with full, minified and packed versions from original author
Mercurial project of jQuery autocomplete on GoogleCode
Jörn Zaefferer’s jQuery plugin, with tweaks, on GitHub
Mercurial project of jQuery autocomplete on GoogleCode
Jörn Zaefferer’s jQuery plugin, with tweaks, on GitHub
Quis custodiet ipsos custodes?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Event_freetag and "Find-tags-as-you-type"
HI!
Maybe you can try to use the most recent autocomplete.js and see if it works?
If you see proper chars in your JS output, then it's properly UTF-8 encoded, and the only reason that it would then not work would be if the library doesn't support UTF-8 (yet/in our version)...?
I'm short on time so I can't test this on my own.
Regards,
Garvin
Maybe you can try to use the most recent autocomplete.js and see if it works?
If you see proper chars in your JS output, then it's properly UTF-8 encoded, and the only reason that it would then not work would be if the library doesn't support UTF-8 (yet/in our version)...?
I'm short on time so I can't test this on my own.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
LazyBadger
- Regular
- Posts: 176
- Joined: Mon Aug 25, 2008 12:25 pm
- Location: Russia
- Contact:
Re: Event_freetag and "Find-tags-as-you-type"
Yes. Done it. None of all these 3 autocompleters works with unencoded UTF8-textsgarvinhicking wrote: Maybe you can try to use the most recent autocomplete.js and see if it works?
?garvinhicking wrote:If you see proper chars in your JS output, then it's properly UTF-8 encoded, and the only reason that it would then not work would be if the library doesn't support UTF-8
AFAIS - they can't be encoded at all. You get tags from $wicktags,there they are (?) in human-readable form already, isn't it?
No problem. As I found, only (for me,now) Jörn's autocomplete successor from jQuery UI works with unencoded UTF8 string without any glitches (just replaced default tags some russian texts), here is short Migration Guidegarvinhicking wrote:I'm short on time so I can't test this on my own.
Quis custodiet ipsos custodes?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Event_freetag and "Find-tags-as-you-type"
Hi!
Would you be able to provide a patch/diff to the plugin so that we could use the new version instead? UTF-8 is really required, so it would be good if the lib supported it...
Regards,
Garvin
Would you be able to provide a patch/diff to the plugin so that we could use the new version instead? UTF-8 is really required, so it would be good if the lib supported it...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/