Browse Prior Art Database

Handling of Multiple Byte Character Set Data in Application-Generating Advanced Function Presentation Datastream

IP.com Disclosure Number: IPCOM000122770D
Original Publication Date: 1998-Jan-01
Included in the Prior Art Database: 2005-Apr-04
Document File: 2 page(s) / 41K

Publishing Venue

IBM

Related People

Yamasaki, T: AUTHOR

Abstract

Disclosed is a method to hide the complexity in handling Multiple Byte Character Set (MBCS) text data from an application and create an Advanced Function Presentation (AFP) datastream. The method was implemented in Toolbox for Multiple Operating Systems.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 61% of the total text.

Handling of Multiple Byte Character Set Data in Application-Generating
Advanced Function Presentation Datastream

      Disclosed is a method to hide the complexity in handling
Multiple Byte Character Set (MBCS) text data from an application and
create an Advanced Function Presentation (AFP) datastream.  The
method was implemented in Toolbox for Multiple Operating Systems.

      Under the current AFP architecture, font resource must be in
either Single Byte Character Set (SBCS) or Double Byte Character Set
(DBCS).  SBCS text data must be associated with an SBCS font and DBCS
text data with a DBCS font.  However, typically users enter MBCS text
data in a string without any font switch.  In order to handle a
mixture of SBCS, DBCS, or Triple Byte Character Set (TBCS) text data
without requiring users to enter such data separately, the functions
in Toolbox  provide users intuitively with an easy way to associate
MBCS data with  AFP font resources and produce an AFP datastream
without knowledge of the various encoding schemes.

      The method calls for a Toolbox application to use two APIs:
The first call creates a font handle with a set of attributes
including an AFP SBCS codepage, AFP DBCS codepage, and MBCS codeset
name.  For example,
 AFPDefineDbFontByAttr("T10H1027",        // AFP SBCS codepage
                       "T10300",          // AFP DBCS codepage
                       "IBM-939",  ...