JP2012194561A - Character display device, character display method, and program therefor - Google Patents

Character display device, character display method, and program therefor Download PDF

Info

Publication number
JP2012194561A
JP2012194561A JP2012105983A JP2012105983A JP2012194561A JP 2012194561 A JP2012194561 A JP 2012194561A JP 2012105983 A JP2012105983 A JP 2012105983A JP 2012105983 A JP2012105983 A JP 2012105983A JP 2012194561 A JP2012194561 A JP 2012194561A
Authority
JP
Japan
Prior art keywords
character
attribute
characters
document
pictogram
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2012105983A
Other languages
Japanese (ja)
Inventor
Shin Sugimoto
慎 杉本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2012105983A priority Critical patent/JP2012194561A/en
Publication of JP2012194561A publication Critical patent/JP2012194561A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

PROBLEM TO BE SOLVED: To increase drawing speed when displaying a document where pictographs and characters are mixed.SOLUTION: A character display device 1 for displaying a document where pictographs and characters are mixed comprises: a retrieval means 101 for retrieving an appearance position of the pictograph in the document; count means 100 to 102 for counting number of characters consecutively appearing before the appearance position of the pictographs retrieved by the retrieval means; and drawing means 12, 100 to 102, and 104 which, after setting a common attribute of the consecutively appearing characters counted by the count means, draw these characters by the number of characters, and then after setting an attribute of the pictograph draw the pictograph.

Description

本発明は携帯端末の文字表示方式に関し、特に、絵文字と文字が混合している文書を表示する文字表示装置、文字表示方法およびそのためのプログラムに関する。   The present invention relates to a character display method for a mobile terminal, and more particularly to a character display device, a character display method, and a program for displaying a document in which pictograms and characters are mixed.

従来の携帯端末では、絵文字と文字が混合している文書を表示する際、絵文字または文字に関わらず一文字ずつ該文字の属性設定を行ってはその属性設定した絵文字または文字を描画して絵文字と文字が混合している文書を表示していた。それゆえ、従来の携帯端末では、絵文字と文字が混合している文書中の絵文字または文字を描画する際、絵文字または文字に関わらず一文字ずつ属性設定する必要があり、そのため文字の描画に時間がかかっていた。本明細書では、絵文字とは文字サイズに作られた絵(アイコン)を言い、文字とはコンピュータで入力可能な文字や記号を言う。   In a conventional portable terminal, when displaying a document in which pictograms and characters are mixed, regardless of the pictograms or characters, the character attributes are set one by one, and the pictograms or characters set with the attributes are drawn to represent the pictograms. A document with mixed characters was displayed. Therefore, in conventional mobile terminals, when drawing pictograms or characters in a document in which pictograms and characters are mixed, it is necessary to set attributes one by one regardless of the pictograms or characters. It was hanging. In this specification, a pictogram means a picture (icon) made in a character size, and a character means a character or symbol that can be input by a computer.

文字および絵文字の属性には、色(赤、青、黄、等)という属性、フォントの種類(明朝体、ゴシック体、等)という属性、フォントの書体(標準、斜体、太字、等)という属性、フォントのサイズ(8、12、16、等)という属性、背景色(白、黒、黄、等)という属性、等がある。   Character and pictographic attributes include color (red, blue, yellow, etc.), font type (Mincho, Gothic, etc.), font type (standard, italic, bold, etc.) There are attributes such as attributes, font size (8, 12, 16, etc.), background colors (white, black, yellow, etc.), and so on.

特許文献1には、携帯電話に保存されているメールから特定の文字列または絵文字が含まれているメールを検索する方法が記載されている。特許文献1の第1実施例によれば、メールのサブジェクトおよび/または本文の中に特定の文字列が含まれているか否かによりメールは検索され、特許文献1の第2実施例によれば、メール中の絵文字の色によってメールは検索される。絵文字を表す特定のコードには、絵文字のパターンを表すコードや絵文字の色を示すコードがあるので、特許文献1では絵文字の色を示すコードで絵文字を識別している。   Patent Document 1 describes a method for searching for an email containing a specific character string or pictogram from emails stored in a mobile phone. According to the first example of Patent Document 1, mails are searched depending on whether or not a specific character string is included in the subject and / or body of the mail. According to the second example of Patent Document 1, The mail is searched by the color of the pictograph in the mail. Specific codes representing pictographs include codes representing pictographic patterns and codes representing pictographic colors. In Patent Document 1, pictographs are identified by codes representing pictographic colors.

特開2003−141044号公報(特許請求の範囲、明細書の段落[0001]、[0005]、[0030]〜[0032]参照)JP 2003-141044 A (see claims, paragraphs [0001], [0005], [0030] to [0032] of the specification)

しかしながら、上記特許文献1に記載の携帯電話のメール検索方法もまた、絵文字と文字が混合している文書を表示する処理時間が長く、該文書の表示に時間がかかるという問題がある。   However, the cellular phone mail search method described in Patent Document 1 also has a problem that it takes a long time to display a document in which pictographs and characters are mixed, and it takes time to display the document.

それゆえ、本発明は上記問題を解決し、異なる属性を有する文字が混合している文書、例えば絵文字と文字が混合している文書を表示する際の処理時間を短縮し描画スピードを速くする文字表示装置、文字表示方法およびそのためのプログラムを提供することを目的とする。   Therefore, the present invention solves the above-mentioned problem, and reduces the processing time and increases the drawing speed when displaying a document in which characters having different attributes are mixed, for example, a document in which pictograms and characters are mixed. It is an object to provide a display device, a character display method, and a program therefor.

上記目的を達成する本発明の第一形態による文字表示装置は、
属性が異なる文字が混合している文書を表示する文字表示装置において、
文書中に連続して出現する第1属性を有する文字と属性が異なる第2属性を有する文字が出現するまで該第1属性を有する文字の数をカウントするカウント手段と、
前記カウント手段によりカウントされた数だけ前記第1属性を有する文字の属性を設定後に該文字を描画し該第1属性を有する文字の描画に後続して前記第2属性を有する文字の属性を設定後に該文字を描画する描画手段と、
を備えることを特徴とする。
The character display device according to the first aspect of the present invention that achieves the above object is
In a character display device that displays a document in which characters with different attributes are mixed,
Counting means for counting the number of characters having the first attribute until a character having a second attribute different from the character having the first attribute appearing continuously in the document appears;
After setting the attribute of the character having the first attribute by the number counted by the counting means, the character is drawn, and after the drawing of the character having the first attribute, the attribute of the character having the second attribute is set. Drawing means for drawing the character later;
It is characterized by providing.

