foobnix / LibreraReader

Book Reader for Android
http://librera.mobi
Other
2.72k stars 297 forks source link

The Librera Reader cannot open plain text documents saved with the .doc extension #1193

Closed Korb closed 7 months ago

Korb commented 8 months ago

In the 80s and 90s, many literary publications were distributed as plain text with width formatting and a .doc file extension. A variety of encodings were used, but definitely not Unicode. I still have large collections of such books from the time of Fidonet, some of which I only got to now, in my old age. However, I discovered that when I try to open such files, the Librera Reader seems to think that it is Microsoft Word Binary File Format and displays a blank document. Changing the encoding to UTF-8 or UTF-8 with BOM did not change anything. Yes, I can change the extensions of such files to .txt and read them. But to do this I would have to go through tens of thousands of documents, manually determining whether they are “true” .docs or not.

I suggest adding a check for the .doc file format to the Librera Reader, and opening it in any case, both if it is a MS Word 97-2003 document, and if it is plain text in any encoding with a .doc extension.

https://en.wikipedia.org/wiki/Doc_(computing)#Other_file_formats

foobnix commented 7 months ago

fixed, please check in beta.librera.mobi build Please send some .doc samples if you find any problems

Korb commented 7 months ago

The version of Librera Pro-8.9.60-arm64.apk works as it should. Thank you!

OS version: Funtouch OS 13 Global Model: Vivo T1 (4G, V2153) Hardware version: MP_0.1 Build number: PD2201OF_EX_A_13.1.15.6.W20.V000L1 Baseband version: MPSS.HA.1.1.c2-00012-KD_ALL_PACK-1.6347.120 Kernel version: 4.19.157-perf+. 1 Fri Aug 4 19:33:15 CST 2023 Compile time: 4 Aug 2023 13:39:16 Android security update: 1 August 2023 Google Play system update: 1 July 2023