mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
language detection for RTF's
This commit is contained in:
parent
eddccf34ec
commit
7aa4f39bc7
4 changed files with 27 additions and 22 deletions
|
@ -43,12 +43,10 @@ bool RtfPlugin::readMetaInfo(Book &book) const {
|
|||
|
||||
if (book.encoding().empty()) {
|
||||
book.setEncoding("utf-8");
|
||||
}
|
||||
|
||||
if (book.language().empty()) {
|
||||
} else if (book.language().empty()) {
|
||||
shared_ptr<ZLInputStream> stream = new RtfReaderStream(book.file(), 50000);
|
||||
if (!stream.isNull()) {
|
||||
//detectLanguage(book, *stream);
|
||||
detectLanguage(book, *stream);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue