Go Back > PhpDig Forums > Mod Submissions

Thread Tools
Old 02-04-2005, 05:12 AM   #1
Orange Mole
Edomondo's Avatar
Join Date: Jan 2004
Location: In outer space
Posts: 37
Thumbs up Small fix for Japanese indexing

Hi there.

UTF-8 compatible PhpDig is a great tool! Thank you Charter and all contributors!

Because of half-width (Hankaku) and full-width (Zenkaku) characters in Japanese, the following search won't return the same results depending on the characters used in the original page :
"999" and "999" (Half-width <> Full-Width)
"Test" and "Test" (Half-width <> Full-Width)
"アイウエオ" and "アイウエオ" (Full-width <> Half-Width)
(Sorry for those who can't read asian characters)

May I suggest to add in robot_functions.php on line 188 the following line?

PHP Code:
$text mb_convert_kana($textKVa"UTF-8"); 
This way, all alphanumeric full-width characters will be changed in their half-width counterparts and all half-width katakana will turn into full-width katakana.

I recommend to add this line in the future releases of PHPdig.
Edomondo is offline   Reply With Quote
Old 02-05-2005, 01:40 AM   #2
Head Mole
Charter's Avatar
Join Date: May 2003
Posts: 2,539
Thanks, I posted instructions for alternative changes that you may find useful in this post. In order to be able to enter either half-width or full-width characters for searches, you should also make the changes to the seach_functions.php file, instructions for which are given in the aforementioned post.
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Probleme with japanese search Paka76 How-to Forum 0 03-24-2006 05:26 AM
Japanese characters on an English page Shdwdrgn Troubleshooting 1 03-15-2005 09:28 AM
Can phpdig index Japanese PDF file??? mynamesucks External Binaries 3 02-22-2005 10:59 PM
Looks Like A Small Bug In 1.8.1 vinyl-junkie Troubleshooting 6 07-07-2004 09:04 PM
Japanese encoding : charset=shift_jis Edomondo How-to Forum 27 01-27-2004 07:04 AM

All times are GMT -8. The time now is 02:54 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.