Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-06-09 23:50:33

marcelo
Member
Registered: 2015-04-28
Posts: 6

Search engine with special characters

Hi Guys,
I have a problem with some special characters like a ã, â..used in the portuguese vocabulary - this problem happens when I search for a keywords - for instance: Iceland in portuguese is Islândia, if I type Islandia the result of my search is "not found...".
I've to type exactly Islândia to find them and It may limits the search engine, due some people are used to type without ~' etc

Do you have any suggestion to "ignore" this kind of special character or may recommend any code that I may include in my pages?
I would like to make this search in the same way of google.com - it doesn't matter if a type with â or a, if I type Islandia it'll appear all the results with Islandia or Islândia.

PS: I'm not a programmer/system analyst, I'm just like/try to work on this and I've a friend that helped in some tech issues.

Best regards,

Marcelo

Offline

#2 2015-07-29 00:48:36

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Search engine with special characters

the only easy thing I can think of off the top of my head is to include the alternative spellings (without the special characters) in your image keywords


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2015-07-29 07:39:08

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Search engine with special characters

Rod's solution is the best approach.  I'll see whether SQLite has a function for matching against the base character, e.g. a, ā and â being considered the same.  If not available then I don't see an easy solution.

Offline

#4 2015-07-29 20:11:09

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Search engine with special characters

Having looked it up, there are strategies to do this with SQLite, but they are complicated and not something we're likely to implement soon.  Rod's suggestions stands as your best option.

Offline

Board footer

Powered by FluxBB