[Gnome-print] .model and .printer files
- From: Lauris Kaplinski <lauris ximian com>
- To: chema ximian com
- Cc: gnome-print ximian com, setup-tool-hackers ximian com
- Subject: [Gnome-print] .model and .printer files
- Date: 22 Jun 2001 16:04:52 +0200
Hello Chema et al!
Here are my .model and .printer files, that I am experimenting with.
Bot work to some extent in HEAD, i.e. module loading and transport
options. PS produces PostScript, and STYLUS prints to my inkjet, if
you have compiled HEAD with OMNi support.
As you see, printer description file is named as MODEL-ID.printer -
I think that is useful for people anxious to messing with actual
files.
If you think, that using elements for everything - i.e. drop
attributes, that is implementation detail, and can be done.
I almost think, I'll port .printer back to using key names, instead
of xml tree, i.e.
</Settings>
<Setting Key="Output/Media/PhysicaSize" Value="A4"/>
<Setting Key="Transport/Backend/FileName" Value="output.ps"/>
</Settings>
For more compact format and easy way to hook these to GConf/ bonobo-conf
at some day.
Best wishes,
Lauris Kaplinski
<?xml version="1.0"?>
<Model Id="GNOME-GENERIC-PS" Version=1.0>
<Name>Generic PostScript printer</Name>
<Vendor>GNOME</Vendor>
<ModelVersion>0.0.1</ModelVersion>
<Options>
<Option Id="Engine">
<Option Id="Backend" Type="List" Default="gnome">
<Item Id="gnome">
<Name>GNOME</Name>
<Key Id="Driver" Value="gnome-print-ps">
<Key Id="LanguageLevel" Value="2.0"/>
</Key>
</Item>
</Option>
</Option>
<Option Id="Output">
<Option Id="Media">
<Option Id="PhysicalSize" Type="List" Default="A4">
<Item Id="A4">
<Name>A4</Name>
<Key Id="Width" Value="595.2755906"/>
<Key Id="Height" Value="841.8897638"/>
</Item>
<Item Id="USLetter">
<Name>US Letter</Name>
<Key Id="Width" Value="612"/>
<Key Id="Height" Value="792"/>
</Item>
<Item Id="USLegal">
<Name>US Legal</Name>
<Key Id="Width" Value="612"/>
<Key Id="Height" Value="1008"/>
</Item>
<Item Id="Executive">
<Name>Executive</Name>
<Key Id="Width" Value="522"/>
<Key Id="Height" Value="756"/>
</Item>
</Option>
</Option>
<Option Id="Resolution" Type="List" Default="360x360">
<Item Id="360x360">
<Name>360 x 360 DPI</Name>
<Key Id="DPI" Value="360">
<Key Id="X" Value="360"/>
<Key Id="Y" Value="360"/>
</Key>
</Item>
<Item Id="720x720">
<Name>720 x 720 DPI</Name>
<Key Id="DPI" Value="720">
<Key Id="X" Value="720"/>
<Key Id="Y" Value="720"/>
</Key>
</Item>
</Option>
</Option>
<Option Id="Transport">
<Option Id="Backend" Type="List" Default="lpr">
<Item Id="file">
<Name>File</Name>
<Key Id="Module" Value="libgnomeprint-file.so"/>
<Option Id="FileName" Type="String" Default="output.ps"/>
</Item>
<Item Id="lpr">
<Name>lpr</Name>
<Key Id="Module" Value="libgnomeprint-lpr.so"/>
<Option Id="Printer" Type="String" Default=""/>
</Item>
</Option>
</Option>
</Options>
</Model>
<?xml version="1.0"?>
<Model Id="STYLUS-COLOR-740">
<Name>Stylus Color 740</Name>
<Vendor>EPSON</Vendor>
<Version>0.0.1</Version>
<Options>
<Option Id="Engine">
<Option Id="Backend" Type="List" Default="omni">
<Item Id="omni">
<Name>OMNi</Name>
<Key Id="Driver" Value="OMNi">
<Key Id="Module" Value="libgnomeprint-omni2.so">
<Key Id="OmniModule" Value="libEpson_Stylus_Color_740.so"/>
</Key>
</Key>
</Item>
<Item Id="GS">
<Name>GhostScript</Name>
<Key Id="Driver" Value="gnome-print-ps"/>
</Item>
</Option>
</Option>
<Option Id="Output">
<Option Id="Media">
<Option Id="PhysicalSize" Type="List" Default="A4">
<Item Id="A4">
<Name>A4</Name>
<Key Id="Width" Value="595.2755906"/>
<Key Id="Height" Value="841.8897638"/>
</Item>
<Item Id="USLetter">
<Name>US Letter</Name>
<Key Id="Width" Value="612"/>
<Key Id="Height" Value="792"/>
</Item>
<Item Id="USLegal">
<Name>US Legal</Name>
<Key Id="Width" Value="612"/>
<Key Id="Height" Value="1008"/>
</Item>
<Item Id="Executive">
<Name>Executive</Name>
<Key Id="Width" Value="522"/>
<Key Id="Height" Value="756"/>
</Item>
</Option>
</Option>
<Option Id="Resolution" Type="List" Default="360x360">
<Item Id="360x360">
<Name>360 x 360 DPI</Name>
<Key Id="DPI" Value="360">
<Key Id="X" Value="360"/>
<Key Id="Y" Value="360"/>
</Key>
</Item>
<Item Id="720x720">
<Name>720 x 720 DPI</Name>
<Key Id="DPI" Value="720">
<Key Id="X" Value="720"/>
<Key Id="Y" Value="720"/>
</Key>
</Item>
</Option>
</Option>
<Option Id="Transport">
<Option Id="Backend" Type="List" Default="file">
<Item Id="file">
<Name>File</Name>
<Key Id="Module" Value="libgnomeprint-file.so"/>
<Option Type="String" Id="FileName" Default="output.omni"/>
</Item>
</Option>
</Option>
</Options>
</Model>
<?xml version="1.0"?>
<Printer Id="GNOME-GENERIC-PS-000989541673031997000000">
<Name>Generic PostScript printer</Name>
<Model>GNOME-GENERIC-PS</Model>
<Settings Id="SETTINGS-000989541673031997000001">
<Name>Default</Name>
<Key Id="Engine">
<Key Id="Backend" Value="gnome"/>
</Key>
<Key Id="Output">
<Key Id="Media">
<Key Id="PhysicalSize" Value="A4"/>
</Key>
<Key Id="Resolution" Value="360x360"/>
</Key>
<Key Id="Transport">
<Key Id="Backend" Value="file">
<Key Id="FileName" Value="output.ps"/>
</Key>
</Key>
</Settings>
</Printer>
<?xml version="1.0"?>
<Printer Id="STYLUS-COLOR-740-000989526338006212000000">
<Name>Stylus Color 740</Name>
<Model>STYLUS-COLOR-740</Model>
<Settings Id="SETTINGS-000989526338006212000001">
<Name>Default</Name>
<Key Id="Engine">
<Key Id="Backend" Value="omni"/>
</Key>
<Key Id="Output">
<Key Id="Media">
<Key Id="PhysicalSize" Value="A4"/>
</Key>
<Key Id="Resolution" Value="360x360"/>
</Key>
<Key Id="Transport">
<Key Id="Backend" Value="file">
<Key Id="FileName" Value="output.omni"/>
</Key>
</Key>
</Settings>
</Printer>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]