上記目的を達成する本発明の第二形態による文字表示装置は、
絵文字と文字が混合している文書を表示する文字表示装置において、
文書中の絵文字の出現位置を検索する検索手段と、
前記検索手段により検索された前記絵文字の出現位置まで連続して出現した文字の数をカウントするカウント手段と、
前記カウント手段によりカウントされた前記連続して出現した文字の属性を設定後に該文字を前記数だけ描画し該文字の描画に後続して前記絵文字の属性を設定後に該絵文字を描画する描画手段と、
を備えることを特徴とする。
A character display device according to a second embodiment of the present invention that achieves the above object is as follows.
In a character display device that displays a document in which pictograms and characters are mixed,
Search means for searching for the appearance position of pictograms in the document;
Counting means for counting the number of characters that have appeared continuously until the appearance position of the pictogram searched by the search means;
Drawing means for drawing the number of the characters after setting the attribute of the continuously appearing characters counted by the counting means and drawing the pictogram after setting the attributes of the pictogram following drawing of the characters; ,
It is characterized by providing.

上記目的を達成する本発明の第一形態による文字表示方法は、
属性が異なる文字が混合している文書を表示する文字表示方法において、
文書中に連続して出現する第1属性を有する文字と属性が異なる第2属性を有する文字が出現するまで該第1属性を有する文字の数をカウントするカウントステップと、
前記カウントステップによりカウントされた数だけ前記第1属性を有する文字の属性を設定後に該文字を描画し該第1属性を有する文字の描画に後続して前記第2属性を有する文字の属性を設定後に該文字を描画する描画ステップと、
を備えることを特徴とする。
The character display method according to the first aspect of the present invention that achieves the above object is as follows.
In a character display method for displaying a document in which characters with different attributes are mixed,
A counting step of counting the number of characters having the first attribute until a character having a second attribute different from the character having the first attribute appearing continuously in the document appears;
After setting the attribute of the character having the first attribute by the number counted in the counting step, the character is drawn, and after the drawing of the character having the first attribute, the attribute of the character having the second attribute is set. A drawing step for drawing the character later;
It is characterized by providing.

上記目的を達成する本発明の第二形態による文字表示方法は、
絵文字と文字が混合している文書を表示する文字表示方法において、
文書中の絵文字の出現位置を検索する検索ステップと、
前記検索ステップにより検索された前記絵文字の出現位置まで連続して出現した文字の数をカウントするカウントステップと、
前記カウントステップによりカウントされた前記連続して出現した文字の属性を設定後に該文字を前記数だけ描画し該文字の描画に後続して前記絵文字の属性を設定後に該絵文字を描画する描画ステップと、
を備えることを特徴とする。
The character display method according to the second aspect of the present invention that achieves the above object is as follows.
In a character display method for displaying a document in which pictographs and characters are mixed,
A search step for searching for the appearance position of the pictogram in the document;
A counting step of counting the number of characters that have continuously appeared up to the appearance position of the pictogram searched by the searching step;
A drawing step of drawing the number of the characters after setting the attribute of the continuously appearing characters counted in the counting step, and drawing the pictogram after setting the attributes of the pictogram following the drawing of the characters; ,
It is characterized by providing.

上記目的を達成する本発明の第一形態による文字表示プログラムは、
属性が異なる文字が混合している文書を表示するプログラムであって、
文書中に連続して出現する第1属性を有する文字と属性が異なる第2属性を有する文字が出現するまで該第1属性を有する文字の数をカウントするカウントステップと、
前記カウントステップによりカウントされた数だけ前記第1属性を有する文字の属性を設定後に該文字を描画し該第1属性を有する文字の描画に後続して前記第2属性を有する
文字の属性を設定後に該文字を描画する描画ステップと、
をコンピュータに実行させることを特徴とする。
The character display program according to the first aspect of the present invention for achieving the above object is provided as follows:
A program that displays a document with mixed characters with different attributes,
A counting step of counting the number of characters having the first attribute until a character having a second attribute different from the character having the first attribute appearing continuously in the document appears;
After setting the attribute of the character having the first attribute by the number counted in the counting step, the character is drawn, and after the drawing of the character having the first attribute, the attribute of the character having the second attribute is set. A drawing step for drawing the character later;
Is executed by a computer.

本発明の第一形態による文字表示方式によれば、属性が異なる文字が混合している文書中に連続して出現する第1属性を有する文字と属性が異なる第2属性を有する文字が出現するまで第1属性を有する文字を描画せずに、第2属性を有する文字が出現した時点で、連続して出現した第1属性を有する文字の数だけ第1属性を有する文字の属性を設定後に該文字を描画し引き続き第2属性を有する文字を描画するので、文書の描画スピードを速くすることができる。   According to the character display method of the first aspect of the present invention, characters having the second attribute different from the characters having the first attribute appearing continuously in a document in which characters having different attributes are mixed appear. After setting the character attributes having the first attribute by the number of characters having the first attribute that appear continuously, when the character having the second attribute appears without drawing the character having the first attribute until Since the character is drawn and then the character having the second attribute is drawn, the drawing speed of the document can be increased.

本発明の第二形態による文字表示方式によれば、絵文字と文字が混合している文書を中の絵文字の出現位置を検索し、検索された絵文字の出現位置まで連続して出現した文字の数だけ文字の属性を設定後に該文字を描画し引き続き絵文字を描画するので、文書の描画スピードを速くすることができる。   According to the character display method according to the second aspect of the present invention, the appearance position of a pictogram is searched for in a document in which a pictogram and a character are mixed, and the number of characters that appear continuously up to the appearance position of the searched pictogram. Since only the character attribute is set and then the character is drawn and then the pictograph is drawn, the document drawing speed can be increased.

