~ubuntu-branches/ubuntu/jaunty/ghostscript/jaunty-updates

« back to all changes in this revision

Viewing changes to examples/cjk/gscjk_ag.ps

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2009-01-20 16:40:45 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120164045-lnfhi0n30o5lwhwa
Tags: 8.64.dfsg.1~svn9377-0ubuntu1
* New upstream release (SVN rev 9377)
   o Fixes many bugs concerning PDF rendering, to make the PDF printing
     workflow correctly working.
   o Fixes long-standing bugs in many drivers, like input paper tray and
     duplex options not working for the built-in PCL 4, 5, 5c, 5e, and
     6/XL drivers, PDF input not working for bjc600, bjc800, and cups
     output devices, several options not working and uninitialized
     memory with cups output device.
   o Merged nearly all patches of the Ubuntu and Debian packages upstream.
   o Fixes LP: #317810, LP: #314439, LP: #314018.
* debian/patches/03_libpaper_support.dpatch,
  debian/patches/11_gs-cjk_font_glyph_handling_fix.dpatch,
  debian/patches/12_gs-cjk_vertical_writing_metrics_fix.dpatch,
  debian/patches/13_gs-cjk_cjkps_examples.dpatch,
  debian/patches/20_bbox_segv_fix.dpatch,
  debian/patches/21_brother_7x0_gdi_fix.dpatch,
  debian/patches/22_epsn_margin_workaround.dpatch,
  debian/patches/24_gs_man_fix.dpatch,
  debian/patches/25_toolbin_insecure_tmp_usage_fix.dpatch,
  debian/patches/26_assorted_script_fixes.dpatch,
  debian/patches/29_gs_css_fix.dpatch,
  debian/patches/30_ps2pdf_man_improvement.dpatch,
  debian/patches/31_fix-gc-sigbus.dpatch,
  debian/patches/34_ftbfs-on-hurd-fix.dpatch,
  debian/patches/35_disable_libcairo.dpatch,
  debian/patches/38_pxl-duplex.dpatch,
  debian/patches/39_pxl-resolution.dpatch,
  debian/patches/42_gs-init-ps-delaybind-fix.dpatch,
  debian/patches/45_bjc600-bjc800-pdf-input.dpatch,
  debian/patches/48_cups-output-device-pdf-duplex-uninitialized-memory-fix.dpatch,
  debian/patches/50_lips4-floating-point-exception.dpatch,
  debian/patches/52_cups-device-logging.dpatch,
  debian/patches/55_pcl-input-slot-fix.dpatch,
  debian/patches/57_pxl-input-slot-fix.dpatch,
  debian/patches/60_pxl-cups-driver-pdf.dpatch,
  debian/patches/62_onebitcmyk-pdf.dpatch,
  debian/patches/65_too-big-temp-files-1.dpatch,
  debian/patches/67_too-big-temp-files-2.dpatch,
  debian/patches/70_take-into-account-data-in-stream-buffer-before-refill.dpatch:
  Removed, applied upstream.
* debian/patches/01_docdir_fix_for_debian.dpatch,
  debian/patches/02_gs_man_fix_debian.dpatch,
  debian/patches/01_docdir-fix-for-debian.dpatch,
  debian/patches/02_docdir-fix-for-debian.dpatch: Renamed patches to
  make merging with Debian easier.
* debian/patches/32_improve-handling-of-media-size-changes-from-gv.dpatch, 
  debian/patches/33_bad-params-to-xinitimage-on-large-bitmaps.dpatch:
  regenerated for new source directory structure.
* debian/rules: Corrected paths to remove cidfmap (it is in Resource/Init/
  in GS 8.64) and to install headers (source paths are psi/ and base/ now).
* debian/rules: Remove all fontmaps, as DeFoMa replaces them.
* debian/local/pdftoraster/pdftoraster.c,
  debian/local/pdftoraster/pdftoraster.convs, debian/rules: Removed
  added pdftoraster filter and use the one which comes with Ghostscript.
* debian/ghostscript.links: s/8.63/8.64/

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%!PS-Adobe-3.0
 
2
%%Title: euc-china encoding
 
3
%%Creator: Taiji Yamada <taiji@aihara.co.jp> and gs-cjk project
 
4
%%Copyright: (C) 2001 Taiji Yamada and gs-cjk project
 
5
%%+ This script is part of GNU Ghostscript and is distributed under
 
6
%%+ the terms of the GNU General Public License. See the file COPYING
 
7
%%+ for more information.
 
8
%%BoundingBox: 30 150 530 650
 
9
%%EndComments
 
10
%%BeginProlog
 
