Display enhancements (was: OFF Topic)

From: Lueko Willms (l.willms_at_jpberlin.de)
Date: 10/11/04


Date: 11 Oct 2004 07:24:00 GMT


. Am 10.10.04
schrieb dashwood@nospam.enternet.co.nz (Pete Dashwood)
    auf /COMP/LANG/COBOL
     in 1097451657.l73HNxSpbWhQW1bn1eZe7g@teranews
  ueber Re: OFF Topic

>> Extend the picture code to include
>> font, size, bold,

PD> Now THAT makes a lot of sense to me, provided you are dealing with an
PD> edited picture (which, by definition originally, had to be an OUTPUT
PD> field.)

   And it would need to be only in the REPORT WRITER and SCREEN
sections, nowhere else.

   But not as an extension to the PICTURE clause, but as an additional
clause like PRINT-FORMAT or CHARACTER-TYPE.

   And for the REPORT SECTION I would like to see the ability to
specify the printing position of groups and elements by tenths of
millimeter or hundreths of inch.

PD> It would be pretty horrendous to implement though.

   I don't think so. One would use the rendering engines, the printing
system supplied by the operating system, its printer drivers etc.

PD> There are so many attributes for screens and printers

   Four of them would be sufficient:

   - Font family name, e.g. "Arial", "Times Roman", "OCR B"
   - Font size in typographic points
   - One of the four font variants
      (how does one say that in English? Font decoration?):
      normal, bold, italic, bold-italic which are provided by the
        basic rendering systems in e.g. Windows, Postscript etc.
   - Colour

PD> you would probably have to define the required devices
PD> in the ENVIRONMENT DIVISION

   Yes, the SPECIAL-NAMES paragraph is the place to specify special
names for the combination of those four attributes mentioned above

   but not the actual printer or other display device.

PD> and then your program would be locked in to those specific
devices. Not good.

>> Specify left justify for text, or center, or right.
>>

PD> This is more hopeful because it need not necessarily be device
PD> dependent.

   JUSTIFIED LEFT is the default, and JUST[IFIED] RIGHT is available
since generations. JUST CENTER might be a nice addition to the next
standard.

   But the 2002 standard already has the COLUMN CENTER clause for the
REPORT WRITER enabling to center a given item around a column.

   So I don't see any need to duplicate this.

   Except perhaps by providing an alternative to the COLUMN clause
with a PRINTING-POSITION (Fujitsu) which could be specified in tenths
of millimeter resp. hundreths of inch; whereby it would probably be
good to specify a unit in the ENVIRONMENT DIVISION which could be a
multiple of one of the two basic measurements. I hope I have not
misunderstund Fujitsu's PRINTING-POSITION clause...

Yours,
Lüko Willms http://www.mlwerke.de
/--------- L.WILLMS@jpberlin.de -- Alle Rechte vorbehalten --

"Die Interessen der Nation lassen sich nicht anders formulieren als unter
dem Gesichtspunkt der herrschenden Klasse oder der Klasse, die die
Herrschaft anstrebt." - Leo Trotzki (27. Januar 1932)



Relevant Pages

  • Re: VB Printer Dialog Problem (VB6)
    ... What I would really like to know is exactly what it is you are printing? ... Forms and printers have very different resolutions (typically 96 pixels per inch in the case of a Form and 600 pixels per inch in the case of a printer). ... Font sizes can only be in "whole pixel values", so when you ask for an 11 point font on a specific device the operating system will examine the "pixels per inch" of that device and will give you the nearest font size it can, to the nearest whole pixel value. ... If you are using a RichTextBox then it is very easy to do that. ...
    (comp.lang.basic.visual.misc)
  • Re: Site critique requested (mostly accessibility issues, but anything else welcome)
    ... serif font. ... , and for printing. ... The reader then has the choice of not printing the ... Culpeper is largely maintained by volunteers ...
    (uk.net.web.authoring)
  • Puzzles with printed output
    ... I'm working with printing from a subclass of JTextPane. ... but I had similar problems with Swing's built-in Serif font. ... same as in printed output from Word), but it appears to be bold, although I ... Line spacing on the screen is the same as in Word (with Word's line spacing ...
    (comp.lang.java.gui)
  • Re: Data Report: Do it the hard way :-)
    ... I've never seen that code before so I don't yet know for certain exactly how it works but I've just downloaded it now for a quick look and it seems to be using the more or less standard simple print preview technique of passing a DC to a main printing routine and using more or less the same code to set up the font and graphic settings of the DC and then sending text and images to it. ... You can see the effects of this problem straight away if you download the code from the link you posted and run the PrintPreviewDemo_BMP example and click the Print Preview Instructions button and perform both a Preview and a Print to the printer. ...
    (microsoft.public.vb.general.discussion)
  • RE: I CANNOT PRINT ANY NEWLY CREATED WOR/ EXCEL DOCS, BLANKS COMIN
    ... I have just realised my printing Word problem, ... created two wks I chose navy as the font colour, and I have just changed my ... I still think its weird that my black emails and BBC weather web page has ... I DID EMAIL MY NEW LETTERS TO A MATE AND SHE COULD PRINT OFF MY NEW WORD ...
    (microsoft.public.word.docmanagement)