本発明の一実施形態に係る絵文字表示装置のブロック図である。It is a block diagram of the pictogram display device concerning one embodiment of the present invention. 文字と絵文字が混合した文書の具体的表示例を示す図である。It is a figure which shows the example of a concrete display of the document which the character and the pictogram mixed. 本発明の一実施形態に係る絵文字表示ルーチンの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the pictogram display routine which concerns on one Embodiment of this invention. 絵文字の登録テーブルを示す図である。It is a figure which shows the registration table of a pictogram.

以下、添付図面を参照しつつ本発明の実施形態を詳細に説明する。
図1は本発明の一実施形態に係る絵文字表示装置のブロック図である。図1全体に本発明の一実施形態に係る絵文字表示装置1、すなわち携帯電話の概略構成を示す。絵文字処理部10に操作部11と表示器(LCD)12が接続されている。
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 is a block diagram of a pictogram display device according to an embodiment of the present invention. FIG. 1 shows a schematic configuration of a pictogram display device 1 according to an embodiment of the present invention, that is, a mobile phone. An operation unit 11 and a display (LCD) 12 are connected to the pictogram processing unit 10.

絵文字処理部10はCPU100、ROM101、RAM102、入力インターフェース103、出力インターフェース104およびこれらを通信可能に接続するバスライン105を有する。   The pictogram processing unit 10 includes a CPU 100, a ROM 101, a RAM 102, an input interface 103, an output interface 104, and a bus line 105 that connects these to be communicable.

CPU100は携帯電話全体の制御を行うとともにROM101に格納された後述する絵文字表示プログラムを実行する。CPU100は入力インターフェース103を介してRAM102に書込まれたデータをROM101に格納された絵文字表示プログラムにしたがって演算・加工し、その結果得られた文字と絵文字が混合した文書の表示データを出力インターフェース104を介して表示器12に出力する。ROM101には後述する絵文字コードの登録テーブルが格納されており、登録テーブルは文書中の個々の文字が絵文字か文字かを判定するために使用される。なお、本実施形態ではRAM102にSRAMを用い、ROM101にFROMを用いる。   The CPU 100 controls the entire mobile phone and executes a pictogram display program (to be described later) stored in the ROM 101. The CPU 100 calculates and processes the data written in the RAM 102 via the input interface 103 in accordance with a pictogram display program stored in the ROM 101, and outputs the display data of the document obtained by mixing the characters and pictograms as the output interface 104. To the display 12 via The ROM 101 stores a pictographic code registration table to be described later, and the registration table is used to determine whether each character in the document is a pictograph or a character. In this embodiment, SRAM is used for the RAM 102 and FROM is used for the ROM 101.

操作部11はそれ自身に設けられた押しボタンやキーを操作するユニットであり、操作情報を入力インターフェース103に入力する。
表示器12はCPUにより演算・加工された文書の表示データを出力インターフェース104を介して受け該文書をそれ自身の画面上に表示する。
以下に説明する本発明の一実施形態に係る絵文字表示装置によって表示する表示対象の文字と絵文字は、文字の属性と絵文字の属性とが異なる。
The operation unit 11 is a unit that operates push buttons and keys provided on the operation unit 11, and inputs operation information to the input interface 103.
The display 12 receives the display data of the document calculated and processed by the CPU via the output interface 104 and displays the document on its own screen.
Characters to be displayed and pictograms displayed by the pictogram display device according to an embodiment of the present invention described below have different character attributes and pictogram attributes.

図2は文字と絵文字が混合した文書の具体的表示例を示す図である。携帯電話によっては文字のフォントサイズの設定により1行20文字で20行分の文書(最大400文字)を画面上に表示できるが、便宜上図2の具体例では、文字のフォントサイズの設定により携帯電話1の画面上に1行10文字で3行分の文書(最大30文字)を表示する例を示す。   FIG. 2 is a diagram illustrating a specific display example of a document in which characters and pictograms are mixed. Depending on the setting of the font size of characters, 20 lines per line (up to 400 characters) can be displayed on the screen by setting the font size of characters. However, in the specific example of FIG. An example in which three lines of documents (up to 30 characters) are displayed on the screen of the telephone 1 with 10 characters per line is shown.

図2に示す文字と絵文字が混合した文書の文字列「あい……e山川……雨に」のデータおよび「雨に」に続く「濡れてしまった。」のデータは、RAM102の所定の領域に一時的にバッファされる。このバッファの容量は画面の領域全体に表示される文書のデータと画面の領域を食み出して表示されない文書のデータの両方を格納する所定の大きさを確保している。上記文字列の上段に示す数字0〜9、10〜19、20〜29は絵文字と文字が混合している文書の文字番号iを示す。図2に示すように、図2に示す例では文字番号i=0〜2、4、5、7〜11、14〜20および22〜29に文字の表示データが格納され、文字番号i=3、6、12、13および21に絵文字の表示データが格納されている。   The character string “ai …… e Yamakawa …… rain in rain” data and the data “wet in rain” following “rain” in the document in which characters and pictograms shown in FIG. Temporarily buffered. The buffer has a predetermined capacity for storing both the document data displayed in the entire screen area and the document data that is not displayed by projecting the screen area. The numbers 0 to 9, 10 to 19, and 20 to 29 shown in the upper part of the character string indicate the character number i of the document in which pictograms and characters are mixed. As shown in FIG. 2, in the example shown in FIG. 2, character display data is stored in character numbers i = 0-2, 4, 5, 7-11, 14-20, and 22-29, and character number i = 3. , 6, 12, 13, and 21 store pictogram display data.

