From de47a3e5b19c6fb89a33950a6abed9e0e7ea866e Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Wed, 20 Nov 2019 12:39:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20now=20unused=20page=5Ff?= =?UTF-8?q?ix=5Fimage=5Freferences()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- my_ocrd_workflow | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/my_ocrd_workflow b/my_ocrd_workflow index ee0cbff..d33f48b 100755 --- a/my_ocrd_workflow +++ b/my_ocrd_workflow @@ -120,20 +120,6 @@ page_validate_xml() { done } -page_fix_image_references() { - # Make image references relative to the PAGE XML file - # - # The rest of OCR-D probably isn't going to like it, but it is a. correct and b. makes PAGE Viewer open the image file - # automatically. - - filegrp=$1 - - local file - for file in `ocrd workspace find -G $filegrp`; do - sed -i 's#imageFilename="OCR-D-IMG#imageFilename="../OCR-D-IMG#g' $file - done -} - page_fix_image_references_to_bin() { # Make image references point to the binarized images # XXX This is a hack, it is probably better to use alternative images in ocrd_calamari