[Catalyst] create search engine friendly uri from string

Oliver Charles oliver.g.charles at googlemail.com
Wed Dec 17 03:35:57 GMT 2008


At $work we use Text::Unaccent for this -
http://search.cpan.org/~ldachary/Text-Unaccent-1.08/Unaccent.pm

Unless I've missed your point, but I hadn't seen it mentioned in this
thread so far

On Tue, Dec 16, 2008 at 4:14 PM, Octavian Rasnita <orasnita at gmail.com> wrote:
> From: "Peter Karman" <peter at peknet.com>
>>
>> or Search::Tools::Transliterate
>
> I have tried:
>
> use strict;
> use Search::Tools::Transliterate;
> use utf8;
>
> my $tr = Search::Tools::Transliterate->new;
> $tr->ebit(0);
> print $tr->convert("ăşţâîĂŞŢÂÎ????");
>
> #It prints:
> astâîASTÂÎ????
>
> I want to print ai instead of âî and AI instead of ÂÎ. Am I using $tr->ebit
> correctly?
>
> The latest 4 chars are 4 new UTF-8 chars in romanian language (U+0218,
> U+0219, U+021A, U+021B). Can they be transliterated?
> They are şŞţŢ but with a comma below, and not with a sedila. Can they be
> displayed as sStT?
>
> Thanks.
>
> Octavian
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>


More information about the Catalyst mailing list