図3は本発明の一実施形態に係る絵文字表示ルーチンの処理手順を示すフローチャートである。以下に、携帯電話1で新規作成した文書、未送信または送信済みのメールの文書または受信したメールの文書を画面に表示する時、あるいは表示画面の領域を食み出して表示されていない文書の部分を表示するため表示画面をスクロールして上下または左右に表示領域を移動させる時に開始する本発明の一実施形態の絵文字表示ルーチンを説明する。なお、スクロールして表示する方式には、表示領域を食み出す部分を含めて文書全体を表示可能に処理した後、スクロール操作に応じて画面に表示すべき文書の領域のデータを転送して画面に表示する方式とスクロール操作に応じて画面に表示すべき文書の領域を表示可能に処理した後に表示する方式とがある。本実施形態では後者の方式を採用している。   FIG. 3 is a flowchart showing a processing procedure of a pictogram display routine according to an embodiment of the present invention. Below, when a new document created on the mobile phone 1, an unsent or sent mail document, or a received mail document is displayed on the screen, or a document that is not displayed by protruding the area of the display screen A pictogram display routine according to an embodiment of the present invention that starts when the display area is scrolled up and down or left and right to display a portion will be described. In the method of scrolling and displaying, after processing the entire document including the part that protrudes the display area, the data of the area of the document to be displayed on the screen is transferred according to the scroll operation. There are a method of displaying on the screen and a method of displaying after processing the area of the document to be displayed on the screen in a displayable manner according to the scroll operation. In the present embodiment, the latter method is adopted.

まず、ステップS1では、次の値を初期設定する。参照する文字のカウント値iを0に、描画済み文字列の長さmaxを0に、描画済み文字のカウント値drewを0にそれぞれ設定する。ここで、参照する文字のカウント値iは図2で示す文字番号iに相当する。また、文書の最終参照文字のカウント値docsを設定する。この最終参照文字のカウント値docsは、表示器12の画面上の表示領域全体に文書が表示されるときは画面上に表示可能な既知の最大文字数に設定され、画面上の表示領域の一部に文書が表示されるときは画面上に表示される該文書の文字数に設定される。後者の場合、予め文書に含まれる文字数をカウントしておく。   First, in step S1, the following values are initialized. The count value i of the character to be referred to is set to 0, the length max of the drawn character string is set to 0, and the count value drew of the drawn character is set to 0. Here, the count value i of the character to be referred to corresponds to the character number i shown in FIG. Also, the count value docs of the last reference character of the document is set. This final reference character count value docs is set to the known maximum number of characters that can be displayed on the screen when a document is displayed on the entire display area of the display 12, and is a part of the display area on the screen. When a document is displayed, the number of characters of the document displayed on the screen is set. In the latter case, the number of characters included in the document is counted in advance.

ステップS2では、i<maxを判定し、i<maxのときはステップS3に進み、i≧maxのときはステップS11に進む。   In step S2, i <max is determined. If i <max, the process proceeds to step S3, and if i ≧ max, the process proceeds to step S11.

ステップS3では、文字番号iの文字(以下、i番目の文字と記す)に文字データが存在するか否かを判定し、判定結果がYESのときはステップS4に進み、判定結果がNOのときは本ルーチンを終了する。ブランクの表示は文字データが存在するので、ブランクを表示する場合はステップS4に進む。i番目に文字データが存在するか否かは、該文字データに対応する文字コードが予め登録されROM101内に格納されているか否かにより判定する。   In step S3, it is determined whether or not character data exists in the character with the character number i (hereinafter referred to as the i-th character). If the determination result is YES, the process proceeds to step S4, and if the determination result is NO Terminates this routine. Since character data exists in the blank display, the process proceeds to step S4 when the blank is displayed. Whether or not the i-th character data exists is determined by whether or not a character code corresponding to the character data is registered in advance and stored in the ROM 101.

ステップS4では、i番目の文字の文字データを取得する。
ここで、絵文字の登録テーブルについて以下に説明する。
In step S4, character data of the i-th character is acquired.
The pictogram registration table will be described below.

図4は絵文字の登録テーブルを示す図である。図4に示す絵文字の登録テーブルは絵文字に対応する文字コード、色および背景色が予め登録されROM101に格納される。図4において、左の列から順に絵文字の登録番号、絵文字、文字コード、色および背景色が示されている。絵文字に対し、文字コードは一意の登録データである。絵文字に対し、色および背景色は絵文字の属性であり絵文字毎に任意に登録できる。したがって、例えば登録番号1には、ハート形の絵文字、文字コード123aaa、赤色のハートの色および白色の背景色が登録され、登録番号11には、ハート形の絵文字、文字コード123aab、青色のハートのおよびの白色の背景色が登録されている。本実施形態において、文字の属性として、色は黒に設定され、背景色は白に設定されている。したがって、文字の属性と絵文字の属性とは異なったものとなっている。   FIG. 4 is a diagram showing a pictogram registration table. In the pictogram registration table shown in FIG. 4, the character code, color, and background color corresponding to the pictogram are registered in advance and stored in the ROM 101. In FIG. 4, a pictogram registration number, pictogram, character code, color, and background color are shown in order from the left column. For pictograms, the character code is unique registration data. For pictograms, the color and background color are attributes of the pictogram and can be arbitrarily registered for each pictogram. Thus, for example, a registration number 1 is registered with a heart-shaped pictogram, a character code 123aaa, a red heart color and a white background color, and a registration number 11 is registered with a heart-shaped pictogram, a character code 123aab, a blue heart The white background colors of and are registered. In the present embodiment, as a character attribute, the color is set to black and the background color is set to white. Therefore, the character attribute and the pictogram attribute are different.

再び図3のフローチャートに戻る。
ステップS5では、i番目の文字が絵文字か否かを判定する。この判定は、i番目の文字の文字コードが図4に示すような絵文字の登録テーブルに予め登録された絵文字の文字コードの中に一致するものが有るか否かにより行う。判定結果がYESのときはステップS6に進み、判定結果がNOのときはステップS9に進む。この処理により文書中における絵文字の出現が検索される。
Returning again to the flowchart of FIG.
In step S5, it is determined whether or not the i-th character is a pictograph. This determination is made based on whether or not there is a match between the character codes of the pictograms registered in advance in the pictogram registration table as shown in FIG. When the determination result is YES, the process proceeds to step S6, and when the determination result is NO, the process proceeds to step S9. By this process, the appearance of pictograms in the document is searched.

