SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 63514: Arabic letters are written in an isolated form and appear to be disconnected within a word in SAS® ODS PDF output

DetailsHotfixAboutRate It

Arabic letters have different forms (initial, medial, final, or isolated), depending on where they are located in a word. In a SAS session that is running with Arabic encoding, Arabic letters are written only in the isolated form in SAS Output Delivery System (ODS) output to PDF. As a result, Arabic words appear to have disconnected letters with unnecessary spacing in between them.

Here is an example of output with disconnected letters:

Here is an example of correct output with connected letters:

This issue occurs only for the PDF output. It does not occur in other ODS output types.

Click the Hot Fix tab in this note to access the hot fix for this issue.

 

After applying the hot fix, you need to use an ODS style with a font that supports the different Arabic letter forms (initial, medial, final, or isolated). Here are examples of supported fonts:

Windows Operating Systems

  • Arial
  • Times New Roman

Other Operating Systems

  • Albany AMT
  • Cumberland AMT
  • Thorndale AMT
  • Arial Unicode MS
  • Times New Roman Uni

Here is example code that creates and uses a new ODS style to ensure that the PDF output contains connected Arabic letters:

 proc template;
 define style Styles.TMP;
  parent = styles.Printer;
   replace fonts /
   'docFont' = ("Times New Roman",8pt)
   'headingFont' = ("Times New Roman",9pt,Bold)
   'headingEmphasisFont' = ("Times New Roman",9pt,Bold Italic)
   'FixedFont' = ("Courier New, CourierArial Unicode MS",7pt)
   'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",5pt)
   'FixedHeadingFont' = ("Times New Roman",7pt,Bold)
   'FixedStrongFont' = ("Times New Roman",7pt,Bold)
   'FixedEmphasisFont' = ("Times New Roman",7pt,Italic)
   'EmphasisFont' = ("Times New Roman",8pt,Italic)
   'StrongFont' = ("Times New Roman",8pt,Bold)
   'TitleFont' = ("Times New Roman",11pt,Bold Italic)
   'TitleFont2' = ("Times New Roman",10pt,Bold Italic);
 end;
run;
ods pdf style=TMP;
proc print data=ArabicData;
run;
ods pdf close;


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASLinux for x649.4_M49.4 TS1M4
Solaris for x649.4_M49.4 TS1M4
HP-UX IPF9.4_M49.4 TS1M4
64-bit Enabled Solaris9.4_M49.4 TS1M4
64-bit Enabled AIX9.4_M49.4 TS1M4
Windows 7 Ultimate 32 bit9.4_M49.4 TS1M4
Windows 7 Ultimate x649.4_M49.4 TS1M4
Windows 7 Professional x649.4_M49.4 TS1M4
Windows 7 Professional 32 bit9.4_M49.4 TS1M4
Windows 7 Home Premium x649.4_M49.4 TS1M4
Windows 7 Home Premium 32 bit9.4_M49.4 TS1M4
Windows 7 Enterprise x649.4_M49.4 TS1M4
Windows 7 Enterprise 32 bit9.4_M49.4 TS1M4
Microsoft Windows Server 2012 R2 Std9.4_M49.4 TS1M4
Microsoft Windows Server 2012 Std9.4_M49.4 TS1M4
Microsoft Windows Server 2012 R2 Datacenter9.4_M49.4 TS1M4
Microsoft Windows Server 2012 Datacenter9.4_M49.4 TS1M4
Microsoft Windows Server 2008 for x649.4_M49.4 TS1M4
Microsoft Windows Server 2008 R29.4_M49.4 TS1M4
Microsoft Windows Server 20089.4_M49.4 TS1M4
Microsoft Windows 8.1 Pro x649.4_M49.4 TS1M4
Microsoft Windows 109.4_M49.4 TS1M4
Microsoft Windows 8.1 Pro 32-bit9.4_M49.4 TS1M4
Microsoft Windows 8.1 Enterprise x649.4_M49.4 TS1M4
Microsoft Windows 8.1 Enterprise 32-bit9.4_M49.4 TS1M4
Microsoft Windows 8 Pro x649.4_M49.4 TS1M4
Microsoft Windows 8 Pro 32-bit9.4_M49.4 TS1M4
Microsoft Windows 8 Enterprise x649.4_M49.4 TS1M4
Microsoft Windows 8 Enterprise 32-bit9.4_M49.4 TS1M4
Microsoft® Windows® for x649.4_M49.4 TS1M4
z/OS9.4_M49.4 TS1M4
z/OS 64-bit9.4_M49.4 TS1M4
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.