Acclorite / book-story

Material3 eBook reader - Book's Story. Built with Jetpack Compose. Free & Open Source & Ad Free. 7 supported file formats (.txt, .pdf, .epub, .fb2, .zip, .html, .htm). Lots of customization.
GNU General Public License v3.0
384 stars 19 forks source link

Issues in identifying and showing books #31

Closed biscuitwithtea closed 2 months ago

biscuitwithtea commented 2 months ago

IMG_20240810_163350

IMG_20240810_163517

IMG_20240810_163633

Texts in Arabic shows words incorrectly : the order of letters in each word is replaced

Acclorite commented 2 months ago

Thanks for report.

Let's start with the order of words. I cannot fix that, as you use LTR layout (English language), which means you see text from Left-To-Right.

Solutions:

  1. Force RTL layout for your device, you can do this in Developer Settings on your device (see: How to force RTL layout)
  2. Add RTL locale to the app (Arabic as an example), so all text is displayed Right-To-Left. Right now I am planning to add localization platform, so users can translate the app, I would be glad if you could help translating the app later!

Now about "This file is empty or corrupted".

This happens, because parser could not get any text from the book (some books are just buggy and text cannot be extracted). I have no fix to that, I will try to look into parser, maybe some issues with filtering out or identifying Arabic.. For now, you can try to convert your ".pdf" file in ".txt" as it works much better.

biscuitwithtea commented 2 months ago

I'll gladly help translating the app into Arabic

Forcing RTL layout didn't work , and converting to txt made it this way :

IMG_20240810_192824 IMG_20240810_192835

Acclorite commented 2 months ago

Then probably invalid file. If even after converting - with another software, then it's not an issue on my side. TXT files are read as is, which excludes formation errors.

Acclorite commented 2 months ago

Please provide the file with error, so I can look for myself.

biscuitwithtea commented 2 months ago

طوق_الحمامة_في_الأُلفَةِ_والأُلَّاف.txt

Acclorite commented 2 months ago

And the one you couldn't add "pdf"

biscuitwithtea commented 2 months ago

اميوليت_متجر_الساحرةمانديليب،_ابراهام_ميريت.pdf

There are many , but here is one of them

Acclorite commented 2 months ago

TXT file that you provided is invalid. PDF file cannot be extracted correctly. Converting PDF to TXT is very hard itself, but in Arabic, it is almost impossible.

I was able to successfully add and open Arabic books in EPUB, TXT. Please, if you can, use EPUB(though maybe you will need to wait for the new update, as I greatly increased compatibility, see: #42). It is much better for text extracting.

PDF itself is not created for extracting, I spent weeks trying to do extract text correctly, and it still has issues I can't fix. Most if not all Readers load PDF directly, while I extract text from it.

Also, the app will soon be available for translation on Weblate, I would be grateful if you could translate it. Sorry for inconvenience, the most I can suggest to you is use EPUB.

biscuitwithtea commented 2 months ago

It's okay I'll gladly help translating the app

biscuitwithtea commented 2 months ago

epub worked well

Acclorite commented 2 months ago

I'll gladly help translating the app

Hey, the app is now pending approval for Libre plan on Weblate. If you want, you can request new language and start translation. Thank you.