[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hebrew & postscript.



> I installed HotWire (A fancy fax program) and want to be able to send
> hebrew faxes.
> 
> Ofcourse the prog itself will not let me do this, but it can import PS
> files and attach them to the fax.
> 
> Anyone knows a good prog for writing a hebrew text and converting to PS ?
> (I can write it with hpico or something, but I need something like a2ps
> for hebrew ascii in order to convert it to PS)

I'm using the attached script to send hebrew pages to the postscript 
printer from Netscape. First obtain WebHebrew Fonts. (I think Hebrew HOWTO
will help you)
I use it as 
hebprint|lpr -Pfoo
So I think that if instead of piping you do 
hebprint >out.ps it will do the job!

The only thing you need to find out is how to simulate Netscape :-)

-------------------------------------------------------------------------------
Stas Bekman 	sbekman@iil.intel.com.il  [ WebMaster at Intel Corp. ]
Address:	Aba Silver 12/29, Haifa, 32694, Israel
Phones:		[w]  972-(0)4-865-5188, [h]  972-(0)4-828-2264/3020 
Home Page:	http://techunix.technion.ac.il/~ofelix
Resource Center http://www.mardanit.co.il/Center (CGI, PC, Security, Linux)
Linux-il Home:	http://www.linux.org.il/ 	
#!/bin/sh
# netsc2heb
# Print Hebrew WWW documents with Netscape, using the WebHebrew Fonts
# on Silicon Graphics computers 
# Web Hebrew Fonts created by Robert Carlson <rcarlson.apple.tchk.com> 
# Author: Michael Wolf <michael.wolf@lrz-muenchen.de>
# See netsc2heb.txt for installation instructions

cat>/usr/tmp/$$.tmp0.ps
cat /afs/iil/proc/users/sbekman/fonts/hebrew/wehm.pfa /usr/tmp/$$.tmp0.ps > /usr/tmp/$$.tmp1.ps
cat /afs/iil/proc/users/sbekman/fonts/hebrew/wehad.pfa /usr/tmp/$$.tmp1.ps | 
sed '1,$s/\(Times\)\(.*\)\( findfont\)/WebHebrewAD\3/'|
sed '1,$s/\(Courier\)\(.*\)\( findfont\)/WebHebrewMonospace\3/' 
rm /usr/tmp/$$.tmp0.ps /usr/tmp/$$.tmp1.ps 
 

References: