JP5070872B2 - Information processing apparatus, information processing method, program, and recording medium - Google Patents
Information processing apparatus, information processing method, program, and recording medium Download PDFInfo
- 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
Links
Images
Landscapes
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
- Digital Computer Display Output (AREA)
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
さて、特許文献1に開示されている情報処理装置のように文字列全体に渡り一文字毎に均等に階調が変化するようにすると、例えば、文字数が多い単語においては一の単語中における階調変化が大きくなる。人間は文字列を見た場合、文字列中の単語を認識し、単語の意味を把握して文字列が表す文章の内容を認識するが、一の単語中において階調変化が大きいと、文字列中のどこからどこまでが一の単語であるのか認識しづらくなり、文字列が読みづらくなって文章の内容を把握しづらくなる。
Now, when the gradation is changed uniformly for each character over the entire character string as in the information processing apparatus disclosed in
本発明は、上述した背景の下になされたものであり、文字列に階調がつけられたときに、文字列を読みやすくすることができる技術の提供を目的とする。 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
操作部106は、キーボードやマウス等、ユーザが情報処理装置1を操作するための入力装置を備えている。ユーザから情報処理装置1への各種指示や各種情報の入力は、ユーザがこれらの入力装置を操作することにより行われる。
表示部107は、例えば表示デバイスである液晶ディスプレイを有しており、CPU(Central Processing Unit)102の制御の下、情報処理装置1を操作するための各種ウィンドウやメニュー画面、メッセージ等を表示する。なお、表示デバイスは液晶ディスプレイに限定されるものではなく、CRT(Cathode Ray Tube)やEL(Electro Luminescence)ディスプレイ等、他の表示デバイスであってもよい。
通信部110は、図示せぬ通信ネットワークに接続されており、情報処理装置1が通信ネットワークを介して他の装置と各種通信を行う際の通信インターフェースとして機能する。
The
The
The
記憶部105は各種データを永続的に記憶する装置として、例えばハードディスク装置を具備している。記憶部105は、キーボード入力や画面表示といった各種入出力機能や記憶部105の制御など、アプリケーションプログラムから共通して利用される基本的な機能を実現するOS(Operating System)プログラムPOを記憶している。また、アプリケーションプログラムとして、ワードプロセッサの機能を情報処理装置1において実現させるワープロプログラムP1を記憶している。また、記憶部105は、通信ネットワークに接続される画像形成装置に文書を印刷させる機能を実現するドライバプログラムPDを記憶している。
The
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
[実施形態の動作]
以下、情報処理装置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
ユーザは、入力した文字列に色と階調をつける場合、まず、色と階調をつける文字列を選択する。具体的には、ユーザは操作部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
次に、図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
さて、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
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
CPU102は、各単語の種別を判別すると、次に各単語に割り当てる階調数を設定する。具体的には、まずCPU102は予め決められている階調数(本実施形態では50)を単語数で除算し、一の単語に割り当てる階調数を決定する(ステップSA5)。例えば、上述した「長崎は今日も雨」という文字列の場合、単語の数は5つであり階調数は50であるため、この時点で一の単語に割り当てられる階調数は10となる。
After determining the type of each word, the
次にCPU102は、階調が付けられる文字列を読みやすくするために、自立語の階調数と付属語の階調数とを変更する。具体的には、まず、ステップSA5で自立語に割り当てた階調数を2で除算し、除算により得た商をステップSA5で割り当てた階調数から減算する。そして、減算により得られた数を自立語に割り当てる階調数とし、自立語に対応付けてRAM104に格納する(ステップSA6)。例えば、「長崎」「今日」「雨」の場合、ステップSA5で自立語に割り当てた階調数は10であるため、自立語に割り当てられる階調数は10−10/2=5となり、この階調数が図8に示したようにRAM104に格納されている自立語に対応付けて格納される。
Next, the
次にCPU102は、付属語の階調数を変更する(ステップSA7)。具体的には、CPU102は、各自立語から減じた階調数を加算し、その合計を付属語の数で除算する。例えば、「長崎」「今日」「雨」からは5づつ減算されるため、各自立語から減じた数の合計は15となる。CPU102が、15を付属語(「は」と「も」)の数2で除算すると、除算の結果、商として7、余として1が得られる。CPU102は、除算により得られた商を、ステップSA5で付属語に割り当てた階調数に加算し、加算により得られた数を付属語に割り当てる階調数とし、付属語に対応付けてRAM104に格納する。ここでは、「は」および「も」の階調数はいずれも10+7=17となり、この階調数が図8に示したようにRAM104に格納されている付属語に対応付けて格納される。
Next, the
次にCPU102は、RAM104に格納した階調数に従い、マウスで選択された文字列を着色する処理を行う(ステップSA8)。具体的には、CPU102は、図9に示したように1〜50までの50階調の色から単語に対応付けて格納されている階調数の色を抽出し、抽出した色を各単語に割り振っていく。なお、図9においては、50階調の色は、図の左から右へ赤→黄→緑→青という順番で色が変化しており、各階調には1〜50の番号が割り当てられている。
Next, the
例えば、「長崎」という単語の場合、この単語に割り当てられている階調数は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
また、例えば「は」という単語の場合、この単語に割り当てられている階調数は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
CPU102は、他の「今日」「も」「雨」という単語についても、「長崎」や「は」の場合と同様に各単語に割り振られた階調数に応じて各単語を着色する。そしてCPU102は、全ての単語への着色が終了すると、着色された文字列を表示部107に表示させる(ステップSA9)。ここで、着色された自立語は、付属語と比較すると階調数が少ないため、人間の目で見たときに読みやすくなっている。
The
[第2実施形態]
次に本発明の第2実施形態について説明する。本発明の第2実施形態に係る情報処理装置1においては、動作が第1実施形態と異なるのみであり、ハードウェア構成は第1実施形態の情報処理装置1と同じとなっている。よって、以下の説明においては、第1実施形態と異なる動作についてのみ説明を行い、ハードウェア構成や第1実施形態と同じ動作については、その説明を省略する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. In the
本実施形態において文字列に階調を付けて着色する場合、ユーザが、文字列を選択してから図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
まず反転して表示されている文字列を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
CPU102は、各単語の種別を判別すると、次に文字列中で連続している自立語をひとつにまとめる(ステップSB5)。ここで、「長崎、熊本は今日も雨」という文字列の場合、文字列中において「長崎」「熊本」というように自立語が連続している部分がある。CPU102は、RAM104に格納されている単語と種別情報とを解析し、文字列中において自立語が連続している部分を見つけると、連続している単語を一つの単語としてまとめて図13に示したようにRAM104に格納する。
When the
CPU102は、ステップSB5の処理が終了すると、次に各単語に割り当てる階調数を決定する。具体的には、まずCPU102は予め決められている階調数を単語数で除算し、一の単語に割り当てる階調数を決定する(ステップSB6)。例えば、上述した「長崎、熊本は今日も雨」という文字列の場合、「長崎」と「熊本」の単語は一つにまとめられているため、単語の数は5つとなる。そして階調数は50であるため、この時点で一の単語に割り当てられる階調数は10となる。
When the processing of step SB5 is completed,
次にCPU102は、階調が付けられた文字列を読みやすくするために、自立語の階調数と付属語の階調数とを変更する。具体的には、まず、ステップSB6で自立語に割り当てた階調数を2で除算し、演算により得た商をステップSB6で割り当てた階調数から減算する。そして、減算により得られた数を自立語に割り当てる階調数とし、自立語に対応付けてRAM104に格納する(ステップSB7)。例えば、「長崎、熊本」「今日」「雨」の場合、ステップSB6で自立語に割り当てた階調数は10であるため、自立語に割り当てられる階調数は10−10/2=5となり、この階調数が図13に示したようにRAM104に格納されている自立語に対応付けて格納される。
Next, the
次にCPU102は、付属語の階調数を変更する(ステップSB8)。具体的には、CPU102は、各自立語から減じた数を加算し、その合計を付属語の数で除算する。例えば、「長崎、熊本」「今日」「雨」からは5づつ減算されるため、各自立語から減じた数の合計は15となる。CPU102が、15を付属語(「は」と「も」)の数2で除算すると、除算の結果、商として7、余として1が得られる。CPU102は、除算により得られた商を、ステップSB6で付属語に割り当てた階調数に加算し、加算により得られた数を付属語に割り当てる階調数とし、付属語に対応付けてRAM104に格納する。ここでは、「は」および「も」の階調数はいずれも10+7=17となり、この階調数が図13に示したようにRAM104に格納されている付属語に対応付けて格納される。
Next, the
次にCPU102は、RAM104に格納した階調数に従い、マウスで選択された文字列を着色する処理を行う(ステップSB9)。ここで、CPU102は、1〜50までの50階調の色から単語に対応付けて格納されている階調数の色を抽出し、抽出した色を各単語に割り振っていく。
Next, the
例えば、「長崎、熊本」という単語の場合、この単語に割り当てられている階調数は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
CPU102は、全ての単語への着色が終了すると、着色された文字列を表示部107に表示させる(ステップSB10)。ここで、着色された「長崎、熊本」という自立語は、付属語と比較すると階調数が少ないため、人間の目で見たときに読みやすくなっている。
When the coloring to all the words is completed, the
[第3実施形態]
次に本発明の第3実施形態について説明する。本発明の第3実施形態に係る情報処理装置1おいては、動作が第1実施形態と異なるのみであり、ハードウェア構成は第1実施形態の情報処理装置1と同じとなっている。よって、以下の説明においては、第1実施形態と異なる動作についてのみ説明を行い、ハードウェア構成や第1実施形態と同じ動作については、その説明を省略する。
[Third Embodiment]
Next, a third embodiment of the present invention will be described. In the
本実施形態において「長崎は今日も雨」という文字列に階調を付けて着色する場合、ユーザが、文字列を選択してから図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
ここで、反転して表示されている文字列を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
CPU102は、1〜50までの50階調の色から単語に対応付けて格納されている階調数の色を抽出し、抽出した色を各単語に割り振っていく。例えば、「長崎」という単語の場合、この単語に割り当てられている階調数は10であるため、CPU102は、図15に示したように、番号が1〜10の色を「長崎」という単語に割り当てる。CPU102は、「長崎」という単語に割り当てる色を決定すると、決定した色の数で「長崎」という文字の幅を等分し、等分した領域に1〜10の色を割り当てる。そして、等分された領域内にある文字輪郭内を割り当てられた色で着色していく。これにより「長崎」という単語は10の階調で着色されることとなる。
The
また、例えば「は」という単語の場合、この単語に割り当てられている階調数は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
CPU102は、他の「今日」「も」「雨」という単語についても、「長崎」や「は」の場合と同様に各単語に割り振られた階調数に応じて各単語を着色する。そしてCPU102は、全ての単語への着色が終了すると、着色された文字列を表示部107に表示させる(ステップSA9)。
The
[変形例]
以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限定されることなく、他の様々な形態で実施可能である。例えば、上述の実施形態を以下のように変形して本発明を実施してもよい。
[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
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
上述した実施形態においては、文字列中の単語数が階調数より多い場合、一の単語に一の階調を割り当てるようにしてもよい。例えば、単語に階調をつけるときの色数と階調が「赤、黄、緑、青」の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
上述した文字列に色と階調をつける機能を実現するプログラムは、例えば、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
上述した実施形態においては、文字列に色と階調をつける機能を実現するプログラムをモジュール化してワープロプログラム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
上述した実施形態では、日本語の形態素解析を行い、各単語に色と階調とを付けているが、英語以外の言語についても形態素解析を行い各単語に色と階調とをつけるようにしてもよい。この場合、文字列を分割する時の単位は「単語」となる。
また、上述した実施形態においては、文字列を分割するときの単位が「品詞」となっているが、文字列を分割するときの単位は品詞に限定されるものではない。例えば、上述した実施形態においては、文字列を分割する時の予め決められた単位を「文節」または「文」にして文字列を分割し、分割された文節または文毎に階調数を設定するようにしてもよい。
また、名詞については、予め定めた階調数以下の階調で着色するようにしてもよい。
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・・・情報処理装置、101・・・バス、102・・・CPU、103・・・ROM、104・・・RAM、105・・・記憶部、106・・・操作部、107・・・表示部
110・・・通信部、PO・・・OSプログラム、P1・・・ワープロプログラム、PD・・・ドライバプログラム
DESCRIPTION OF
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.
を特徴とする請求項1に記載の情報処理装置。 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.
文字列情報の表す文字列を品詞別に複数の要素に分割する文字列分割ステップと、
予め定められた色の範囲を所定階調数で分割し、前記文字列分割ステップで分割された各要素へ割り当てる階調を分割された色の中から決定し、各要素へ割り当てる階調数を各要素の品詞種別に応じて異ならせる階調数割当ステップと、
前記文字列分割ステップで得られた各要素を、前記階調数割当ステップで各要素に割り当てられた階調を有するように着色する着色ステップと、
前記着色ステップで着色された文字列を出力する出力ステップと
を有する情報処理方法。 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.
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)
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 |
-
2007
- 2007-02-14 JP JP2007033437A patent/JP5070872B2/en not_active Expired - Fee Related
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 | |
JP4661654B2 (en) | Formula display control apparatus and formula display control program | |
US7940273B2 (en) | Determination of unicode points from glyph elements | |
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 | |
JP3853827B1 (en) | How to display a range graph in a cell in a spreadsheet | |
JP5070872B2 (en) | Information processing apparatus, information processing method, program, and recording medium | |
CN113655934B (en) | Electronic file display method, electronic file display device, computing equipment and computer storage medium | |
JPH06110989A (en) | Method and system for apparent direct editing for fixed element displayed in main window, which is provided by application | |
KR100448261B1 (en) | Method and Medium for Editing Mathematical Equation by Using Keyboard | |
JP5645481B2 (en) | Apparatus, method, and program | |
JPS61123876A (en) | Document processor | |
JPS6238936A (en) | Crt display device | |
JP2005115702A (en) | Document display device, program, and document display method | |
KR102592620B1 (en) | Chinese text input method and apparatus for mobile device | |
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 | |
KR940005438B1 (en) | Korean character code conversion method | |
JPS63201820A (en) | Screen layout setting method for interactive computer system | |
JPH08305703A (en) | Document editing device and its method | |
JPS62245365A (en) | Kanji input system | |
JPH11143863A (en) | Document creation device and recording medium |
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 |