1246659 經濟部智慧財產局員工消費合作社印製 A7 B7 五、發明說明(1 ) [發明領域] 本發明係有關於一種資訊技術,特別是有關於一種高 速式字串顯示方法,其可適用於智慧型電子資訊裝置上, 例如為個人數位助理裝置(Personal Digital Assistant,PDA;) 上,用以更快速地顯示字串(character string)於個人數位助 理裝置的螢幕上。 [發明背景] 個人數位助理裝置為一種小型之可攜帶式智慧型電 子資訊裝置,其可提供簡單之資訊功能,例如記事本、通 訊錄、計算機、日曆、試算表、資料庫、等等,並利用一 小型之液晶顯示螢幕來顯示各種文字及圖形資料。 目前個人數位助理裝置所採用的字庫包括二種標準 之字元寬度:8和16(單位為圖素);因此於螢幕上顯示一特 定之字串(character string)時,若其中之每一個字元 (character)的顯示位置(即螢幕上的圖素座標)為8的倍數, 則顯示過程中便不需要進行移位操作;反之,若非為8的倍 數,則便必須對該字串中的每一個字元均進行一次移位操 作’因此需要重複進行多次之移位操作來逐一顯示該字串 中的各個子元。然而此重複多次之移位操作顯然將使得顯 示速度變得較慢。 [發明概述] 鑒於以上所述習知技術之缺點,本發明之主要目的便 是在於提供一種高速式字串顯示方法,其可適用於個人數 位助理裝置上,用以更快速地顯示字串於個人數位助理裝 (請先閱讀背面之注意事項再填寫本頁)1246659 Ministry of Economic Affairs, Intellectual Property Office, Staff Consumer Cooperative, Printing A7 B7 V. Invention Description (1) [Invention Field] The present invention relates to an information technology, and more particularly to a high-speed string display method, which can be applied to wisdom The type of electronic information device, for example, a Personal Digital Assistant (PDA), is used to display a character string more quickly on the screen of the personal digital assistant device. BACKGROUND OF THE INVENTION A personal digital assistant device is a small portable intelligent electronic information device that provides simple information functions such as a notepad, an address book, a computer, a calendar, a spreadsheet, a database, and the like. Use a small LCD display to display a variety of text and graphic data. At present, the font used by the personal digital assistant device includes two standard character widths: 8 and 16 (in pixels); therefore, if a specific character string is displayed on the screen, if each of the characters If the display position of the character (ie, the pixel coordinates on the screen) is a multiple of 8, the shift operation is not required during the display; otherwise, if it is not a multiple of 8, it must be in the string. Each character is subjected to a shift operation. Therefore, it is necessary to repeat the shift operation a plurality of times to display each of the sub-elements in the string one by one. However, this repeated shift operation will obviously make the display speed slower. SUMMARY OF THE INVENTION In view of the above-mentioned disadvantages of the prior art, the main object of the present invention is to provide a high-speed string display method which can be applied to a personal digital assistant device for displaying a character string more quickly. Personal digital assistant installation (please read the notes on the back and fill out this page)
· ϋ ϋ ϋ I m I . 一°JI ϋ ·ϋ ϋ ϋ— I I I I 1246659 A7 五、發明說明(2 ) 置的螢幕上。 廣義而言,本發明之字串顯示方法至少包含以下步 驟.(1)取得該字串中的每一個字元的點矩陣,·(2)執行一點 矩陣轉換程序,用以將該字串中的所有的字元的點矩陣轉 換成單一個字串點矩陣;其中該字串點矩陣的長度等於該 字串中的各個字元的點矩陣的長度,而其寬度則等於該字 串中的所有字元的點矩陣的總合寬度;且其中係按照該字 串中的各個字元的棑序H序循環方式將各個字元的 點矩陣中的列位元組取出並串接成一列,再接著將其置入 至該字串點矩陣;以及(3)將該字串點矩陣顯示於該智慧型 電子資訊裝置的螢幕上。 本發明之字串顯示方法之特點在於將一字串中的複 數個字疋的點矩陣轉換成單一個字串點矩陣,並將此字串 點矩陣顯示於螢幕上。相較於習知技術,由於本發明之字 串顯不方法最多僅需進行一次移位操作即可將字串顯示於 螢幕上,而不需要如習知技術般地需要進行多次移位操 作,因此可提供更快速的字串顯示效果。 [圈式簡逑] 本發明之實質技術内容及其實施例已用圖解方式詳 細揭露繪製於本說明書所附之圖式之中。此些圖式之内容 簡述如下: 第1圖顯示一個人數位助理裝置的外觀示意圖; 第2圖為一示意圖,其中顯示字串” 中的各個字元 ”A”、”B”、”C”的點矩陣; (請先閱讀背面之注意事 4 項再填 ·1111111' » — — — — — — — — 寫本頁) 經濟部智慧財產局員工消費合作社印製 本紙張又度適用中國國家標準(CNS)A4規格(21〇 χ 297 2 16506 1246659 11 21 22 23 30 A7 五、發明說明(3 ) 第3圖為一示意圖,其中顯示將第2圖所八一—一 點矩陣經轉換後所得到之單一個字串點矩陣T之三個字冗 第4圖為一流程圖,其中顯示本發明 的基本流程步驟; <予争顯示方法 第5圖為一流程圖,其中顯示本發明之字 、 所採用之點矩陣轉換程序的運算法步驟。予顯示方法 [圖式標號說明] 1 〇 個人數位助理裝置 液晶顯示螢幕 字元”A”的點矩陣 字元f’ Bf’的點矩陣 字元’’C”的點矩陣 字串nABC”的點矩陣 [發明實施例] 以下即配合所附圖式之第1圖至第5圖, .^ 咩細揭露說明 本發明之字串顯示方法之一實施例。本發 一 _ 〇 赞明適用於顯示字 疋寬度為8或16之字串。於以下之實施例ψ ^ 0 T將以字元寬度 為8之子串為範例來說明。 請首先參閱第1圖,於此實施例中,太 一 尽發明之字串顯 示方法係應用於一智慧型電子資訊裝置,伽 例如為一個人數 位助理裝置10上,且該個人數位助理裝置1〇具有一小型之 液晶顯示螢幕11,可顯示出各種文字及圖形資料。 請接著參閱第2圖,於此實施例中,假設個人數位助 理裝置10欲將一字串n ABC”顯示於螢幕11上,且此字串 -----------裝---------訂--------- (請先閱讀背面之注意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製 本紙張尺度適用中國國家標準(CNS)A4規格(210 x 297公釐) 3 16506 1246659 五、發明說明(4 ) ABC”中的各個字元”A”、”B”、”c,,的點矩陣的尺寸均為 16x8(亦即長度為16個圖素,而寬度則為8個圖素),包括一 16x8之ΠΒ”字元點矩陣22、和 此外,假設ΠΑΠ字元點矩陣21 、.....、αΐ6) ; ffB”字元點矩陣 b2、.····、卜6),·而”C”字元點 q、··…、c16);其中每 A7 16x8之"A”字元點矩陣21、 一 16x8之"C"字元點矩陣23 中的1 6個列位元組為(αι、‘ 22中的16個列位元組為 矩陣2 3中的1 6個列位元組則為& 一個列位元組包括8個位元 習知技術係將上述之字串”ABC”中的三個字元"α”、 ”B”、”C”的點矩陣分別依序自顯示記憶體中取出並逐一顯 示於螢幕11上;亦即先取出”A”字元點矩陣21並將其顯示 於螢幕11上的指定位置;再接著取出” B”字元點矩陣22並將 其顯不於”A”字元點矩陣21的接續位置;最後再取出” c”字 元點矩陣23並將其顯示於”B,,字元點矩陣以的接續位置。但 此習知之字串顯示方法的缺點在於若三個字元"A”、,,b,,、 ”c”的顯示位置(即螢幕上的圖素座標)非為8的倍數,則便 須對每-個字元均進行—次移位操作;亦即於顯元 ’’A”之前,須先針對字元”A”進行一次 μ 一 卞 進灯夂移位刼作;接著於顯 示字元”Β”之前,針對字元"Β”進行—次移位操作;最後於 顯示字元"Β”之前,針對字元"c”進行—次移位操作。然而 此重複多次之移位操作顯然將使得顯示速度變得較慢。 本發明之字申顯示方法則係將字串"ABc"中的^個字 元”A”、”B”、"C"首先轉換成單—個點矩陣(以下稱為"字串 點矩陣”);亦即將其中三個字元”A"、"B”、,,〇的MM點矩 k紙張尺度刺中關家標準(CNS)A4規格(210x297公爱)""""" ------- 4 16506 ^---------^--------- (請先閱讀背面之注意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製 1246659 經濟部智慧財產局員工消費合作社印製 陣中的第16個列位元組。依此方式,即可建立如第3圖所示 之16x24字串點矩陣30。· ϋ ϋ ϋ I m I . 一°JI ϋ ·ϋ ϋ ϋ — I I I I 1246659 A7 V. On the screen of the invention (2). Broadly speaking, the string display method of the present invention comprises at least the following steps: (1) obtaining a dot matrix of each character in the string, and (2) performing a one-point matrix conversion procedure for using the string in the string The dot matrix of all the characters is converted into a single string dot matrix; wherein the length of the dot matrix is equal to the length of the dot matrix of each character in the string, and the width thereof is equal to the length of the string The total width of the dot matrix of all characters; and wherein the column bytes in the dot matrix of each character are fetched and concatenated into a column according to the sequential H-sequence of each character in the string. And then placing it into the string matrix; and (3) displaying the string matrix on the screen of the smart electronic information device. The character string display method of the present invention is characterized in that a dot matrix of a plurality of words in a string is converted into a single dot dot matrix, and the dot matrix is displayed on the screen. Compared with the prior art, since the string display method of the present invention only needs to perform a shift operation at most, the string can be displayed on the screen without requiring multiple shift operations as in the prior art. , so it provides a faster string display. [Circle] The technical contents of the present invention and the embodiments thereof have been described in detail in the drawings attached to the present specification. The contents of these figures are briefly described as follows: Figure 1 shows a schematic diagram of the appearance of a number of assistant devices; Figure 2 shows a schematic diagram of each character in the string "A", "B", "C" Point matrix; (please read the note on the back first and then fill in the 1111111' » — — — — — — — — Write this page) The Ministry of Economic Affairs, the Intellectual Property Office, the employee consumption cooperative, printed this paper and applied the Chinese national standard. (CNS) A4 specification (21〇χ 297 2 16506 1246659 11 21 22 23 30 A7 V. Description of invention (3) Figure 3 is a schematic diagram showing the conversion of the eight-one matrix of Figure 2 The three words of a single string dot matrix T are redundant. FIG. 4 is a flowchart showing the basic flow steps of the present invention; <Predicting display method FIG. 5 is a flowchart showing the word of the present invention. , the arithmetic method steps of the dot matrix conversion program used. The display method [pattern label description] 1 〇 Personal digital assistant device liquid crystal display screen character "A" dot matrix character f' Bf' dot matrix character ''C' point The dot matrix of the matrix string nABC" [Embodiment of the Invention] Hereinafter, an embodiment of the string display method of the present invention will be described with reference to Figs. 1 to 5 of the drawings. _ 〇 明 适用 适用 适用 适用 适用 适用 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 In an embodiment, the string display method of the invention is applied to a smart electronic information device, such as a number of assistant devices 10, and the personal digital assistant device 1 has a small liquid crystal display screen 11 Various text and graphic materials are displayed. Please refer to FIG. 2, in this embodiment, it is assumed that the personal digital assistant device 10 wants to display a string n ABC" on the screen 11, and the string ----- ------Install---------Book--------- (Please read the notes on the back and fill out this page) Printed by the Ministry of Economic Affairs, Intellectual Property Bureau, Staff and Consumers Cooperatives The paper scale applies to the Chinese National Standard (CNS) A4 specification (210 x 297 mm) 3 16506 1246659 V. The dot matrix of each character "A", "B", "c," in (4) ABC" is 16x8 (that is, the length is 16 pixels, and the width is 8 pixels). ), including a 16x8 字" character point matrix 22, and further, assuming ΠΑΠ character point matrix 21, ....., α ΐ 6); ffB" character point matrix b2, . . . . ), and "C" character points q, ··..., c16); where each A7 16x8 "A" character point matrix 21, a 16x8 "C" character point matrix 23 The number of column bytes is (αι, '16 of the 16 bytes in the matrix 22 is 16 in the matrix 2 3 is & one column of the byte includes 8 bits of the prior art system The dot matrix of the three characters "α", "B", and "C" in the above-mentioned string "ABC" is sequentially taken out from the display memory and displayed on the screen 11 one by one; that is, first taken out The "A" character dot matrix 21 is displayed on the specified position on the screen 11; then the "B" character dot matrix 22 is taken out and displayed at the contiguous position of the "A" character dot matrix 21; Then take out the "c" character point Array 23 and shown in "B ,, successive character position of a dot matrix. However, the disadvantage of the conventional string display method is that if the display position of the three characters "A", ,, b,,, and "c" (ie, the pixel coordinates on the screen) is not a multiple of 8, then The shift operation must be performed for each character; that is, before the lemma ''A', the ” 卞 针对 针对 针对 针对 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Before "Β", the shift operation is performed for the character "Β"; finally, before the display character "Β, the shift operation is performed for the character "c". However, this is repeated multiple times. The shift operation will obviously make the display speed slower. The word display method of the present invention converts the ^ characters "A", "B", "C" in the string "ABc" into Single-point matrix (hereinafter referred to as "string dot matrix); also three of the characters "A", "B",,,〇 MM point moment k paper scale stabbing the standard CNS)A4 specification (210x297 public)""""" ------- 4 16506 ^---------^--------- (please Read first Note the surface to fill out this page) Ministry of Economic Affairs Intellectual Property Office employees consumer cooperatives printed 1,246,659 Ministry of Economic Affairs Intellectual Property Office employees consumer cooperatives printed array of 16 columns of bytes. In this way, a 16x24 string dot matrix 30 as shown in Fig. 3 can be created.
本紙張尺度適用中國國家標準(CNS)A4規格(210x 297公爱 16506 A7 五、發明說明(5 ) 陣首先轉換成單一個寬度為3倍(即Ι6χ2 (如第3圖所示之字串 )的子串點矩陣 卜 甲矩陣〇),便可將字串,,ABd ♦、# 仃一次移位操作即顯示於螢幕U上。 僅而進 第4圖的流程圖即顯示本發 流程步驟。 甲顯不方法的基本 如圖所示,當個人數位助理 :於螢幕Η上時,首先執行步驟S1,顯 2=該:串一各個字元,,… 接著於步驟S2中,執行一點矩隍 二依序:環方式將各個字元..八”1,,的點笼陣21、 字宗二t列位^組取出’再接著將其合併成- Μ4的 :A,串點矩降I•亦即於第1次循環操作時,將各個字元 、的點矩陣中的η個列位元組…以分 ^取出並串接成一列,用以作為16心字串點矩陣3〇中的 1個列m接著於第2次循環操作中,將各個字元 "八”、’’3"、"〇點矩陣中的第2個列位元組^以 別取出並串接成n以作為16x24字串點料中的第2 個列位元組;依此類推’於最後之第16次循環操作時,將 各個字元”八”、”『,點矩陣中的第16個列位元組《16、 心6、^6分別取出並串接成一列,用以作為16><24字串點矩 0 ^--------^---------Φ. (請先閱讀背面之注意事項再填寫本頁) 1246659 經 部 智 慧 財 產 局 員 工 消 費 合 作 社 印 製 本紙張尺度適用中國國冢標準(CNS)A4規格⑵Q χ撕公爱) 6 A7 Β7 五、發明說明(6 ) 第5圖的流程圖即顯示上述之點矩陣轉換程序的運算 法步驟。 如圖所示,於此點矩陣轉換程序中,首先進行步驟 S21 ’令^字元高度、w=字元寬度、Μ=0(於上述之實施例 中’即 h=16、w=8)。 接著進行步驟S22,檢查hi=h是否為真;若是,則結束 點矩陣轉換程序;若否,則將程序跳至步驟S23。 於步驟S23中,令wi = 〇(定義新變數)。 接著於驟S24中,檢查wi=w是否為真;若是,則將程 序跳至步驟S25 ;若否,則將程序跳至步驟S26。 於步驟S25中,令hi=hi+l,並接著將程序跳回至先前 之步驟S22。 於步驟S26中,從字串中的各個字元的點矩陣中,取 出第hi*w+wi個列位元組,並將其置入字串點矩陣。完成 之後,即接著進行步驟S27。 於步驟S27中,令wi=wi+1,並接著將程序跳回至先前 之步驟S24。 完成上述之點矩陣轉換程序之後,即可將字串”abc” 中的三個字元”A”、"B"、"c"的16χ8字元點矩陣Η、Μ、 23轉換成單一個ι6χ24字串點矩陣3〇。 請再參閱第4圖,完成第3圖所示之點矩陣轉換程序之 後,接著即進行步驟S3,將該點矩陣轉換程序所建立之— 串點矩陣30顯示於螢幕Η上;亦即將字串點矩物按: 1 ^ '…··、〜6、016、〜)之順序將各This paper scale applies to the Chinese National Standard (CNS) A4 specification (210x 297 public 16506 A7 5. Inventions (5) The array is first converted to a single width of 3 times (ie Ι6χ2 (as shown in Figure 3) The substring dot matrix matrix 〇), the string, ABd ♦, # 仃 can be displayed on the screen U once. The flow chart of Fig. 4 shows the steps of the process. Basically, as shown in the figure, when the personal digital assistant: on the screen, first perform step S1, display 2 = the: string one character, ... Then in step S2, perform a little matrix Second in order: the ring method will take each character: eight "1," the point cage 21, the word two t column ^ group out 'and then merge them into - Μ 4: A, string point moment drop I• That is, in the first loop operation, the n column bytes in the dot matrix of each character, are taken out and concatenated into a column, which is used as a 16-word string matrix 3 1 column m is followed by the 2nd column operation, and the 2nd column in each character "eight", ''3", "〇 matrix The tuple ^ is not taken out and concatenated into n as the second column byte in the 16x24 string material; and so on, in the last 16th loop operation, each character "eight", ", the 16th column byte in the dot matrix "16, heart 6, ^6 are respectively taken out and concatenated into a column, used as 16><24 string point moment 0 ^------ --^---------Φ. (Please read the notes on the back and fill out this page) 1246659 The Department of Intellectual Property of the Ministry of Intellectual Property Printed by the Consumer Cooperatives This paper scale applies to China National Standard (CNS) A4 Specification (2) Q χ tearing public love) 6 A7 Β7 V. Invention description (6) The flowchart of Fig. 5 shows the algorithm steps of the above-mentioned dot matrix conversion program. As shown in the figure, in this point matrix conversion program, first Step S21', the height of the character, w=char width, Μ=0 (in the above embodiment, ie, h=16, w=8). Then proceed to step S22 to check whether hi=h is true; If yes, the dot matrix conversion process is ended; if not, the program is skipped to step S23. In step S23, let wi = 〇 (define a new variable). Then, at step S24 , check if wi=w is true; if yes, the program jumps to step S25; if not, the program jumps to step S26. In step S25, let hi=hi+l, and then jump the program back to the previous Step S22. In step S26, the hi*w+wi column bytes are extracted from the dot matrix of each character in the string, and placed in the string matrix. After completion, then Go to step S27. In step S27, let wi = wi+1, and then jump back to the previous step S24. After completing the dot matrix conversion procedure described above, the three characters "A", "B", "c" in the string "abc" can be converted into a single matrix of χ, Μ, 23 A ι6χ24 string dot matrix 3〇. Referring to FIG. 4 again, after the dot matrix conversion process shown in FIG. 3 is completed, step S3 is performed, and the dot matrix 30 created by the dot matrix conversion program is displayed on the screen; Point moments are as follows: 1 ^ '...··, ~6, 016, ~)
"l65〇T -----------裝·-------訂--------- (請先閱讀背面之注意事項再填寫本頁) 1246659 經濟部智慧財產局員工消費合作社印製 A7 B7 五、發明說明(7 ) 個圖素逐一顯示於螢幕^上。此即完成本發明之字串顯示 方法的程序。 於上述之字串顯示程序中,由於本發明係將字串 ’’ABC”中的三個字元”A”、”B”、,,c”轉換成單一個點矩陣來 處理,因此若有必要移位時,則僅需要進行一次移位操作 即可’而不需要如習知技術般地需要進行多次移位操,因 此可更快速地顯示字串”ABC,,於個人數位助理裝置1〇的螢 幕11上。 綜而言之’本發明提供了一種高速式之字串顯示方 法,其特點在於將一字串中的複數個字元的點矩陣轉換成 單一個字串點矩陣,並將此字串點矩陣顯示於螢幕上。相 較於習知技術,由於本發明之字串顯示方法最多僅需進行 一次移位操作即可將字串顯示於螢幕上,而不需要如習知 技術般地需要進行多次移位操,因此可提供更快速的字串 顯示效果。本發明因此較習知技術具有更佳之進步性及實 用性。 以上所述僅為本發明之較佳實施例而已,並非用以限 定本發明之實質技術内容的範圍。本發明之實質技術内容 係廣義地定義於下述之申請專利範圍中。任何他人所完成 之技術實體或方法,若是與下述之申請專利範圍所定義者 為完全相同、或是為一種等效之變更,均將被視為涵蓋於 此專利範圍之中。 · ϋ ϋ ϋ ϋ — ϋ ϋ 一5、· H ϋ ϋ ϋ 1· ϋ ϋ I . (請先閱讀背面之注意事項再填寫本頁) 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 7 16506"l65〇T -----------装·-------定--------- (Please read the notes on the back and fill out this page) 1246659 Economy Ministry of Intellectual Property Bureau employee consumption cooperative printed A7 B7 V. Invention description (7) The pixels are displayed one by one on the screen. This is the procedure for completing the string display method of the present invention. In the above string display program, since the present invention converts the three characters "A", "B", ", c" in the string ''ABC' into a single dot matrix, if there is When it is necessary to shift, only one shift operation is required. 'It is not necessary to perform multiple shift operations as in the prior art, so the string can be displayed more quickly" ABC, in the personal digital assistant device On the screen 11 of the cymbal. In summary, the present invention provides a high-speed string display method, which is characterized in that a dot matrix of a plurality of characters in a string is converted into a single dot matrix. And displaying the string dot matrix on the screen. Compared with the prior art, since the string display method of the present invention only needs to perform a shift operation at most, the string can be displayed on the screen without It is technically necessary to perform a plurality of shifting operations, so that a faster string display effect can be provided. The present invention is therefore more advanced and practical than the prior art. The above description is only a preferred embodiment of the present invention. Just for example, not for The scope of the technical contents of the present invention is defined in the following claims. The technical entity or method completed by any other person is defined by the following patent application scope. Equivalent or equivalent changes will be considered to be covered by this patent. · ϋ ϋ ϋ ϋ — ϋ ϋ 5 、 、 、 、 5 · · · · · 请 请 请 请 请Read the notes on the back and fill out this page.) This paper size applies to the Chinese National Standard (CNS) A4 specification (210 X 297 mm) 7 16506