View Single Post
Old 12-08-2018, 05:42 AM   #281
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Plato 0.6.0

I'm releasing 0.6.0 today.

It contains a major feature for non-reflowable formats: the continuous fit-to-width zoom mode. The title label in the reader's top bar is now tappable and brings up a menu with a Zoom Mode sub-menu. You can also enable this zoom mode by performing an horizontal spread gesture. Don't forget to use to margin cropper tool to tightly fit the view frame to the underlying text block.

The use case for fit-to-width is when the text block is taller than the screen. This method therefore requires cutting the text block into chunks. By doing so, the probability of cutting lines in half is high. The way the other readers deal with this problem is by introducing a vertical overlap parameter that makes the scroller rewind by a small amount to account for the cropped line. I took a different approach: since the OCR layer is almost always present, we can find the rectangle of the line that contains the cut, find the line preceding it and re-adjust the cut to fall in-between the two lines. I've also introduced screen margins, at the center of the toolbar, to re-add the margins that we loose by tightly fitting the text block.

List of other changes:
  • Add a contextual menu for categories. In particular, categories can now be renamed.
  • Add a menu item in the matches menu to empty the trash.
  • The hyphenation bounds for a language LANG, can be overridden by creating a file named LANG.bounds in the hyphenation-patterns directory. The content of this file shall be the left bound, followed by a space, followed by the right bound.

Last edited by baskerville; 12-12-2018 at 03:35 AM.
baskerville is offline   Reply With Quote