1
0
Fork 0
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:
Nikolay Pultsin 2012-03-23 03:19:16 +00:00
parent eddccf34ec
commit 7aa4f39bc7
4 changed files with 27 additions and 22 deletions

View file

@ -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);
}
}