IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

coloured / formatted screen captures with any 3270 emulation


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Thu May 24, 2018 12:56 am
Reply with quote

Hi there everybody,

preparing a documentation for some colleagues and trainees of mine again I am missing a special feature in our companies 3270 emulation (IBM Host on Demand):
I'd like to capture 3270 screens fully or partly and paste these captures in a Word document.

Needles to say there are two common ways to do so:
First is to mark the area and copy and paste the text. When pasted in the document the text remains text and can by marked, copied, pasted and so on by the author or the reader. But this does not copy the formattings / colours. So if the author wants to have the text in its original colours (for highlighting or what ever) he has to re-colour the capture. - Only a half of what I am looking for icon_confused.gif
The other way is to take a screenshot (full screen or with a snipping tool) and paste it in the Word document. Doing so all the colourings remain. But the text can not be marked and so on anymore 'cause it's just a picture. - The other half but as well only a half icon_confused.gif

Does anybody of you know a 3270 emulator which combines both techniques and provides a feature which copies the text with his formattings?

Thanks for your answers
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Thu May 24, 2018 4:42 am
Reply with quote

This might be a Good Idea, but you forgot four important details:
  1. Which word processor? They are all different; inserting the color (and font, for that matter) markups are pretty much word processor dependent.
  2. Which color map? Many emulators allow the user to fiddle with the color map. Certainly I do, so my colors, which are readable to me because my color vision is just a bit out of whack, may confuse your reader who is probably expecting the standard color map.
  3. Font? Most of the time you'll find a screen image, as a graphic, is too large or too small when printed. I also find most PC fonts are very weird in their leading; which affects their appearance on the screen and in printing, and it will make sizing the image more difficult. Resizing an image is easier than resizing a purely text area.
  4. Production (of the publication). Printers don't like dealing with colors. What looks simple on screen becomes expensive on the press and it affects how much your reader has to pay for your publication. Actually your monochrome copy and paste works well for the printer.
Back to top
View user's profile Send private message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Thu May 24, 2018 3:10 pm
Reply with quote

steve-myers wrote:
This might be a Good Idea, but you forgot four important details:
  1. Which word processor? They are all different; inserting the color (and font, for that matter) markups are pretty much word processor dependent.
  2. Which color map? Many emulators allow the user to fiddle with the color map. Certainly I do, so my colors, which are readable to me because my color vision is just a bit out of whack, may confuse your reader who is probably expecting the standard color map.
  3. Font? Most of the time you'll find a screen image, as a graphic, is too large or too small when printed. I also find most PC fonts are very weird in their leading; which affects their appearance on the screen and in printing, and it will make sizing the image more difficult. Resizing an image is easier than resizing a purely text area.
  4. Production (of the publication). Printers don't like dealing with colors. What looks simple on screen becomes expensive on the press and it affects how much your reader has to pay for your publication. Actually your monochrome copy and paste works well for the printer.


Hi Steve,

some good points.
  1. Which word processor? An 'ordinary' word processor like MS-Word or similar
  2. Which color map? Well, I'd say that colours that are displayed in the emulator. The main thing is there are different colours to distinguish different meanings of the shown text. No matter if reserved COBOL words are red and variables are green or vice versa.
  3. Font? Should be a monospaced font. Hasn't each emulator its own default font settings - which perhaps could be changed by the user?
  4. Production of publication Yes, d'accord. But this problem remains when using screen capture pictures in the documentation. Maybe it's helpful to invert the colours or minimum the background colour. But an invert colour feature might be step 2.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu May 24, 2018 3:35 pm
Reply with quote

That's why I wrote my set of EHIxxxx execs, available as "File # 769 R. Prins' edit macros to convert code/text into HTML" on the CBTTape website.

One note: in the most fancy format, you may have to change some characters to cater for differences in UK and German codepages. Samples of the output (REXX only) are at Prino's z/OS Tools and utilities
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu May 24, 2018 4:08 pm
Reply with quote

And of course there is Doug Nadel's ISPFHTML utility, that can directly produce M$ RTF format files.
Back to top
View user's profile Send private message
Graham Hannington

New User


Joined: 14 Dec 2009
Posts: 6
Location: Perth, Western Australia

PostPosted: Wed Sep 05, 2018 12:58 pm
Reply with quote

Back in the early 00s, I was frustrated by the low fidelity of IBM 3270 terminal screen captures in the IBM product documentation that I was writing.

At the time, the people responsible for publishing that documentation would not accept terminal screen captures as bitmaps; they wanted text. Bitmaps would have been an easy way for me to reproduce the 3270 screens in their original colors, and with other attributes, such as underlining, preserved. In hindsight, I am grateful to those people, because it pushed me to develop a better solution.