ステップS6では、文字列のdrew番目の文字からi番目までの(i−drew)個の文字の属性設定した後、これらの文字を描画する。この処理により絵文字が出現するまで連続して出現した文字が描画される。
ステップS7では、i番目の絵文字の属性設定した後、i番目の絵文字を描画する。この処理により絵文字が出現するまで連続して出現した文字が描画された後に引き続いて絵文字が描画される。
ステップS8では、drewにiの値を設定する(drew=i)。
ステップS9では、iに1を加算し(i=i+1)、ステップS2に戻る。この処理により絵文字が出現するまで連続して出現する文字の数がカウントされる。
In step S6, after setting the attributes of the (i-drew) characters from the drew-th character to the i-th character in the character string, these characters are drawn. By this process, characters that appear continuously are drawn until a pictogram appears.
In step S7, after setting the attribute of the i-th pictogram, the i-th pictogram is drawn. By this process, characters appearing continuously are drawn until a pictogram appears, and then a pictograph is drawn.
In step S8, the value of i is set to drew (drew = i).
In step S9, 1 is added to i (i = i + 1), and the process returns to step S2. This process counts the number of characters that appear continuously until a pictogram appears.

一方、ステップS2でi≧maxのときはステップS11に進み、ステップS11で、drew<docsを判定し、drew<docsのときはステップS12に進み、drew≧docsのときはステップS13に進む。   On the other hand, when i ≧ max in step S2, the process proceeds to step S11. In step S11, drew <docs is determined. When drew <docs, the process proceeds to step S12. When drew ≧ docs, the process proceeds to step S13.

ステップS12では、文字列のdrew番目の文字からi番目までの(i−drew)個の文字を描画する。
ステップS13では、maxに1を加算し(max=max+1)、ステップS2に戻る。
In step S12, (i-drew) characters from the drew-th character to the i-th character in the character string are drawn.
In step S13, 1 is added to max (max = max + 1), and the process returns to step S2.

図3に示すフローチャートにしたがって図2に示す文書が表示されて行く様子を以下に説明する。
先ず、ステップS1でi=0、max=0、drew=0と初期設定する。
The manner in which the document shown in FIG. 2 is displayed according to the flowchart shown in FIG. 3 will be described below.
First, at step S1, i = 0, max = 0, and drew = 0 are initially set.

ステップS2でNOだからステップS11に進み、ステップS11でNOだからステップS13に進みmax=max+1=1を計算しステップS2に戻る。
次に、ステップS2でYESだからステップS3に進み、ステップS3でYESだからステップS4でi=0番目の文字「あ」を取得し、ステップS5に進みi番目の文字が絵文字でないからステップS9に進み、i=i+1=1を計算しステップS2に戻る。
If NO in step S2, the process proceeds to step S11. If NO in step S11, the process proceeds to step S13, and max = max + 1 = 1 is calculated and the process returns to step S2.
Next, since it is YES at step S2, the process proceeds to step S3, and since it is YES at step S3, the i = 0th character “A” is acquired at step S4. , I = i + 1 = 1 is calculated, and the process returns to step S2.

今度は、ステップS2で2度目のNOでありステップS11に進み、ステップS11でNOだからステップS13に進みmax=max+1=2を計算しステップS2に戻る。   This time, it is NO for the second time in step S2, and the process proceeds to step S11. Since NO in step S11, the process proceeds to step S13 and max = max + 1 = 2 is calculated and the process returns to step S2.

今度は、ステップS2で2度目のYESでありステップS3に進み、ステップS3でYESだからステップS4でi=1番目の文字「い」を取得し、ステップS5に進みi番目の文字が絵文字でないからステップS9に進み、i=i+1=2を計算しステップS2に戻る。   This time, it is the second YES in step S2, and the process proceeds to step S3. Since YES in step S3, i = 1st character “I” is acquired in step S4, and the process proceeds to step S5 because the i-th character is not a pictogram. In step S9, i = i + 1 = 2 is calculated, and the process returns to step S2.

今度は、ステップS2で3度目のNOでありステップS11に進み、ステップS11でNOだからステップS13に進みmax=max+1=3を計算しステップS2に戻る。   This time, NO is the third time in step S2, and the process proceeds to step S11. Since NO in step S11, the process proceeds to step S13, and max = max + 1 = 3 is calculated and the process returns to step S2.

今度は、ステップS2で3度目のYESでありステップS3に進み、ステップS3でYESだからステップS4でi=2番目の文字「う」を取得し、ステップS5に進みi番目の文字が絵文字でないからステップS9に進み、i=i+1=3を計算しステップS2に戻る。   This time, it is the third YES in step S2, and the process proceeds to step S3. Since YES in step S3, the i = 2nd character “U” is acquired in step S4, and the process proceeds to step S5 because the i-th character is not a pictograph. In step S9, i = i + 1 = 3 is calculated, and the process returns to step S2.

今度は、ステップS2で4度目のNOでありステップS11に進み、ステップS11でNOだからステップS13に進みmax=max+1=4を計算しステップS2に戻る。   This time, NO is the fourth time in step S2, and the process proceeds to step S11. Since NO in step S11, the process proceeds to step S13, and max = max + 1 = 4 is calculated and the process returns to step S2.

今度は、ステップS2で4度目のYESでありステップS3に進み、ステップS3でYESだからステップS4でi=3番目の文字「ハート形の絵文字:図2のi=3参照」を取得し、ステップS5に進みi番目の文字が絵文字であるからステップS6に進み、drew=0から第3番目(i=3)の文字までの3(=i−drew)個の文字分の文字「あいう」に共通の属性を設定した後に文字「あいう」を描画し、ステップS7でi=3番目の文字「ハート形の絵文字:図2のi=3参照」の属性を設定した後に「ハート形の絵文字」を描画し、ステップS8でdrew=3とし、ステップS9に進み、i=i+1=4を計算しステップS2に戻る。   This time, it is the fourth YES in step S2, and the process proceeds to step S3. Since YES in step S3, i = 3rd character “heart-shaped pictogram: see i = 3 in FIG. 2” is acquired in step S4. Proceeding to S5, since the i-th character is a pictograph, the process proceeds to step S6, and the character “A” is made up of 3 (= i-drew) characters from drew = 0 to the third (i = 3) character. After setting the common attribute, the character “A” is drawn, and after setting the attribute of i = 3rd character “heart-shaped pictogram: i = 3 in FIG. 2” in step S7, “heart-shaped pictogram” Is drawn, drew = 3 is set in step S8, the process proceeds to step S9, i = i + 1 = 4 is calculated, and the process returns to step S2.