11
 
 
12
/*gs-cjk (\
 
13
------------------------------------------------------------------------\n\
 
14
This is a script to test CJK fonts such as CID-keyed fonts.\n\
 
15
If you have not done CID-keyed fonts installation and definitions at\n\
 
16
/Resource/CMap and CIDFnmap or /Resource/CIDFont of ghostscript, then\n\
 
17
this script can't work correctly.\n\
 
18
For details, please see README at http://www.gyve.org/gs-cjk/supplement.\n\
 
19
 
 
20
If you throw this script into a printer, it requires PostScript 3\n\
 
21
printer and CID-keyed fonts specified in this script.\n\
 
22
------------------------------------------------------------------------\n) def
 
23
 
 
24
/notice*stdout 4 dict begin
 
25
  /*open {} def /*echo-n { =only } def /*echo { = } def /*close { flush } def
 
26
  currentdict
 
27
end def
 
28
 
 
29
/notice*page 5 dict begin
 
30
  /*y 750 def
 
31
  /*open {
 
32
    gsave initmatrix /Courier findfont 11 scalefont setfont 50 *y moveto
 
33
    *y 750 eq {
 
34
      *gs-cjk { (\n) search { *echo } { *echo-n exit } ifelse pop } loop
 
35
    } if
 
36
  } def
 
37
  /*echo-n { dup type /stringtype ne { dup length string cvs } if show } def
 
38
  /*echo { *echo-n /*y *y 11 sub def 50 *y moveto } def
 
39
  /*close { grestore } def
 
40
  currentdict
 
41
end def
 
42
 
 
43
/greeting*gs-cjk {
 
44
  product (Ghostscript) search not { pop } { pop pop pop QUIET not {
 
45
    notice*stdout begin
 
46
      *open
 
47
      *gs-cjk { (\n) search { *echo } { *echo-n exit } ifelse pop } loop
 
48
      *close
 
49
    end
 
50
  } if } ifelse
 
51
} bind def
 
52
greeting*gs-cjk
 
53
 
 
54
/*findfont {
 
55
  dup /Font resourcestatus { pop pop findfont } {
 
56
    notice*page begin
 
57
      *open
 
58
      (Error in findfont: ) *echo-n dup *echo
 
59
      *close
 
60
    end
 
61
    findfont
 
62
  } ifelse
 
63
} bind def
 
64
 
 
65
/orighandleerror errordict /handleerror get def
 
66
errordict begin
 
67
  /handleerror {
 
68
    notice*page begin errordict begin $error begin
 
69
      *open
 
70
      (Error of ) *echo-n errorname dup length string cvs *echo
 
71
      *close
 
72
      showpage
 
73
    end end end
 
74
    orighandleerror
 
75
  } bind def
 
76
end
 
77
%%EndProlog
 
78
/STSong-Light--GB-EUC-V *findfont 25 scalefont setfont
 
79
500 625 moveto
 
80
(������ļ�����ֱдӡˢ) show
 
81
/STSong-Light--GB-EUC-H *findfont 25 scalefont setfont
 
82
50 600 moveto
 
83
(��� Ghostscript) show  
 
84
50 550 moveto
 
85
(���ļ����� Simplified Chinese) show
 
86
50 500 moveto
 
87
(��д horizontal writing) show
 
88
50 450 moveto
 
89
(ӡˢ Print) show
 
90
%
 
91
/STSong-Light--GB-EUC-V *findfont [ 1 .3 0 1 0 0 ] makefont 20 scalefont setfont
 
92
100 275 moveto 20 2 div 0 rmoveto
 
93
(б��) dup stringwidth neg rmoveto show
 
94
/STSong-Light--GB-EUC-H *findfont [ 1 0 .3 1 0 0 ] makefont 20 scalefont setfont
 
95
100 250 moveto
 
96
(б�� Italic transformation) show
 
97
%
 
98
/STSong-Light--GB-EUC-H *findfont 20 scalefont setfont
 
99
150 400 moveto
 
100
(Song Typeface ����) show
 
101
/STFangsong-Light--GB-EUC-H *findfont 20 scalefont setfont
 
102
150 375 moveto
 
103
(Fangsong Typeface ������) show
 
104
/STHeiti-Regular--GB-EUC-H *findfont 20 scalefont setfont
 
105
150 350 moveto
 
106
(Hei Typeface ����) show
 
107
/STKaiti-Regular--GB-EUC-H *findfont 20 scalefont setfont
 
108
150 325 moveto
 
109
(Kai Typeface ����) show
 
110
%
 
111
/Times-Roman findfont 13 scalefont setfont
 
112
50 200 moveto
 
113
(* Chinese translation of "Ghostscript" is merely associative \
 
114
characters of these meanings.) show
 
115
50 200 13 sub moveto
 
116
(In Simplified Chinese articles, customarily we use just "Ghostscript" \
 
117
as it is.) show
 
118
showpage
 
119
%%Trailer
 
120
%%EOF