2009-03-23 19:10:28 +00:00
|
|
|
<?php
|
2012-06-06 20:42:13 +00:00
|
|
|
/**
|
|
|
|
|
* Gan Chinese specific code.
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
*
|
|
|
|
|
* @file
|
|
|
|
|
*/
|
2009-03-23 19:10:28 +00:00
|
|
|
|
|
|
|
|
/**
|
2017-12-01 10:02:26 +00:00
|
|
|
* Gan Chinese
|
|
|
|
|
*
|
2009-03-23 19:10:28 +00:00
|
|
|
* class that handles both Traditional and Simplified Chinese
|
|
|
|
|
* right now it only distinguish gan_hans, gan_hant.
|
|
|
|
|
*
|
|
|
|
|
* @ingroup Language
|
|
|
|
|
*/
|
|
|
|
|
class LanguageGan extends LanguageZh {
|
2011-05-29 16:32:05 +00:00
|
|
|
/**
|
|
|
|
|
* word segmentation
|
|
|
|
|
*
|
2014-04-17 13:31:28 +00:00
|
|
|
* @param string $string
|
|
|
|
|
* @param string $autoVariant
|
|
|
|
|
* @return string
|
2011-05-29 16:32:05 +00:00
|
|
|
*/
|
2019-10-11 18:44:16 +00:00
|
|
|
public function normalizeForSearch( $string, $autoVariant = 'gan-hans' ) {
|
2010-02-02 15:09:01 +00:00
|
|
|
// LanguageZh::normalizeForSearch
|
|
|
|
|
return parent::normalizeForSearch( $string, $autoVariant );
|
2009-03-23 19:10:28 +00:00
|
|
|
}
|
2010-01-19 02:36:33 +00:00
|
|
|
}
|