今度は、ステップS2で5度目のNOでありステップS11に進み、ステップS11でNOだからステップS13に進みmax=max+1=5を計算しステップS2に戻る。   This time, NO is the fifth time in step S2, and the process proceeds to step S11. Since NO in step S11, the process proceeds to step S13, and max = max + 1 = 5 is calculated and the process returns to step S2.

以降、同様にステップS2〜S13を繰り返し実行し、文書の第0番目の文字を描画後かまたは絵文字の描画後、文書の最終番目の文字に到達したとき、図2に示す例ではi=21で絵文字を描画後、i=29で文書の最終番目の文字に到達したときにステップS11でYESとなり、ステップS12でdrew=21から第29番目(i=29)の文字までの8(=i−drew)個の文字分の文字「を忘れたので雨に」に共通の属性を設定した後に同8個の文字を描画し、本ルーチンを終了する。   Thereafter, similarly, steps S2 to S13 are repeatedly executed, and when the last character of the document is reached after drawing the 0th character of the document or after drawing the pictogram, i = 21 in the example shown in FIG. After drawing the pictogram, when i = 29 reaches the last character of the document, YES is determined in step S11, and in step S12, 8 (= i) from drew = 21 to the 29th (i = 29) character. -Drew) After setting the common attribute for the character “forget it because it forgot”, draw the same eight characters and end this routine.

以上、本発明の文字表示装置において、文字と絵文字が混合した文書内において、文字の属性と絵文字の属性とが異なる例を用いて説明したが、本発明はこれに限定されるものでなく、文字の属性と絵文字の属性とが一致し、文字の属性および絵文字の属性とは異なる属性の文字、例えば黒色で描画される第1の属性を有する文字と絵文字および青色で描画される第2の属性を有する文字とが混合した文書を描画する場合にも適用できる。   As described above, in the character display device of the present invention, in a document in which characters and pictograms are mixed, description has been made using an example in which the attributes of characters and attributes of pictograms are different, but the present invention is not limited to this, Character attributes and pictogram attributes match, and characters having different attributes from the character attributes and pictogram attributes, for example, characters having a first attribute drawn in black, pictograms, and second drawn in blue The present invention can also be applied to drawing a document in which characters having attributes are mixed.

(付記1)
属性が異なる文字が混合している文書を表示する文字表示装置において、
文書中に連続して出現する第1属性を有する文字と属性が異なる第2属性を有する文字が出現するまで該第1属性を有する文字の数をカウントするカウント手段と、
前記カウント手段によりカウントされた数だけ前記第1属性を有する文字の属性を設定後に該文字を描画し該第1属性を有する文字の描画に後続して前記第2属性を有する文字の属性を設定後に該文字を描画する描画手段と、
を備えることを特徴とする文字表示装置。
(Appendix 1)
In a character display device that displays a document in which characters with different attributes are mixed,
Counting means for counting the number of characters having the first attribute until a character having a second attribute different from the character having the first attribute appearing continuously in the document appears;
After setting the attribute of the character having the first attribute by the number counted by the counting means, the character is drawn, and after the drawing of the character having the first attribute, the attribute of the character having the second attribute is set. Drawing means for drawing the character later;
A character display device comprising:

(付記2)
属性が異なる文字が混合している文書を表示する文字表示装置において、
文書中の第1属性を有する文字と異なる第2の属性を有する文字の出現位置を検索する検索手段と、
前記検索手段により検索された前記第2属性を有する文字の出現位置まで連続して出現した第1属性を有する文字の数をカウントするカウント手段と、
前記カウント手段によりカウントされた前記連続して出現した第1属性を有する文字の属性を設定後に該文字を前記数だけ描画し該第1属性を有する文字の描画に後続して前記第2属性を有する文字の属性を設定後に該文字を描画する描画手段と、
を備えることを特徴とする文字表示装置。
(Appendix 2)
In a character display device that displays a document in which characters with different attributes are mixed,
Search means for searching for an appearance position of a character having a second attribute different from the character having the first attribute in the document;
Counting means for counting the number of characters having the first attribute that have continuously appeared up to the appearance position of the character having the second attribute searched by the search means;
After setting the attribute of the character having the first attribute that appears continuously counted by the counting means, the character is drawn by the number and the second attribute is set after drawing the character having the first attribute. Drawing means for drawing the character after setting the attribute of the character,
A character display device comprising:

(付記3)
絵文字と文字が混合している文書を表示する文字表示装置において、
文書中の絵文字の出現位置を検索する検索手段と、
前記検索手段により検索された前記絵文字の出現位置まで連続して出現した文字の数をカウントするカウント手段と、
前記カウント手段によりカウントされた前記連続して出現した文字の属性を設定後に該文字を前記数だけ描画し該文字の描画に後続して前記絵文字の属性を設定後に該絵文字を描画する描画手段と、
を備えることを特徴とする文字表示装置。
(Appendix 3)
In a character display device that displays a document in which pictograms and characters are mixed,
Search means for searching for the appearance position of pictograms in the document;
Counting means for counting the number of characters that have appeared continuously until the appearance position of the pictogram searched by the search means;
Drawing means for drawing the number of the characters after setting the attribute of the continuously appearing characters counted by the counting means and drawing the pictogram after setting the attributes of the pictogram following drawing of the characters; ,
A character display device comprising:

