#503 : korean language support

This commit is contained in:
Shinsuke Sugaya 2016-05-12 10:12:30 +09:00
parent d56387a6d7
commit 4a383b6073
8 changed files with 81 additions and 33 deletions

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="plugin" basedir=".">
<property name="elasticsearch.version" value="2.3.2" />
<property name="plugins.dir" value="${basedir}/plugins" />
<property name="target.dir" value="${basedir}/target/plugins" />
@ -84,6 +83,12 @@
<param name="plugin.version" value="${elasticsearch.version}.0" />
<param name="plugin.zip.version" value="${elasticsearch.version}.0" />
</antcall>
<jar destfile="${plugins.dir}/analysis-seunjeon/elasticsearch-analysis-seunjeon-${elasticsearch.version}.jar">
<zipfileset
src="${plugins.dir}/analysis-seunjeon/elasticsearch-analysis-seunjeon-assembly-${elasticsearch.version}.0.jar"
excludes="org/slf4j/**"/>
</jar>
<delete file="${plugins.dir}/analysis-seunjeon/elasticsearch-analysis-seunjeon-assembly-${elasticsearch.version}.0.jar"/>
<!-- kopf -->
<get dest="${target.dir}">
<url url="http://maven.codelibs.org/archive/elasticsearch/plugin/kopf/elasticsearch-kopf-2.0.0.0.zip" />

View file

