#!/bin/sh #---------------------------------------------------------------------------- # /var/spool/hylafax/mimeconverters/text/plain - plain-unicode2ps converter # # Creation: 2010-10-25 hbfl # Last Update: $Id$ # # Copyright (c) 2007-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # Mime type: text/plain # Comment: Converts plain-Unicode to PS # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version.. #---------------------------------------------------------------------------- mime_path=/var/spool/hylafax/mimeconverters if [ ${#} -gt 0 ] then if $(/usr/bin/file ${1} | /usr/bin/grep -q 'Unicode') then if [ -f /usr/bin/uniprint ] then /usr/bin/uniprint -hsize 0 -font cyberbit.ttf -in ${1} -out - else # error ${mime_path}/no-converter-mail "text/plain" "/usr/bin/uniprint" fi else # if not unicode, then use the standard converter ${mime_path}/text/plain-std ${1} fi else # show usage echo "Usage: ${0} filename" fi