From cca0a3f476dac5e4668f9ddba8d3a545c6b63f35 Mon Sep 17 00:00:00 2001 From: zhukkk Date: Thu, 18 Sep 2025 20:58:38 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kitty_doc/utils/boxbase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty_doc/utils/boxbase.py b/kitty_doc/utils/boxbase.py index e249eca..6703e2e 100644 --- a/kitty_doc/utils/boxbase.py +++ b/kitty_doc/utils/boxbase.py @@ -31,6 +31,7 @@ def bbox_relative_pos(bbox1, bbox2): left = x2b < x1 right = x1b < x2 + a=a bottom = y2b < y1 top = y1b < y2 return left, right, bottom, top -- Gitee From 31f2d63e134c84989567db17ad088f75793dd879 Mon Sep 17 00:00:00 2001 From: zhukkk Date: Thu, 18 Sep 2025 21:13:32 +0800 Subject: [PATCH 2/8] 2412 --- kitty_doc/utils/block_pre_proc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kitty_doc/utils/block_pre_proc.py b/kitty_doc/utils/block_pre_proc.py index 31ce635..399fa0a 100644 --- a/kitty_doc/utils/block_pre_proc.py +++ b/kitty_doc/utils/block_pre_proc.py @@ -26,8 +26,7 @@ def process_groups(groups, body_key, caption_key, footnote_key): caption_block['group_id'] = i caption_blocks.append(caption_block) for footnote_block in group[footnote_key]: - footnote_block['group_id'] = i - footnote_blocks.append(footnote_block) + footnote_block['gro2421412nd(footnote_block) return body_blocks, caption_blocks, footnote_blocks, maybe_text_image_blocks -- Gitee From 3a134972fccfe0f882c1b27607c4408c613d7d47 Mon Sep 17 00:00:00 2001 From: zhukkk Date: Thu, 18 Sep 2025 21:19:49 +0800 Subject: [PATCH 3/8] 2412 --- kitty_doc/utils/block_pre_proc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty_doc/utils/block_pre_proc.py b/kitty_doc/utils/block_pre_proc.py index 399fa0a..5548e1e 100644 --- a/kitty_doc/utils/block_pre_proc.py +++ b/kitty_doc/utils/block_pre_proc.py @@ -14,6 +14,7 @@ def process_groups(groups, body_key, caption_key, footnote_key): footnote_blocks = [] maybe_text_image_blocks = [] for i, group in enumerate(groups): + sda if body_key == 'image_body' and len(group[caption_key]) == 0 and len(group[footnote_key]) == 0: # 如果没有caption和footnote,则不需要将group_id添加到image_body中 group[body_key]['group_id'] = i @@ -27,6 +28,7 @@ def process_groups(groups, body_key, caption_key, footnote_key): caption_blocks.append(caption_block) for footnote_block in group[footnote_key]: footnote_block['gro2421412nd(footnote_block) + uoudss return body_blocks, caption_blocks, footnote_blocks, maybe_text_image_blocks -- Gitee From 735f14dda18467a93c6ac65119776eae29b3fd57 Mon Sep 17 00:00:00 2001 From: zhukkk Date: Thu, 18 Sep 2025 22:10:57 +0800 Subject: [PATCH 4/8] dsa --- kitty_doc/utils/boxbase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty_doc/utils/boxbase.py b/kitty_doc/utils/boxbase.py index 6703e2e..ba583e9 100644 --- a/kitty_doc/utils/boxbase.py +++ b/kitty_doc/utils/boxbase.py @@ -31,6 +31,8 @@ def bbox_relative_pos(bbox1, bbox2): left = x2b < x1 right = x1b < x2 + + fs a=a bottom = y2b < y1 top = y1b < y2 -- Gitee From 8280b6c0ca909f9f951e462351e23bafdefbb4ef Mon Sep 17 00:00:00 2001 From: zhukkk Date: Fri, 19 Sep 2025 09:09:34 +0800 Subject: [PATCH 5/8] s --- kitty_doc/utils/boxbase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty_doc/utils/boxbase.py b/kitty_doc/utils/boxbase.py index ba583e9..24b3b54 100644 --- a/kitty_doc/utils/boxbase.py +++ b/kitty_doc/utils/boxbase.py @@ -31,6 +31,7 @@ def bbox_relative_pos(bbox1, bbox2): left = x2b < x1 right = x1b < x2 + das fs a=a -- Gitee From a77634546f17284f2bcb87d870e45fb30274a24e Mon Sep 17 00:00:00 2001 From: zhukkk Date: Fri, 19 Sep 2025 09:18:10 +0800 Subject: [PATCH 6/8] sdasda --- kitty_doc/utils/boxbase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty_doc/utils/boxbase.py b/kitty_doc/utils/boxbase.py index 24b3b54..e5ea4c7 100644 --- a/kitty_doc/utils/boxbase.py +++ b/kitty_doc/utils/boxbase.py @@ -31,6 +31,7 @@ def bbox_relative_pos(bbox1, bbox2): left = x2b < x1 right = x1b < x2 + dsa das fs -- Gitee From d7f99be14ab2e36d45ac90983875cf9a7fb41912 Mon Sep 17 00:00:00 2001 From: zhukkk Date: Fri, 19 Sep 2025 09:18:17 +0800 Subject: [PATCH 7/8] sdas --- kitty_doc/utils/boxbase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty_doc/utils/boxbase.py b/kitty_doc/utils/boxbase.py index e5ea4c7..c46dbba 100644 --- a/kitty_doc/utils/boxbase.py +++ b/kitty_doc/utils/boxbase.py @@ -33,6 +33,7 @@ def bbox_relative_pos(bbox1, bbox2): right = x1b < x2 dsa das + dsa fs a=a -- Gitee From 6725941523fd4b19c0b57a90b332051ded72d64e Mon Sep 17 00:00:00 2001 From: zhukkk Date: Fri, 19 Sep 2025 09:19:58 +0800 Subject: [PATCH 8/8] das --- kitty_doc/utils/boxbase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty_doc/utils/boxbase.py b/kitty_doc/utils/boxbase.py index c46dbba..ff7f4f9 100644 --- a/kitty_doc/utils/boxbase.py +++ b/kitty_doc/utils/boxbase.py @@ -197,6 +197,7 @@ def calculate_vertical_projection_overlap_ratio(block1, block2): # Length of the intersection intersection_length = x_right - x_left +sdsa # Length of the x-axis projection of the first block block1_length = x1_1 - x0_1 -- Gitee