Народ, всем привет. Есть своеобразное оборудование, даже создана тема чуть ниже, но её посещают в основном те кто сталкивается с проблемой.
Не люблю задавать вопросы и создавать темы, но выхода нет.
Нашёл статью:
про плоттерыНо я в АНГЛИЙЦКОМ ни бум бум!!!! И в никсах тоже.
Понял из неё что надо в Инскейпе создать файл, экспортировать его в eps и с помощью pstoedit конвертнуть в hpgl и с помощью команды cat швырнуть этот файл на порт принтера. Так?!
cat infile.eps | pstoedit -f "hpgl" > /dev/ttyS0
Что там пишут в этой статье про скрипты? Что такое скрипт? Его надо в gedite написать и кудато положить и с помощью sh выполнять? Помогите разобраться со статьёй.
Естественно гуглем транслейтом пользовался, но не особо он тему связывает.
Вот создали экспортировали мы plt из Инскейп, как посмотреть его JPG с помощью hp2xx вот её аргументы:
pavel@Helek:~$ hp2xx
hp2xx is free software and you are welcome to distribute copies of it
under certain conditions. There is absolutely no warranty for hp2xx!
For full details, read file COPYING (shipped along with this package),
or write to: Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
HP2xx: A HPGL converter (xx = mf, eps, pcl, pcx, img ...)
V 3.4.4 (03/06/22) (c) 1991 - 1994 (V3.20) Heinz W. Werntges
(c) 1999 - 2003 Martin Kroeker
Usage: hp2xx [options] [file1 [file2 ...]]
Unix: Filter usage (.. | hp2xx -q -f- [options] | ..) ok
Press <Return> to continue ...
Opt fmt defaults Comment:
---------------------------------------------------------------------------
-m strg pre Mode. Valid mode strings for this particular binary are:
cad,dxf,em,epic,eps,esc2,fig,gpt,hpgl,img,jpg,mf,nc,pbm,pcl,pcx,png,pre,rgip,svg,tiff
-n off no filling of polygons (ignore FP commands)
-N off no honoring of papersize (PS) requests
(plotsize calculated from data instead)
-M int remap all drawing commands using pen 0 to this pen
-f strg (auto gen.) Name of output file ('-' = to stdout)
-l strg (stderr) Name of log file
-p strg 11111111 Pensize(s) of pen 1 to 8 (in 1/10 mm).
"strg" must consist of 1 to 8 digits '0'-'9'
first digit = pen1 ... last digit = pen 8
(default settings shown)
-c strg 12345671 Pen color(s) (default settings shown).
0 = off, 1 = black, 2 = red, 3 = green, 4 = blue,
5 = cyan, 6 = magenta, 7 = yellow
-P n:n 0:0 Page range (0:0 = all pages).
-q off Quiet mode (no diagnostics)
-r float 0.0 Rotation angle [deg]. -r90 = landscape
-s strg hp2xx.swp Name of swap file
Press <Return> to continue ...
Bitmap controls:
-d int 75 DPI value for x or x&y, if -D unused.
-D int 75 DPI value for y ONLY
-e int 0 Extra clipping space
PCL-exclusive options:
-i off Pre-initialize printer
-I off Initialize using PCL3GUI commands
-F off Send a FormFeed at end
-S int 0 Use Deskjet special commands (0=off, 1=B/W, 3=CMY, 4=CMYK)
NOTE: Only valid for -d: 300/150/100/75; -D invalid!
PCL / PostScript / Preview options:
-o float 0.0 X offset [mm] of picture
-O float 0.0 Y offset [mm] of picture
-C Fit picture into center of (-a/-h/-w) rectangle
Tiff-exclusive options:
-S int 0 Use Tiff Compression Format (0/1=None, 2=RLE, 3=G3Fax, 4=G4Fax, 5=LZW, 6=OJpeg, 7=Jpeg, 8=Deflate)
Press <Return> to continue ...
DXF-exclusive options:
-S int 0 Map pens to DXF colors (0=No mapping, 1=use pen no., 2=use width*10 , 3=map widths <0.2 to 1, <0.3 to 2,0.4 to 3 , above 0.4 to 4 )
Size controls:
-a float 1.0 Aspect factor (x/y correction). Valid: > 0.0
-h float 200.0 Height [mm] of picture
-w float 200.0 Width [mm] of picture
-t off Show true HPGL size. Disables -a -h -w !
-H float 33600.0 Hardware X range [1/40 mm] of device
-W float 47520.0 Hardware Y range [1/40 mm] of device
-x float - Manual HPGL-coord range presetting: x0
-X float - Manual HPGL-coord range presetting: x1
-y float - Manual HPGL-coord range presetting: y0
-Y float - Manual HPGL-coord range presetting: y1
-z float -1.0 (3d nc output only) Z engage depth
-Z float 1.0 (3d nc output only) Z retract depth
Press <Return> to continue ...
Corresponding long options:
hp2xx [--mode] [--colors] [--pensizes] [--pages] [--quiet]
[--nofill] [--no_ps] [--mapzero]
[--width] [--height] [--aspectfactor] [--truesize]
[--x0] [--x1] [--y0] [--y1]
[--xoffset] [--yoffset] [--center]
[--DPI] [--DPI_x] [--DPI_y] [--extraclip]
[--outfile] [--logfile] [--swapfile]
[--PCL_formfeed] [--PCL_init] [--PCL_Deskjet] [--PCL_PCL3GUI]
[--help] [--version]