I developed an in-house tool, "Capter", that uses the IBM Personal Communications (PCOMM) terminal emulator to capture screens in various text-based formats with color and other attributes, including underlining, intact: in DITA, (X)HTML, and Microsoft rich text format (RTF).

Why PCOMM? Because that's what my colleagues and I use; it's the emulator my employer provides.

Capter uses PCOMM's "print screen (to disk file)" combined with custom printer definitions. I developed printer definition tables (PDTs) that "print" to DITA, XHTML, and RTF. Capter uses the PCOMM COM interface to set the appropriate PDT, and then SendKeys "[printps]" to capture the screen.

To render 3270 screens in color in IBM product publication PDFs, I developed an XSLT stylesheet that transforms the Capter-generated DITA <screen> elements into encapsulated PostScript (EPS).

For examples of this EPS in use, see page 82 (PDF sheet 94) in the following PDF file:

publibfi.dhe.ibm.com/epubs/pdf/c2767472.pdf

To see the corresponding screen captures in IBM Knowledge Center (DITA transformed into HTML, presenting using custom CSS), go to:

www.ibm.com/support/knowledgecenter/SSKKZM_1.3.0/fuwutsk_tutorial_1.htm

Outside of IBM product documentation, I use Capter to reproduce 3270 screens in Microsoft Word and PowerPoint. I have a custom toolbar button in Word and PowerPoint; I click the button, and then a capture of my current PCOMM session A appears at the Word insertion point, or on the current PowerPoint slide.

I use the XHTML-format captures in web browsers; for example, to report issues with z/OS ISPF panels in Atlassian Jira (requires the Jira html macro).

For examples of Capter-generated 3270 screens in PowerPoint (rendered in the IBM Plex Mono font), see my video "The Lifecycle of an IMS Connect Transaction" recently published on the IBM Z YouTube channel:

youtu.be/ygG9D6mfLDA

Capter is an in-house tool, not publicly available. However, it's not magic: I simply followed the PCOMM documentation to create my own PDTs, and then wrote a minimal VBScript wrapper to automate it.

Graham Hannington
Back to top
View user's profile Send private message
Graham Hannington

New User


Joined: 14 Dec 2009
Posts: 6
Location: Perth, Western Australia

PostPosted: Wed Sep 05, 2018 1:30 pm
Reply with quote

For what it's worth (I realize this is just the lipstick; you want the pig icon_wink.gif), here's the "Screen" paragraph style that I use in Word for 3270 screen captures:

Font: Consolas, 10 pt,
Do not check spelling or grammar,
Indent: Left: 2.1 mm, Right: 6 mm,
Keep with next,
Keep lines together,
Border: Top: (Single solid line, Auto, 0.25 pt Line width, From text: 6 pt Border spacing: )
Bottom: (Single solid line, Auto, 0.25 pt Line width, From text: 6 pt Border spacing: )
Left: (Single solid line, Auto, 0.25 pt Line width, From text: 6 pt Border spacing: )
Right: (Single solid line, Auto, 0.25 pt Line width, From text: 6 pt Border spacing: )
Pattern: Clear (Custom Color(RGB(248,248,248)))
Based on: Normal

That is: carefully chosen indents and border properties to fill the width of the page (US Letter with 1-inch margins); thin black border; light gray background.

I used to use the Lucida Console font, then I switched to Consolas. More recently, in some contexts, I use IBM Plex Mono (caution: Plex Mono does not yet contain box-drawing characters).

Word's "Text Highlight Color" tool (to highlight text background) is very useful for highlighting text in these screen captures. PowerPoint has a similar tool.

Before developing Capter, I used to painstakingly re-insert underlining in 3270 screen captures. I feel your pain. icon_wink.gif

I deliberately use a light background instead of black, but I've parameterized the colors so that it's easy enough to switch to a black background if required. Some people still like to print hardcopies; black-background screen captures are heavy on toner/ink.
Back to top
View user's profile Send private message
Graham Hannington

New User


Joined: 14 Dec 2009
Posts: 6
Location: Perth, Western Australia

PostPosted: Thu Sep 06, 2018 1:29 pm
Reply with quote

I don't have any first-hand experience with Host On-Demand emulators. I gather from the Host On-Demand product documentation in IBM Knowledge Center that those emulators run Java inside a web browser; is that correct? The documentation also refers to using printer definition tables; I might be wrong, but, based on a cursory glance, the format looks identical to the same files in PCOMM.

Do you also have PCOMM? Or are you restricted to those in-browser emulators?

I wish I could simply provide you with Capter, rather than glibly referring to creating PDTs and writing a VBScript wrapper. There are some gotchas, some devils in the detail, that I've worked through.

Given enough interest, I could petition my employer for the time to make Capter publicly available.

Let me know if you are interested. Anyone else?

Another advantage of text-based 3270 screen captures: it's easy to replace sensitive data that you don't want published. Sometimes, it's not so easy to do that on "live" screens. It's possible to replace data in pixel-based captures, but far more onerous (I've been there).

For what it's worth, here's a playlist of videos I've created; all of them (so far) created in PowerPoint, most of them containing 3270 screen captures generated by Capter:

www.youtube.com/playlist?list=PLz9fRjdHqVyyDgjzrNP-cihvF6JoxrFJt

In particular, see the video "IMS Performance Analyzer - Form-based Reporting - CPU heavy hitters":

youtu.be/go3ABDGeUdw

While that video doesn't contain examples of zooming in on 3270 screen captures, it does zoom in on a plain-text report. The same technique could be used for 3270 screens (I just haven't found the right excuse to do it yet): that is, to use the PowerPoint Morph transition to smoothly zoom in from a complete 3270 screen to an enlarged portion. By "smooth", I'm not just referring to the animation; I'm also referring to the fact that the zoomed-in portion is rendered as text, not just a jagged close-up of a pixel-based image.

In several of those videos, I use the Morph transition to smoothly scroll down through a "long" 3270 screen capture. I do something similar in Word documents: I "concatenate" into a single figure a set of screens that, in practice, in a terminal emulator, you'd need to (press PF8 to) scroll through.

Too much info? Sorry. I've invested some time and effort in capturing and rendering 3270 screens in various output formats. It's nice to get the chance to write about it.

I don't think I've published any similar Word-based documents containing 3270 captures on the Web; I mostly use such documents for training in-house.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Fri Sep 07, 2018 12:35 pm
Reply with quote

Graham Hannington wrote:
I wish I could simply provide you with Capter, rather than glibly referring to creating PDTs and writing a VBScript wrapper. There are some gotchas, some devils in the detail, that I've worked through.

Given enough interest, I could petition my employer for the time to make Capter publicly available.

Let me know if you are interested. Anyone else?

What would your employer loose by making it publicly available? They would gain quite a bit of goodwill by putting it under a liberal licence on the CBTTape site.

When I left Willis in 1996, and asked if I could take the source (all REXX) of some tools I had written while working for them, the then chief-programmer told me that he would have been surprised if I hadn't already taken it. ;)

All my stuff (see signature) is available under the GPL V3 (or later)
Back to top
View user's profile Send private message
Graham Hannington

New User


Joined: 14 Dec 2009
Posts: 6
Location: Perth, Western Australia

PostPosted: Fri Sep 07, 2018 1:03 pm
Reply with quote

prino wrote:
What would your employer lose by making it publicly available?


My time. I'd want to improve the packaging and documentation before making it publicly available. That might take several days. I don't have much "spare" time (busy at work; two young children at home).

prino wrote:
They would gain quite a bit of goodwill by putting it under a liberal licence on the CBTTape site.


Or some public site. Yes, I agree.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Fri Sep 07, 2018 7:06 pm
Reply with quote

prino wrote:

What would your employer loose by making it publicly available? They would gain quite a bit of goodwill by putting it under a liberal licence on the CBTTape site.

When I left Willis in 1996, and asked if I could take the source (all REXX) of some tools I had written while working for them, the then chief-programmer told me that he would have been surprised if I hadn't already taken it.
...

Would that still be true today? When I joined my present employer in 2010 I had to sign several pages of Intellectual Property legalese.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Fri Sep 07, 2018 7:13 pm
Reply with quote

don.leahy wrote:
prino wrote:

What would your employer loose by making it publicly available? They would gain quite a bit of goodwill by putting it under a liberal licence on the CBTTape site.

When I left Willis in 1996, and asked if I could take the source (all REXX) of some tools I had written while working for them, the then chief-programmer told me that he would have been surprised if I hadn't already taken it.
...

Would that still be true today? When I joined my present employer in 2010 I had to sign several pages of Intellectual Property legalese.

I don't know, that's why I nowadays develop my tools on my own z/OS system. icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Sep 07, 2018 8:08 pm
Reply with quote

Quote:
When I joined my present employer in 2010 I had to sign several pages of Intellectual Property legalese.


Quote:
that's why I nowadays develop my tools on my own z/OS system.


ok when on employer time and using employer equipment

but ...
when - a loong time ago - i signed that HM for IBM
it was clearly specified that the rule covered also artifacts developed on my own time and my own equipment
( at that time people could not afford to be be choosy )
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts Data for newly added fields not displ... IMS DB/DC 6
No new posts DATA SET LIST UTILITY screen TSO/ISPF 6
No new posts Ring the Bell on a 3270 terminal PL/I & Assembler 5
No new posts Am Getting a vertical line in ISPF SC... TSO/ISPF 3
Search our Forums:

Back to Top