prov-2.0 -- Overlay printing utility for UNIX-like systems

Counter[counter]

Google

JAPANESE

What is prov2 ?

This is form overlay printing tool on UNIX-like systems.

prov-1.x worked with EUC-JP for encoding.
prov-2.x works with UTF-8 for encoding now :)

Prerequisite

You must be able to print postscript file.

Download

Install

Sample print(1)

  prov2 -text mesh.ov README | lpr -Pps-printer

  or

  cat README | prov2 -text mesh.ov - | lpr -Pps-printer
  
above operation printout README overlayed mesh.ov(mesh overlay definition) from ps-printer. (Postscript file, Image)

default point of ank is 12point and default point of kanji char is 12point too. you can change default point by setting environment variable.

Sample print(2)

  prov2 -csv table.ov member.def member.dat | lpr -Pps-printer

  or

  cat member.dat | prov2 -csv table.ov member.def - | lpr -Pps-printer
  
above operation printout member.dat(csv data file) formatted by member.def(format definition) and overlayed table.ov(table overlay definition) from ps-printer. (Postscript file, Image)

Adjust setting

You can adjust setting by editing ${PROV2DIR}/etc/a4v.ps.
% start user definition
%------------------------------------------------------------------
% < X unit length (point) >
%
% default is 72/10 point (=1/10 inch).
%
/SYS_Char {72.00 10 div} def
%
%------------------------------------------------------------------
% < Y unit length (point) >
%
% default is 72/6 point (=1/6 inch).
%
/SYS_Line {72.00  6 div} def
%
%------------------------------------------------------------------
% < X bias (Char) >
%
% move page to right : plus value
% move page to left  : minus value
%
% for FUJITSU XL-5340
%/SYS_Xbias {2 SYS_Char mul} def
%
/SYS_Xbias {0 SYS_Char mul} def
%
%------------------------------------------------------------------
% < Y bias (Line) >
% 
% move page to down : plus value
% move page to up   : minus value
%
% for FUJITSU XL-5340
%/SYS_Ybias {-2 SYS_Line mul} def
%
/SYS_Ybias {0 SYS_Line mul} def
%
%------------------------------------------------------------------
% < max printable width (Char) >
%
/SYS_MaxWidth 80 def
%
%------------------------------------------------------------------
% < max printable height (Line) >
%
/SYS_MaxHeight 66 def
%
%------------------------------------------------------------------
% end user definition

Customize

In default ${PROV2DIR}/etc/a4v.ps is for A4-portrait paper. if you want to use another paper, copy ${PROV2DIR}/etc/a4v.ps to another.ps and edit it and set path to another.ps into PROV2PS(environment variable).

Overlay definition

You can use following postscript macro to define overlay.

Format definition

You must define format definition to format print layout from csv data file. each line of format definition is defined like following.

record_no field_no point column line x_gap y_gap

field separater of format definition file is TAB.

Csv data file


Masahiko Ito <m-ito@myh.no-ip.org>