mirror of https://github.com/papermerge/mglib
PEP8 formatting
parent
eb98ef1329
commit
7ddb02dcb5
|
@ -2,7 +2,8 @@ class Step:
|
||||||
# Q: What is ``Step`` and why it was a bad decision to introduce it?
|
# Q: What is ``Step`` and why it was a bad decision to introduce it?
|
||||||
#
|
#
|
||||||
# A: ``Step`` class is closely related to zooming in/zooming out
|
# A: ``Step`` class is closely related to zooming in/zooming out
|
||||||
# a specific page in the document in the front-end (javascript code).
|
# a specific page in the document in the frontend (javascript code).
|
||||||
|
#
|
||||||
# When user opens the document in document viewer, he/she actually
|
# When user opens the document in document viewer, he/she actually
|
||||||
# sees an image with text over it (text overlay). Text overlay is
|
# sees an image with text over it (text overlay). Text overlay is
|
||||||
# created from hocr data. Very important point here, is that
|
# created from hocr data. Very important point here, is that
|
||||||
|
@ -13,10 +14,10 @@ class Step:
|
||||||
# Each step is meant to be a specific zoom value of the page. Thus, step
|
# Each step is meant to be a specific zoom value of the page. Thus, step
|
||||||
# 2, which corresonds to LIST[2] % = 75 % of the page initial logical size
|
# 2, which corresonds to LIST[2] % = 75 % of the page initial logical size
|
||||||
# of WIDTH_100p = 1240.
|
# of WIDTH_100p = 1240.
|
||||||
# When user zooms in/zooms out - a new hocr file is downloaded corresponding
|
# When user zooms in/zooms out - a new hocr file is downloaded
|
||||||
# to that zoom step. As you may guess, user can zoom only 125%, 100%, 75%
|
# corresponding to that zoom step. As you may guess, user can zoom only
|
||||||
# and 50%. Value of 10% corresponds to thumbnail of the document and does
|
# 125%, 100%, 75% and 50%. Value of 10% corresponds to thumbnail of the
|
||||||
# not count as 'real' step.
|
# document and does not count as 'real' step.
|
||||||
#
|
#
|
||||||
# Instead of doing this step thingy, it would have been better to drop
|
# Instead of doing this step thingy, it would have been better to drop
|
||||||
# the entire step concept. Much better solution for zoom in/zoom out would
|
# the entire step concept. Much better solution for zoom in/zoom out would
|
||||||
|
@ -30,8 +31,8 @@ class Step:
|
||||||
#
|
#
|
||||||
# * there will be 4X less OCR required (corresponding to
|
# * there will be 4X less OCR required (corresponding to
|
||||||
# hOCR of each step minus thumbnail/10% step)
|
# hOCR of each step minus thumbnail/10% step)
|
||||||
# * will simplify front-end code as SVG (= hocr + jpeg) will be generated on
|
# * will simplify front-end code as SVG (= hocr + jpeg) will be
|
||||||
# on server side
|
# generated on the on server side
|
||||||
# * eliminate conept of Step entirely
|
# * eliminate conept of Step entirely
|
||||||
# (there will be only one SVG file per page)
|
# (there will be only one SVG file per page)
|
||||||
# * increase front-end and back-end performance as only one file SVG file
|
# * increase front-end and back-end performance as only one file SVG file
|
||||||
|
|
Loading…
Reference in New Issue