[Printing-architecture] Contributing braille embosser support

Samuel Thibault samuel.thibault at ens-lyon.org
Mon Dec 21 00:12:46 UTC 2015


Till Kamppeter, on Sun 13 Dec 2015 09:07:45 -0200, wrote:
> Now please download the BZR of cups-filters and check whether everything is
> OK. Thanks.

A second change which will be useful is as attached: for now imagemagick
introduces some header in the produced braille-formatted images.  We
will however probably want to remove it in the future.  The attached
patch makes cups-filters cope with both the header being present or not.

Samuel
-------------- next part --------------
--- filter/braille/filters/imagetobrf.in	2015-12-12 02:11:10 +0000
+++ filter/braille/filters/imagetobrf.in	2015-12-20 12:45:08 +0000
@@ -86,9 +86,9 @@ echo "INFO: Converting image" 1>&2
 if [ -z "$FILE" ]
 then
   printf "DEBUG: Calling $RENDER_CALL from stdin\n" 1>&2
-  $RENDER_CALL | tail -n +4
+  $RENDER_CALL | sed -e '/^Width: [0-9]*$/,/^$/d' 
 else
   printf "DEBUG: Calling $RENDER_CALL on '%s'\n" "$FILE" 1>&2
-  $RENDER_CALL < "$FILE" | tail -n +4
+  $RENDER_CALL < "$FILE" | sed -e '/^Width: [0-9]*$/,/^$/d' 
 fi
 echo "INFO: Ready" >&2



More information about the Printing-architecture mailing list