From 1cd9eefb828468d13ebfaef627a7d13a78d03702 Mon Sep 17 00:00:00 2001 From: Sadra Barikbin Date: Sat, 16 Dec 2023 09:52:49 +0330 Subject: [PATCH 1/3] A couple of refactors To resolve circular dependencies and also a couple of bug fixes --- kraken/templates/alto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kraken/templates/alto b/kraken/templates/alto index ccddf4182..f9e8a3047 100644 --- a/kraken/templates/alto +++ b/kraken/templates/alto @@ -78,9 +78,9 @@ {% endfor %} - {% if len(page.line_orders) > 0 %} + {% if page.line_orders | length > 0 %} - {% if len(page.line_orders) == 1 %} + {% if page.line_orders | length == 1 %} {% for id in page.line_orders[0] %} From 91f6a6d7f170c2c8f688ca2e3529b5aa052317ec Mon Sep 17 00:00:00 2001 From: Sadra Barikbin Date: Tue, 12 Dec 2023 10:12:00 +0330 Subject: [PATCH 2/3] Update containers.py --- kraken/containers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kraken/containers.py b/kraken/containers.py index 188bb8e25..5179ce6c0 100644 --- a/kraken/containers.py +++ b/kraken/containers.py @@ -48,7 +48,7 @@ class ProcessingStep: Attributes: id: Unique identifier - category: Category of processing step that has been performat. + category: Category of processing step that has been performed. description: Natural-language description of the process. settings: Dict describing the parameters of the processing step. """ From a3ef836b6b99073f8e7da938f3620b037f60bf74 Mon Sep 17 00:00:00 2001 From: Sadra Barikbin Date: Tue, 12 Dec 2023 10:14:35 +0330 Subject: [PATCH 3/3] Update blla.py --- kraken/blla.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kraken/blla.py b/kraken/blla.py index 00370bc25..7e64139c8 100644 --- a/kraken/blla.py +++ b/kraken/blla.py @@ -286,7 +286,7 @@ def segment(im: PIL.Image.Image, :force: 'lines': [ - {'baseline': [[x0, y0], [x1, y1], ..., [x_n, y_n]], 'boundary': [[x0, y0, x1, y1], ... [x_m, y_m]]}, + {'baseline': [[x0, y0], [x1, y1], ..., [x_n, y_n]], 'boundary': [[x0, y0], [x1, y1], ... [x_m, y_m]]}, {'baseline': [[x0, ...]], 'boundary': [[x0, ...]]} ] 'regions': [