geometer / FBReader

Official FBReader C++ project repository
http://www.fbreader.org/
539 stars 170 forks source link

Every paragraph is center-aligned in ePUB files from some sources #150

Open snowwlex opened 12 years ago

snowwlex commented 12 years ago

from https://bugzilla.redhat.com/show_bug.cgi?id=691322 (and http://old.fbreader.org/mantis/view.php?id=464)

When I try to display an .epub file with FBReader, it has every paragraph centered. Other types of documents are OK (I have tried PDB, for example).

I have also went to the Settings dialog, and in the Format tab I have changed the "Alignment" option for all types of paragraph styles to "Left". The displayed document remained the same (everything is centered).

I have tried to use EPUB files from Project Gutenberg as well as those converted from PDB using Calibre, and the situation is the same for both sources. Those EPUB files are perfectly readable in other readers (Calibre internal reader, FBReaderJ on Android, and Jinke A6 e-ink reader).

Steps to Reproduce:

  1. wget http://www.gutenberg.org/ebooks/13083.epub.noimages
  2. FBReader pg13083.epub
  3. scroll down few pages

Actual results: Every paragraph is centered.

Expected results: Most paragraphs should be either justified or left-flushed.

Additional Information: This issue seems to affect Project Gutenberg ePUBs, as well as PDB->EPUB conversions, but not ePUBs from e.g. FeedBooks.com

e.g. http://www.feedbooks.com/book/4109/right-ho-jeeves [^] -- both ePUB and Mobi renders properly.

zelch commented 11 years ago

It looks like the current git (and the 0.99.4 beta) have corrected this problem, can you verify?

rimugu commented 11 years ago

Using Android 2.0 beta 8 (109082) the file http://www.gutenberg.org/ebooks/13083.epub.noimages works,

But a file sent to support@geometerplus.com still all centered.