(付記4)
属性が異なる文字が混合している文書を表示する文字表示方法において、
文書中に連続して出現する第1属性を有する文字と属性が異なる第2属性を有する文字が出現するまで該第1属性を有する文字の数をカウントするカウントステップと、
前記カウントステップによりカウントされた数だけ前記第1属性を有する文字の属性を設定後に該文字を描画し該第1属性を有する文字の描画に後続して前記第2属性を有する文字の属性を設定後に該文字を描画する描画ステップと、
を備えることを特徴とする文字表示方法。
(Appendix 4)
In a character display method for displaying a document in which characters with different attributes are mixed,
A counting step of counting the number of characters having the first attribute until a character having a second attribute different from the character having the first attribute appearing continuously in the document appears;
After setting the attribute of the character having the first attribute by the number counted in the counting step, the character is drawn, and after the drawing of the character having the first attribute, the attribute of the character having the second attribute is set. A drawing step for drawing the character later;
A character display method comprising:

(付記5)
絵文字と文字が混合している文書を表示する文字表示方法において、
文書中の絵文字の出現位置を検索する検索ステップと、
前記検索ステップにより検索された前記絵文字の出現位置まで連続して出現した文字の数をカウントするカウントステップと、
前記カウントステップによりカウントされた前記連続して出現した文字の属性を設定後に該文字を前記数だけ描画し該文字の描画に後続して前記絵文字の属性を設定後に該絵文字を描画する描画ステップと、
を備えることを特徴とする文字表示方法。
(Appendix 5)
In a character display method for displaying a document in which pictographs and characters are mixed,
A search step for searching for the appearance position of the pictogram in the document;
A counting step of counting the number of characters that have continuously appeared up to the appearance position of the pictogram searched by the searching step;
A drawing step of drawing the number of the characters after setting the attribute of the continuously appearing characters counted in the counting step, and drawing the pictogram after setting the attributes of the pictogram following the drawing of the characters; ,
A character display method comprising:

(付記6)
属性が異なる文字が混合している文書を表示するプログラムであって、
文書中に連続して出現する第1属性を有する文字と属性が異なる第2属性を有する文字が出現するまで該第1属性を有する文字の数をカウントするカウントステップと、
前記カウントステップによりカウントされた数だけ前記第1属性を有する文字の属性を設定後に該文字を描画し該第1属性を有する文字の描画に後続して前記第2属性を有する文字の属性を設定後に該文字を描画する描画ステップと、
をコンピュータに実行させることを特徴とするプログラム。
(Appendix 6)
A program that displays a document with mixed characters with different attributes,
A counting step of counting the number of characters having the first attribute until a character having a second attribute different from the character having the first attribute appearing continuously in the document appears;
After setting the attribute of the character having the first attribute by the number counted in the counting step, the character is drawn, and after the drawing of the character having the first attribute, the attribute of the character having the second attribute is set. A drawing step for drawing the character later;
A program that causes a computer to execute.

(付記7)
絵文字と文字が混合している文書を表示するプログラムであって、
文書中の絵文字の出現位置を検索する検索ステップと、
前記検索ステップにより検索された前記絵文字の出現位置まで連続して出現した文字の数をカウントするカウントステップと、
前記カウントステップによりカウントされた前記連続して出現した文字の属性を設定後に該文字を前記数だけ描画し該文字の描画に後続して前記絵文字の属性を設定後に該絵文字を描画する描画ステップと、
をコンピュータに実行させることを特徴とするプログラム。
(Appendix 7)
A program that displays a document containing a mixture of pictographs and characters,
A search step for searching for the appearance position of the pictogram in the document;
A counting step of counting the number of characters that have continuously appeared up to the appearance position of the pictogram searched by the searching step;
A drawing step of drawing the number of the characters after setting the attribute of the continuously appearing characters counted in the counting step, and drawing the pictogram after setting the attributes of the pictogram following the drawing of the characters; ,
A program that causes a computer to execute.

1 絵文字表示装置
10 絵文字処理部
11 操作部
12 表示器(LCD)
100 CPU
101 ROM
102 RAM
103 入力インターフェース
104 出力インターフェース
105 バスライン
DESCRIPTION OF SYMBOLS 1 Pictogram display device 10 Pictogram processing part 11 Operation part 12 Display (LCD)
100 CPU
101 ROM
102 RAM
103 Input interface 104 Output interface 105 Bus line

Claims (5)

