US005689723A United States Patent (19) 11 Patent Number: 5,689,723 Lim et al. 45) Date of Patent: Nov. 18, 1997 (54) METHOD FOR ALLOWINGSINGLE-BYTE 5,091,878 2/1992 Nagasawa et al. ..................... 364/419 CHARACTER SET AND DOUBLE-BYTE 5,257,351 10/1993 Leonard et al. ... ... 395/150 CHARACTER SET FONTS IN ADOUBLE 5,287,094 2/1994 Yi....................... ... 345/143 BYTE CHARACTER SET CODE PAGE 5,309,358 5/1994 Andrews et al. ... 364/419.01 5,317,509 5/1994 Caldwell ............................ 364/419.08 75 Inventors: Chan S. Lim, Potomac; Gregg A. OTHER PUBLICATIONS Salsi, Germantown, both of Md.; Isao Nozaki, Yamato, Japan Japanese PUPA number 1-261774, Oct. 18, 1989, pp. 1-2. Inside Macintosh, vol. VI, Apple Computer, Inc., Cupertino, (73) Assignee: International Business Machines CA, Second printing, Jun. 1991, pp. 15-4 through 15-39. Corp, Armonk, N.Y. Karew Acerson, WordPerfect: The Complete Reference, Eds., p. 177-179, 1988. 21) Appl. No.: 13,271 IBM Manual, "DOSBunsho (Language) Program II Opera 22 Filed: Feb. 3, 1993 tion Guide” (N:SH 18-2131-2) (Partial Translation of p. 79). 51 Int. Cl. ... G09G 1/00 Primary Examiner-Phu K. Nguyen 52) U.S. Cl. .................. 395/805; 395/798 Assistant Examiner-Cliff N. Vo (58) Field of Search ..................................... 395/144-151, Attorney, Agent, or Firm-Edward H. Duffield 395/792, 793, 798, 805, 774; 34.5/171, 127-130, 23-26, 143, 116, 192-195: 364/419 57 ABSTRACT The method of the invention allows both single-byte char 56) References Cited acter set (SBCS) and double-byte character set (DBCS) U.S. PATENT DOCUMENTS fonts in a DBCS code page. The invention stores the SBCS and DBCS text of the document in separate areas. Each area 4,498,148 2/1985 Glickman ................................ 364/900 contains the following specific information about the text: 4,543,631 9/1985 Kurosu et al. .. ... 364/200 the actual text itself, the length in bytes of the text, the 4,559,614 12/1985 Peek et al. .......... ... 364/900 4,737,779 4/1988 Somigli et al. ......... ... 340/745 horizontal starting position of the text, the font attributes for 4,745,561 5/1988 Hirosawa et al. .. ... 364/523 that text, a flag to indicate that the text is SBCS or DBCS 4,751,740 6/1988 Wright ...................................... 382/1 text, and the value which points to the next area containing 4,755,955 7/1988 Kimura et al....... ... 364/518 some text. The font attributes contain information such as 4,827,530 5/1989 Yamaguchi et al. ...................... 382/13 the font typeface name, point size, color, weight, width, and 4,831,529 5/1989 Miike et al. ........ ... 364/419 the value to indicate whether the font type is an SBCS or a 4,868,913 9/1989 Tse-Kai ............... ... 340/711 DBCS font type. A document is then set up to use different 4,933,880 6/1990 Borgendale et al. ... ... 364/523 fonts, SBCS or DBCS, for specific sections of text and 4949.287 8/1990 Yamaguchi et al. ... ... 364/523 alternating back and forth between the fonts as many times 4954,979 9/1990 Elbner et al. ........... ... 364/900 5,005,137 4/1991 Ernst ........... ... 364/514 as is necessary. The text of the document that uses the 5,043,712 8/1991 Kihara et al. ... ... 340/735 different fonts will be in separate areas and each area will 5,079,701 1/1992 Kuga et al. ......... ... 364/419 contain its own text and font specific information. 5,084,817 1/1992 Kumano et al. .... ... 364/419 5,084,820 1/1992 Nagaya et al........................... 364/419 3 Claims, 11 Drawing Sheets PREV NEXT ENGUSH TEXT EXT This is a test NODE NODE Font Index FON FON NEX ATRIBUTES METRCS FONT MES U.S. Patent Nov. 18, 1997 Sheet 1 of 11 5,689,723 FIG. 1 1 OO M FONT TABLES AND FONT ATTRIBUTES 1O8 DISPLAYBUFFER PROGRAM TO CONSTRUCT TEXT NODESTRUCTURE FG.9 PROGRAM TO UPDATE FONT TABLE F.G. 10 1O6 OPERATING SYSTEM 1 O2 KEYBD 8 PRINTER O4 114 112 116 U.S. Patent Nov. 18, 1997 Sheet 2 of 11 5,689,723 HIRAGANA LINGUIST SBCSKANU KATAKANA FONT TEX EY NE TEXT DBCS NORM KANU INDEXLENGTHo No||POINTER ENGLISH 1, LINGUIST THIS INDICATES WHETHER THE TEXT N THISTEXT NODE IS SPELLED CORRECTLY OR IT HAS A SPELLINGERROR. 2. SBCS/DBCS INDICATES WHETHER THIS TEXT NODE CONTAINS SINGLE-BYTE TEXT OR DOUBE-BYTE TEXT, TEXT OF DFFERENT SIZES WILL NOTAPPEAR IN THE SAME TEXT NODE. 3. YOM/KANJI/NORM/CTRL INDICATES THE STATE THAT THE TEXT N THE CURRENT TEXT NODE IS N: -YOM1: TEXT (USUALLY HIRAGANAOR KATAKANA) WHICH HAS BEEN FIG. ENTERED IN CONVERSION MODEBUT WHICH HAS NOT YET BEEN CONVERTED TO KANU. TEXT WILL REMAIN IN THIS STATE 2 REGARDLESS OF THE USERS ACTIONS, UNLESS HE CONVERTS IT, NORMALIZES IT, ORDELETES IT, -KANJ: TEXT WHICH HAS BEEN CONVERTED TO KANU CHARACTERS FROM YOM BUT WHICH HAS NOT YET BEEN NORMALIZED, TEXT N THIS STATE WILL STILL REFERENCE ALL OF THE NECESSARY INFORMATION TO PERFORMFUTURE KANA-KANU CONVERSION FUNCTIONS AND WILL REMAIN IN THIS STATE UNTILTHE USER UNCONVERTS IT, NORMALIZES IT, OR DELETES IT. -NORM; TEXT WHICH IS NEITHER IN YOMOR KANU STATE THIS IS THE STANDARD STATE OF ENGLISHTEXT AND OF JAPANESETEXT WHICH WILL NOLONGER BE USED IN ANY CONVERSION ROUTINES, -CTRL TEXT WHICH IS CONTROL INFORMATION CONTAINING THE ORIGINAL YOMWHICH CONVERTED TO A PARTICULAR KANU PHRASE AND OTHER CONTROL DATAPASSED BACK FROM THE SYSTEM CONVERSION ROUTINES, THERE IS ONE OF THESETEXT NODESATTACHED TO EACH KANJ-STATE PHRASE IN THE DOCUMENT AND THEY ARE NOT DISPLAYED. THEY CONTAINALL THE INFORMATION NECESSARY TO OO FURTHER KANA-KANU CONVERSION ROUTINES ON THE ASSOCATED KANU PHRASE IF RECRUESTED. TEXT OF DIFFERENT STATES WILLNEVEREXIST IN THE SAME TEXT NODE. U.S. Patent Nov. 18, 1997 Sheet 3 of 11 5,689,723 FONT FONT CODE | NEXT ATTRIBUTES METRICS PAGE | FONT FIG. 4 1. FONT ATTRIBUTES THIS REPRESENTS THE WARIOUS STYLESIATTRIBUTES OF THIS PARTICULAR FONT. FAMILY WEIGHT TALC WIDTH ULINE over Box color BASE SIZE A. FAMILY THIS IS THE FAMILY NAME OF THE FONT, SUCH AS HELVETICA, TIMES ROMAN, AND MINCHO, WEIGHT THIS INDICATES THE THICKNESS OF THE STROKES OF THE CHARACTERS IN THE FONT, VALUES CAN BE MEDUMOR BOLD. TALC THIS INDICATES WHETHER THE FONT IS TALIC OR UPRIGHT. WDTH THIS INDICATES THE WIDTH OF THE CHARACTERS IN THE FONT. ULINE INDICATES THE TYPE OF UNDERLINE USED FOR UNDERLINING THE CHARACTERS IN THIS FONT. VALID TYPES OF LINES ARE: OFF, SOLID, DOTTED, DASHED, AND DASH-DOTTED F. OVER NDICATES THE TYPE OF OVERSTRKING USED FOR OVERSTRKING THE CHARACTERS IN THIS FONT. VALID TYPES OF LINES ARE: OFF, SOLID, DOTTED, DASHED, AND DASH-DOTTED BOX INDICATES THE TYPE OF BOX USED FOR BOXING THE CHARACTERS IN THIS FONT. VALID TYPES OF BOXES ARE: OFF, SOLID, DOTTED, DASHED, AND FILLED. U.S. Patent Nov. 18, 1997 Sheet 7 of 11 5,689,723 HOLVITTMOTVO U.S. Patent Nov. 18, 1997 Sheet 9 of 11 5,689,723 º6.§),2^/£)()e?už‘?SeuodDTSISI?I U.S. Patent Nov. 18, 1997 Sheet 11 of 11 5,689,723 START 602 STARTAT BEGINNING OF EDITOR FONT TABLE FI G O 604 DO THE YES FONTAT TRIBUTES MATCH THE EDITOR FONT 1. 524 TABLE ENTRY ATTRIBUTES THIS PART 608 SEARCHES NO THE EXISTING MOVE TO THE NEXT EDITOR'S FONT TABLE ENTRY FONT TABLE 61O S THIS THE LAST FONT TABLE ENTRY YES 612 STARTAT BEGINNING OF OPERATING SYSTEM FONT TABLE 616 YES MEASANG CREATE THE FONT USING SYSTEM FONT TABLE THE FONT'S CODE PAGE NTRY ATTRIBUTE THIS PART 68 62O SEARCHES THE APPEND THE OPERATING NO OPERATING SYSTEM FON AT TRBUTES MOVE TO THE NEXT SYSTEM'S TO THE END OF THE FONT TABLE ENTRY FONT TABLE EDTOR'S FONT TABLE 622 IS THIS RETURN THE FONT INDEX THE LAST FONT NTO THE EDITOR'S FONT TABLE ENTRY TABLE OF THE FONT TO USE YES 624 SUBSTITUTE THE DEFAULT OPERATING SYSTEM FONT 5,689,723 1. 2 METHOD FOR ALLOWING SINGLE-BYTE FIG. 1 is an architectural diagram of a data processing CHARACTER SET AND DOUBLE-BYTE system for carrying out the invention. CHARACTER SET FONTS IN ADOUBLE. BYTE CHARACTER SET CODE PAGE FIG. 2 is a data format diagram of a generic text node. FIG. 3 shows the layout of a font table. BACKGROUND OF THE INVENTION FIG. 4 shows the layout of a font attribute for the 1.Technical Field particular fonts specified in the font table of FIG. 3. The invention disclosed broadly relates to data processing systems and more particularly relates to an improved system FIG. 5 shows the text node and its corresponding font and method for combining single-byte character set fonts table and attributes for SBCS text using an SBCS font, as set and double byte character set fonts in a double-byte char 10 forth in greater detail in Table 1. acter set code page. FIG. 6 illustrates a text node and the corresponding font 2. Background Art table attributes for DBCS text using a DBCS font, as Related copending patent application entitled "Style described in greater detail in Table 2. Component of a WYSIWYG Text Editor.” by K. W. FIG. 7 illustrates five sequential text nodes and their Borgendale, et aI., filed May 14, 1990, assigned to IBM and 15 corresponding font tables and attributes for mixed text incorporated herein by reference. containing both SBCS and DBCS fonts, as set forth in Related copending patent application entitled "Method greater detail in Table 3.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages17 Page
-
File Size-