source: trunk/filemanager/tp/dompdf/lib/ttf2ufm/ttf2ufm-src/app/netscape/nspr @ 2000

Revision 2000, 853 bytes checked in by amuller, 14 years ago (diff)

Ticket #597 - Implementação do módulo gerenciador de arquivos

Line 
1#!/bin/sh
2if [ $# != 2 ]
3then
4    echo "Usage: 'nspr # file.ps' where # is 2, 5, or 1251"
5    exit
6else
7    enc=$1
8    shift
9fi
10case ${enc} in
11    1250|1251)
12        charset=windows
13        ;;
14    *)
15        charset=iso8859
16        ;;
17esac
18sed "s/Times-Roman/Timesnew-Roman-${charset}-${enc}/g;\
19     s/Times-Italic/Timesnew-Italic-${charset}-${enc}/g;\
20     s/Times-BoldItalic/Timesnew-BoldItalic-${charset}-${enc}/g;\
21     s/Times-Bold/Timesnew-Bold-${charset}-${enc}/g;\
22     s/Courier/Couriernew-Roman-${charset}-${enc}/g;\
23     s/Couriernew-Roman-${charset}-${enc}-BoldOblique/Couriernew-BoldItalic-${charset}-${enc}/g;\
24     s/Couriernew-Roman-${charset}-${enc}-Bold/Couriernew-Bold-${charset}-${enc}/g;\
25     s/Couriernew-Roman-${charset}-${enc}-Oblique/Couriernew-Italic-${charset}-${enc}/g;" $* | \
26grep -v "^      /Encoding isolatin1encoding def$"
Note: See TracBrowser for help on using the repository browser.