Loading ui/canvas.py +2 −2 Original line number Diff line number Diff line Loading @@ -21,8 +21,8 @@ from .page_search_widget import PageSearchWidget from utils import shared as C from utils.config import pcfg CANVAS_SCALE_MAX = 3.0 CANVAS_SCALE_MIN = 0.1 CANVAS_SCALE_MAX = 10.0 CANVAS_SCALE_MIN = 0.01 CANVAS_SCALE_SPEED = 0.1 Loading utils/textblock.py +1 −1 Original line number Diff line number Diff line Loading @@ -489,7 +489,7 @@ def examine_textblk(blk: TextBlock, im_w: int, im_h: int, sort: bool = False) -> if sort: blk.sort_lines() def try_merge_textline(blk: TextBlock, blk2: TextBlock, fntsize_tol=1.4, distance_tol=2) -> bool: def try_merge_textline(blk: TextBlock, blk2: TextBlock, fntsize_tol=1.7, distance_tol=2) -> bool: if blk2.merged: return False fntsize_div = blk.font_size / blk2.font_size Loading Loading
ui/canvas.py +2 −2 Original line number Diff line number Diff line Loading @@ -21,8 +21,8 @@ from .page_search_widget import PageSearchWidget from utils import shared as C from utils.config import pcfg CANVAS_SCALE_MAX = 3.0 CANVAS_SCALE_MIN = 0.1 CANVAS_SCALE_MAX = 10.0 CANVAS_SCALE_MIN = 0.01 CANVAS_SCALE_SPEED = 0.1 Loading
utils/textblock.py +1 −1 Original line number Diff line number Diff line Loading @@ -489,7 +489,7 @@ def examine_textblk(blk: TextBlock, im_w: int, im_h: int, sort: bool = False) -> if sort: blk.sort_lines() def try_merge_textline(blk: TextBlock, blk2: TextBlock, fntsize_tol=1.4, distance_tol=2) -> bool: def try_merge_textline(blk: TextBlock, blk2: TextBlock, fntsize_tol=1.7, distance_tol=2) -> bool: if blk2.merged: return False fntsize_div = blk.font_size / blk2.font_size Loading