From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6JeNFVyudV+tTwAA0tVLHw (envelope-from ) for ; Thu, 01 Oct 2020 10:24:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8Ix2EVyudV8bLwAA1q6Kng (envelope-from ) for ; Thu, 01 Oct 2020 10:24:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 66C3E9404D5 for ; Thu, 1 Oct 2020 10:24:27 +0000 (UTC) Received: from localhost ([::1]:52238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNvlB-00081w-S6 for larch@yhetil.org; Thu, 01 Oct 2020 06:24:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNvkr-000818-8Q for guix-patches@gnu.org; Thu, 01 Oct 2020 06:24:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNvko-0000M2-0y for guix-patches@gnu.org; Thu, 01 Oct 2020 06:24:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNvkn-0002OR-U4 for guix-patches@gnu.org; Thu, 01 Oct 2020 06:24:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43504] [PATCH] gnu: Add scantailor-advanced. Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Oct 2020 10:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43504 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 43504@debbugs.gnu.org Received: via spool by 43504-submit@debbugs.gnu.org id=B43504.16015478029134 (code B ref 43504); Thu, 01 Oct 2020 10:24:01 +0000 Received: (at 43504) by debbugs.gnu.org; 1 Oct 2020 10:23:22 +0000 Received: from localhost ([127.0.0.1]:34210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNvk9-0002NG-S4 for submit@debbugs.gnu.org; Thu, 01 Oct 2020 06:23:22 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:58178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNvk7-0002Mw-N6 for 43504@debbugs.gnu.org; Thu, 01 Oct 2020 06:23:21 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4C28N20mzWzQjVH; Thu, 1 Oct 2020 12:23:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1601547792; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tukPXTJHg207sWwD1vXj5QM1Zvs/zvJYTyTBNAL9C+w=; b=1li+D+p3U61Nwjlw2+nRefGG8maCsayLBNa8ALcajTEQt3lIPW8yFiXZVOIj7CS89Moupf T4yuK2uZAWNTE7DUIz8gGsLL7kHW8etGp1RMLIEkJ1SbTGyy41+spvJ1woUaHqYwC1Z/qr s39jEkFOCqyWAFwEVt4zuW05IZoDKPPvzjxEs3E5Oj3xyohQXkGweaBbLOd4MRuo6epEsx tElQ3jo7b1IMYywhGERWJTn+boOFcoQklLn3O7qQVuKwPhc2VLLTaw0SMYkbOrNEwrzwXx yweciuAwdAuzeAhs8FB5FbSAHhgio5OP3l+5mIJ6gdkXUfLknj8AS0xXDuK9HQ== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id k2pMSWuvWztq; Thu, 1 Oct 2020 12:23:09 +0200 (CEST) References: <20200919055230.21174-1-mail@brendan.scot> <87imc2ca4j.fsf@gnu.org> <62CE0D94-95CB-48C7-A6AE-DC2184E87A0D@brendan.scot> <87tuvez9b6.fsf@gnu.org> From: Brendan Tildesley Message-ID: <8300a8c9-1021-5680-6024-9516b14ee55f@brendan.scot> Date: Thu, 1 Oct 2020 10:23:04 +0000 MIME-Version: 1.0 In-Reply-To: <87tuvez9b6.fsf@gnu.org> Content-Type: multipart/mixed; boundary="------------44E623D407A7B1BE04660D5E" Content-Language: en-US X-MBO-SPAM-Probability: X-Rspamd-Score: -10.65 / 15.00 / 15.00 X-Rspamd-Queue-Id: 83961171C X-Rspamd-UID: 4fc0c1 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=brendan.scot header.s=MBO0001 header.b=1li+D+p3; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: bUsHaN8kqrMS This is a multi-part message in MIME format. --------------44E623D407A7B1BE04660D5E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 1/10/20 7:37 am, Mathieu Othacehe wrote: > Hello Brendan, > >> Well I saw the merge request for it and it was ignored, so I just added it manually. Also I wasn't using the latest tag release but the latest commit because the release is 2 years old and there >> are many fixes and changes afterwards. This is not just the latest release plus the translation but the latest commit plus it, in my own repo. It didn't look like the channel owner was planning >> to make a release any time soon. Do you think I should just use the latest release then and not worry about it? > The project is not explicitly discontinued, so maybe you could package > the latest upstream commit. Regarding your translation commit, I saw you > submitted a MR a few days ago, let's see if it gets a review. > > Thanks, > > Mathieu I attached a new one that uses up stream's latest. By the way, to test it, just take a photo of a page from a book, and try load it in. if you can go through the steps processing it to a clean output then it should be working ok. --------------44E623D407A7B1BE04660D5E Content-Type: text/x-patch; charset=UTF-8; name="0001-gnu-Add-scantailor-advanced.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-gnu-Add-scantailor-advanced.patch" >From b2113f7dc97a3486ad79bf77ef139ef026305234 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Thu, 17 Sep 2020 19:09:21 +1000 Subject: [PATCH] gnu: Add scantailor-advanced. * gnu/packages/image-processing.scm (scantailor-advanced): New variable. --- gnu/packages/image-processing.scm | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 9158e14938..d9fd0e5baa 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Pierre Neidhardt +;;; Copyright © 2020 Brendan Tildesley ;;; ;;; This file is part of GNU Guix. ;;; @@ -33,6 +34,7 @@ #:use-module (guix utils) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix build-system qt) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (gnu packages) @@ -1015,3 +1017,50 @@ substitued, as well as collage-style photomosaics, in which rectangular parts of the source image at arbitrary positions (i.e. not aligned to a matrix) are substituted by matching images.") (license license:gpl2)))) + +(define-public scantailor-advanced + (let ((commit "3d1e74e6ace413733511086934a66f4e3f7a6027")) + (package + (name "scantailor-advanced") + (version (string-append "1.0.16-" (string-take commit 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/4lex4/scantailor-advanced") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0kixwjb2x457dq7927hkh34c803p7yh1pmn6n61rk9shqrcg492h")))) + (build-system qt-build-system) + (native-inputs + `(("qttools" ,qttools))) + (inputs + `(("boost" ,boost) + ("libjpeg" ,libjpeg-turbo) + ("libpng" ,libpng) + ("libtiff" ,libtiff) + ("qtbase" ,qtbase) + ("qtsvg" ,qtsvg) + ("zlib" ,zlib))) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Some tests require a display and fail with offscreen mode. + (add-after 'unpack 'disable-failing-tests + (lambda _ + (setenv "ARGS" "--exclude-regex \"imageproc_.*\"") + #t))))) + (home-page "https://github.com/4lex4/scantailor-advanced") + (synopsis "Clean up scanned pages") + (description "Scan Tailor is an interactive post-processing tool for +scanned pages. It performs operations such as page splitting, deskewing, +adding/removing borders, and others. You give it raw scans, and you get pages +ready to be printed or assembled into a PDF or DJVU file. Scanning, optical +character recognition, and assembling multi-page documents are out of scope of +this project. + +Scan Tailer Advanced is a fork of Scan Tailer that merges Scan Tailor Featured +and Scan Tailor Enhanced versions as well as including many more bug fixes.") + (license license:gpl3+)))) -- 2.28.0 --------------44E623D407A7B1BE04660D5E--