@ -27,8 +27,6 @@ import org.codelibs.fess.dict.DictionaryFile.PagingList;
import org.codelibs.fess.dict.DictionaryManager;
import org.codelibs.fess.dict.seunjeon.SeunjeonFile;
import org.codelibs.fess.dict.seunjeon.SeunjeonItem;
import org.codelibs.fess.dict.synonym.SynonymFile;
import org.codelibs.fess.dict.synonym.SynonymItem;
import org.dbflute.optional.OptionalEntity;
public class SeunjeonService {

View file

@ -1,3 +1,18 @@
/*
* Copyright 2012-2016 CodeLibs Project and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.codelibs.fess.dict.seunjeon;
import java.util.Date;

View file

@ -1,3 +1,18 @@
/*
* Copyright 2012-2016 CodeLibs Project and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.codelibs.fess.dict.seunjeon;
import java.io.BufferedInputStream;

View file

@ -1,3 +1,18 @@
/*
* Copyright 2012-2016 CodeLibs Project and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.codelibs.fess.dict.seunjeon;
import java.util.Arrays;

View file

@ -92,6 +92,21 @@ public interface FessHtmlPath {
/** The path of the HTML: /admin/dict/kuromoji/admin_dict_kuromoji_upload.jsp */
HtmlNext path_AdminDictKuromoji_AdminDictKuromojiUploadJsp = new HtmlNext("/admin/dict/kuromoji/admin_dict_kuromoji_upload.jsp");
/** The path of the HTML: /admin/dict/seunjeon/admin_dict_seunjeon.jsp */
HtmlNext path_AdminDictSeunjeon_AdminDictSeunjeonJsp = new HtmlNext("/admin/dict/seunjeon/admin_dict_seunjeon.jsp");
/** The path of the HTML: /admin/dict/seunjeon/admin_dict_seunjeon_details.jsp */
HtmlNext path_AdminDictSeunjeon_AdminDictSeunjeonDetailsJsp = new HtmlNext("/admin/dict/seunjeon/admin_dict_seunjeon_details.jsp");
/** The path of the HTML: /admin/dict/seunjeon/admin_dict_seunjeon_download.jsp */
HtmlNext path_AdminDictSeunjeon_AdminDictSeunjeonDownloadJsp = new HtmlNext("/admin/dict/seunjeon/admin_dict_seunjeon_download.jsp");
/** The path of the HTML: /admin/dict/seunjeon/admin_dict_seunjeon_edit.jsp */
HtmlNext path_AdminDictSeunjeon_AdminDictSeunjeonEditJsp = new HtmlNext("/admin/dict/seunjeon/admin_dict_seunjeon_edit.jsp");
/** The path of the HTML: /admin/dict/seunjeon/admin_dict_seunjeon_upload.jsp */
HtmlNext path_AdminDictSeunjeon_AdminDictSeunjeonUploadJsp = new HtmlNext("/admin/dict/seunjeon/admin_dict_seunjeon_upload.jsp");
/** The path of the HTML: /admin/dict/synonym/admin_dict_synonym.jsp */
HtmlNext path_AdminDictSynonym_AdminDictSynonymJsp = new HtmlNext("/admin/dict/synonym/admin_dict_synonym.jsp");
@ -107,21 +122,6 @@ public interface FessHtmlPath {
/** The path of the HTML: /admin/dict/synonym/admin_dict_synonym_upload.jsp */
HtmlNext path_AdminDictSynonym_AdminDictSynonymUploadJsp = new HtmlNext("/admin/dict/synonym/admin_dict_synonym_upload.jsp");
/** The path of the HTML: /admin/dict/seunjeon/admin_dict_seunjeon.jsp */
HtmlNext path_AdminDictSeunjeon_AdminDictSeunjeonJsp = new HtmlNext("/admin/dict/seunjeon/admin_dict_seunjeon.jsp");
/** The path of the HTML: /admin/dict/synonym/admin_dict_seunjeon_details.jsp */
HtmlNext path_AdminDictSeunjeon_AdminDictSeunjeonDetailsJsp = new HtmlNext("/admin/dict/seunjeon/admin_dict_seunjeon_details.jsp");
/** The path of the HTML: /admin/dict/synonym/admin_dict_seunjeon_download.jsp */
HtmlNext path_AdminDictSeunjeon_AdminDictSeunjeonDownloadJsp = new HtmlNext("/admin/dict/seunjeon/admin_dict_seunjeon_download.jsp");
/** The path of the HTML: /admin/dict/synonym/admin_dict_seunjeon_edit.jsp */
HtmlNext path_AdminDictSeunjeon_AdminDictSeunjeonEditJsp = new HtmlNext("/admin/dict/seunjeon/admin_dict_seunjeon_edit.jsp");
/** The path of the HTML: /admin/dict/synonym/admin_dict_seunjeon_upload.jsp */
HtmlNext path_AdminDictSeunjeon_AdminDictSeunjeonUploadJsp = new HtmlNext("/admin/dict/seunjeon/admin_dict_seunjeon_upload.jsp");
/** The path of the HTML: /admin/duplicatehost/admin_duplicatehost.jsp */
HtmlNext path_AdminDuplicatehost_AdminDuplicatehostJsp = new HtmlNext("/admin/duplicatehost/admin_duplicatehost.jsp");

View file

@ -595,15 +595,15 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
/** The key of the configuration. e.g. synonym */
String ONLINE_HELP_NAME_DICT_SYNONYM = "online.help.name.dict.synonym";
/** The key of the configuration. e.g. seunjeon */
String ONLINE_HELP_NAME_DICT_SEUNJEON = "online.help.name.dict.seunjeon";
/** The key of the configuration. e.g. dict */
String ONLINE_HELP_NAME_DICT = "online.help.name.dict";
/** The key of the configuration. e.g. kuromoji */
String ONLINE_HELP_NAME_DICT_KUROMOJI = "online.help.name.dict.kuromoji";
/** The key of the configuration. e.g. seunjeon */
String ONLINE_HELP_NAME_DICT_SEUNJEON = "online.help.name.dict.seunjeon";
/** The key of the configuration. e.g. webconfig */
String ONLINE_HELP_NAME_WEBCONFIG = "online.help.name.webconfig";
@ -2762,13 +2762,6 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
*/
String getOnlineHelpNameDictSynonym();
/**
* Get the value for the key 'online.help.name.dict.seunjeon'. <br>
* The value is, e.g. seunjeon <br>
* @return The value of found property. (NotNull: if not found, exception but basically no way)
*/
String getOnlineHelpNameDictSeunjeon();
/**
* Get the value for the key 'online.help.name.dict'. <br>
* The value is, e.g. dict <br>
@ -2783,6 +2776,13 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
*/
String getOnlineHelpNameDictKuromoji();
/**
* Get the value for the key 'online.help.name.dict.seunjeon'. <br>
* The value is, e.g. seunjeon <br>
* @return The value of found property. (NotNull: if not found, exception but basically no way)
*/
String getOnlineHelpNameDictSeunjeon();
/**
* Get the value for the key 'online.help.name.webconfig'. <br>
* The value is, e.g. webconfig <br>
@ -4576,10 +4576,6 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
return get(FessConfig.ONLINE_HELP_NAME_DICT_SYNONYM);
}
public String getOnlineHelpNameDictSeunjeon() {
return get(FessConfig.ONLINE_HELP_NAME_DICT_SEUNJEON);
}
public String getOnlineHelpNameDict() {
return get(FessConfig.ONLINE_HELP_NAME_DICT);
}
@ -4588,6 +4584,10 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
return get(FessConfig.ONLINE_HELP_NAME_DICT_KUROMOJI);
}
public String getOnlineHelpNameDictSeunjeon() {
return get(FessConfig.ONLINE_HELP_NAME_DICT_SEUNJEON);
}
public String getOnlineHelpNameWebconfig() {
return get(FessConfig.ONLINE_HELP_NAME_WEBCONFIG);
}

View file

@ -9,7 +9,7 @@
<arg>kuromojiDictCreator</arg>
</postConstruct>
<postConstruct name="addCreator">
<arg>seunjeonCreator</arg>
<arg>seunjeonDictCreator</arg>
</postConstruct>
<postConstruct name="addCreator">
<arg>synonymCreator</arg>