JP5070872B2 - Information processing apparatus, information processing method, program, and recording medium - Google Patents

Information processing apparatus, information processing method, program, and recording medium Download PDF

Info

Publication number
JP5070872B2
JP5070872B2 JP2007033437A JP2007033437A JP5070872B2 JP 5070872 B2 JP5070872 B2 JP 5070872B2 JP 2007033437 A JP2007033437 A JP 2007033437A JP 2007033437 A JP2007033437 A JP 2007033437A JP 5070872 B2 JP5070872 B2 JP 5070872B2
Authority
JP
Japan
Prior art keywords
character string
gradations
word
assigned
gradation
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.)
Expired - Fee Related
Application number
JP2007033437A
Other languages
Japanese (ja)
Other versions
JP2008197978A (en
Inventor
宇 谷
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007033437A priority Critical patent/JP5070872B2/en
Publication of JP2008197978A publication Critical patent/JP2008197978A/en
Application granted granted Critical
Publication of JP5070872B2 publication Critical patent/JP5070872B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、文字列に色と階調をつける技術に関する。   The present invention relates to a technique for adding color and gradation to a character string.

文字列に色と階調を付ける装置として、例えば特許文献1に開示されている情報処理装置がある。この情報処理装置においては、一文字毎に均等に階調数が割り当てられ、割り当てられた階調数で文字が着色されて表示される。この装置によれば、全て同じ色で文字列を着色する場合と比較して、階調変化が付けられた文字列は見る者の注意を視覚的に引きやすくなるため、文字列に見る者を注目させることできる。   As an apparatus for adding color and gradation to a character string, for example, there is an information processing apparatus disclosed in Patent Document 1. In this information processing apparatus, the number of gradations is equally assigned to each character, and the characters are colored and displayed with the assigned number of gradations. According to this apparatus, compared to the case where the character strings are all colored with the same color, the character strings with gradation changes are easier to visually attract the viewer's attention. It can be noticed.

特開2006−23736号公報JP 2006-23736 A

さて、特許文献1に開示されている情報処理装置のように文字列全体に渡り一文字毎に均等に階調が変化するようにすると、例えば、文字数が多い単語においては一の単語中における階調変化が大きくなる。人間は文字列を見た場合、文字列中の単語を認識し、単語の意味を把握して文字列が表す文章の内容を認識するが、一の単語中において階調変化が大きいと、文字列中のどこからどこまでが一の単語であるのか認識しづらくなり、文字列が読みづらくなって文章の内容を把握しづらくなる。   Now, when the gradation is changed uniformly for each character over the entire character string as in the information processing apparatus disclosed in Patent Document 1, for example, in a word with a large number of characters, the gradation in one word Change will be greater. When a human sees a character string, he recognizes the word in the character string, recognizes the meaning of the word, and recognizes the contents of the sentence represented by the character string. It becomes difficult to recognize where the word is from one point to the other in the line, and it is difficult to read the character string and grasp the contents of the sentence.

本発明は、上述した背景の下になされたものであり、文字列に階調がつけられたときに、文字列を読みやすくすることができる技術の提供を目的とする。   The present invention has been made under the above-described background, and an object of the present invention is to provide a technique capable of making a character string easy to read when a gradation is given to the character string.

上述した課題を解決するために本発明は、文字列情報が表す文字列を品詞別に複数の要素に分割する文字列分割手段と、予め定められた色の範囲を所定階調数で分割し、前記文字列分割手段で分割された各要素へ割り当てる階調を分割された色の中から決定し、各要素へ割り当てる階調数を各要素の品詞種別に応じて異ならせる階調数割当手段と、前記文字列分割手段得られた各要素を、前記階調数割当手段で各要素に割り当てられた階調を有するように着色する着色手段と、前記着色手段で着色された文字列を出力する出力手段とを有する情報処理装置を提供する。 In order to solve the above-described problem, the present invention divides a character string represented by character string information into a plurality of elements for each part of speech, and divides a predetermined color range by a predetermined number of gradations, A gradation number assigning means for determining a gradation to be assigned to each element divided by the character string dividing means from among the divided colors, and for changing a gradation number assigned to each element according to a part of speech type of each element ; , each element obtained in the character string dividing means, a coloring means for coloring so as to have a gradation allocated to each element in the number of gradations assigned means, outputs a string that is colored by the coloring means There is provided an information processing apparatus having an output means.

好ましい態様において、前記文字列分割手段は、分割後に隣接する要素同士で品詞が同じである場合、隣接する要素を一つの要素にまとめてもよい。 In a preferred embodiment, the character string dividing means, if the part of speech in element adjacent to each other after the split is the same, may be combined adjacent elements in one element.

また、好ましい態様において、前記着色手段は、前記文字列に含まれる文字の並ぶ方向へ階調を変化させて着色してもよい。 In a preferred aspect, the coloring means may be colored by changing a gradation in a direction in which characters included in the character string are arranged.

また、本発明は、文字列情報の表す文字列を出力する情報処理装置で実行される方法であって、文字列情報の表す文字列を品詞別に複数の要素に分割する文字列分割ステップと、予め定められた色の範囲を所定階調数で分割し、前記文字列分割ステップで分割された各要素へ割り当てる階調を分割された色の中から決定し、各要素へ割り当てる階調数を各要素の品詞種別に応じて異ならせる階調数割当ステップと、前記文字列分割ステップ得られた各要素を、前記階調数割当ステップで各要素に割り当てられた階調を有するように着色する着色ステップと、前記着色ステップで着色された文字列を出力する出力ステップとを有する情報処理方法を提供する。 Further, the present invention is a method executed by an information processing apparatus that outputs a character string represented by character string information, wherein the character string represented by the character string information is divided into a plurality of elements by parts of speech , A predetermined color range is divided by a predetermined number of gradations, a gradation to be assigned to each element divided in the character string division step is determined from among the divided colors, and the number of gradations to be assigned to each element is determined. and gradation number assigning step to vary depending on the part of speech type of each element, the elements obtained by the character string dividing step, so as to have a gradation allocated to each element in the number of gradations assigned step colored There is provided an information processing method comprising: a coloring step for performing the output; and an output step for outputting the character string colored in the coloring step.

また、本発明は、コンピュータ装置を、文字列情報が表す文字列を品詞別に複数の要素に分割する文字列分割手段と、予め定められた色の範囲を所定階調数で分割し、前記文字列分割手段で分割された各要素へ割り当てる階調を分割された色の中から決定し、各要素へ割り当てる階調数を各要素の品詞種別に応じて異ならせる階調数割当手段と、前記文字列分割手段得られた各要素を、前記階調数割当手段で各要素に割り当てられた階調を有するように着色する着色手段と、前記着色手段で着色された文字列を出力する出力手段として機能させるためのプログラムと、該プログラムを記録したコンピュータ読み取り可能な記録媒体を提供する。 According to another aspect of the present invention, the computer device divides the character string represented by the character string information into a plurality of elements for each part of speech, and divides a predetermined color range by a predetermined number of gradations, The gradation number assigning means for determining the gradation to be assigned to each element divided by the column dividing means from among the divided colors, and changing the number of gradations assigned to each element according to the part of speech type of each element ; each element obtained by the character string dividing means, a coloring means for coloring so as to have a gradation allocated to each element in the number of gradations assigned means, an output for outputting the character string that is colored by the coloring means A program for functioning as a means and a computer-readable recording medium recording the program are provided.

[第1実施形態]
[実施形態の構成]
図1は、本発明の一実施形態に係る情報処理装置1のハードウェア構成を示したブロック図である。情報処理装置1は、所謂、パーソナルコンピュータ装置であり、各種アプリケーションプログラムや各種ドライバプログラムを実行することにより種々の機能が実現する。図1に示したように、情報処理装置1の各部はバス101に接続されており、各部はバス101を介して各部間で各種データやメッセージの授受を行う。
[First Embodiment]
[Configuration of the embodiment]
FIG. 1 is a block diagram showing a hardware configuration of an information processing apparatus 1 according to an embodiment of the present invention. The information processing apparatus 1 is a so-called personal computer apparatus, and various functions are realized by executing various application programs and various driver programs. As shown in FIG. 1, each unit of the information processing apparatus 1 is connected to a bus 101, and each unit exchanges various data and messages between each unit via the bus 101.

操作部106は、キーボードやマウス等、ユーザが情報処理装置1を操作するための入力装置を備えている。ユーザから情報処理装置1への各種指示や各種情報の入力は、ユーザがこれらの入力装置を操作することにより行われる。
表示部107は、例えば表示デバイスである液晶ディスプレイを有しており、CPU(Central Processing Unit)102の制御の下、情報処理装置1を操作するための各種ウィンドウやメニュー画面、メッセージ等を表示する。なお、表示デバイスは液晶ディスプレイに限定されるものではなく、CRT(Cathode Ray Tube)やEL(Electro Luminescence)ディスプレイ等、他の表示デバイスであってもよい。
通信部110は、図示せぬ通信ネットワークに接続されており、情報処理装置1が通信ネットワークを介して他の装置と各種通信を行う際の通信インターフェースとして機能する。
The operation unit 106 includes an input device such as a keyboard and a mouse for the user to operate the information processing apparatus 1. Various instructions and various information input from the user to the information processing apparatus 1 are performed by the user operating these input devices.
The display unit 107 includes, for example, a liquid crystal display as a display device, and displays various windows, menu screens, messages, and the like for operating the information processing apparatus 1 under the control of a CPU (Central Processing Unit) 102. . The display device is not limited to a liquid crystal display, and may be another display device such as a CRT (Cathode Ray Tube) or an EL (Electro Luminescence) display.
The communication unit 110 is connected to a communication network (not shown), and functions as a communication interface when the information processing apparatus 1 performs various communications with other apparatuses via the communication network.

記憶部105は各種データを永続的に記憶する装置として、例えばハードディスク装置を具備している。記憶部105は、キーボード入力や画面表示といった各種入出力機能や記憶部105の制御など、アプリケーションプログラムから共通して利用される基本的な機能を実現するOS(Operating System)プログラムPOを記憶している。また、アプリケーションプログラムとして、ワードプロセッサの機能を情報処理装置1において実現させるワープロプログラムP1を記憶している。また、記憶部105は、通信ネットワークに接続される画像形成装置に文書を印刷させる機能を実現するドライバプログラムPDを記憶している。   The storage unit 105 includes, for example, a hard disk device as a device for permanently storing various data. The storage unit 105 stores an OS (Operating System) program PO that realizes basic functions commonly used by application programs, such as various input / output functions such as keyboard input and screen display, and control of the storage unit 105. Yes. Further, a word processor program P1 for realizing the function of the word processor in the information processing apparatus 1 is stored as an application program. In addition, the storage unit 105 stores a driver program PD that realizes a function of causing the image forming apparatus connected to the communication network to print a document.

ROM(Read Only Memory)103は、IPL(Initial Program Loader)を記憶している。情報処理装置1の電源が投入されると、CPU102はROM103からIPLを読み出して起動する。CPU102によりIPLが起動されると、記憶部105に記憶されているOSプログラムPOが読み出され、読み出されたOSプログラムPOがRAM(Random Access Memory)104を作業エリアとしてCPU102により実行される。そして、OSプログラムPOが実行されると、操作部106から入力された各種情報や指示を受け付ける機能、記憶部105からの各種データの読み出しや記憶部105へ各種データを書き込む機能、表示部107に各種表示を行う機能など、コンピュータ装置としての基本的な機能が情報処理装置1において実現する。そして、OSプログラムPOが起動されると、情報処理装置1においては、ユーザの操作部106への操作に応じて、各種アプリケーションプログラムやドライバプログラムPDを実行することが可能となる。   A ROM (Read Only Memory) 103 stores an IPL (Initial Program Loader). When the information processing apparatus 1 is powered on, the CPU 102 reads the IPL from the ROM 103 and starts up. When the IPL is activated by the CPU 102, the OS program PO stored in the storage unit 105 is read, and the read OS program PO is executed by the CPU 102 using a RAM (Random Access Memory) 104 as a work area. When the OS program PO is executed, a function for receiving various information and instructions input from the operation unit 106, a function for reading various data from the storage unit 105 and a function for writing various data to the storage unit 105, Basic functions as a computer device such as various display functions are realized in the information processing apparatus 1. When the OS program PO is activated, the information processing apparatus 1 can execute various application programs and the driver program PD in accordance with a user operation on the operation unit 106.

[実施形態の動作]
以下、情報処理装置1において文字列に階調を付けた文書を作成する時の動作について説明する。まず、情報処理装置1のユーザが操作部106を操作し、ワープロプログラムP1の実行を指示する操作を行うと、CPU102が記憶部105からワープロプログラムP1を読み出して実行する。CPU102によりワープロプログラムP1が実行されると、表示部107が制御され、文章を入力する領域や各種ツールバーを備えたウィンドウが図2に例示したように表示部107に表示される。図2に例示したウィンドウが表示された後、ユーザが操作部106のキーボードを操作して例えば「長崎は今日も雨」という文字列を入力すると、図3に例示したように入力された文字列が表示部107に表示される。
[Operation of the embodiment]
Hereinafter, an operation when creating a document in which gradation is added to a character string in the information processing apparatus 1 will be described. First, when the user of the information processing apparatus 1 operates the operation unit 106 and performs an operation to instruct execution of the word processor program P1, the CPU 102 reads the word processor program P1 from the storage unit 105 and executes it. When the word processor program P1 is executed by the CPU 102, the display unit 107 is controlled, and a window having a text input area and various toolbars is displayed on the display unit 107 as illustrated in FIG. After the window illustrated in FIG. 2 is displayed, when the user operates the keyboard of the operation unit 106 and inputs, for example, the character string “Nagasaki is raining today”, the character string input as illustrated in FIG. Is displayed on the display unit 107.

ユーザは、入力した文字列に色と階調をつける場合、まず、色と階調をつける文字列を選択する。具体的には、ユーザは操作部106のマウスを操作し、表示部107に表示されているマウスポインタ(図示略)を移動させる。そして、色と階調とをつける文字列の先頭にマウスポインタを移動させると、マウスのボタンを押したままマウスポインタを文字列の最後尾まで移動させた後、マウスのボタンを離す。例えば、図3に示した「長崎は今日も雨」という文字列の先頭にマウスポインタを移動させた後、マウスのボタンを押したままマウスポインタを文字列の最後尾まで移動させてボタンを離すと、図4に示したように「長崎は今日も雨」という文字列が選択され、文字列の先頭から最後尾までの文字列が反転して表示される。   When adding color and gradation to an input character string, the user first selects a character string to which color and gradation are added. Specifically, the user operates the mouse of the operation unit 106 and moves a mouse pointer (not shown) displayed on the display unit 107. Then, when the mouse pointer is moved to the beginning of the character string to which the color and gradation are added, the mouse pointer is moved to the end of the character string while keeping the mouse button pressed, and then the mouse button is released. For example, after moving the mouse pointer to the beginning of the character string “Nagasaki is still raining” shown in FIG. 3, hold down the mouse button and move the mouse pointer to the end of the character string and release the button. Then, as shown in FIG. 4, the character string “Nagasaki is still raining today” is selected, and the character string from the beginning to the end of the character string is inverted and displayed.

次に、図4に示したように文字列が反転して表示されている状態において、ユーザがウィンドウのツールバーの「書式」の項目をクリックする操作を行うと、図5に例示したようにプルダウンメニューが表示される。そして、ユーザがプルダウンメニュー中の「フォント」の項目をクリックする操作を行うと、図6に示したように文字に関する設定を行うためのメニュー画面が表示される。ここで、ユーザが、図6中の「階調付き」のチェックボックスC1をクリックする操作を行った後、図6中のOKボタンをクリックする操作を行うと、CPU102は、反転して表示されている文字列に色と階調を付ける処理(図7)を実行する。なお、本実施形態においては、文字列に色と階調を付ける際、文字列の先頭から末尾まで赤→黄→緑→青という順番で文字色を変化させるとともに、赤から青まで変化するまでの階調数が50となっている。しかし、色数および階調数は、この数に限定されるものではなく、例えば色数は3色以下または5色以上であってもよいし、階調数も49以下または51以上であってもよい。   Next, when the user performs an operation of clicking the “Format” item on the toolbar of the window in the state where the character string is inverted as shown in FIG. 4, a pull-down is performed as illustrated in FIG. A menu is displayed. Then, when the user performs an operation of clicking the “font” item in the pull-down menu, a menu screen for performing settings relating to characters is displayed as shown in FIG. Here, when the user performs an operation of clicking the “tone” check box C1 in FIG. 6 and then clicking the OK button in FIG. 6, the CPU 102 is displayed in an inverted manner. A process (FIG. 7) for adding color and gradation to the character string being executed is executed. In this embodiment, when adding color and gradation to a character string, the character color is changed in the order of red → yellow → green → blue from the beginning to the end of the character string, and until it changes from red to blue. The number of gradations is 50. However, the number of colors and the number of gradations are not limited to these numbers. For example, the number of colors may be 3 or less or 5 or more, and the number of gradations is 49 or less or 51 or more. Also good.

さて、CPU102は、文字列に色と階調を付ける場合、まず反転して表示されている文字列をRAM104に格納する(図7:ステップSA1)。そしてCPU102は、RAM104に格納された文字列の形態素解析を行い、文字列を予め定められた単位で複数の要素に分割する。例えば、本実施形態においては、予め定められた単位が「品詞」となっており、文字列は、この品詞という単位で分割される(ステップSA2)。
例えば、図6に示した「長崎は今日も雨」という文字列の場合、文字列は、「長崎」、「は」、「今日」、「も」、「雨」というように5つの単語に分割される。CPU102は文字列を分割すると、分割された単語が自立語であるか付属語であるかを単語毎に判別する(ステップSA3)。例えば、「長崎」、「は」、「今日」、「も」、「雨」という単語の場合、「長崎」「今日」「雨」は自立語、「は」「も」は付属語というように判別される。CPU102は、各単語について自立語であるか付属語であるかの種別を判別すると、図8に示したように、単語が自立語である場合には自立語を示す種別情報をRAM104に格納されている自立語に対応付けて記憶させ、単語が付属語である場合には付属語を示す種別情報をRAM104に格納されている付属語に対応付けて記憶させる(ステップSA4)。
When adding color and gradation to a character string, the CPU 102 first stores the character string displayed in reverse in the RAM 104 (FIG. 7: Step SA1). Then, the CPU 102 performs a morphological analysis of the character string stored in the RAM 104, and divides the character string into a plurality of elements in a predetermined unit. For example, in the present embodiment, the predetermined unit is “part of speech”, and the character string is divided in units of this part of speech (step SA2).
For example, in the case of the character string “Nagasaki is rain today” shown in FIG. 6, the character string is divided into five words such as “Nagasaki”, “ha”, “today”, “mo”, “rain”. Divided. When the CPU 102 divides the character string, it determines for each word whether the divided word is an independent word or an attached word (step SA3). For example, in the case of the words “Nagasaki”, “ha”, “today”, “mo”, “rain”, “Nagasaki”, “today”, “rain” are independent words, “ha”, “mo” are attached words, etc. Is determined. When the CPU 102 determines the type of each word as an independent word or an adjunct word, as shown in FIG. 8, when the word is an independent word, the type information indicating the independent word is stored in the RAM 104. If the word is an attached word, the type information indicating the attached word is stored in association with the attached word stored in the RAM 104 (step SA4).

CPU102は、各単語の種別を判別すると、次に各単語に割り当てる階調数を設定する。具体的には、まずCPU102は予め決められている階調数(本実施形態では50)を単語数で除算し、一の単語に割り当てる階調数を決定する(ステップSA5)。例えば、上述した「長崎は今日も雨」という文字列の場合、単語の数は5つであり階調数は50であるため、この時点で一の単語に割り当てられる階調数は10となる。   After determining the type of each word, the CPU 102 sets the number of gradations to be assigned to each word next. Specifically, the CPU 102 first divides a predetermined number of gradations (50 in this embodiment) by the number of words to determine the number of gradations to be assigned to one word (step SA5). For example, in the case of the character string “Nagasaki is still rainy” described above, the number of words is 5 and the number of gradations is 50. Therefore, the number of gradations assigned to one word at this point is 10. .

次にCPU102は、階調が付けられる文字列を読みやすくするために、自立語の階調数と付属語の階調数とを変更する。具体的には、まず、ステップSA5で自立語に割り当てた階調数を2で除算し、除算により得た商をステップSA5で割り当てた階調数から減算する。そして、減算により得られた数を自立語に割り当てる階調数とし、自立語に対応付けてRAM104に格納する(ステップSA6)。例えば、「長崎」「今日」「雨」の場合、ステップSA5で自立語に割り当てた階調数は10であるため、自立語に割り当てられる階調数は10−10/2=5となり、この階調数が図8に示したようにRAM104に格納されている自立語に対応付けて格納される。   Next, the CPU 102 changes the number of independent words and the number of attached words to make it easier to read the character string to which the gradation is added. Specifically, first, the number of gradations assigned to the independent word in step SA5 is divided by 2, and the quotient obtained by the division is subtracted from the gradation number assigned in step SA5. Then, the number obtained by subtraction is set as the number of gradations to be assigned to the independent words, and stored in the RAM 104 in association with the independent words (step SA6). For example, in the case of “Nagasaki”, “Today”, and “Rain”, the number of gradations assigned to the independent word in step SA5 is 10, so the gradation number assigned to the independent word is 10−10 / 2 = 5. The number of gradations is stored in association with the independent words stored in the RAM 104 as shown in FIG.

次にCPU102は、付属語の階調数を変更する(ステップSA7)。具体的には、CPU102は、各自立語から減じた階調数を加算し、その合計を付属語の数で除算する。例えば、「長崎」「今日」「雨」からは5づつ減算されるため、各自立語から減じた数の合計は15となる。CPU102が、15を付属語(「は」と「も」)の数2で除算すると、除算の結果、商として7、余として1が得られる。CPU102は、除算により得られた商を、ステップSA5で付属語に割り当てた階調数に加算し、加算により得られた数を付属語に割り当てる階調数とし、付属語に対応付けてRAM104に格納する。ここでは、「は」および「も」の階調数はいずれも10+7=17となり、この階調数が図8に示したようにRAM104に格納されている付属語に対応付けて格納される。   Next, the CPU 102 changes the number of gradations of the attached word (step SA7). Specifically, the CPU 102 adds the number of gradations subtracted from each independent word, and divides the total by the number of attached words. For example, since 5 is subtracted from “Nagasaki”, “Today”, and “Rain”, the total number subtracted from each independent word is 15. When the CPU 102 divides 15 by the number 2 of the attached words (“ha” and “mo”), 7 is obtained as the quotient and 1 as the remainder as a result of the division. The CPU 102 adds the quotient obtained by the division to the number of gradations assigned to the attached word in step SA5, sets the number obtained by the addition as the number of gradations assigned to the attached word, and associates it with the attached word in the RAM 104. Store. Here, the numbers of gradations of “ha” and “mo” are both 10 + 7 = 17, and the number of gradations is stored in association with the attached words stored in the RAM 104 as shown in FIG.

次にCPU102は、RAM104に格納した階調数に従い、マウスで選択された文字列を着色する処理を行う(ステップSA8)。具体的には、CPU102は、図9に示したように1〜50までの50階調の色から単語に対応付けて格納されている階調数の色を抽出し、抽出した色を各単語に割り振っていく。なお、図9においては、50階調の色は、図の左から右へ赤→黄→緑→青という順番で色が変化しており、各階調には1〜50の番号が割り当てられている。   Next, the CPU 102 performs a process of coloring the character string selected with the mouse according to the number of gradations stored in the RAM 104 (step SA8). Specifically, as shown in FIG. 9, the CPU 102 extracts the color of the number of gradations stored in association with the word from the colors of 50 gradations from 1 to 50, and uses the extracted color for each word. Will be allocated. In FIG. 9, the colors of 50 gradations change from left to right in the order of red → yellow → green → blue, and numbers 1 to 50 are assigned to each gradation. Yes.

例えば、「長崎」という単語の場合、この単語に割り当てられている階調数は5であるため、CPU102は、図9に示したように番号が1〜5の色を「長崎」という単語に割り当てる。CPU102は、「長崎」という単語に割り当てる色を決定すると、図10に示したように、決定した色の数で「長崎」という文字の幅を等分し、等分した領域に1〜5の色を割り当てる。そして、等分された領域内にある文字輪郭内を割り当てられた色で着色していく。これにより「長崎」という単語は5つの階調で着色されることとなる。   For example, in the case of the word “Nagasaki”, since the number of gradations assigned to this word is 5, the CPU 102 changes the colors of numbers 1 to 5 to the word “Nagasaki” as shown in FIG. assign. When the CPU 102 determines the color to be assigned to the word “Nagasaki”, as shown in FIG. 10, the CPU 102 equally divides the width of the character “Nagasaki” by the determined number of colors, and assigns 1 to 5 to the divided areas. Assign a color. Then, the character outline in the equally divided area is colored with the assigned color. As a result, the word “Nagasaki” is colored in five gradations.

また、例えば「は」という単語の場合、この単語に割り当てられている階調数は17であるため、CPU102は、図9に示したように6〜23の色を「は」という単語に割り当てる。CPU102は、「は」という単語に割り当てる色を決定すると、図11に示したように、決定した色の数で「は」という文字の幅を等分し、等分した領域に6〜23の色を割り当てる。そして、等分された領域内にある文字輪郭内を割り当てられた色で着色していく。これにより「は」という単語は17の階調で着色されることとなる。   For example, in the case of the word “ha”, since the number of gradations assigned to this word is 17, the CPU 102 assigns colors 6 to 23 to the word “ha” as shown in FIG. . When the CPU 102 determines the color to be assigned to the word “ha”, as shown in FIG. 11, the width of the character “ha” is equally divided by the determined number of colors, and 6 to 23 are divided into the equally divided areas. Assign a color. Then, the character outline in the equally divided area is colored with the assigned color. As a result, the word “ha” is colored with 17 gradations.

CPU102は、他の「今日」「も」「雨」という単語についても、「長崎」や「は」の場合と同様に各単語に割り振られた階調数に応じて各単語を着色する。そしてCPU102は、全ての単語への着色が終了すると、着色された文字列を表示部107に表示させる(ステップSA9)。ここで、着色された自立語は、付属語と比較すると階調数が少ないため、人間の目で見たときに読みやすくなっている。   The CPU 102 also colors each word according to the number of gradations assigned to each word, as in the case of “Nagasaki” or “ha”, for the other words “today”, “mo”, and “rain”. When the CPU 102 finishes coloring all the words, it displays the colored character string on the display unit 107 (step SA9). Here, the colored independent words have fewer gradations than the attached words, and thus are easy to read when viewed with human eyes.

[第2実施形態]
次に本発明の第2実施形態について説明する。本発明の第2実施形態に係る情報処理装置1においては、動作が第1実施形態と異なるのみであり、ハードウェア構成は第1実施形態の情報処理装置1と同じとなっている。よって、以下の説明においては、第1実施形態と異なる動作についてのみ説明を行い、ハードウェア構成や第1実施形態と同じ動作については、その説明を省略する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. In the information processing apparatus 1 according to the second embodiment of the present invention, the operation is only different from that of the first embodiment, and the hardware configuration is the same as that of the information processing apparatus 1 of the first embodiment. Therefore, in the following description, only operations different from those of the first embodiment will be described, and description of the same operations as those of the hardware configuration and the first embodiment will be omitted.

本実施形態において文字列に階調を付けて着色する場合、ユーザが、文字列を選択してから図6中の「階調付き」のチェックボックスC1をクリックする操作を行った後、図6中のOKボタンをクリックする操作を行うと、CPU102は、反転して表示されている文字列に色と階調を付ける処理を実行する(図12)。   In the present embodiment, when coloring a character string with a gradation, the user selects the character string and then performs an operation of clicking the “with gradation” check box C1 in FIG. When an operation of clicking the OK button in the middle is performed, the CPU 102 executes a process of adding a color and a gradation to the character string displayed in reverse (FIG. 12).

まず反転して表示されている文字列をRAM104に格納する(図12:ステップSB1)。そしてCPU102は、RAM104に格納された文字列の形態素解析を行い、文字列を品詞毎に分割する(ステップSB2)。例えば、「長崎、熊本は今日も雨」という文字列の場合、文字列は、「長崎」、「熊本」、「は」、「今日」、「も」、「雨」というように6つの単語に分割される。CPU102は、文字列を分割すると、分割された単語が自立語であるか付属語であるかを単語毎に判別する(ステップSB3)。例えば、「長崎」、「熊本」、「は」、「今日」、「も」、「雨」という単語の場合、「長崎」「熊本」「今日」「雨」は自立語、「は」「も」は付属語というように判別される。CPU102は、各単語について自立語であるか付属語であるかの種別を判別すると、単語が自立語である場合には自立語を示す種別情報をRAM104に格納されている自立語に対応付けて記憶させ、単語が付属語である場合には付属語を示す種別情報をRAM104に格納されている付属語に対応付けて記憶させる(ステップSB4)。   First, the highlighted character string is stored in the RAM 104 (FIG. 12: step SB1). The CPU 102 performs morphological analysis of the character string stored in the RAM 104, and divides the character string into parts of speech (step SB2). For example, in the case of the character string “Nagasaki, Kumamoto is also rainy today”, the character string has six words such as “Nagasaki”, “Kumamoto”, “ha”, “today”, “mo”, “rain”. It is divided into. When dividing the character string, the CPU 102 determines, for each word, whether the divided word is an independent word or an attached word (step SB3). For example, in the case of the words “Nagasaki”, “Kumamoto”, “ha”, “today”, “mo”, “rain”, “Nagasaki”, “Kumamoto”, “today”, “rain” are independent words, “ha” “ "" Is identified as an attached word. When the CPU 102 determines the type of each word as an independent word or an attached word, if the word is an independent word, the CPU 102 associates the type information indicating the independent word with the independent word stored in the RAM 104. If the word is an attached word, the type information indicating the attached word is stored in association with the attached word stored in the RAM 104 (step SB4).

CPU102は、各単語の種別を判別すると、次に文字列中で連続している自立語をひとつにまとめる(ステップSB5)。ここで、「長崎、熊本は今日も雨」という文字列の場合、文字列中において「長崎」「熊本」というように自立語が連続している部分がある。CPU102は、RAM104に格納されている単語と種別情報とを解析し、文字列中において自立語が連続している部分を見つけると、連続している単語を一つの単語としてまとめて図13に示したようにRAM104に格納する。   When the CPU 102 determines the type of each word, the CPU 102 then combines the independent words that are continuous in the character string into one (step SB5). Here, in the case of the character string “Nagasaki, Kumamoto is still raining today”, there are portions where independent words are continued, such as “Nagasaki” and “Kumamoto” in the character string. When the CPU 102 analyzes the word and type information stored in the RAM 104 and finds a portion where independent words are continued in the character string, the consecutive words are collectively shown as one word in FIG. As shown in FIG.

CPU102は、ステップSB5の処理が終了すると、次に各単語に割り当てる階調数を決定する。具体的には、まずCPU102は予め決められている階調数を単語数で除算し、一の単語に割り当てる階調数を決定する(ステップSB6)。例えば、上述した「長崎、熊本は今日も雨」という文字列の場合、「長崎」と「熊本」の単語は一つにまとめられているため、単語の数は5つとなる。そして階調数は50であるため、この時点で一の単語に割り当てられる階調数は10となる。   When the processing of step SB5 is completed, CPU 102 determines the number of gradations to be assigned to each word next. Specifically, first, the CPU 102 divides a predetermined number of gradations by the number of words to determine the number of gradations to be assigned to one word (step SB6). For example, in the case of the above-described character string “Nagasaki, Kumamoto is still rainy today”, the words “Nagasaki” and “Kumamoto” are combined into one, so the number of words is five. Since the number of gradations is 50, the number of gradations assigned to one word at this time is 10.

次にCPU102は、階調が付けられた文字列を読みやすくするために、自立語の階調数と付属語の階調数とを変更する。具体的には、まず、ステップSB6で自立語に割り当てた階調数を2で除算し、演算により得た商をステップSB6で割り当てた階調数から減算する。そして、減算により得られた数を自立語に割り当てる階調数とし、自立語に対応付けてRAM104に格納する(ステップSB7)。例えば、「長崎、熊本」「今日」「雨」の場合、ステップSB6で自立語に割り当てた階調数は10であるため、自立語に割り当てられる階調数は10−10/2=5となり、この階調数が図13に示したようにRAM104に格納されている自立語に対応付けて格納される。   Next, the CPU 102 changes the number of independent words and the number of attached words to make it easier to read the character string with the gradation. Specifically, first, the number of gradations assigned to the independent word in step SB6 is divided by 2, and the quotient obtained by the calculation is subtracted from the gradation number assigned in step SB6. Then, the number obtained by subtraction is set as the number of gradations to be assigned to the independent words, and stored in the RAM 104 in association with the independent words (step SB7). For example, in the case of “Nagasaki, Kumamoto”, “Today”, “Rain”, the number of gradations assigned to the independent word in step SB6 is 10, so the number of gradations assigned to the independent word is 10−10 / 2 = 5. The number of gradations is stored in association with the independent words stored in the RAM 104 as shown in FIG.

次にCPU102は、付属語の階調数を変更する(ステップSB8)。具体的には、CPU102は、各自立語から減じた数を加算し、その合計を付属語の数で除算する。例えば、「長崎、熊本」「今日」「雨」からは5づつ減算されるため、各自立語から減じた数の合計は15となる。CPU102が、15を付属語(「は」と「も」)の数2で除算すると、除算の結果、商として7、余として1が得られる。CPU102は、除算により得られた商を、ステップSB6で付属語に割り当てた階調数に加算し、加算により得られた数を付属語に割り当てる階調数とし、付属語に対応付けてRAM104に格納する。ここでは、「は」および「も」の階調数はいずれも10+7=17となり、この階調数が図13に示したようにRAM104に格納されている付属語に対応付けて格納される。   Next, the CPU 102 changes the number of gradations of the attached word (step SB8). Specifically, the CPU 102 adds the number subtracted from each independent word, and divides the total by the number of attached words. For example, since 5 is subtracted from “Nagasaki, Kumamoto”, “Today”, and “Rain”, the total number subtracted from each independent word is 15. When the CPU 102 divides 15 by the number 2 of the attached words (“ha” and “mo”), 7 is obtained as the quotient and 1 as the remainder as a result of the division. The CPU 102 adds the quotient obtained by the division to the number of gradations assigned to the attached word in step SB6, sets the number obtained by the addition as the number of gradations assigned to the attached word, and associates it with the attached word in the RAM 104. Store. Here, the numbers of gradations of “ha” and “mo” are both 10 + 7 = 17, and the number of gradations is stored in association with the attached words stored in the RAM 104 as shown in FIG.

次にCPU102は、RAM104に格納した階調数に従い、マウスで選択された文字列を着色する処理を行う(ステップSB9)。ここで、CPU102は、1〜50までの50階調の色から単語に対応付けて格納されている階調数の色を抽出し、抽出した色を各単語に割り振っていく。   Next, the CPU 102 performs a process of coloring the character string selected by the mouse according to the number of gradations stored in the RAM 104 (step SB9). Here, the CPU 102 extracts the color of the number of gradations stored in association with the word from the 50 gradation colors from 1 to 50, and assigns the extracted color to each word.

例えば、「長崎、熊本」という単語の場合、この単語に割り当てられている階調数は5であるため、CPU102は番号が1〜5の色を「長崎、熊本」という単語に割り当てる。CPU102は、「長崎、熊本」という単語に割り当てる色を決定すると、決定した色の数で「長崎、熊本」という文字の幅を等分し、等分した領域に1〜5の色を割り当てる。そして、等分された領域内にある文字輪郭内を割り当てられた色で着色していく。これにより「長崎、熊本」という単語は5つの階調で着色されることとなる。なお、「は」以降の文字列の着色については、第1実施形態と同じであるため、その動作説明を省略する。   For example, in the case of the word “Nagasaki, Kumamoto”, since the number of gradations assigned to this word is 5, the CPU 102 assigns the colors of numbers 1 to 5 to the word “Nagasaki, Kumamoto”. When the CPU 102 determines the color to be assigned to the word “Nagasaki, Kumamoto”, the CPU 102 equally divides the width of the characters “Nagasaki, Kumamoto” by the determined number of colors, and assigns colors 1 to 5 to the equally divided areas. Then, the character outline in the equally divided area is colored with the assigned color. As a result, the words “Nagasaki, Kumamoto” are colored in five gradations. The coloring of the character string after “ha” is the same as that in the first embodiment, and the description of the operation is omitted.

CPU102は、全ての単語への着色が終了すると、着色された文字列を表示部107に表示させる(ステップSB10)。ここで、着色された「長崎、熊本」という自立語は、付属語と比較すると階調数が少ないため、人間の目で見たときに読みやすくなっている。   When the coloring to all the words is completed, the CPU 102 displays the colored character string on the display unit 107 (step SB10). Here, the colored independent words “Nagasaki, Kumamoto” have fewer gradations than the attached words, and are easy to read when viewed with human eyes.

[第3実施形態]
次に本発明の第3実施形態について説明する。本発明の第3実施形態に係る情報処理装置1おいては、動作が第1実施形態と異なるのみであり、ハードウェア構成は第1実施形態の情報処理装置1と同じとなっている。よって、以下の説明においては、第1実施形態と異なる動作についてのみ説明を行い、ハードウェア構成や第1実施形態と同じ動作については、その説明を省略する。
[Third Embodiment]
Next, a third embodiment of the present invention will be described. In the information processing apparatus 1 according to the third embodiment of the present invention, the operation is only different from that of the first embodiment, and the hardware configuration is the same as that of the information processing apparatus 1 of the first embodiment. Therefore, in the following description, only operations different from those of the first embodiment will be described, and description of the same operations as those of the hardware configuration and the first embodiment will be omitted.

本実施形態において「長崎は今日も雨」という文字列に階調を付けて着色する場合、ユーザが、文字列を選択してから図6中の「階調付き」のチェックボックスC1をクリックする操作を行った後、図6中のOKボタンをクリックする操作を行うと、CPU102は、反転して表示されている文字列に色と階調を付ける処理を実行する(図14)。   In the present embodiment, when coloring the character string “Nagasaki is still rainy today” with a gradation, the user selects the character string and then clicks the “graded” check box C1 in FIG. After performing the operation, when an operation of clicking the OK button in FIG. 6 is performed, the CPU 102 executes a process of adding a color and a gradation to the character string displayed in an inverted manner (FIG. 14).

ここで、反転して表示されている文字列をRAM104に格納してから一つの単語に割り当てる階調数を算出するまでの動作(ステップSA1〜ステップSA5)は、第1実施形態と同じである。CPU102は、ステップSA5の処理が終了すると、第1実施形態におけるステップSA6とステップSA7の処理を行わず、ステップSA8の処理を実行する。なお、ステップSA6とステップSA7の処理、即ち、自立語と付属語の階調数を変更する処理が行われないため、ここでは、各単語に割り当てられる階調数は10となっている。   Here, the operation (step SA1 to step SA5) from storing the highlighted character string in the RAM 104 to calculating the number of gradations assigned to one word is the same as in the first embodiment. . When the process of step SA5 ends, the CPU 102 executes the process of step SA8 without performing the processes of step SA6 and step SA7 in the first embodiment. In addition, since the process of step SA6 and step SA7, ie, the process of changing the number of gradations of independent words and attached words, is not performed, the number of gradations assigned to each word is 10.

CPU102は、1〜50までの50階調の色から単語に対応付けて格納されている階調数の色を抽出し、抽出した色を各単語に割り振っていく。例えば、「長崎」という単語の場合、この単語に割り当てられている階調数は10であるため、CPU102は、図15に示したように、番号が1〜10の色を「長崎」という単語に割り当てる。CPU102は、「長崎」という単語に割り当てる色を決定すると、決定した色の数で「長崎」という文字の幅を等分し、等分した領域に1〜10の色を割り当てる。そして、等分された領域内にある文字輪郭内を割り当てられた色で着色していく。これにより「長崎」という単語は10の階調で着色されることとなる。   The CPU 102 extracts the color of the number of gradations stored in association with the word from the 50 gradation colors from 1 to 50, and assigns the extracted color to each word. For example, in the case of the word “Nagasaki”, since the number of gradations assigned to this word is 10, the CPU 102 changes the color of numbers 1 to 10 to the word “Nagasaki” as shown in FIG. Assign to. When the CPU 102 determines the color to be assigned to the word “Nagasaki”, the CPU 102 equally divides the width of the character “Nagasaki” by the determined number of colors, and assigns colors 1 to 10 to the equally divided areas. Then, the character outline in the equally divided area is colored with the assigned color. As a result, the word “Nagasaki” is colored with 10 gradations.

また、例えば「は」という単語の場合、この単語に割り当てられている階調数は10であるため、CPU102は、図15に示したように、11〜20の色を「は」という単語に割り当てる。CPU102は、「は」という単語に割り当てる色を決定すると、決定した色の数で「は」という文字の幅を等分し、等分した領域に11〜20の色を割り当てる。そして、等分された領域内にある文字輪郭内を割り当てられた色で着色していく。これにより「は」という単語は10の階調で着色されることとなる。   Further, for example, in the case of the word “ha”, since the number of gradations assigned to this word is 10, the CPU 102 changes the colors 11 to 20 to the word “ha” as shown in FIG. assign. When the CPU 102 determines the color to be assigned to the word “ha”, the width of the character “ha” is equally divided by the determined number of colors, and the colors 11 to 20 are assigned to the equally divided areas. Then, the character outline in the equally divided area is colored with the assigned color. As a result, the word “ha” is colored with 10 gradations.

CPU102は、他の「今日」「も」「雨」という単語についても、「長崎」や「は」の場合と同様に各単語に割り振られた階調数に応じて各単語を着色する。そしてCPU102は、全ての単語への着色が終了すると、着色された文字列を表示部107に表示させる(ステップSA9)。   The CPU 102 also colors each word according to the number of gradations assigned to each word, as in the case of “Nagasaki” or “ha”, for the other words “today”, “mo”, and “rain”. When the CPU 102 finishes coloring all the words, it displays the colored character string on the display unit 107 (step SA9).

[変形例]
以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限定されることなく、他の様々な形態で実施可能である。例えば、上述の実施形態を以下のように変形して本発明を実施してもよい。
[Modification]
As mentioned above, although embodiment of this invention was described, this invention is not limited to embodiment mentioned above, It can implement with another various form. For example, the present invention may be implemented by modifying the above-described embodiment as follows.

上述した実施形態においては、文字列を着色するときの色は、ユーザが操作部106を操作して「赤、黄、緑、青」という4色と「赤、橙、黄、緑、青、藍、紫」という7色のいずれかを選択できるようにしてもよい。また、階調数についても、ユーザが操作部106のキーボードを操作して階調数を入力し、入力された階調数を文字列に割り当てるようにしてもよい。
また、上述した実施形態においては、「階調付き」のチェックボックスC1をクリックする操作が行われた後、図6中のOKボタンをクリックする操作が行われた場合、図16に示したように、ユーザにより選択された文字列の隣にスクロールバーBを表示してもよい。そして、このスクロールバーBのスライダSをマウスの操作によって上下させた場合、スライダSの位置に応じて文字列につける階調数を増減させてもよい。
In the above-described embodiment, the color for coloring the character string is four colors “red, yellow, green, blue” and “red, orange, yellow, green, blue, You may be allowed to select any one of the seven colors “blue, purple”. As for the number of gradations, the user may input the number of gradations by operating the keyboard of the operation unit 106, and the input number of gradations may be assigned to the character string.
Further, in the above-described embodiment, when an operation of clicking the OK button in FIG. 6 is performed after an operation of clicking the check box C1 with “gradation” is performed, as illustrated in FIG. In addition, the scroll bar B may be displayed next to the character string selected by the user. When the slider S of the scroll bar B is moved up and down by a mouse operation, the number of gradations to be added to the character string may be increased or decreased according to the position of the slider S.

上述した第2実施形態においては、ステップSB7で一の自立語から減じた階調数を、自立語の前後の付属語に割り当てるようにしてもよい。例えば上述した実施形態においては、「長崎は今日も雨」という文字列の場合、「長崎」から減じた階調数である5を「は」に加算し、「今日」から減じた階調数である5のうち3を「は」へ加算するとともに2を「も」へ加算し、「雨」から減じた階調数である5を「も」に加算するようにしてもよい。この態様によれば、「長崎」の階調数は5、「は」の階調数は10+5+3=18、「今日」の階調数は5、「も」の階調数は10+2+5=17、「雨」の階調数は5となる。ここで、着色された「長崎」、「今日、「雨」という自立語は、付属語と比較すると階調数が少ないため、人間の目で見たときに読みやすくなる。
また、上述した第3実施形態においては、予め決められた数の階調数を各単語に割り当てるようにしてもよい。
In the second embodiment described above, the number of gradations subtracted from one independent word in step SB7 may be assigned to the attached words before and after the independent word. For example, in the above-described embodiment, in the case of the character string “Nagasaki is still raining today”, the gradation number subtracted from “Nagasaki” is added to “ha”, and the gradation number subtracted from “Today”. 3 may be added to “ha” and 2 may be added to “mo”, and 5 which is the number of gradations subtracted from “rain” may be added to “mo”. According to this aspect, the number of gradations of “Nagasaki” is 5, the number of gradations of “ha” is 10 + 5 + 3 = 18, the number of gradations of “today” is 5, and the number of gradations of “mo” is 10 + 2 + 5 = 17. The number of gradations of “rain” is 5. Here, the colored independent words “Nagasaki” and “Today,“ Rain ”have fewer gradations than the attached words, so that they are easy to read when viewed with human eyes.
In the third embodiment described above, a predetermined number of gradations may be assigned to each word.

上述した実施形態においては、文字列を表す情報と、階調を付ける文字列の開始位置と終了位置とを示す情報とを含む文書情報を通信部110で受信してもよい。そして、階調を付ける文字列の開始位置と終了位置とを示す情報により、階調を付ける文字列を特定し、特定した文字列に対して上述した実施形態と同様にして階調をつけるようにしてもよい。   In the above-described embodiment, the communication unit 110 may receive document information including information representing a character string and information indicating the start position and end position of the character string to which gradation is added. Then, the character string to which the gradation is added is specified based on the information indicating the start position and the end position of the character string to which the gradation is applied, and the gradation is applied to the specified character string in the same manner as in the above-described embodiment. It may be.

上述した実施形態においては、文字列中の単語数が階調数より多い場合、一の単語に一の階調を割り当てるようにしてもよい。例えば、単語に階調をつけるときの色数と階調が「赤、黄、緑、青」の4色で各々一階調づつの場合、「長崎は今日も雨」という文字列に色と階調をつけるときに、「長崎」は「赤」、「は」は「黄」、「今日」は「緑」、「も」は「青」、「雨」は「赤」というように色をつけるようにしてもよい。   In the embodiment described above, when the number of words in the character string is greater than the number of gradations, one gradation may be assigned to one word. For example, if the number of colors and the gradation when adding gradation to a word are four gradations of “red, yellow, green, and blue” each with one gradation, the character string “Nagasaki is raining today” When adding gradation, “Nagasaki” is “red”, “ha” is “yellow”, “today” is “green”, “mo” is “blue”, “rain” is “red”, etc. You may make it attach.

上述した各実施形態において情報処理装置1は、パーソナルコンピュータ装置であるが、図7、図12、図14に示した処理を実行できるコンピュータ装置であれば、パーソナルコンピュータ以外の装置であってもよい。   In each of the above-described embodiments, the information processing apparatus 1 is a personal computer apparatus, but may be an apparatus other than a personal computer as long as it can execute the processes shown in FIGS. .

上述した文字列に色と階調をつける機能を実現するプログラムは、例えば、CD−ROM(Compact Disc Read Only Memory)などの記録媒体に記録して配布してもよい。そして、情報処理装置1においては記録媒体に記憶されたプログラムを読み取る読み取り装置を設け、CD−ROMに記憶されたプログラムを読み取り装置で読み取って記憶部105にインストールするようにしてもよい。なお、文字列に色と階調をつける機能を実現するプログラムを記録した記録媒体はCD−ROMに限定されるものではない。フレキシブルディスク、DVD(Digital Versatile Disk)、フラッシュROMを内蔵したICカードなど他の記録媒体であってもよい。また、文字列に色と階調をつける機能を実現するプログラムは、通信ネットワークに接続されたサーバ装置からダウンロードしてインストールするようにしてもよい。   The above-described program for realizing the function of adding color and gradation to the character string may be distributed by being recorded on a recording medium such as a CD-ROM (Compact Disc Read Only Memory). The information processing apparatus 1 may be provided with a reading device that reads a program stored in a recording medium, and the program stored in the CD-ROM may be read by the reading device and installed in the storage unit 105. Note that the recording medium on which the program for realizing the function of adding the color and gradation to the character string is recorded is not limited to the CD-ROM. Other recording media such as a flexible disk, a DVD (Digital Versatile Disk), and an IC card incorporating a flash ROM may be used. In addition, a program for realizing a function for adding color and gradation to a character string may be downloaded from a server device connected to a communication network and installed.

上述した実施形態においては、文字列に色と階調をつける機能を実現するプログラムをモジュール化してワープロプログラムP1とは別のプログラムとし、このプログラムを記憶部105に記憶させるようにしてもよい。そして、文字列に色と階調とをつける場合には、ワープロプログラムP1を実行しているCPU102が、モジュール化されたプログラムを実行することにより、文字列に色と階調をつける機能を実現するようにしてもよい。   In the above-described embodiment, a program that realizes the function of adding color and gradation to a character string may be modularized to be a program different from the word processor program P1, and this program may be stored in the storage unit 105. When adding color and gradation to a character string, the CPU 102 executing the word processor program P1 executes a modularized program, thereby realizing a function of adding color and gradation to the character string. You may make it do.

上述した実施形態では、日本語の形態素解析を行い、各単語に色と階調とを付けているが、英語以外の言語についても形態素解析を行い各単語に色と階調とをつけるようにしてもよい。この場合、文字列を分割する時の単位は「単語」となる。
また、上述した実施形態においては、文字列を分割するときの単位が「品詞」となっているが、文字列を分割するときの単位は品詞に限定されるものではない。例えば、上述した実施形態においては、文字列を分割する時の予め決められた単位を「文節」または「文」にして文字列を分割し、分割された文節または文毎に階調数を設定するようにしてもよい。
また、名詞については、予め定めた階調数以下の階調で着色するようにしてもよい。
In the above-described embodiment, Japanese morphological analysis is performed and colors and gradations are assigned to each word. However, morphological analysis is also performed for languages other than English so that colors and gradations are assigned to each word. May be. In this case, the unit for dividing the character string is “word”.
In the above-described embodiment, the unit for dividing the character string is “part of speech”, but the unit for dividing the character string is not limited to the part of speech. For example, in the above-described embodiment, the character string is divided by setting a predetermined unit when dividing the character string to “phrase” or “sentence”, and the number of gradations is set for each divided clause or sentence. You may make it do.
Also, nouns may be colored with a gradation equal to or less than a predetermined number of gradations.

本発明の一実施形態に係る情報処理装置1のハードウェア構成を示したブロック図である。It is the block diagram which showed the hardware constitutions of the information processing apparatus 1 which concerns on one Embodiment of this invention. 情報処理装置1の表示部107に表示される画面を示した図である。6 is a diagram showing a screen displayed on the display unit 107 of the information processing apparatus 1. FIG. 情報処理装置1の表示部107に表示される画面を示した図である。6 is a diagram showing a screen displayed on the display unit 107 of the information processing apparatus 1. FIG. 情報処理装置1の表示部107に表示される画面を示した図である。6 is a diagram showing a screen displayed on the display unit 107 of the information processing apparatus 1. FIG. 情報処理装置1の表示部107に表示される画面を示した図である。6 is a diagram showing a screen displayed on the display unit 107 of the information processing apparatus 1. FIG. 情報処理装置1の表示部107に表示される画面を示した図である。6 is a diagram showing a screen displayed on the display unit 107 of the information processing apparatus 1. FIG. 情報処理装置1が行う処理の流れを示したフローチャートである。3 is a flowchart showing a flow of processing performed by the information processing apparatus 1. RAM104に格納されたデータを示した図である。4 is a diagram showing data stored in a RAM 104. FIG. 文字列に割り当てられる階調を説明するための図である。It is a figure for demonstrating the gradation allocated to a character string. 単語に割り当てられる色を説明するための図である。It is a figure for demonstrating the color allocated to a word. 単語に割り当てられる色を説明するための図である。It is a figure for demonstrating the color allocated to a word. 本発明の第2実施形態に係る情報処理装置1が行う処理のフローチャートである。It is a flowchart of the process which the information processing apparatus 1 which concerns on 2nd Embodiment of this invention performs. RAM104に格納されたデータを示した図である。4 is a diagram showing data stored in a RAM 104. FIG. 本発明の第3実施形態に係る情報処理装置1が行う処理のフローチャートである。It is a flowchart of the process which the information processing apparatus 1 which concerns on 3rd Embodiment of this invention performs. 文字列に割り当てられる色を説明するための図である。It is a figure for demonstrating the color allocated to a character string. 本発明の変形例に係る情報処理装置1に表示される画面を示した図である。It is the figure which showed the screen displayed on the information processing apparatus 1 which concerns on the modification of this invention.

符号の説明Explanation of symbols

1・・・情報処理装置、101・・・バス、102・・・CPU、103・・・ROM、104・・・RAM、105・・・記憶部、106・・・操作部、107・・・表示部
110・・・通信部、PO・・・OSプログラム、P1・・・ワープロプログラム、PD・・・ドライバプログラム
DESCRIPTION OF SYMBOLS 1 ... Information processing apparatus, 101 ... Bus, 102 ... CPU, 103 ... ROM, 104 ... RAM, 105 ... Storage part, 106 ... Operation part, 107 ... Display unit 110 ... communication unit, PO ... OS program, P1 ... word processor program, PD ... driver program

Claims (6)

文字列情報が表す文字列を品詞別に複数の要素に分割する文字列分割手段と、
予め定められた色の範囲を所定階調数で分割し、前記文字列分割手段で分割された各要素へ割り当てる階調を分割された色の中から決定し、各要素へ割り当てる階調数を各要素の品詞種別に応じて異ならせる階調数割当手段と、
前記文字列分割手段得られた各要素を、前記階調数割当手段で各要素に割り当てられた階調を有するように着色する着色手段と、
前記着色手段で着色された文字列を出力する出力手段と
を有する情報処理装置。
A character string dividing means for dividing the character string represented by the character string information into a plurality of elements for each part of speech ;
The predetermined color range is divided by a predetermined number of gradations, the gradation assigned to each element divided by the character string dividing means is determined from the divided colors, and the number of gradations assigned to each element is determined. Tone number assigning means that varies depending on the part of speech type of each element ;
And coloring means for coloring each element obtained in the character string dividing means, so as to have a gradation allocated to each element in the number of gradations assigned means,
And an output unit that outputs the character string colored by the coloring unit.
前記文字列分割手段は、分割後に隣接する要素同士で品詞が同じである場合、隣接する要素を一つの要素にまとめること
を特徴とする請求項に記載の情報処理装置。
The information processing apparatus according to claim 1 , wherein the character string dividing unit combines adjacent elements into one element when the parts of speech that are adjacent to each other after the division are the same.
前記着色手段は、前記文字列に含まれる文字の並ぶ方向へ階調を変化させて着色することを特徴とする請求項1または2に記載の情報処理装置。 The coloring means, an information processing apparatus according to claim 1 or 2, characterized in that coloring by changing the tone in the direction of alignment of letters included in the character string. 文字列情報の表す文字列を出力する情報処理装置で実行される方法であって、
文字列情報の表す文字列を品詞別に複数の要素に分割する文字列分割ステップと、
予め定められた色の範囲を所定階調数で分割し、前記文字列分割ステップで分割された各要素へ割り当てる階調を分割された色の中から決定し、各要素へ割り当てる階調数を各要素の品詞種別に応じて異ならせる階調数割当ステップと、
前記文字列分割ステップ得られた各要素を、前記階調数割当ステップで各要素に割り当てられた階調を有するように着色する着色ステップと、
前記着色ステップで着色された文字列を出力する出力ステップと
を有する情報処理方法。
A method executed by an information processing apparatus that outputs a character string represented by character string information,
A character string dividing step for dividing the character string represented by the character string information into a plurality of elements by parts of speech ;
A predetermined color range is divided by a predetermined number of gradations, a gradation to be assigned to each element divided in the character string division step is determined from among the divided colors, and the number of gradations to be assigned to each element is determined. A gradation number assigning step that varies depending on the part of speech type of each element ,
A coloring step of coloring each element obtained in the character string dividing step, so as to have a gradation allocated to each element in the number of gradations assigned step,
And an output step for outputting the character string colored in the coloring step.
コンピュータ装置を、
文字列情報が表す文字列を品詞別に複数の要素に分割する文字列分割手段と、
予め定められた色の範囲を所定階調数で分割し、前記文字列分割手段で分割された各要素へ割り当てる階調を分割された色の中から決定し、各要素へ割り当てる階調数を各要素の品詞種別に応じて異ならせる階調数割当手段と、
前記文字列分割手段得られた各要素を、前記階調数割当手段で各要素に割り当てられた階調を有するように着色する着色手段と、
前記着色手段で着色された文字列を出力する出力手段
として機能させるためのプログラム。
Computer equipment,
A character string dividing means for dividing the character string represented by the character string information into a plurality of elements for each part of speech ;
The predetermined color range is divided by a predetermined number of gradations, the gradation assigned to each element divided by the character string dividing means is determined from the divided colors, and the number of gradations assigned to each element is determined. Tone number assigning means that varies depending on the part of speech type of each element ;
And coloring means for coloring each element obtained in the character string dividing means, so as to have a gradation allocated to each element in the number of gradations assigned means,
A program for causing a character string colored by the coloring means to function as an output means.
請求項に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium on which the program according to claim 5 is recorded.
JP2007033437A 2007-02-14 2007-02-14 Information processing apparatus, information processing method, program, and recording medium Expired - Fee Related JP5070872B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007033437A JP5070872B2 (en) 2007-02-14 2007-02-14 Information processing apparatus, information processing method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007033437A JP5070872B2 (en) 2007-02-14 2007-02-14 Information processing apparatus, information processing method, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2008197978A JP2008197978A (en) 2008-08-28
JP5070872B2 true JP5070872B2 (en) 2012-11-14

Family

ID=39756852

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007033437A Expired - Fee Related JP5070872B2 (en) 2007-02-14 2007-02-14 Information processing apparatus, information processing method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP5070872B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006023736A (en) * 2005-06-24 2006-01-26 Ricoh Co Ltd Device and method for information processing and computer readable recording medium which records program to have computer execute its method

Also Published As

Publication number Publication date
JP2008197978A (en) 2008-08-28

Similar Documents

Publication Publication Date Title
JP3734491B1 (en) How to display in-cell graph of spreadsheet
JP6037041B2 (en) Character string display device
US7940273B2 (en) Determination of unicode points from glyph elements
JP3853827B1 (en) How to display a range graph in a cell in a spreadsheet
US20130326403A1 (en) Method of setting alternate style assignments to menu elements of an application
JP3075567B2 (en) Gradation conversion method
JP4899908B2 (en) Information processing apparatus, information processing method, program, and recording medium
US7168037B2 (en) Text composition spacing amount setting device with icon indicators
JP5070872B2 (en) Information processing apparatus, information processing method, program, and recording medium
JPH06110989A (en) Method and system for apparent direct editing for fixed element displayed in main window, which is provided by application
JP5645481B2 (en) Apparatus, method, and program
JPS61123876A (en) Document processor
KR102592620B1 (en) Chinese text input method and apparatus for mobile device
JP2005115702A (en) Document display device, program, and method for displaying document
JP2973906B2 (en) Character user interface device
JP3678249B2 (en) Display processing device
JPH03228174A (en) Character processor
KR20200089901A (en) Computer program including Korean font file, method for creating the Korean font file, and method for using the Korean font file
CN113655934A (en) Electronic file display method and device, computing equipment and computer storage medium
JPS63201820A (en) Picture layout setting system for interactive computer system
JPH11143863A (en) Document preparation device and storage medium
KR940005438B1 (en) Korean character code conversion method
JPH08305703A (en) Document editing device and its method
JPS62245365A (en) Kanji input system
JPH0330054A (en) Document processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120508

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120702

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120724

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120806

R150 Certificate of patent or registration of utility model

Ref document number: 5070872

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150831

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees