Ресурсы - это набор именованных объектов, которые либо находятся в
виртуальной памяти (VM) интерпретатора PostScript, либо могут быть
найдены и загружены в VM по требованию. Ресурсы находятся на верхнем
уровне иерархии объектов языка PostScript.
|
|
Ресурсы подразделяются на категории. Как правило, добавление ресурса в
систему заключается в добавлении именованного файла в файловую систему
компьютера.
|
|
Для того, чтобы распечатать список категорий ресурсов, которые имеет
система Display PostScript и всех объектов, входящих в категории,
создайте скрипт:
|
|
#!/bin/sh
#
# script "all"
#
echo "##### All available Category: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /Category resourceforall
EOF
echo "##### All available Font: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /Font resourceforall
EOF
echo "##### All available CMap: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /CMap resourceforall
EOF
echo "##### All available CIDFont: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /CIDFont resourceforall
EOF
echo "##### All available IODevice: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /IODevice resourceforall
EOF
echo "##### All available Pattern: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /Pattern resourceforall
EOF
echo "##### All available ColorSpace: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /ColorSpace resourceforall
EOF
echo "##### All available F3CMap: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /F3CMap resourceforall
EOF
echo "##### All available Encoding: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /Encoding resourceforall
EOF
echo "##### All available HWOptions: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /HWOptions resourceforall
EOF
echo "##### All available Generic: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /Generic resourceforall
EOF
echo "##### All available F3Charstring: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /F3Charstring resourceforall
EOF
echo "##### All available PatternType: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /PatternType resourceforall
EOF
echo "##### All available ContextInit: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /ContextInit resourceforall
EOF
echo "##### All available ProcSet: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /ProcSet resourceforall
EOF
echo "##### All available F3CIDFont: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /F3CIDFont resourceforall
EOF
echo "##### All available ColorRendering: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /ColorRendering resourceforall
EOF
echo "##### All available Filter: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /Filter resourceforall
EOF
echo "##### All available FormType: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /FormType resourceforall
EOF
echo "##### All available Form: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /Form resourceforall
EOF
echo "##### All available FontType: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /FontType resourceforall
EOF
echo "##### All available ColorSpaceFamily: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /ColorSpaceFamily resourceforall
EOF
echo "##### All available Halftone: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /Halftone resourceforall
EOF
echo "##### All available FMapType: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /FMapType resourceforall
EOF
echo "##### All available F3CDevProc: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /F3CDevProc resourceforall
EOF
echo "##### All available ImageType: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /ImageType resourceforall
EOF
echo "##### All available HalftoneType: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /HalftoneType resourceforall
EOF
echo "##### All available OutputDevice: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /OutputDevice resourceforall
EOF
echo "##### All available ColorRenderingType: ######"
/usr/openwin/demo/dpsexec -root -noexec <<EOF
(*) { == } 256 string /ColorRenderingType resourceforall
EOF
|
В результате выполнения получится:
|
|
$ all
##### All available Category: ######
(Font)
(CMap)
(CIDFont)
(IODevice)
(Pattern)
(ColorSpace)
(Category)
(F3CMap)
(Encoding)
(HWOptions)
(Generic)
(F3Charstring)
(PatternType)
(ContextInit)
(ProcSet)
(F3CIDFont)
(ColorRendering)
(Filter)
(FormType)
(Form)
(FontType)
(ColorSpaceFamily)
(Halftone)
(FMapType)
(F3CDevProc)
(ImageType)
(HalftoneType)
(OutputDevice)
(ColorRenderingType)
##### All available Font: ######
(AvantGarde-Book)
(AvantGarde-BookOblique)
(AvantGarde-Demi)
(AvantGarde-DemiOblique)
(Bembo-Bold)
(Bembo-BoldItalic)
(Bembo-Italic)
(Bembo)
(Bookman-Demi)
(Bookman-DemiItalic)
(Bookman-Light)
(Bookman-LightItalic)
(Courier-Bold)
(Courier-BoldOblique)
(Courier-Oblique)
(Courier)
(GillSans-Bold)
(GillSans-BoldItalic)
(GillSans-Italic)
(GillSans)
(Helvetica-Bold)
(Helvetica-BoldOblique)
(Helvetica-Narrow-Bold)
(Helvetica-Narrow-BoldOblique)
(Helvetica-Narrow-Oblique)
(Helvetica-Narrow)
(Helvetica-Oblique)
(Helvetica)
(Lucida-Bright)
(Lucida-BrightDemiBold)
(Lucida-BrightDemiBoldItalic)
(Lucida-BrightItalic)
(LucidaBright)
(LucidaBright-Demi)
(LucidaBright-DemiItalic)
(LucidaBright-Italic)
(LucidaSans-Bold)
(LucidaSans-BoldItalic)
(LucidaSans-Italic)
(LucidaSans)
(LucidaSansTypewriter-Bold)
(LucidaSansTypewriter)
(LucidaSans-TypewriterBold)
(LucidaSans-Typewriter)
(NewCenturySchlbk-Bold)
(NewCenturySchlbk-BoldItalic)
(NewCenturySchlbk-Italic)
(NewCenturySchlbk-Roman)
(Palatino-Bold)
(Palatino-BoldItalic)
(Palatino-Italic)
(Palatino-Roman)
(Rockwell-Bold)
(Rockwell-BoldItalic)
(Rockwell-Italic)
(Rockwell)
(Symbol)
(Times-Bold)
(Times-BoldItalic)
(Times-Italic)
(Times-Roman)
(ZapfChancery-MediumItalic)
(ZapfDingbats)
(Dijkstra)
(Hershey-Cyrillic)
(Hershey-Gothic)
(Hershey-Greek)
(Hershey-Greek-Narrow)
(Hershey-Greekp)
(Hershey-Italic)
(Hershey-Italic-Narrow)
(Hershey-Italic-Wide)
(Hershey-Roman)
(Hershey-Roman-Narrow)
(Hershey-Roman-Wide)
(Hershey-Romand)
(Hershey-Romanp)
(Hershey-Script)
(Hershey-Script-Narrow)
(ArialCyrMT)
(ArialCyrMT-Bold)
(ArialCyrMT-BoldInclined)
(ArialCyrMT-Inclined)
(ArialNarrowCyrMT)
(ArialNarrowCyrMT-Bold)
(ArialNarrowCyrMT-BoldInc)
(ArialNarrowCyrMT-Inclined)
(BookAntiquaCyr)
(BookAntiquaCyr-Bold)
(BookAntiquaCyr-BoldInclined)
(BookAntiquaCyr-Inclined)
(BookmanOldStyleCyr)
(BookmanOldStyleCyr-Bold)
(BookmanOldStyleCyr-BoldInc)
(BookmanOldStyleCyr-Inc)
(CenturyGothicCyr)
(CenturyGothicCyr-Bold)
(CenturyGothicCyr-BoldInc)
(CenturyGothicCyr-Inclined)
(CenturySchoolbookCyr)
(CenturySchoolbookCyr-BolInc)
(CenturySchoolbookCyr-Bold)
(CenturySchoolbookCyr-Inc)
(CourierCyr)
(CourierCyr-Bold)
(CourierCyr-BoldInclined)
(CourierCyr-Inclined)
(GillSansCyrMT)
(GillSansCyrMT-Bold)
(GillSansCyrMT-BoldInclined)
(GillSansCyrMT-Inclined)
(LucidaSansCyr)
(LucidaSansCyr-Bold)
(LucidaSansTypCyr)
(LucidaSansTypCyr-Bold)
(MonotypeCorsivaCyr)
(MonotypeCorsivaCyr-AltOne)
(MonotypeCorsivaCyr-AltThree)
(MonotypeCorsivaCyr-AltTwo)
(TimesNewRomanCyr)
(TimesNewRomanCyr-Bold)
(TimesNewRomanCyr-BoldIncl)
(TimesNewRomanCyr-Inclined)
(ArialBold)
(ArialBoldItalic)
(ArialItalic)
(ArialRegular)
(CourierBold)
(CourierBoldItalic)
(CourierItalic)
(CourierRegular)
(TimesBold)
(TimesBoldItalic)
(TimesItalic)
(TimesRegular)
##### All available CMap: ######
##### All available CIDFont: ######
##### All available IODevice: ######
##### All available Pattern: ######
##### All available ColorSpace: ######
##### All available F3CMap: ######
##### All available Encoding: ######
(ISOLatin1Encoding)
(StandardEncoding)
(ISOLatin1EncodingVector)
(ISOLatin2EncodingVector)
(ISOLatin4EncodingVector)
(ISOLatinCyrillicEncodingVector)
(ISOLatinGreekEncodingVector)
(ISOLatin5EncodingVector)
##### All available HWOptions: ######
##### All available Generic: ######
##### All available F3Charstring: ######
##### All available PatternType: ######
1
##### All available ContextInit: ######
(InitProc)
##### All available ProcSet: ######
(CIDInit)
(ColorRendering)
(CIDInitN)
##### All available F3CIDFont: ######
##### All available ColorRendering: ######
(DefaultCIE)
()
##### All available Filter: ######
(RunLengthEncode)
(DCTEncode)
(LZWEncode)
(SubFileDecode)
(NullEncode)
(LZWDecode)
(RunLengthDecode)
(DCTDecode)
(ASCIIHexEncode)
(ASCII85Decode)
(ASCII85Encode)
(CCITTFaxEncode)
(ASCIIHexDecode)
(CCITTFaxDecode)
##### All available FormType: ######
1
##### All available Form: ######
##### All available FontType: ######
0
5
10
15
7
12
4
9
71
1
6
3
##### All available ColorSpaceFamily: ######
(Separation)
(Pattern)
(CIEBasedABC)
(Indexed)
(DeviceRGB)
(CIEBasedA)
(DeviceCMYK)
(DeviceGray)
##### All available Halftone: ######
##### All available FMapType: ######
5
2
7
4
9
6
3
8
##### All available F3CDevProc: ######
(f3cdevproc)
##### All available ImageType: ######
1
##### All available HalftoneType: ######
5
10
2
4
1
6
3
##### All available OutputDevice: ######
(Default)
##### All available ColorRenderingType: ######
1
$
|
|