The present invention relates to a text data displaying apparatus, a mobile phone apparatus, a text data displaying method, and a text data displaying program, and particularly, to a text data displaying apparatus, a mobile phone apparatus, a text data displaying method, and a text data displaying program capable of displaying text data appropriately.
With a general e-mail browser as an exemplary conventional text data displaying apparatus, for example, for an HTML (Hyper Text Markup Language) mail that contains no additional information such as format or URL (Uniform Resource Locator) of an image except for the text to be displayed, only simple and plain text data is displayed. Additionally, with a conventional text data displaying apparatus, when displaying a mail with attached animation data, plain text data is displayed and the animation data is displayed below.
Japanese Patent Laying-Open No. 9-81353 discloses a displaying apparatus that classifies, from a character string in which an interactive character string and a control character string are continuously input, the interactive character string and the control character string, and converts the control character string into a corresponding image, to be displayed with the interactive character string. Since an expression of emotion can be instructed as the control character string using such a displaying apparatus, an image corresponding to the expression of emotion can be displayed simultaneously with the interactive character string.
However, such a general e-mail browser is on the premise that the creator of the e-mail sends animation data to be displayed with text data. That is, there has been a problem that the creator of the text data must prepare animation data separately from the text data.
Further, there has been a problem that, as text data and animation data are sent when communicating such data, the data volume necessarily increases as compared to the case where only text data is sent.
Still further, with the displaying apparatus disclosed in Japanese Patent Laying-Open No. 9-81353, there has been a problem that a burden of a creator is great when creating text data, since control characters that are not displayed as text along with interactive character strings must be inserted among the interactive character strings, considering the animation after conversion.
The present invention has been made in light of the foregoing problems, and it is an object of the present invention to provide a text data displaying apparatus, a mobile phone apparatus, a text data displaying method, and a text data displaying program that allow a user to enjoyably and comfortably view the text data that has been simply created.
In order to achieve the aforementioned object, according to one aspect of the present invention, a text data displaying apparatus includes: a correspondence table acquisition unit acquiring a correspondence table associating a character string and animation data; a text data analyze unit analyzing text data based on the correspondence table; an animation data determine unit determining animation data corresponding to the text data based on a result of the analysis; an animation data acquisition unit acquiring the determined animation data; an animation data drawing unit writing the acquired animation data to a prescribed memory area for animation drawing; a text drawing unit writing the text data to the prescribed memory area for text drawing; and a screen display unit displaying the animation data and the text having been written to the prescribed memory area to be overlapped with each other.
According to another aspect of the present invention, a text data displaying apparatus includes: a character string count unit obtaining a count result by counting number of occurrence of a character string included in text data; a correspondence table acquisition unit acquiring a correspondence table associating the number of occurrence of the character string and animation data; an animation data determine unit determining animation data that corresponds to the count result by referring to the correspondence table; an animation data acquisition unit acquiring the determined animation data; an animation data drawing unit writing the acquired animation data to a prescribed memory area for animation drawing; a text drawing unit writing the text data to the prescribed memory area for text drawing; and a screen display unit displaying the animation data and the text having been written to the prescribed memory area to be overlapped with each other.
According to still another aspect of the present invention, a mobile phone apparatus includes the aforementioned text data displaying apparatus.
According to still another aspect of the present invention, a text data displaying method includes: a correspondence table acquisition step of acquiring a correspondence table associating a character string and animation data; a text data analyze step of analyzing text data based on the correspondence table; an animation data determine step of determining animation data corresponding to the text data based on a result of the analysis; an animation data acquisition step of acquiring the determined animation data; an animation data drawing step of writing the acquired animation data to a prescribed memory area for animation drawing; a text drawing step of writing the text data to the prescribed memory area for text drawing; and a screen display step of displaying the animation data and the text having been written to the prescribed memory area to be overlapped with each other.
According to still another aspect of the present invention, a text data displaying method includes: a character string count step of obtaining a count result by counting number of occurrence of a character string included in text data; a correspondence table acquisition step of acquiring a correspondence table associating the number of occurrence of the character string and animation data; an animation data determine step of determining animation data that corresponds to the count result by referring to the correspondence table; an animation data acquisition step of acquiring the determined animation data; an animation data drawing step of writing the acquired animation data to a prescribed memory area for animation drawing; a text drawing step of writing the text data to the prescribed memory area for text drawing; and a screen display step of displaying the animation data and the text having been written to the prescribed memory area to be overlapped with each other.
According to still another aspect of the present invention, a text data displaying program for causing a computer to display text data is provided. The text data displaying program causes the computer to execute: a correspondence table acquisition step of acquiring a correspondence table associating a character string and animation data; a text data analyze step of analyzing text data based on the correspondence table; an animation data determine step of determining animation data corresponding to the text data based on a result of the analysis; an animation data acquisition step of acquiring the determined animation data; an animation data drawing step of writing the acquired animation data to a prescribed memory area for animation drawing; a text drawing step of writing the text data to the prescribed memory area for text drawing; and a screen display step of displaying the animation data and the text having been written to the prescribed memory area to be overlapped with each other.
According to still another aspect of the present invention, a text data displaying program for causing a computer to display text data is provided. The text data displaying program causes the computer to execute: a character string count step of obtaining a count result by counting number of occurrence of a character string included in text data; a correspondence table acquisition step of acquiring a correspondence table associating the number of occurrence of the character string and animation data; an animation data determine step of determining animation data that corresponds to the count result by referring to the correspondence table; an animation data acquisition step of acquiring the determined animation data; an animation data drawing step of writing the acquired animation data to a prescribed memory area for animation drawing; a text drawing step of writing the text data to the prescribed memory area for text drawing; and a screen display step of displaying the animation data and the text having been written to the prescribed memory area to be overlapped with each other.
According to still another aspect of the present invention, a computer readable recording medium recording the aforementioned text data displaying program is provided.
In the following, referring to the drawings, an embodiment of the present invention will be described. In the following description, the same reference character is allotted to the same components and constituents. The name and function of them are also the same. Accordingly, detailed description thereof is not repeated.
Referring to
Text data displaying apparatus 1 includes an input unit 11 for performing data input and instruction input. A button, a keyboard and a mouse for a user to perform operation input, and a communication apparatus for obtaining data from another apparatus correspond to input unit 11.
Text data displaying apparatus 1 includes a storage unit 12 for storing a program executed at CPU 10 and data such as text data to be displayed at text data displaying apparatus 1. Storage unit 12 includes HDD (Hard disk Drive), ROM (Read Only Memory) and RAM (Random Access Memory), and RAM also serves as a workspace when a program is executed at CPU 10.
Text data displaying apparatus 1 also includes a storage medium read unit 14 for reading data, a program and the like from a storage medium 15 such as CD-ROM (Compact Disk-Read Only Memory), and it is capable of reading text data or the like to be displayed and a program executed at CPU 10.
Text data displaying apparatus 1 also includes an output unit 13. A display for achieving screen display of text data corresponds to output unit 13. It may be a communication apparatus for outputting data to another apparatus.
The specific example of the hardware configuration of text data displaying apparatus 1 shown in
Next, referring to
The text data input to text data displaying apparatus 1 is input to text data analyze unit 101 and text drawing unit 107.
Correspondence table acquisition unit 102 acquires correspondence table from data storage area 103. Correspondence table acquisition unit 102 inputs the acquired correspondence table to text data analyze unit 101.
Based on the correspondence table acquired from correspondence table acquisition unit 102, text data analyze unit 101 analyzes the input text data. Text data analyze unit 101 inputs a result of analysis to animation data determine unit 104.
Based on the analysis result acquired from text data analyze unit 101, animation data determine unit 104 determines which, in what order, and where to use animation data or the like when reproducing the text data. Then, animation data determine unit 104 inputs the determine information to animation data acquisition unit 105.
Based on the determine information acquired from animation data determine unit 104, animation data acquisition unit 105 acquires determined animation data from data storage area 103. Animation data acquisition unit 105 inputs the acquired animation data to animation data drawing unit 106.
Animation data drawing unit 106 writes the animation data acquired from animation data acquisition unit 105 to drawing memory 108 included in screen display unit 110.
On the other hand, text drawing unit 107 also writes the input text data to drawing memory 108 included in screen display unit 1110.
The information written to drawing memory 108 is passed to displaying unit 109, and displayed on display unit 109.
When animation data analyzed from the text data input to text data displaying apparatus 1 requires to change animation display so that a plurality of frames are sequentially displayed, or a plurality of pieces of animation data are displayed in turn, or alternatively, when it requires to update the text display so that text data input to text data displaying apparatus 1 is displayed while changing its position, animation data drawing unit 106 and text drawing unit 107 further write animation data and text data to drawing memory 108, and display a new screen on display unit 109.
When the aforementioned drawing memory 108 includes each of the animation drawing memory, the text data drawing memory, and the screen displaying memory as separate areas, only data out of the animation data and text data necessary to be updated may newly be written. Specifically, when only text data is necessary to be updated and animation data is not necessary to be updated, the animation data may not newly be written to the animation drawing memory of drawing memory 108.
Next, referring to the flowchart of
In the following, an exemplary case where text data “I am sorry to be late! ¥ I will telephone or mail you later!” is to be displayed is described. Here, “¥” refers to a line feed code. When the text of the aforementioned text data is displayed on text data displaying apparatus 1, it is specifically shown as in
Referring to
Referring to
It is noted that, the correspondence table is not limited to the table shown in
The correspondence table shown in
Next, at text data analyze unit 101, text data is analyzed (S203). Specifically, text data analyze unit 101 collates text data with retrieve character strings recorded in the correspondence table acquired at step S201 to retrieve a retrieve character string.
In the specific example of text data shown in
In the analysis process at step S203, a correspondence table that further records priority information in association for determining priority of each retrieve character string may be used, as shown in
Next, at animation data determine unit 104, based on the analysis result at step S203 and the correspondence table acquired at step S201, animation data to be used for animation drawing as well as an output manner, which is at least one of the order, timing, reproduction time, and position for displaying the animation data, are determined (S205).
In the output manner determined at step S205, the position for displaying animation data may change over time. For example, even when the animation data is originally of a still image, it may be displayed as animation by scrolling from the upper left side to the lower right side. Also, a moving direction thereof may be changed in accordance with an input of a user, or the moving direction may be changed at random.
In the analysis of text data at step S203, the number of occurrence of the character string is counted. At step S205, animation data determine unit 104 may determine to use animation data corresponding to a character string that has appeared a plurality of times, such as the character string “! ” of the specific example of text data shown in
Animation data drawing unit 106 of text data displaying apparatus 1 includes an output manner control unit. According to the output manner of animation data determined at step S205, the output of the animation data is restricted. Specifically, in accordance with the output manner of animation data determined at step S205, the output manner control unit restricts output of the animation data in accordance with conditions such as: the animation data is not to be displayed over a certain period; the animation data is not to be displayed if there is attached animation data when using a mail browser; and the frame rate of the animation is to be reduced when the remaining battery level is low. Thus, according to text data displaying apparatus 1 of the present invention, conditions can be changed depending on an application, whereby animation reproduction can be realized according to resources such as the remaining battery level, the memory constituting storage unit 12, and the occupying rate of CPU 10.
Next, at animation data acquisition unit 105, animation data to be used is acquired from data storage area 103 (S207). At step S207, animation data acquisition unit 105 acquires animation data to be used based on a file path or memory address information recorded in the correspondence table.
By animation data drawing unit 106 writing the aforementioned animation data to drawing memory 108, and text drawing unit 107 writing text data to drawing memory 108, the animation data and the text data are displayed on display unit 109 in screen display means 110 in turn as shown in
In
In
When screen display unit 110 can display with visual depth differences, part of or all of the text and animation may be displayed with visual depth differences.
When it is required to change animation display so that a plurality of frames are sequentially displayed or a plurality of pieces of animation data are displayed in turn, or, when it is required to update the text display so that text data is displayed while changing its position (YES at S211), the process goes back to step S209. Then, animation data drawing unit 106 or text drawing unit 107 writes the updated animation data or text data, whereby, a new screen is displayed at screen display means 110. Alternatively, at the correspondence table update unit included in correspondence table acquisition unit 102, the correspondence table read at step S201 may be updated, and based on the updated correspondence table, animation data to be used may be updated. Then, the foregoing process is repeated until update of animation data or text data is no more necessary (NO at S211), and the process ends.
It should be noted that, when a retrieve character string does not occur in the text data in analysis result at step S203, it may be determined at step S205 to use a specific or arbitrary animation data.
When text data displaying apparatus 1 includes the text data input means constituted by input unit 11 and the like, text data displaying apparatus 1 may execute the steps following step S201 to the input text data.
In the following, with specific examples, as described above referring to step S211, the case where the reproduced animation sequentially displays a plurality of frames and the case where a plurality of pieces of animation data are reproduced will be described in detail.
As shown in
In the following, with specific examples, change of a display screen at text data displaying apparatus 1 when text data displaying apparatus 1 includes means for changing the contents of display screen such as scroll button, constituted by input unit 11 is described.
Referring to
Although animation data “Data3” is a still image, if it is a moving image, the animation data that is the background may be changed to animation data “Data2” corresponding to retrieve character string “telephone” at the timing where the moving image reproduction ends, where a prescribed time set at text data displaying apparatus 1 has passed, or where an instruction for changing display position is provided. Alternatively, animation data “Data2” and animation data “Data3” may be displayed on the screen simultaneously.
Referring to
Referring to
The output manner may be changed so that the display position, size or contents of an animation to be displayed, depending on the day of the week or the date. Specifically, using a correspondence table shown in
The output manner may also be changed by generating random numbers of 0 to 10 and using a correspondence table that associates animation data and the generated random numbers as shown in
When a display change instruction is given so that the display position of a text is scrolled upward on the fifth display screen, the output manner as to arrangement, size and color of animation data corresponding to the text is recalculated and arranged, such as the sixth display screen shown in
As shown on the fifth display screen, only the frontmost and upper left animation data corresponding to the retrieve character string “2 telephone” may be reproduced, while the lower right animation data corresponding to retrieve character string “5 telephone” is not reproduced and may be remained stopped with the first screen of the animation data until it is arranged at the frontmost position.
A correction that enables natural enter or exit may be provided, so that animation data is allowed to fade-in when the animation data is reproduced or when brought into a frame, or so that the animation data is allowed to fade-out when the reproduction of the animation data ends or when brought out from a frame. This is realized by animation data drawing unit 106 further including an animation enter/exit correct unit, wherein the animation enter/exit correct unit executes a correction process to a prescribed number of frames from reproduction initiation frame, or to a prescribed number of frames from the reproduction ending frame, when animation data drawing unit 106 writes relevant animation data to drawing memory 108.
Further, when animation data containing sound such as animation data “Data2” is reproduced, the output manner may be restricted so that no sound is produced depending on the situation. This is realized by animation data drawing unit 106 further including an output manner restrict unit for restricting the output manner. Here, the relevant situation is when a plurality of pieces of animation data are simultaneously reproduced, or when a silent mode is set to a mobile phone or the like.
Text data displaying apparatus 1 according to the present embodiment may determine animation data to be reproduced by performing the following process, in place of the process of steps S201, S203 in
Text data displaying apparatus 1 counts retrieve character strings included in text data shown in
Although the counting method at text data analyze unit 101 is not limited in the present invention, one example thereof is as follows. In a count method where the count is reset to zero for every ten occurrence of retrieve character strings, that is, when only the one place of the retrieve character string number is counted, the counter that is the count result can be expressed by the number of digits of the number of types of the retrieve character strings. Specifically, when the retrieve character strings shown in
In such a case, as a correspondence table, text data displaying apparatus 1 stores a correspondence table associating the counter and the animation data in data storage unit 103.
In a count method where the counter is reset to 0000 every time a mail is displayed when displaying text data that is mail 1 shown in
In a counting method where the counter is not reset every time a mail is displayed, when displaying at counter 0000 text data that is mail 1 shown in
Another counting method includes a method for counting retrieve character strings depending on information associated with text data, for example, date information, the day of the week information, presence of attached animation data and the like. Specifically, a counting method where the counter of a prescribed retrieve character string is doubled for a prescribed the date or the day of the week, a counting method where all counters are reset to zero when there is an attached animation data and the like may be included.
Alternatively, as for text data such as a mail of a mobile phone, a separate counter may be prepared for each information related to the sender, for example a telephone number. A count method where a counter of a prescribed retrieve character string is accumulated by the last digit of the telephone number is also possible.
Next, a memory area including drawing memory 108 is described.
As described above, when overlapping and displaying text and animation, in order to display animation as background (below) and to display text thereon (above), first the animation is written to drawing memory 108, and the text is directly written to drawing memory 108 to which the animation has been written. Alternatively, the contents of drawing memory 108 to which the animation has been written is copied to another memory area, which is not shown, and the text data is written to the memory area having been copied. In either case, preferably drawing memory 108 to which the animation is written is at least twice as large as the memory area required for displaying the animation data. The display area for the animation data may be a portion of the display area of the screen, or it may be larger than that. Also, it may be smaller than or larger than the display area for the text data.
Two specific examples of data writing methods of animation data to the memory area shown, and respective situations are shown in
Referring to
In the second method where animation data “Data 1” is written using two buffers of Buffer B1 and Buffer B2, referring to
Next, overlapping of text data and animation data will be described.
According to the first method shown in
On the other hand, according to the second method shown in
As shown in
Referring to
Referring to
Referring to
When animation data acquisition unit 105 acquires such animation data from data storage area 103, animation data drawing unit 106 writes the animation data to drawing memory 108, and passes information as to how to display the text data to text drawing unit 107. Text drawing unit 107 writes the text data to drawing memory 108 based on the information passed by animation data drawing unit 106.
Further, an analysis range of text data at text data analyze unit 010 will be described. The text data range in text data analysis unit 101 may be the entire range of the text data, or it may be a prescribed range by setting as follows.
To the text data described in HTML as shown in
The analysis method at text data analyze unit 101 may be the one where a combination of a particular character and a character string in a correspondence table is retrieved from text data. For example, it may be an analysis method of retrieving the character strings “<!” “<telephone” “<mail” from the text data, when the analysis is performed with the particular character of “<” and using the correspondence table shown in
When text data displaying apparatus 1 is a mobile phone, and functions as a mail browser for viewing a mail, the analysis range at text data analysis unit 101 may not be limited to the body of the mail, and the analysis range may include information such as sender, destination, title and the like. Here, preferably, the mobile phone that is text data displaying apparatus 1 stores an address book recording the correspondence between the telephone number or mail address of a transition party and animation data to be used as shown in
Modification
Referring to
Server 1403 stores a correspondence table, animation data or the like, and includes data storage unit 103 shown in
In the modification, when sending text data to other text data displaying apparatus 1402, text data displaying apparatus 1401 sends correspondence table identification information that correspondence table A is used as a correspondence table for displaying that text data, as included in the header of that text data. Alternatively, when sending text data to other text data displaying apparatus 1402, text data displaying apparatus 1401 may transmit a control signal to server 1403 so that server 1403 transmits correspondence table A to text data displaying apparatus 1402. Further, text data displaying apparatus 1401 may transmit to other text data displaying apparatus 1402 correspondence table A to be used with text data as well as corresponding animation data.
When correspondence table A is used to display the text data at text data displaying apparatus 1401, if correspondence table A is not stored in built-in data storage unit 103, text data displaying apparatus 1401 may send a control signal to server 1403 so that the contents of correspondence table A is transmitted, or it may transmit a control signal so that all the correspondence tables stored in server 1403 are transmitted.
When text data displaying apparatus 1402 receives the text data from text data displaying apparatus 1401, if correspondence table identification information that correspondence table A is used is included in the received text data, text data analyze unit 101 extracts the correspondence table identification information by analyzing the text data, and acquires the corresponding correspondence table A from data storage unit 103 based on the information. Then, using the correspondence table A, it performs text data display.
Text data displaying apparatus 1402 of the receiver may transmit a control signal to server 1403 so that contents of correspondence table A is transmitted when correspondence table A is not stored in built-in data storage unit 103, or it may transmit a control signal so that all the correspondence tables stored in server 1403 are transmitted.
It is also possible for text data displaying apparatus 1401 to transmit to text data displaying apparatus 1402 correspondence table identification information that is identification information of the correspondence table used for displaying the text data as included in the text data. In the following, as a specific example where correspondence table identification information is included in text data, a case where described.
In the specific example shown in
As shown in
The identification information itself may be the name of a correspondence table or the number that can identify a correspondence table such as the comment of line 01 or the keyword of line 05, or it may be URL that can acquire a correspondence table such as the comment of line 04.
As above, by executing the aforementioned process, the text data displaying apparatus of the present invention achieves various text display when displaying text data on the text data displaying apparatus, such as text display employing animation corresponding to the character string included in the text data as the background, text display employing such animation in the foreground, or text display employing such animation in the background and foreground. Accordingly, even with a plain text represented by a simple mail without any attached still image or animation image, corresponding animation data is overlapped on the plain text and displayed, whereby the user can enjoyably view the text contents.
With the text data displaying apparatus of the modification, by sending only plain text to other text data displaying apparatus even when animation data and text are desired to be displayed, the other text data displaying apparatus acquires animation data, which is then displayed with the text. Accordingly, the transmission amount can be reduced as compared to the case where text data and a still image or an animation image are sent.
It is also possible to provide the text data displaying method executed at the aforementioned text data displaying apparatus 1 as a program. Such a program can be provided as a program product recorded in a computer readable recording medium 15 such as a flexible disk, CD-ROM (Compact Disk-Read Only Memory), ROM (Read Only Memory), RAM (Random Access Memory) and a memory card associated with a computer. Alternatively, the program can be provided as recorded in storage unit 12 that is a recording medium such as hard disk built-in a computer. The program can also be provided by downloading through a network.
The provided program product is installed in a program storage unit such as hard disk and executed. The program product includes the program itself and the recording medium recording the program.
As above, according to the present invention, since text data can be displayed appropriately, the present invention can be advantageously applied to a text data displaying apparatus, a mobile phone apparatus, a text data displaying method, and text data displaying program.
Number | Date | Country | Kind |
---|---|---|---|
2003-109180 | Apr 2003 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP04/02233 | 2/25/2004 | WO | 10/13/2005 |