1
0
mirror of https://github.com/PDP-10/its.git synced 2026-01-20 01:45:49 +00:00

17 Commits

Author SHA1 Message Date
Lars Brinkhoff
76481b8808 SUPARD - draw ARDS graphics to SUPDUP. 2018-06-25 07:56:23 -07:00
Adam Sampson
6fe2bc3aab VERSA: Fix handling of multiple files given as JCL.
Two bugs in my JCL-parsing code:

- B was getting clobbered at some point in the loop, so rfn"rfn only
  stored the first filename in the right place.

- The device's finish routine wasn't being called. For the hargld
  backend, this meant that the last few lines of each file weren't always
  being written to disk.
2018-06-01 11:23:04 +01:00
Adam Sampson
0fb43293bc VERSA: Implement tab and backspace.
@ uses tabs when formatting /C cross-reference pages.
2018-06-01 11:23:04 +01:00
Adam Sampson
71541561ba VERSA: Load the XGP's default font if there's no ;KSET.
@ doesn't emit ;KSET unless you explicitly specify fonts with the /F
switch; VERSA used to complain about this.
2018-06-01 11:23:04 +01:00
Adam Sampson
d8d517ea2d VERSA: Don't add blank pages before/after PRESS and XGP files.
VERSA doesn't do this for other formats.
2018-06-01 11:23:04 +01:00
Adam Sampson
03d87e8599 VERSA: Recognise FOO @XGP as an XGP file.
@ uses this filename convention.
2018-06-01 11:23:04 +01:00
Adam Sampson
71aada08fc VERSA: Fix XGP baseline adjustment.
This is used by TJ6 for superscripts and subscripts. It worked fine for
positive offsets, but "addi a,(x)" didn't do the right thing when the
offset x was negative (because it double-indirects).

The XGP documentation says that the baseline adjustment sticks until the
font is changed. Looking at SYSEN2; XGP 31 (and SAIL's XGPSER), it is
also reset at the start of each line. TJ6 relies on this behaviour.

Since VERSA scans each line twice (once to compute the line height, once
to draw the characters), and baseline adjustment directives will be
interpreted on both passes, we need to reset the adjustment at the start
of both passes.
2018-05-28 12:22:46 +01:00
Adam Sampson
47407aa6d9 VERSA: Fix XGP underline rectangle placement.
The underline offset in XGP files is positive downwards (as opposed to
the baseline offset, which is positive upwards!), and the ending Y
position of the rectangle should be computed from the line width, not
just the current position.
2018-05-28 12:22:46 +01:00
Adam Sampson
38d534c320 VERSA: Fix XGP line height calculation.
The default line height was 0, so empty lines came out as zero height.
Use the height of the current font instead.

If the last line of a page ended with the ^L, linfin was never called,
so its height was computed as 0 and it overlapped the previous line.
Ensure linfin always gets run in this case.
2018-05-28 12:22:46 +01:00
Adam Sampson
abfd92fa59 VERSA: Fix XGP intercharacter and interline spacing.
Parse ;VSP directives, and insert spaces between characters and lines as
appropriate. TJ6 makes use of both of these features.
2018-05-28 12:22:46 +01:00
Adam Sampson
e82ebb56d4 VERSA: Add support for XGP ;LFTMAR and ;TOPMAR.
Since this means adding support for parsing numeric arguments in XGP
control lines, also check that ;SKIP's argument is 1.
2018-05-28 12:22:46 +01:00
Lars Brinkhoff
1092405cc8 CMD - DDT subroutines.
To use this, add (CMDS) to the sname search list.  Then make a
translation from DSK: (CMDS); TS * to DSK: SYS3; TS CMD.  Add a file
<HSNAME>; <XUNAME> (CMDS) where each subroutine is one line for the
subroutine name, followed by a body of commands terminated by a ^_
control character.
2018-05-22 06:03:04 -07:00
Adam Sampson
5d87874fb1 Allow filenames to be specified as JCL to VERSA.
This reworks VERSA's test mode so that you can specify an arbitrary list
of filenames as JCL, and have them rasterised either as SUPDUP graphics
(with /D) or as Harvard scan files in .TEMP.; (by default).
2018-05-11 19:10:21 +01:00
Adam Sampson
a99eab07c6 Reenable XGP input file support.
From ITS OBUGS0, dated 1982-09-23:
> In theory (if I turned on XGP file recognition in the spooler), XGP
> files produced by R come out correctly, but XGP files produced by TJ6
> or BOLIO (and I think @) cause it to crash.

At present, XGP files from TJ6 are rendered with some problems, and XGP
files from @ aren't accepted at all (because they don't specify fonts).
2018-05-11 19:10:21 +01:00
Adam Sampson
3202d117e7 VERSA - Versatec/Gould printer spooler.
This program reads files in several printable formats including ARDS,
XGP and PLT, and rasterises them for Versatec V80 and Gould 5200
printers, or as "Harvard scan" RLE bitmap files.

Normally it runs as a printer spooler, scanning the .GLPR. directory.
When invoked as VERSA, it runs in a test mode where it opens a fixed
series of files and displays them interactively using SUPDUP graphics.
The latter is more useful at the moment, so don't install the CHANNA
link by default.
2018-05-11 19:10:21 +01:00
Lars Brinkhoff
d8ccaeef14 Build DEVICE; JOBDEV CHA from source code. 2018-02-19 19:22:11 +01:00
Lars Brinkhoff
ca26e9141e Add EMACS library EENV. 2018-02-16 19:36:08 +01:00