You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "YourSoft (JIRA)" <ji...@apache.org> on 2008/10/08 09:57:44 UTC
[jira] Created: (LUCENE-1413) Creating PlainTextDictionary with
UTF8 files
Creating PlainTextDictionary with UTF8 files
--------------------------------------------
Key: LUCENE-1413
URL: https://issues.apache.org/jira/browse/LUCENE-1413
Project: Lucene - Java
Issue Type: New Feature
Components: contrib/spellchecker
Affects Versions: 2.3.2
Environment: All platform / operating systems
Reporter: YourSoft
Fix For: 2.3.3
Generate indexes from text files is good, but can't read utf8 files.
It can easily made by adding the following code to PlainTextDictionary.java:
public PlainTextDictionary(InputStream dictFile, String fileEncoding) throws UnsupportedEncodingException {
in = new BufferedReader(new InputStreamReader(dictFile, fileEncoding));
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1413) Creating PlainTextDictionary with
UTF8 files
Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Otis Gospodnetic updated LUCENE-1413:
-------------------------------------
Lucene Fields: [New, Patch Available] (was: [Patch Available, New])
Fix Version/s: (was: 2.3.3)
2.9
Issue Type: Improvement (was: New Feature)
> Creating PlainTextDictionary with UTF8 files
> --------------------------------------------
>
> Key: LUCENE-1413
> URL: https://issues.apache.org/jira/browse/LUCENE-1413
> Project: Lucene - Java
> Issue Type: Improvement
> Components: contrib/spellchecker
> Affects Versions: 2.3.2
> Environment: All platform / operating systems
> Reporter: YourSoft
> Fix For: 2.9
>
>
> Generate indexes from text files is good, but can't read utf8 files.
> It can easily made by adding the following code to PlainTextDictionary.java:
> public PlainTextDictionary(InputStream dictFile, String fileEncoding) throws UnsupportedEncodingException {
> in = new BufferedReader(new InputStreamReader(dictFile, fileEncoding));
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Resolved: (LUCENE-1413) Creating PlainTextDictionary with
UTF8 files
Posted by "Michael Busch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Busch resolved LUCENE-1413.
-----------------------------------
Resolution: Invalid
I'm closing this, because PlainTextDictionary has also the following public constructor:
/**
* Creates a dictionary based on a reader.
*/
public PlainTextDictionary(Reader reader) {
in = new BufferedReader(reader);
}
So you can just pass in the InputStreamReader(dictFile, fileEncoding) using this constructor.
> Creating PlainTextDictionary with UTF8 files
> --------------------------------------------
>
> Key: LUCENE-1413
> URL: https://issues.apache.org/jira/browse/LUCENE-1413
> Project: Lucene - Java
> Issue Type: Improvement
> Components: contrib/spellchecker
> Affects Versions: 2.3.2
> Environment: All platform / operating systems
> Reporter: YourSoft
> Fix For: 2.9
>
>
> Generate indexes from text files is good, but can't read utf8 files.
> It can easily made by adding the following code to PlainTextDictionary.java:
> public PlainTextDictionary(InputStream dictFile, String fileEncoding) throws UnsupportedEncodingException {
> in = new BufferedReader(new InputStreamReader(dictFile, fileEncoding));
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org