Revision 3019,
853 bytes
checked in by amuller, 14 years ago
(diff) |
Ticket #1135 - Corrigindo CSS e adicionando filemanager
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | if [ $# != 2 ] |
---|
3 | then |
---|
4 | echo "Usage: 'nspr # file.ps' where # is 2, 5, or 1251" |
---|
5 | exit |
---|
6 | else |
---|
7 | enc=$1 |
---|
8 | shift |
---|
9 | fi |
---|
10 | case ${enc} in |
---|
11 | 1250|1251) |
---|
12 | charset=windows |
---|
13 | ;; |
---|
14 | *) |
---|
15 | charset=iso8859 |
---|
16 | ;; |
---|
17 | esac |
---|
18 | sed "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;" $* | \ |
---|
26 | grep -v "^ /Encoding isolatin1encoding def$" |
---|
Note: See
TracBrowser
for help on using the repository browser.