Article View: fj.lang.postscript
Article #26Re: Q about Kanji conversion filter
From: Kazuhiro Kazama
Date: Wed, 05 Aug 1992 15:01
Date: Wed, 05 Aug 1992 15:01
42 lines
2115 bytes
2115 bytes
$@Iw4V!w#N#T#T4pAC8&$G$9!#(J
In article <KOYAMA.92Aug5185234@maina.artstech.co.jp> koyama@artstech.co.jp (Tetsuji Koyama) writes:
> PostScript $@$N(J () $@Cf$NJ8;zNs$,!"(JEUC $@$d(J SJIS $@$J$I$NHs(J ANK $@J8;z$G$"$C$?(J
> $@>l9g$K!"$=$l$r(J PS $@$N@5<0$JI=5-$G$"$k(J "\000\002" $@$J$I$N#8?J?tI=5-$KJQ49(J
> $@$9$k%U%#%k%?!<$O$"$j$^$9$G$7$g$&$+!#(J
$@!!IaDL$OJ8;zNs$NCf$7$+8=$l$J(J$@$$$H;W$&$N$G!"0J2<$N$h$&$KC1=c$K=hM}$7$F$7(J
$@$^$($P$$$$$G$7$g$&!#(J
--- cut here --- cut here --- cut here --- cut here --- cut here ---
/*
* ps8 - Convert non-ascii characters to octal excapes for the
* LaserWriter printer. This usually only happens with Postscript
* files generated by the Macintosh, it isn't supposed to do that
* but sometimes it does. This little guy makes it all better
* again.
* Author: Brian Powell, brian@ut-sally
*/
/* ps8 - formerly called macfilter, but we wanted to use that name for the
* filter called from psmac which prepends the LaserPrep. Macfilter then
* calls ps8.
*/
#include <stdio.h>
#include <ctype.h>
main()
{
register int c;
while ((c = getchar()) != EOF) {
if (!isascii(c))
printf("\\%03o", c & 0377);
else
putchar(c);
}
exit(0); /* set explicit exit code for the spooler */
}
--- cut here --- cut here --- cut here --- cut here --- cut here ---
--
$@Iw4V0lMN(J (kazama@square.ntt.jp)
NTT$@4pAC8&5f=j(J $@>pJs2J3X8&5fIt(J
$@J,;6%3%s%T%e!<%F%#%s%086M}8&5f%0%k!<%W(J
Technical Details
Message-ID:
<224.cdhip@lab.ntt.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!etl.go.jp!oskgate0.mei!icspub!wnoc-kyo!wnoc-fukuoka-news!kyu-cs!lab!kazamaReferences:
<KOYAMA.92Aug5185234@maina.artstech.co.jp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!etl.go.jp!oskgate0.mei!icspub!wnoc-kyo!wnoc-fukuoka-news!kyu-cs!lab!kazama From: kazama@square.ntt.jp (Kazuhiro Kazama) Newsgroups: fj.lang.postscript Subject: Re: Q about Kanji conversion filter Message-ID: <224.cdhip@lab.ntt.jp> Date: 5 Aug 92 15:01:42 GMT References: <KOYAMA.92Aug5185234@maina.artstech.co.jp> Sender: news@lab.ntt.jp Distribution: fj Organization: NTT Basic Research Laboratories, Tokyo, Japan. Lines: 42 In-Reply-To: koyama@artstech.co.jp's message of 5 Aug 1992 18:52:34 JST