属性が異なる文字が混合している文書を表示する文字表示装置において、
文書中に連続して出現する第1属性を有する文字と属性が異なる第2属性を有する文字が出現するまで該第1属性を有する文字の数をカウントするカウント手段と、
前記カウント手段によりカウントされた数だけ前記第1属性を有する文字の属性を設定後に該文字を描画し該第1属性を有する文字の描画に後続して前記第2属性を有する文字の属性を設定後に該文字を描画する描画手段と、
を備えることを特徴とする文字表示装置。
In a character display device that displays a document in which characters with different attributes are mixed,
Counting means for counting the number of characters having the first attribute until a character having a second attribute different from the character having the first attribute appearing continuously in the document appears;
After setting the attribute of the character having the first attribute by the number counted by the counting means, the character is drawn, and after the drawing of the character having the first attribute, the attribute of the character having the second attribute is set. Drawing means for drawing the character later;
A character display device comprising:
絵文字と文字が混合している文書を表示する文字表示装置において、
文書中の絵文字の出現位置を検索する検索手段と、
前記検索手段により検索された前記絵文字の出現位置まで連続して出現した文字の数をカウントするカウント手段と、
前記カウント手段によりカウントされた前記連続して出現した文字の属性を設定後に該文字を前記数だけ描画し該文字の描画に後続して前記絵文字の属性を設定後に該絵文字を描画する描画手段と、
を備えることを特徴とする文字表示装置。
In a character display device that displays a document in which pictograms and characters are mixed,
Search means for searching for the appearance position of pictograms in the document;
Counting means for counting the number of characters that have appeared continuously until the appearance position of the pictogram searched by the search means;
Drawing means for drawing the number of the characters after setting the attribute of the continuously appearing characters counted by the counting means and drawing the pictogram after setting the attributes of the pictogram following drawing of the characters; ,
A character display device comprising:
属性が異なる文字が混合している文書を表示する文字表示方法において、
文書中に連続して出現する第1属性を有する文字と属性が異なる第2属性を有する文字が出現するまで該第1属性を有する文字の数をカウントするカウントステップと、
前記カウントステップによりカウントされた数だけ前記第1属性を有する文字の属性を設定後に該文字を描画し該第1属性を有する文字の描画に後続して前記第2属性を有する文字の属性を設定後に該文字を描画する描画ステップと、
を備えることを特徴とする文字表示方法。
In a character display method for displaying a document in which characters with different attributes are mixed,
A counting step of counting the number of characters having the first attribute until a character having a second attribute different from the character having the first attribute appearing continuously in the document appears;
After setting the attribute of the character having the first attribute by the number counted in the counting step, the character is drawn, and after the drawing of the character having the first attribute, the attribute of the character having the second attribute is set. A drawing step for drawing the character later;
A character display method comprising:
絵文字と文字が混合している文書を表示する文字表示方法において、
文書中の絵文字の出現位置を検索する検索ステップと、
前記検索ステップにより検索された前記絵文字の出現位置まで連続して出現した文字の数をカウントするカウントステップと、
前記カウントステップによりカウントされた前記連続して出現した文字の属性を設定後に該文字を前記数だけ描画し該文字の描画に後続して前記絵文字の属性を設定後に該絵文字を描画する描画ステップと、
を備えることを特徴とする文字表示方法。
In a character display method for displaying a document in which pictographs and characters are mixed,
A search step for searching for the appearance position of the pictogram in the document;
A counting step of counting the number of characters that have continuously appeared up to the appearance position of the pictogram searched by the searching step;
A drawing step of drawing the number of the characters after setting the attribute of the continuously appearing characters counted in the counting step, and drawing the pictogram after setting the attributes of the pictogram following the drawing of the characters; ,
A character display method comprising:
属性が異なる文字が混合している文書を表示するプログラムであって、
文書中に連続して出現する第1属性を有する文字と属性が異なる第2属性を有する文字が出現するまで該第1属性を有する文字の数をカウントするカウントステップと、
前記カウントステップによりカウントされた数だけ前記第1属性を有する文字の属性を設定後に該文字を描画し該第1属性を有する文字の描画に後続して前記第2属性を有する文字の属性を設定後に該文字を描画する描画ステップと、
をコンピュータに実行させることを特徴とするプログラム。
A program that displays a document with mixed characters with different attributes,
A counting step of counting the number of characters having the first attribute until a character having a second attribute different from the character having the first attribute appearing continuously in the document appears;
After setting the attribute of the character having the first attribute by the number counted in the counting step, the character is drawn, and after the drawing of the character having the first attribute, the attribute of the character having the second attribute is set. A drawing step for drawing the character later;
A program that causes a computer to execute.
JP2012105983A 2012-05-07 2012-05-07 Character display device, character display method, and program therefor Withdrawn JP2012194561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012105983A JP2012194561A (en) 2012-05-07 2012-05-07 Character display device, character display method, and program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012105983A JP2012194561A (en) 2012-05-07 2012-05-07 Character display device, character display method, and program therefor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2006085313A Division JP5109274B2 (en) 2006-03-27 2006-03-27 Character display device, character display method, and program therefor

Publications (1)

Publication Number Publication Date
JP2012194561A true JP2012194561A (en) 2012-10-11

Family

ID=47086457

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012105983A Withdrawn JP2012194561A (en) 2012-05-07 2012-05-07 Character display device, character display method, and program therefor

Country Status (1)

Country Link
JP (1) JP2012194561A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020153097A1 (en) * 2019-01-21 2020-07-30 ローム株式会社 Semiconductor device, vehicle-mounted display system using same, and electronic device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020153097A1 (en) * 2019-01-21 2020-07-30 ローム株式会社 Semiconductor device, vehicle-mounted display system using same, and electronic device
CN113330508A (en) * 2019-01-21 2021-08-31 罗姆股份有限公司 Semiconductor device, and in-vehicle display system and electronic apparatus using the same
JPWO2020153097A1 (en) * 2019-01-21 2021-11-11 ローム株式会社 Semiconductor devices, in-vehicle display systems using them, electronic devices
JP7252981B2 (en) 2019-01-21 2023-04-05 ローム株式会社 Semiconductor device, in-vehicle display system using it, electronic equipment
US11715442B2 (en) 2019-01-21 2023-08-01 Rohm Co., Ltd. Semiconductor apparatus with OSD function
CN113330508B (en) * 2019-01-21 2024-04-30 罗姆股份有限公司 Semiconductor device, in-vehicle display system using the same, and electronic apparatus

Similar Documents

Publication Publication Date Title
US20050044500A1 (en) Agent display device and agent display method
CN112351142B (en) Message processing method and device and electronic equipment
JP4922742B2 (en) Method and terminal for displaying capacity for character input
CN112102437A (en) Canvas-based radar map generation method and device, storage medium and terminal
CN106708372A (en) Unread message display method and apparatus
CN102403879B (en) Frequency converter with text editor
JP5109274B2 (en) Character display device, character display method, and program therefor
CN112989148A (en) Error correction word ordering method and device, terminal equipment and storage medium
CN111104197A (en) Display language switching method and device and storage medium
CN111897475A (en) Message viewing method and device
JP2012194561A (en) Character display device, character display method, and program therefor
EP2284676A1 (en) Portable communication terminal and display method and program thereof
CN113325978A (en) Message display method and device and electronic equipment
CN110620841B (en) Information processing method, multi-screen terminal and computer readable storage medium
JP2014157507A (en) Display control device
CN104410565A (en) Method and electronic terminal for transmitting context information in information exchange
CN106802796B (en) Image-text mixed arranging method and system based on IOS system
CN103092944A (en) Presentation method, device and terminal of communications information search results
US20030087630A1 (en) Method of searching for electronic mail in portable cellular phone and electronic mail searching program for portable cellular phone
CN112764606A (en) Identification display method and device and electronic equipment
CN112437003A (en) Display method and device and electronic equipment
CN104079722B (en) A kind of user terminal and the method browsing short message thereof
US20220198126A1 (en) Display device and display control method
KR100548356B1 (en) Display configuration method for search phonebook of mobile communication device
KR100575771B1 (en) Special character input method for mobile communication terminal

Legal Events

Date Code Title Description
A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20120920