PSF/AIX or Infoprint: Problem printing Spanish characters

ITEM: RTA000154504



Q:                                                                              
Topic thread:                                                                   
Printer Systems (PRINT - NA/ATS)                                                
 AFP FONTS                                                                      
  FONTS                                                                         
                                                                                
I'm getting problems to print the Spanish special characters. I'm using         
codepage T1V10284 (Spanish Latin America) but I just don't get the right        
characters printed. The server is an AIX machine running PSF for AIX            
V2.1. The page definition refers to a coded font (X0ST12) that points to        
the previously mentioned codepage.                                              
                                                                                
For testing purposes I created, in the client (an HP/9000), a file with         
all the Spanish characters, I can see them on the screen but the printed        
page shows different ones.                                                     
                                                                                
The customer is using the lprafp command, it was renamed to lpr and it's        
something like this:                                                            
                                                                                
lpr -A -odatat=line -oinpexit=/usr/lpp/psf/bin/asciinpe -occ=yes                
-occtype=z -oformdef=F1XXXX -opagedef=P1XXXX -shostname -pprinter               
filename                                                                        
                                                                                
I'm not sure if I should have opened this item under PSF/AIX queue but I        
need an explanation on how PSF for AIX handle fonts when printing flat          
ASCII.                                                                          
                                                                                
Please let me know if you need additional information to diagnose the           
problem. What I tried was modifying the codepage and it worked for only         
some of the characters not for all and I don't think it's the most             
proper way to fix it.                                                           
                                                                                
Thanks in advance for your help.                                                
Regards.                                                                        
                                                                                
A:                                                                              
Please review libraried items RTA000049603 and RTA000102511 for a               
discussion of the underlying processes.  Basically what's happening             
is that you're using inpexit=asciinpe to convert the ASCII data to              
EBCDIC.  Both asciinpe and apka2e are hardcoded to convert from an              
ASCII codepage of 850 to an EBCDIC codepage of 037 using the AIX                
iconv converter and tables.  As RTA000049603 explains, you need to              
know what codepage the data was originally created in.  The standard            
asciinpe and apka2e exits will most likely (as you've found) not work           
for data that has been created with an AIX Spanish code page and that          
is to printed with a font that uses an EBCDIC-encoded Spanish code              
page.  Thus you will at a minimum need to create a new input record             
exit that will convert from the appropriate Spanish ASCII code page             
to the Spanish EBCDIC code page.  If the existing iconv converter               
pairs (that are described in the other items) do not correctly map              
the characters you need, then you may need an additional step of                
generating your own customized iconv converter pair (using the genxlt           
command).                                                                       
                                                                                
Take a look at the items I referenced, then please reopen this item             
with any additional questions.  I'll be glad to work with you to ensure         
you get the proper conversions.                                                 
                                                                                
Closing for now, but please reopen as needed.                                   
                                                                               
(Reviewed Feb 1999)                                                             
                                                                                
S e a r c h - k e y w o r d s:                                                  
psf/6000 psf/aix infoprint ipmgr asciinpe apka2e pagedef iconv                  
ascii ebcdic conversion translation language foreign T1V10284 Spanish           
codepage code page genxlt converter                                             
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000154504 ITEM: RTA000154504
Dated: 02/1999 Category: XPSF6000
This HTML file was generated 99/06/24~12:43:42
Comments or suggestions? Contact us