HP PCL 5 Comparison Manual page 90

For the hp laserjet iii hp laserjet iiid hp laserjet iiisi hp laserjet iiip hp laserjet 4 family hp laserjet 4000 series hp color laserjet hp color laserjet 5/5m hp laserjet 5 family hp laserjet 6 family hp deskjet 1200c hp deskjet 1600c
Hide thumbs Also See for PCL 5:
Table of Contents

Advertisement

2-54 Printer-Specific Differences
#include <stdio.h>
#include <fcntl.h>
#define MONTH
"\202P\202P\214\216"
#define DAY1
"\202P\202U\223\372"
#define TILDE
"\201\140"
#define DAY2
"\202P\202V\223\372"
#define KANJITXT MONTH DAY1 TILDE MONTH DAY2
FILE *prn;
main()
{
int point_size=24;
prn = fopen("lpt1","wb");
fprintf(prn,"\33%%-12345X");
fprintf(prn,"@PJL ENTER LANGUAGE=PCL\n");
fprintf(prn,"\33E");
fprintf(prn,"\33&a4L");
fprintf(prn,"\33&t31P");
fprintf(prn,"\33(19K");
fprintf(prn,"\33(s1p%dv0s0b28752T",point_size); /* MS-Mincho */
fprintf(prn,"\n\n\n\r" KANJITXT); /* print horizontal version */
fprintf(prn,"\33&c-1T");
fprintf(prn,"\n\n\n\r" KANJITXT);
fprintf(prn,"\f");
fprintf(prn,"\33%%-12345X");
}
Printing Ruby Characters (Furigana)
Ruby characters, also known in Japanese as furigana,
are small characters typically used as an aid in kanji
pronunciation. Ruby characters are usually (but not
always) hiragana. They are generally placed above the
corresponding kanji in horizontal writing and to the right
in vertical writing. Ruby characters can be generated using
font scaling and cursor positioning commands.
An example of ruby characters is shown below. In this
example, the ruby characters are printed at one-third the
size of the kanji. The C program that follows was used to
generate the PCL commands for this example.
/* open lpt1 for writing */
/* send UEL to get to PJL */
/* Enter PCL */
/* send an esc E to reset printer */
/* left margin */
/* text parsing = Shift-JIS */
/* symbol set = Win3.1J */
/* select vertical writing */
/* print vertical version */
/* formfeed */
/* send UEL to get to PJL */

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents