On Tue, 3 Jul 2012 08:25:09 -0400, Shmuel Metz (Seymour J.) 
<[email protected]> wrote:

> Steve Bireley <[email protected]> said:
>
>>True that they are not unique to APL and is a code page issue.
>>However, some of the lines drawn on 3270 screens in many emulators
>>are drawn using an APL font instead of Unicode or some other code
>>page.
>
>I doubt that it's an APL font; TEXT is more likely. Page 437 is more
>likely than either.

Fidelity in copy/paste requires that both applications know what they're doing 
with the clipboard.  When you place data on the clipboard, you have to tell 
(assuming Windows in this case) about what you've written, and you can't lie.  
If you tell the API the data is text (associated with a locale), then Windows 
will be able to translate it.

And I would certainly expect the emulator's copy function to be intelligent 
enough to recognize that APL data (code page 294) is implemented on a 3270 
using a mixture of two code pages: the base code page (e.g. 037) and code page 
310, with the 3270 Graphic Escape character prefixing each APL-specific 
character in code page 310.

Default locale for Western Windows assumes code page 1252.  But not even DOS 
code page 437 has all of the APL characters in it, so the emulator must store 
data on the clipboard in Unicode format.

The pasting application must then retrieve the data from the clipboard in 
Unicode format.  If the editor doesn't support Unicode, but only the SBCS 
implicit in the locale settings, Windows will translate the Unicode to the 
locale cod page, but you you will not get a good result.

>>In this case, if the emulator does not convert them to another
>>character set or code page when putting the text in the clipboard,
>>then the PC application receiving the data will display the
>>corresponding characters using the character set it has loaded.
>
>That's an issue regardless of what code page it is using.

Generally speaking, full fidelity requires both the copying app and the pasting 
app have to have a common frame of reference.

The TEXT setting, on the other hand, corresponds to a code page that I believe 
was used by ATMS, and was not tied to the TN print train (code page 264).  I 
have never been able to ferret out the code page used by ATMS.

Alan Altmark
IBM

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to