printingservices/printerdrivers/canon/CANON.PD
author Faisal Memon <faisal.memon@nokia.com>
Fri, 22 Oct 2010 10:13:49 +0100
branchbug235_bringup_0
changeset 202 5b9bcf58d962
parent 0 5d03bc08d59c
permissions -rw-r--r--
Add vgClear code to get drawing on screen

! CANON.PD
! Printer driver file for Canon Bubblejet printers

Resources CanonResources
	Reset "<27>[\<04><00><00><00><01><68><27>[T<04><00><00><00><03><82><27><6><27><0><27>4<27>3<170>"

! set n/360 graphics line spacing mode
! Set code page 850
! Set character set 2
! Set 1/8 inch line spacing
! Set page length in  lines
! Set to top line of page
! Set graphics line spacing delta to 170/216
    SetPageSize         "<27>X<00><00><27>C<00>%c"
    PreAmble            ""
! Set left/right margin to 0
! size using the values in the model.
    PostAmble           "<12><27>[K<01><00><00>"
! Form feeds then resets printer to user defined settings
    BoldOn              "<27>G"
    BoldOff             "<27>H"
    ItalicOn            ""
    ItalicOff           ""
    UnderlineOn         "<27>-<01>"
    UnderlineOff        "<27>-<00>"
    StrikethroughOn     "<27>-<01>"
    StrikethroughOff    "<27>-<01>"
    NewPage             "<12><10>"
    IncrementXPos       "<27>d%w"
!Increments in n/120 inch-max is 255/120   
    IncrementYPos       "<27>J%c"
    CarriageReturn      "<13>" 
    BitmapStart         "<27>[g%w<11>"
    BitmapEnd           "<13>"
EndResources

Translates Page850ToWindows
	130:44  ! low quotation mark mapped to comma
	131:159 ! italic f
	132:44  ! double low quotation marks mapped to comma
	133:46  ! ellipses mapped to full stop
	134:197 ! Dagger mapped to cross
	135:32  ! Double dagger mapped to space
	136:94  ! mapped to circumflex accent
	137:32	! per mille sign mapped to space
	138:83	! S with caron mapped to S.
	139:60	! single left pointing angle quotation mark
	140:32	! Capital OE ligature mapped to space
	145:39  ! left single quotation mark mapped to apostrophe
	146:39  ! right single quotation mark mapped to apostrophe
	147:34  ! left double quotation mark mapped to quotation mark
	148:34  ! right double quotation mark mapped to quotation mark
	149:254	! bullet
	150:95  ! en-dash
	151:196 ! em-dash horizontal line
   	152:126 ! small tilde mapped to tilde
  	153:169 ! Trademark symbol mapped to (R)
  	154:115 ! s with caron mapped to s
 	155:62	! single right pointing angle quotation mark mapped to double
	156:32	! small oe ligature	mapped to space
	159:89	! Y with diaeresis mapped to Y
	160:32  ! no-break space mapped to space
	161:173	! Inverted excl. mark
	162:99	! cent sign mapped to c
	163:156	! Pound sign
	164:207	! currency symbol
	165:190	! Yen symbol
	166:124	! Vertical bar
	167:245 ! 
	168:249	! diaeresis
	169:184	! Copyright symbol
	170:166	! Feminine ordinal indicator
	171:174 ! Double left arrow
	172:170 !
	173:240	! Soft hyphen
	174:169	! Registered sign
	175:238	! Macron
	176:248 ! Superscript o
	177:241 ! Plus-minus
	178:253 ! Superscript 2
	179:252	! Superscript 3 
	180:239	! Acute accent
	181:230	! Micro sign
	182:244 ! Pilcrow sign
	183:250	! Middle dot
	184:247	! Cedilla  
	185:251	! Superscript 1
	186:248 ! Superscript o
	187:175 ! Double right arrow
	188:172 ! quarter
	189:171 ! half
	190:243	! Three quarters
	191:168 ! Inverted question mark
	192:183	! A grave
	193:181	! A acute 
	194:182	! A circumflex
	195:199	! A tilde 
	196:142 ! A diaresis
	197:143 ! A with superscript o
	198:146 ! AE
	199:128 ! C cedilla
	200:212	! E grave
	201:144	! E acute
	202:210 ! E circumflex
	203:211 ! E diaresis
	204:73	! I grave mapped to I
	205:214	! I acute 
	206:215	! I circumflex
	207:216	! I diaeresis
	208:209	! 
	209:165 ! N with tilde
	210:227	! O grave
	211:224	! O acute
	212:226	! O circumflex
	213:229	! O tilde
	214:153 ! O diaresis
	215:158	! Multiplication sign
	216:157	! O with stroke
	217:235	! U with grave
	218:233	! U acute
	219:234	! U circumflex
	220:154	! U diaresis
	221:237	! Y acute
	222:232	! Capital thorn
	223:"<27>[T<4><0><0><0><03><95><225><27>[T<4><0><0><0><03><82>" ! small sharp S
	224:133 ! a grave
	225:160 ! a acute
	226:131 ! a circumflex
	227:198	! a tilde
	228:132 ! a diaresis
	229:134 ! a superscript o
	230:145 ! ae
	231:135 ! c circumflex
	232:138 ! e grave
	233:130 ! e acute
	234:136 ! e circumflex
	235:137 ! e diaresis
	236:141 ! i grave
	237:161 ! i acute
	238:140 ! i circumflex
	239:139 ! i diaresis
	240:208	! Small letter eth
	241:164 ! n tilde
	242:149 ! o grave
	243:162 ! o acute
	244:147 ! o circumflex
	245:228	! o tilde
	246:148 ! o diaresis
	247:246 ! divide sign
	248:155 ! Small o with stroke
	249:151 ! u grave
	250:163 ! u acute
	251:150 ! u circumflex
	252:129 ! u diaresis
	253:236	! y acute
	254:231	! small letter thorn
	255:152 ! y diaresis
  EndTranslates

