Contact us Heritage collections Image license terms
HOME ACL Associates Technology Literature Applications Society Software revisited
Further reading □ OverviewNo.1No.2No.3No.4No.5No.8No.9No.11No.12No.13No.14No.15No.17No.19No.21No.22No.23No.24No.25No.26No.27No.28No.29No.30No.31No.32No.33No.37No.38No.39No.40No.41No.43No.44No.45No.46No.47No.48No.49No.50No.51No.52
ACD C&A INF CCD CISD Archives Contact us Heritage archives Image license terms

Search

   
ACLLiteratureProgress ReportsSPROGS Papers
ACLLiteratureProgress ReportsSPROGS Papers
ACL ACD C&A INF CCD CISD Archives
Further reading

Overview
No.1
No.2
No.3
No.4
No.5
No.8
No.9
No.11
No.12
No.13
No.14
No.15
No.17
No.19
No.21
No.22
No.23
No.24
No.25
No.26
No.27
No.28
No.29
No.30
No.31
No.32
No.33
No.37
No.38
No.39
No.40
No.41
No.43
No.44
No.45
No.46
No.47
No.48
No.49
No.50
No.51
No.52

SPROGS Paper No 32: Shift Characters

R E Thomas

February 26 1973

1. The Problem

We require to be able to change from one font to another during text printing so that upper and lower case fonts (for example) can be mixed.

2. Simple Solution

To some extent, the ability to do this already exists. A character file can be redefined to call NUMBR instead of drawing a character. There are two drawbacks, however. Firstly, files cannot be defined from inside another file, so the user could not store the ability to select different fonts. Secondly, when the library system is written and fonts are moved in and out, the re-defined character will not be saved.

3. Proposed Method

There are a number of possible display routine methods

1) SHIFT (GM, XN)

defines character number XM to mean "shift to font number XN".

(2) SHIFT (XM)

defines character number XM to act as a flip-switch, changing between current font number and "current+1".

(3) SHIFTU (XM), SHIFTD (XN)

defines two characters, the first selecting "current+1", and the second selecting "current-1".

The first idea implies that any number of characters can be defined in this way. Hence a table needs to be available, and this must be searched for every character converted by TEXT, VTEXT. This will probably be too slow if the table is at all long.

The second and third ideas imply the provision of another display routine RLNUMB (X) which will change the current file number, NFLNO, to NFLNO+X (or 1 if sum is less than 1).

The third method suggested is a compromise between methods 1 and 2, limiting the table search of characters, but allowing any font to be selected by multiple use of XM or XN (unlike the second method, which is too restrictive).

It is therefore proposed to implement the third method. Two new COMMON variables, NSHFTU and NSHFTD, will hold the two shift characters (or be set negative if no shift intended). TEXT and VTEXT will test every character and replace

      DRAW (XM) 
      DRAW (XN) 
by 
      RLNUMB (1.0) 
      RLNUMB (-1.0) 

NSHFTU and lNSHFTD will not be saved and restored by the file mechanism. The characters 0-9, A-Z, +-. will not be allowed as shift characters.

⇑ Top of page
© Chilton Computing and UKRI Science and Technology Facilities Council webmaster@chilton-computing.org.uk
Our thanks to UKRI Science and Technology Facilities Council for hosting this site