Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

971 lines
37 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *Include: "StdNames.gpd"
  7. *GPDFileVersion: "1.0"
  8. *GPDFileName: "stjs11cj.gpd"
  9. *CodePage: 1252
  10. *ModelName: "Star JS-1001CL ESC/P"
  11. *MasterUnits: PAIR(360, 360)
  12. *ResourceDLL: "stepjres.dll"
  13. *PrinterType: SERIAL
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. }
  22. *Option: LANDSCAPE_CC270
  23. {
  24. *rcNameID: =LANDSCAPE_DISPLAY
  25. }
  26. }
  27. *Feature: InputBin
  28. {
  29. *rcNameID: =PAPER_SOURCE_DISPLAY
  30. *DefaultOption: Option1
  31. *Option: Option1
  32. {
  33. *rcNameID: 259
  34. *OptionID: 259
  35. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  36. }
  37. *Option: Option2
  38. {
  39. *rcNameID: 261
  40. *OptionID: 261
  41. }
  42. *Option: Option3
  43. {
  44. *rcNameID: 263
  45. *OptionID: 263
  46. }
  47. }
  48. *Feature: Resolution
  49. {
  50. *rcNameID: =RESOLUTION_DISPLAY
  51. *DefaultOption: Option1
  52. *Option: Option1
  53. {
  54. *Name: "180 x 180 " =DOTS_PER_INCH
  55. *DPI: PAIR(180, 180)
  56. *TextDPI: PAIR(180, 180)
  57. *PinsPerLogPass: 24
  58. *PinsPerPhysPass: 24
  59. *MinStripBlankPixels: 360
  60. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  61. *SpotDiameter: 140
  62. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  63. }
  64. *Option: Option2
  65. {
  66. *Name: "360 x 180 " =DOTS_PER_INCH
  67. *DPI: PAIR(360, 180)
  68. *TextDPI: PAIR(360, 180)
  69. *PinsPerLogPass: 24
  70. *PinsPerPhysPass: 24
  71. *MinStripBlankPixels: 240
  72. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  73. *SpotDiameter: 120
  74. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  75. }
  76. *Option: Option3
  77. {
  78. *Name: "120 x 180 " =DOTS_PER_INCH
  79. *DPI: PAIR(120, 180)
  80. *TextDPI: PAIR(120, 180)
  81. *PinsPerLogPass: 24
  82. *PinsPerPhysPass: 24
  83. *MinStripBlankPixels: 240
  84. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  85. *SpotDiameter: 120
  86. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  87. }
  88. *Option: Option4
  89. {
  90. *Name: "360 x 360 " =DOTS_PER_INCH
  91. *DPI: PAIR(360, 360)
  92. *TextDPI: PAIR(360, 360)
  93. *PinsPerLogPass: 48
  94. *PinsPerPhysPass: 24
  95. *MinStripBlankPixels: 240
  96. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  97. *SpotDiameter: 120
  98. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  99. }
  100. }
  101. *Feature: PaperSize
  102. {
  103. *rcNameID: =PAPER_SIZE_DISPLAY
  104. *DefaultOption: A4
  105. *Option: A4
  106. {
  107. *rcNameID: =A4_DISPLAY
  108. *Command: CmdSelect
  109. {
  110. *Order: DOC_SETUP.8
  111. *Cmd: "<1B>2<1B>CF"
  112. }
  113. *switch: InputBin
  114. {
  115. *case: Option1
  116. {
  117. *PrintableArea: PAIR(2877, 3968)
  118. *PrintableOrigin: PAIR(50, 120)
  119. *switch: Resolution
  120. {
  121. *case: Option1
  122. {
  123. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  124. *PrintableArea: PAIR(2876, 3968)
  125. }
  126. *case: Option3
  127. {
  128. *% Warning: the following printable width is adjusted (2877->2874) so it is divisible by the resolution X scale.
  129. *PrintableArea: PAIR(2874, 3968)
  130. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  131. *PrintableOrigin: PAIR(51, 120)
  132. }
  133. }
  134. }
  135. *case: Option2
  136. {
  137. *PrintableArea: PAIR(2877, 3908)
  138. *PrintableOrigin: PAIR(50, 120)
  139. *switch: Resolution
  140. {
  141. *case: Option1
  142. {
  143. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  144. *PrintableArea: PAIR(2876, 3908)
  145. }
  146. *case: Option3
  147. {
  148. *% Warning: the following printable width is adjusted (2877->2874) so it is divisible by the resolution X scale.
  149. *PrintableArea: PAIR(2874, 3908)
  150. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  151. *PrintableOrigin: PAIR(51, 120)
  152. }
  153. }
  154. }
  155. *case: Option3
  156. {
  157. *PrintableArea: PAIR(2877, 4208)
  158. *PrintableOrigin: PAIR(50, 0)
  159. *switch: Resolution
  160. {
  161. *case: Option1
  162. {
  163. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  164. *PrintableArea: PAIR(2876, 4208)
  165. }
  166. *case: Option3
  167. {
  168. *% Warning: the following printable width is adjusted (2877->2874) so it is divisible by the resolution X scale.
  169. *PrintableArea: PAIR(2874, 4208)
  170. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  171. *PrintableOrigin: PAIR(51, 0)
  172. }
  173. }
  174. }
  175. }
  176. }
  177. *Option: A4_ROTATED
  178. {
  179. *rcNameID: =A4_ROTATED_DISPLAY
  180. *Command: CmdSelect
  181. {
  182. *Order: DOC_SETUP.8
  183. *Cmd: "<1B>2<1B>C1"
  184. }
  185. *switch: InputBin
  186. {
  187. *case: Option1
  188. {
  189. *PrintableArea: PAIR(2880, 2737)
  190. *PrintableOrigin: PAIR(50, 120)
  191. *switch: Resolution
  192. {
  193. *case: Option1
  194. {
  195. *% Warning: the following printable length is adjusted (2737->2736) so it is divisible by the resolution Y scale.
  196. *PrintableArea: PAIR(2880, 2736)
  197. }
  198. *case: Option2
  199. {
  200. *% Warning: the following printable length is adjusted (2737->2736) so it is divisible by the resolution Y scale.
  201. *PrintableArea: PAIR(2880, 2736)
  202. }
  203. *case: Option3
  204. {
  205. *% Warning: the following printable width is adjusted (4108->4107) so it is divisible by the resolution X scale.
  206. *% Warning: the following printable length is adjusted (2737->2736) so it is divisible by the resolution Y scale.
  207. *PrintableArea: PAIR(2880, 2736)
  208. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  209. *PrintableOrigin: PAIR(51, 120)
  210. }
  211. }
  212. }
  213. *case: Option2
  214. {
  215. *PrintableArea: PAIR(2880, 2677)
  216. *PrintableOrigin: PAIR(50, 120)
  217. *switch: Resolution
  218. {
  219. *case: Option1
  220. {
  221. *% Warning: the following printable length is adjusted (2677->2676) so it is divisible by the resolution Y scale.
  222. *PrintableArea: PAIR(2880, 2676)
  223. }
  224. *case: Option2
  225. {
  226. *% Warning: the following printable length is adjusted (2677->2676) so it is divisible by the resolution Y scale.
  227. *PrintableArea: PAIR(2880, 2676)
  228. }
  229. *case: Option3
  230. {
  231. *% Warning: the following printable width is adjusted (4108->4107) so it is divisible by the resolution X scale.
  232. *% Warning: the following printable length is adjusted (2677->2676) so it is divisible by the resolution Y scale.
  233. *PrintableArea: PAIR(2880, 2676)
  234. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  235. *PrintableOrigin: PAIR(51, 120)
  236. }
  237. }
  238. }
  239. *case: Option3
  240. {
  241. *PrintableArea: PAIR(2880, 2977)
  242. *PrintableOrigin: PAIR(50, 0)
  243. *switch: Resolution
  244. {
  245. *case: Option1
  246. {
  247. *% Warning: the following printable length is adjusted (2977->2976) so it is divisible by the resolution Y scale.
  248. *PrintableArea: PAIR(2880, 2976)
  249. }
  250. *case: Option2
  251. {
  252. *% Warning: the following printable length is adjusted (2977->2976) so it is divisible by the resolution Y scale.
  253. *PrintableArea: PAIR(2880, 2976)
  254. }
  255. *case: Option3
  256. {
  257. *% Warning: the following printable width is adjusted (4108->4107) so it is divisible by the resolution X scale.
  258. *% Warning: the following printable length is adjusted (2977->2976) so it is divisible by the resolution Y scale.
  259. *PrintableArea: PAIR(2880, 2976)
  260. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  261. *PrintableOrigin: PAIR(51, 0)
  262. }
  263. }
  264. }
  265. }
  266. }
  267. *Option: A3
  268. {
  269. *rcNameID: =A3_DISPLAY
  270. *Command: CmdSelect
  271. {
  272. *Order: DOC_SETUP.8
  273. *Cmd: "<1B>2<1B>Cc"
  274. }
  275. *switch: InputBin
  276. {
  277. *case: Option1
  278. {
  279. *PrintableArea: PAIR(2880, 5686)
  280. *PrintableOrigin: PAIR(50, 120)
  281. *switch: Resolution
  282. {
  283. *case: Option3
  284. {
  285. *% Warning: the following printable width is adjusted (4108->4107) so it is divisible by the resolution X scale.
  286. *PrintableArea: PAIR(2880, 5686)
  287. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  288. *PrintableOrigin: PAIR(51, 120)
  289. }
  290. }
  291. }
  292. *case: Option2
  293. {
  294. *PrintableArea: PAIR(2880, 5654)
  295. *PrintableOrigin: PAIR(50, 120)
  296. *switch: Resolution
  297. {
  298. *case: Option3
  299. {
  300. *% Warning: the following printable width is adjusted (4108->4107) so it is divisible by the resolution X scale.
  301. *PrintableArea: PAIR(2880, 5654)
  302. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  303. *PrintableOrigin: PAIR(51, 120)
  304. }
  305. }
  306. }
  307. *case: Option3
  308. {
  309. *PrintableArea: PAIR(2880, 5954)
  310. *PrintableOrigin: PAIR(50, 0)
  311. *switch: Resolution
  312. {
  313. *case: Option3
  314. {
  315. *% Warning: the following printable width is adjusted (4108->4107) so it is divisible by the resolution X scale.
  316. *PrintableArea: PAIR(2880, 5954)
  317. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  318. *PrintableOrigin: PAIR(51, 0)
  319. }
  320. }
  321. }
  322. }
  323. }
  324. *Option: B4
  325. {
  326. *rcNameID: =B4_DISPLAY
  327. *Command: CmdSelect
  328. {
  329. *Order: DOC_SETUP.8
  330. *Cmd: "<1B>2<1B>CU"
  331. }
  332. *switch: InputBin
  333. {
  334. *case: Option1
  335. {
  336. *PrintableArea: PAIR(2863, 4849)
  337. *PrintableOrigin: PAIR(390, 120)
  338. *switch: Resolution
  339. {
  340. *case: Option1
  341. {
  342. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  343. *% Warning: the following printable length is adjusted (4919->4918) so it is divisible by the resolution Y scale.
  344. *PrintableArea: PAIR(2862, 4848)
  345. }
  346. *case: Option2
  347. {
  348. *% Warning: the following printable length is adjusted (4919->4918) so it is divisible by the resolution Y scale.
  349. *PrintableArea: PAIR(2863, 4849)
  350. }
  351. *case: Option3
  352. {
  353. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  354. *% Warning: the following printable length is adjusted (4919->4918) so it is divisible by the resolution Y scale.
  355. *PrintableArea: PAIR(2862, 4849)
  356. }
  357. }
  358. }
  359. *case: Option2
  360. {
  361. *PrintableArea: PAIR(2863, 4859)
  362. *PrintableOrigin: PAIR(390, 120)
  363. *switch: Resolution
  364. {
  365. *case: Option1
  366. {
  367. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  368. *% Warning: the following printable length is adjusted (4859->4858) so it is divisible by the resolution Y scale.
  369. *PrintableArea: PAIR(2862, 4858)
  370. }
  371. *case: Option2
  372. {
  373. *% Warning: the following printable length is adjusted (4859->4858) so it is divisible by the resolution Y scale.
  374. *PrintableArea: PAIR(2863, 4858)
  375. }
  376. *case: Option3
  377. {
  378. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  379. *% Warning: the following printable length is adjusted (4859->4858) so it is divisible by the resolution Y scale.
  380. *PrintableArea: PAIR(2862, 4858)
  381. }
  382. }
  383. }
  384. *case: Option3
  385. {
  386. *PrintableArea: PAIR(2863, 5159)
  387. *PrintableOrigin: PAIR(390, 0)
  388. *switch: Resolution
  389. {
  390. *case: Option1
  391. {
  392. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  393. *% Warning: the following printable length is adjusted (5159->5158) so it is divisible by the resolution Y scale.
  394. *PrintableArea: PAIR(2862, 5158)
  395. }
  396. *case: Option2
  397. {
  398. *% Warning: the following printable length is adjusted (5159->5158) so it is divisible by the resolution Y scale.
  399. *PrintableArea: PAIR(2863, 5158)
  400. }
  401. *case: Option3
  402. {
  403. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  404. *% Warning: the following printable length is adjusted (5159->5158) so it is divisible by the resolution Y scale.
  405. *PrintableArea: PAIR(2862, 5158)
  406. }
  407. }
  408. }
  409. }
  410. }
  411. *Option: B5
  412. {
  413. *rcNameID: =B5_DISPLAY
  414. *Command: CmdSelect
  415. {
  416. *Order: DOC_SETUP.8
  417. *Cmd: "<1B>2<1B>C%<"
  418. }
  419. *switch: InputBin
  420. {
  421. *case: Option1
  422. {
  423. *PrintableArea: PAIR(2481, 3403)
  424. *PrintableOrigin: PAIR(50, 120)
  425. *switch: Resolution
  426. {
  427. *case: Option1
  428. {
  429. *% Warning: the following printable width is adjusted (2481->2480) so it is divisible by the resolution X scale.
  430. *% Warning: the following printable length is adjusted (3403->3402) so it is divisible by the resolution Y scale.
  431. *PrintableArea: PAIR(2480, 3402)
  432. }
  433. *case: Option2
  434. {
  435. *% Warning: the following printable length is adjusted (3403->3402) so it is divisible by the resolution Y scale.
  436. *PrintableArea: PAIR(2481, 3402)
  437. }
  438. *case: Option3
  439. {
  440. *% Warning: the following printable width is adjusted (2481->2478) so it is divisible by the resolution X scale.
  441. *% Warning: the following printable length is adjusted (3403->3402) so it is divisible by the resolution Y scale.
  442. *PrintableArea: PAIR(2478, 3402)
  443. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  444. *PrintableOrigin: PAIR(51, 120)
  445. }
  446. }
  447. }
  448. *case: Option2
  449. {
  450. *PrintableArea: PAIR(2481, 3343)
  451. *PrintableOrigin: PAIR(50, 120)
  452. *switch: Resolution
  453. {
  454. *case: Option1
  455. {
  456. *% Warning: the following printable width is adjusted (2481->2480) so it is divisible by the resolution X scale.
  457. *% Warning: the following printable length is adjusted (3343->3342) so it is divisible by the resolution Y scale.
  458. *PrintableArea: PAIR(2480, 3342)
  459. }
  460. *case: Option2
  461. {
  462. *% Warning: the following printable length is adjusted (3343->3342) so it is divisible by the resolution Y scale.
  463. *PrintableArea: PAIR(2481, 3342)
  464. }
  465. *case: Option3
  466. {
  467. *% Warning: the following printable width is adjusted (2481->2478) so it is divisible by the resolution X scale.
  468. *% Warning: the following printable length is adjusted (3343->3342) so it is divisible by the resolution Y scale.
  469. *PrintableArea: PAIR(2478, 3342)
  470. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  471. *PrintableOrigin: PAIR(51, 120)
  472. }
  473. }
  474. }
  475. *case: Option3
  476. {
  477. *PrintableArea: PAIR(2481, 3643)
  478. *PrintableOrigin: PAIR(50, 0)
  479. *switch: Resolution
  480. {
  481. *case: Option1
  482. {
  483. *% Warning: the following printable width is adjusted (2481->2480) so it is divisible by the resolution X scale.
  484. *% Warning: the following printable length is adjusted (3643->3642) so it is divisible by the resolution Y scale.
  485. *PrintableArea: PAIR(2480, 3642)
  486. }
  487. *case: Option2
  488. {
  489. *% Warning: the following printable length is adjusted (3643->3642) so it is divisible by the resolution Y scale.
  490. *PrintableArea: PAIR(2481, 3642)
  491. }
  492. *case: Option3
  493. {
  494. *% Warning: the following printable width is adjusted (2481->2478) so it is divisible by the resolution X scale.
  495. *% Warning: the following printable length is adjusted (3643->3642) so it is divisible by the resolution Y scale.
  496. *PrintableArea: PAIR(2478, 3642)
  497. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  498. *PrintableOrigin: PAIR(51, 0)
  499. }
  500. }
  501. }
  502. }
  503. }
  504. *Option: B5_JIS_ROTATED
  505. {
  506. *rcNameID: =B5_JIS_ROTATED_DISPLAY
  507. *Command: CmdSelect
  508. {
  509. *Order: DOC_SETUP.8
  510. *Cmd: "<1B>2<1B>C*"
  511. }
  512. *switch: InputBin
  513. {
  514. *case: Option1
  515. {
  516. *PrintableArea: PAIR(2863, 2341)
  517. *PrintableOrigin: PAIR(390, 120)
  518. *switch: Resolution
  519. {
  520. *case: Option1
  521. {
  522. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  523. *% Warning: the following printable length is adjusted (2341->2340) so it is divisible by the resolution Y scale.
  524. *PrintableArea: PAIR(2862, 2340)
  525. }
  526. *case: Option2
  527. {
  528. *% Warning: the following printable length is adjusted (2341->2340) so it is divisible by the resolution Y scale.
  529. *PrintableArea: PAIR(2863, 2340)
  530. }
  531. *case: Option3
  532. {
  533. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  534. *% Warning: the following printable length is adjusted (2341->2340) so it is divisible by the resolution Y scale.
  535. *PrintableArea: PAIR(2862, 2340)
  536. }
  537. }
  538. }
  539. *case: Option2
  540. {
  541. *PrintableArea: PAIR(2863, 2281)
  542. *PrintableOrigin: PAIR(390, 120)
  543. *switch: Resolution
  544. {
  545. *case: Option1
  546. {
  547. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  548. *% Warning: the following printable length is adjusted (2281->2280) so it is divisible by the resolution Y scale.
  549. *PrintableArea: PAIR(2862, 2280)
  550. }
  551. *case: Option2
  552. {
  553. *% Warning: the following printable length is adjusted (2281->2280) so it is divisible by the resolution Y scale.
  554. *PrintableArea: PAIR(2863, 2280)
  555. }
  556. *case: Option3
  557. {
  558. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  559. *% Warning: the following printable length is adjusted (2281->2280) so it is divisible by the resolution Y scale.
  560. *PrintableArea: PAIR(2862, 2280)
  561. }
  562. }
  563. }
  564. *case: Option3
  565. {
  566. *PrintableArea: PAIR(2863, 2581)
  567. *PrintableOrigin: PAIR(390, 0)
  568. *switch: Resolution
  569. {
  570. *case: Option1
  571. {
  572. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  573. *% Warning: the following printable length is adjusted (2581->2580) so it is divisible by the resolution Y scale.
  574. *PrintableArea: PAIR(2862, 2580)
  575. }
  576. *case: Option2
  577. {
  578. *% Warning: the following printable length is adjusted (2581->2580) so it is divisible by the resolution Y scale.
  579. *PrintableArea: PAIR(2863, 2580)
  580. }
  581. *case: Option3
  582. {
  583. *% Warning: the following printable width is adjusted (2863->2862) so it is divisible by the resolution X scale.
  584. *% Warning: the following printable length is adjusted (2581->2580) so it is divisible by the resolution Y scale.
  585. *PrintableArea: PAIR(2862, 2580)
  586. }
  587. }
  588. }
  589. }
  590. }
  591. *Option: 10X11
  592. {
  593. *rcNameID: =10X11_DISPLAY
  594. *Command: CmdSelect
  595. {
  596. *Order: DOC_SETUP.8
  597. *Cmd: "<1B>2<1B>C<000B>"
  598. }
  599. *switch: InputBin
  600. {
  601. *case: Option1
  602. {
  603. *PrintableArea: PAIR(2880, 3720)
  604. *PrintableOrigin: PAIR(0, 120)
  605. }
  606. *case: Option2
  607. {
  608. *PrintableArea: PAIR(2880, 3660)
  609. *PrintableOrigin: PAIR(0, 120)
  610. }
  611. *case: Option3
  612. {
  613. *PrintableArea: PAIR(2880, 3960)
  614. *PrintableOrigin: PAIR(0, 0)
  615. }
  616. }
  617. }
  618. *Option: JAPANESE_POSTCARD
  619. {
  620. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  621. *Command: CmdSelect
  622. {
  623. *Order: DOC_SETUP.8
  624. *Cmd: "<1B>2<1B>C%""
  625. }
  626. *switch: InputBin
  627. {
  628. *case: Option1
  629. {
  630. *PrintableArea: PAIR(1318, 1859)
  631. *PrintableOrigin: PAIR(50, 120)
  632. *switch: Resolution
  633. {
  634. *case: Option1
  635. {
  636. *% Warning: the following printable length is adjusted (1859->1858) so it is divisible by the resolution Y scale.
  637. *PrintableArea: PAIR(1318, 1858)
  638. }
  639. *case: Option2
  640. {
  641. *% Warning: the following printable length is adjusted (1859->1858) so it is divisible by the resolution Y scale.
  642. *PrintableArea: PAIR(1318, 1858)
  643. }
  644. *case: Option3
  645. {
  646. *% Warning: the following printable width is adjusted (1318->1317) so it is divisible by the resolution X scale.
  647. *% Warning: the following printable length is adjusted (1859->1858) so it is divisible by the resolution Y scale.
  648. *PrintableArea: PAIR(1317, 1858)
  649. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  650. *PrintableOrigin: PAIR(51, 120)
  651. }
  652. }
  653. }
  654. *case: Option2
  655. {
  656. *PrintableArea: PAIR(1318, 1799)
  657. *PrintableOrigin: PAIR(50, 120)
  658. *switch: Resolution
  659. {
  660. *case: Option1
  661. {
  662. *% Warning: the following printable length is adjusted (1799->1798) so it is divisible by the resolution Y scale.
  663. *PrintableArea: PAIR(1318, 1798)
  664. }
  665. *case: Option2
  666. {
  667. *% Warning: the following printable length is adjusted (1799->1798) so it is divisible by the resolution Y scale.
  668. *PrintableArea: PAIR(1318, 1798)
  669. }
  670. *case: Option3
  671. {
  672. *% Warning: the following printable width is adjusted (1318->1317) so it is divisible by the resolution X scale.
  673. *% Warning: the following printable length is adjusted (1799->1798) so it is divisible by the resolution Y scale.
  674. *PrintableArea: PAIR(1317, 1798)
  675. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  676. *PrintableOrigin: PAIR(51, 120)
  677. }
  678. }
  679. }
  680. *case: Option3
  681. {
  682. *PrintableArea: PAIR(1318, 2099)
  683. *PrintableOrigin: PAIR(50, 0)
  684. *switch: Resolution
  685. {
  686. *case: Option1
  687. {
  688. *% Warning: the following printable length is adjusted (2099->2098) so it is divisible by the resolution Y scale.
  689. *PrintableArea: PAIR(1318, 2098)
  690. }
  691. *case: Option2
  692. {
  693. *% Warning: the following printable length is adjusted (2099->2098) so it is divisible by the resolution Y scale.
  694. *PrintableArea: PAIR(1318, 2098)
  695. }
  696. *case: Option3
  697. {
  698. *% Warning: the following printable width is adjusted (1318->1317) so it is divisible by the resolution X scale.
  699. *% Warning: the following printable length is adjusted (2099->2098) so it is divisible by the resolution Y scale.
  700. *PrintableArea: PAIR(1317, 2098)
  701. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  702. *PrintableOrigin: PAIR(51, 0)
  703. }
  704. }
  705. }
  706. }
  707. }
  708. *Option: JAPANESE_POSTCARD_ROTATED
  709. {
  710. *rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
  711. *Command: CmdSelect
  712. {
  713. *Order: DOC_SETUP.8
  714. *Cmd: "<1B>2<1B>C<17>"
  715. }
  716. *switch: InputBin
  717. {
  718. *case: Option1
  719. {
  720. *PrintableArea: PAIR(1999, 1178)
  721. *PrintableOrigin: PAIR(50, 120)
  722. *switch: Resolution
  723. {
  724. *case: Option1
  725. {
  726. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  727. *PrintableArea: PAIR(1998, 1178)
  728. }
  729. *case: Option3
  730. {
  731. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  732. *PrintableArea: PAIR(1998, 1178)
  733. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  734. *PrintableOrigin: PAIR(51, 120)
  735. }
  736. }
  737. }
  738. *case: Option2
  739. {
  740. *PrintableArea: PAIR(1999, 1118)
  741. *PrintableOrigin: PAIR(50, 120)
  742. *switch: Resolution
  743. {
  744. *case: Option1
  745. {
  746. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  747. *PrintableArea: PAIR(1998, 1118)
  748. }
  749. *case: Option3
  750. {
  751. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  752. *PrintableArea: PAIR(1998, 1118)
  753. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  754. *PrintableOrigin: PAIR(51, 120)
  755. }
  756. }
  757. }
  758. *case: Option3
  759. {
  760. *PrintableArea: PAIR(1999, 1418)
  761. *PrintableOrigin: PAIR(50, 0)
  762. *switch: Resolution
  763. {
  764. *case: Option1
  765. {
  766. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  767. *PrintableArea: PAIR(1998, 1418)
  768. }
  769. *case: Option3
  770. {
  771. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  772. *PrintableArea: PAIR(1998, 1418)
  773. *% Warning: the following printable origin X is adjusted (50->51) so it is divisible by the resolution X scale.
  774. *PrintableOrigin: PAIR(51, 0)
  775. }
  776. }
  777. }
  778. }
  779. }
  780. *Option: CUSTOMSIZE
  781. {
  782. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  783. *MinSize: PAIR(1417, 1417)
  784. *MaxSize: PAIR(4209, 5952)
  785. *MaxPrintableWidth: 4209
  786. *MinLeftMargin: 0
  787. *CenterPrintable?: FALSE
  788. *switch: InputBin
  789. {
  790. *case: Option1
  791. {
  792. *TopMargin: 120
  793. *BottomMargin: 120
  794. }
  795. *case: Option2
  796. {
  797. *TopMargin: 120
  798. *BottomMargin: 180
  799. }
  800. *case: Option3
  801. {
  802. *TopMargin: 0
  803. *BottomMargin: 0
  804. }
  805. }
  806. *Command: CmdSelect
  807. {
  808. *Order: DOC_SETUP.8
  809. *Cmd: "<1B>2<1B>C" %c[0,127]{max_repeat((PhysPaperLength / 60) )}
  810. }
  811. }
  812. }
  813. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A3)
  814. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A4_ROTATED)
  815. *InvalidCombination: LIST(InputBin.Option2, PaperSize.10X11)
  816. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A4)
  817. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A4_ROTATED)
  818. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A3)
  819. *InvalidCombination: LIST(InputBin.Option3, PaperSize.B4)
  820. *InvalidCombination: LIST(InputBin.Option3, PaperSize.B5)
  821. *InvalidCombination: LIST(InputBin.Option3, PaperSize.B5_JIS_ROTATED)
  822. *InvalidCombination: LIST(InputBin.Option3, PaperSize.JAPANESE_POSTCARD)
  823. *InvalidCombination: LIST(InputBin.Option3, PaperSize.JAPANESE_POSTCARD_ROTATED)
  824. *Feature: PrintQuality
  825. {
  826. *rcNameID: =TEXT_QUALITY_DISPLAY
  827. *DefaultOption: LETTER_QUALITY
  828. *Option: LETTER_QUALITY
  829. {
  830. *rcNameID: =LETTER_QUALITY_DISPLAY
  831. *Command: CmdSelect
  832. {
  833. *Order: DOC_SETUP.6
  834. *Cmd: "<1B>x<011C>x<00>"
  835. }
  836. }
  837. *Option: DRAFT_QUALITY
  838. {
  839. *rcNameID: =DRAFT_QUALITY_DISPLAY
  840. *Command: CmdSelect
  841. {
  842. *Order: DOC_SETUP.6
  843. *Cmd: "<1B>x<001C>x<01>"
  844. }
  845. }
  846. }
  847. *Feature: ColorMode
  848. {
  849. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  850. *DefaultOption: Color
  851. *Option: Mono
  852. {
  853. *rcNameID: =MONO_DISPLAY
  854. *DevNumOfPlanes: 1
  855. *DevBPP: 1
  856. *Color? : FALSE
  857. }
  858. *Option: Color
  859. {
  860. *rcNameID: =COLOR_DISPLAY
  861. *DevNumOfPlanes: 4
  862. *DevBPP: 1
  863. *DrvBPP: 4
  864. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  865. *Command: CmdSendYellowData { *Cmd : "<1B>r<04>" }
  866. *Command: CmdSendMagentaData { *Cmd : "<1B>r<01>" }
  867. *Command: CmdSendCyanData { *Cmd : "<1B>r<02>" }
  868. *Command: CmdSendBlackData { *Cmd : "<1B>r<00>" }
  869. *Command: CmdSelectBlackColor { *Cmd : "<1B>r<00>" }
  870. *Command: CmdSelectRedColor { *Cmd : "<1B>r<05>" }
  871. *Command: CmdSelectGreenColor { *Cmd : "<1B>r<06>" }
  872. *Command: CmdSelectYellowColor { *Cmd : "<1B>r<04>" }
  873. *Command: CmdSelectBlueColor { *Cmd : "<1B>r<03>" }
  874. *Command: CmdSelectMagentaColor { *Cmd : "<1B>r<01>" }
  875. *Command: CmdSelectCyanColor { *Cmd : "<1B>r<02>" }
  876. }
  877. }
  878. *Feature: Halftone
  879. {
  880. *rcNameID: =HALFTONING_DISPLAY
  881. *DefaultOption: HT_PATSIZE_AUTO
  882. *Option: HT_PATSIZE_AUTO
  883. {
  884. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  885. }
  886. *Option: HT_PATSIZE_SUPERCELL_M
  887. {
  888. *rcNameID: =HT_SUPERCELL_DISPLAY
  889. }
  890. *Option: HT_PATSIZE_6x6_M
  891. {
  892. *rcNameID: =HT_DITHER6X6_DISPLAY
  893. }
  894. *Option: HT_PATSIZE_8x8_M
  895. {
  896. *rcNameID: =HT_DITHER8X8_DISPLAY
  897. }
  898. }
  899. *Command: CmdStartDoc
  900. {
  901. *Order: DOC_SETUP.1
  902. *Cmd: "<1B>@<181B>t<011B>R<00>"
  903. }
  904. *Command: CmdStartPage
  905. {
  906. *Order: PAGE_SETUP.1
  907. *Cmd: "<0D>"
  908. }
  909. *RotateCoordinate?: FALSE
  910. *RotateRaster?: FALSE
  911. *RotateFont?: FALSE
  912. *switch: Orientation
  913. {
  914. *case: PORTRAIT
  915. {
  916. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_RA_ABLE)
  917. }
  918. *case: LANDSCAPE_CC270
  919. {
  920. *TextCaps: LIST(TC_RA_ABLE)
  921. }
  922. }
  923. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  924. *YMoveAttributes: LIST(SEND_CR_FIRST)
  925. *MaxLineSpacing: 255
  926. *XMoveThreshold: 0
  927. *YMoveThreshold: *
  928. *XMoveUnit: 60
  929. *YMoveUnit: 180
  930. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,815]{max_repeat((DestX / 6) )} }
  931. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  932. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  933. *Command: CmdCR { *Cmd : "<0D>" }
  934. *Command: CmdLF { *Cmd : "<0A>" }
  935. *Command: CmdFF { *Cmd : "<0C>" }
  936. *Command: CmdBackSpace { *Cmd : "<08>" }
  937. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  938. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  939. *EjectPageWithFF?: TRUE
  940. *switch: InputBin
  941. {
  942. *case: Option3
  943. {
  944. *EjectPageWithFF?: FALSE
  945. }
  946. }
  947. *OutputDataFormat: V_BYTE
  948. *OptimizeLeftBound?: FALSE
  949. *CursorXAfterSendBlockData: AT_GRXDATA_END
  950. *CursorYAfterSendBlockData: NO_MOVE
  951. *DefaultFont: 1
  952. *DefaultCTT: -1
  953. *switch: Orientation
  954. {
  955. *case: PORTRAIT
  956. {
  957. *DeviceFonts: LIST(1,5,7,13,14,15,16,17)
  958. }
  959. *case: LANDSCAPE_CC270
  960. {
  961. *DeviceFonts: LIST()
  962. }
  963. }
  964. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  965. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  966. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  967. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  968. *Command: CmdSelectSingleByteMode { *Cmd : "<1C0F>" }
  969. *Command: CmdSelectDoubleByteMode { *Cmd : "<1C12>" }
  970. *UseExpColorSelectCmd?: TRUE