FontInfo CourierC12
    MaxNormalCharWidth 11
    Ascent 29
    CodeSection 0:255
	0:11
    EndCodeSection
EndFontInfo

FontInfo Courier12
    MaxNormalCharWidth 18
    Ascent 29
    CodeSection 0:255
	0:18
    EndCodeSection
EndFontInfo

FontInfo Courier24
    MaxNormalCharWidth 36
    Ascent 58
    CodeSection 0:255
	0:36
    EndCodeSection
EndFontInfo

FontInfo Prestige10
    MaxNormalCharWidth 15
    Ascent 15
    CodeSection 0:255
	0:15
    EndCodeSection
EndFontInfo

FontInfo Prestige20
    MaxNormalCharWidth 30
    Ascent 30
    CodeSection 0:255
	0:30
    EndCodeSection
EndFontInfo

TypefaceFonts Courier
    Name "Courier" Serif
    Translates Page850ToWindows
    FontHeight
	Height     240
	Normal     Courier12
	Bold       Courier12
	Italic     Courier12
	BoldItalic Courier12
	Command "<27>I<02><27>[@<04><00><00><00><01><01>"
	EndFontHeight 
    FontHeight
	Height     480
	Normal     Courier24
	Bold       Courier24
	Italic     Courier24
	BoldItalic Courier24
	Command "<27>I<02><27>[@<04><00><00><00><02><02>"
    EndFontHeight
EndTypefaceFonts

TypefaceFonts CourierCompressed
    Name "Courier (compressed)" Serif
    Translates Page850ToWindows
    FontHeight
	Height     200
	Normal     CourierC12
	Bold       CourierC12
	Italic     CourierC12
	BoldItalic CourierC12
	Command "<27>I<18><27>[@<04><00><00><00><01><01>"
    EndFontHeight
EndTypefaceFonts

TypefaceFonts Prestige
    Name "Prestige" 
    Translates  Page850ToWindows
    FontHeight
	Height     200
	Normal     Prestige10
	Bold       Prestige10
	Italic     Prestige10
	BoldItalic Prestige10
	Command  "<27>I<10><27>[@<04><00><00><00><01><01>"
    EndFontHeight
    FontHeight
	Height     400
	Normal     Prestige20
	Bold       Prestige20
	Italic     Prestige20
	BoldItalic Prestige20
	Command  "<27>I<10><27>[@<04><00><00><00><02><02>"
    EndFontHeight
EndTypefaceFonts

Model CanonBubblejetBJ
    Name "Canon Bubblejet (BJ mode)" RequiresPrinterPort
	Uid 268438803
    Flags 1 
! Landscape not available
    Resources CanonResources
    KPixelWidth 8000   
! Twips = 180 dots per inch
    KPixelHeight 8000
! Twips = 180 dots per inch
	PortraitOffset  23 90
	LandscapeOffset 23 90 
    MinMarginLeft   23
    MinMarginRight  23
    MinMarginTop    90
    MinMarginBottom 90
    DisplayMode   Gray2
    TypefaceFontss
	Courier
	CourierCompressed
	Prestige
    EndTypefaceFontss
EndModel

PdrStoreFile
    PDLName		"Canon"
	PDLUid 		268438802
    Models
	CanonBubblejetBJ
    EndModels
EndPdrStoreFile