This application is based on and claims priority under 35 USC 119 from Japanese Patent Application No. 2015-142152 filed Jul. 16, 2015.
(i) Technical Field
The present invention relates to a display control apparatus, a display control method, and a non-transitory computer readable medium.
(ii) Related Art
In an information processing apparatus which converts an input character into another character string, a technique of displaying conversion candidates for the input character is known.
According to an aspect of the invention, there is provided a display control apparatus including a first receiving unit, a display, a second receiving unit, an obtaining unit, a first memory, and a controller. The first receiving unit receives input of a character. The display displays at least one character specified from the input character, as at least one conversion candidate. The second receiving unit receives selection of a single conversion candidate from the at least one displayed conversion candidate. The obtaining unit obtains environment information indicating an environment in which the display control apparatus is being used. The first memory stores a history in which the environment information obtained when the single conversion candidate is selected and the single conversion candidate are associated with each other. The controller controls the display in such a manner that at least one conversion candidate associated, in the history, with environment information different from the environment information obtained when the character is input is not displayed.
Exemplary embodiments of the present invention will be described in detail based on the following figures, wherein:
The IF unit 104 which receives/transmits data communicates with an external apparatus via a communication line such as the Internet. The IF unit 104 is provided with a wireless LAN interface and terminals for receiving/transmitting a signal or data from/to an external terminal, such as a video graphics array (VGA) terminal, a Universal Serial Bus (USB) terminal, a wired local-area network (LAN) interface, and a High-Definition Multimedia Interface® (HDMI) terminal.
The display unit 105 is a unit, for example, a liquid-crystal display, which displays information. The input unit 106 which is a device receiving input from a user is provided with a keyboard, a mouse, various buttons, and the like. The input unit 106 may be provided with a touch panel (touch screen) overlying the display of the display unit 105.
The storage unit 107 is an auxiliary storage device that is nonvolatile and that stores various programs and data. In the exemplary embodiment, the storage unit 107 stores a dictionary table TB1, a dictionary table TB2, a history table TB3, a setting table TB4, and a setting table TB5.
The dictionary table TB1 is a table in which a character and its phonetic transcription in kana are stored in such a manner as to be associated with each other. The dictionary table TB1 is referred to so that characters serving as conversion candidates are specified from an input character. Similarly to the dictionary table TB1, the dictionary table TB2 is a table in which a character and its phonetic transcription in kana are stored in such a manner as to be associated with each other. In the dictionary table TB2, a minimal set of characters to be displayed (for example, general words and idioms, commonly-used words and idioms, idiomatic expressions, and fixed phrases), among characters serving as conversion candidates are stored. The dictionary table TB2 is referred to so that characters to be displayed as conversion candidates are selected. In the exemplary embodiment, each of the characters stored in the dictionary table TB2 is stored in the dictionary table TB1. The history table TB3 is a table in which a conversion candidate which was selected and environment information which was obtained when the conversion candidate was selected are stored in such a manner as to be associated with each other. The history table TB3 is referred to so that conversion candidates to be displayed are changed in accordance with an environment in which the terminal apparatus 1 is being used upon input of a character. The history table TB3 is updated when a conversion candidate is selected from displayed conversion candidates. In the history table TB3, in addition to a conversion candidate which was selected, a character which was not selected as a conversion candidate by a user and which was directly input by the user (for example, a character which is not described in a dictionary, such as a technical term or a coined word) is stored in association with environment information which was obtained when the character was input. A specific examples of the dictionary table TB1 and the history table TB3 will be described below.
The setting table TB4 is a table for indicating environment information which serves as a condition for updating the history table TB3 (specifically, for storing a conversion candidate and environment information which are associated with each other). In the setting table TB4, predetermined environment information is stored. The setting table TB5 is a table indicating environment information which serves as a condition for restricting displaying of some of conversion candidates. In the setting table TB5, predetermined environment information is stored. The setting table TB4 and the setting table TB5 are independent of each other, and environment information stored in the setting table TB4 is not necessarily the same as that stored in the setting table TB5. Information in the setting table TB4 and information in the setting table TB5 are changed by a user operating the input unit 106. Specific examples of the setting table TB4 and the setting table TB5 will be described below.
The positioning unit 108 measures the position of the terminal apparatus 1. The positioning unit 108 measures the position of the terminal apparatus 1, for example, by using a global positioning system (GPS). The positioning unit 108 may measure the position of the terminal apparatus 1 by using a method such as base station positioning other than GPS positioning.
In
(opportunity)”, “
(memory)”, and “
(go home)” are stored as characters corresponding to a hiragana character of “
(ki)”. Similarly to the dictionary table TB1, the dictionary table TB2 contains a set of records, each of which is constituted by two fields, “character” and “phonetic transcription in kana”. A specific example of the dictionary table TB2 is not illustrated.
A (confidential word A)”, “
B ( confidential project B)”, and “
C (non-confidential word C)” are stored. The data “
A (confidential word A)” and “
B (confidential project B)” are associated with “A, Inc.” and “B, Inc.”, respectively, as environment information. This indicates that, when the terminal apparatus 1 is being used in “A, Inc.”, “
A (confidential word A)” is selected (or input), and that, when the terminal apparatus 1 is being used in “B, Inc.”, “
B (confidential project B)” is selected (or input). The data “
C (non-confidential word C)” is not associated with environment information. This indicates that the environment in which the terminal apparatus 1 is being used when “
C (non-confidential word C)” is selected (or input) is different from the environment information indicated in the setting table TB4.
For example, in step SA2, when the dictionary table TB1 illustrated in (ki)”, the conversion candidate list contains “
(opportunity)”, “
(memory)”, “
(go home)”, “
A (confidential word A)”, “
B (confidential project B)”, and “
C (non-confidential word C)”.
Referring back to
In step SA4, the CPU 101 determines whether or not a character extracted in step SA2 (hereinafter referred to as an “extracted candidate”) is associated with the environment information obtained when the character is input. Specifically, the CPU 101 refers to the history table TB3, and determines whether or not the extracted candidate is associated with the environment information obtained when the character is input. The processes from step SA4 to step SA8 are performed for each extracted candidate. In the description below, each of the extracted candidates which is a target of the processes from step SA4 to step SA8 is referred to as a “target candidate”. If the CPU 101 determines that the target candidate is associated with the environment information obtained when the character is input (YES in step SA4), the CPU 101 causes the process to proceed to step SA5. If the CPU 101 determines that the target candidate is not associated with the environment information obtained when the character is input (NO in step SA4), the CPU 101 causes the process to proceed to step SA6. For example, assume the following case: the environment information obtained when the character is input is “A, Inc.”; the target candidate is “A (confidential word A)”; and the history table TB3 illustrated in
A (confidential word A)” is associated with “A, Inc.” (YES in step SAA). Assume another example as follows: the environment information obtained when the character is input is “A, Inc.”; the target candidate is “
B (confidential project B)”; and the history table TB3 illustrated in
B (confidential project B)” is not associated with “A, Inc.” (NO in step SAA).
In step SA5, the CPU 101 places the target candidate higher than the other extracted candidates in the order of priority used when the target candidate is displayed. For example, the CPU 101 rearranges the extracted candidates included in the conversion candidate list in accordance with the order of priority. Specifically, the CPU 101 rearranges the extracted candidates in the conversion candidate list so that the target candidate is displayed above the other extracted candidates. Alternatively, by using another method other than the method of rearranging the extracted candidates included in the conversion candidate list, the CPU 101 may store the order of priority for the extracted candidates.
In step SA6, the CPU 101 determines whether or not the target candidate is associated with environment information different from that obtained when the character is input. Specifically, the CPU 101 refers to the history table TB3, and determines whether or not the target candidate is associated with environment information different from that obtained when the character is input. If the CPU 101 determines that the target candidate is associated with environment information different from that obtained when the character is input (YES in step SA6), the CPU 101 causes the process to proceed to step SA7. If the CPU 101 determines that the target candidate is not associated with environment information different from that obtained when the character is input (or that the target candidate is associated with no environment information) (NO in step SA6), the CPU 101 causes the process to proceed to step SA10. For example, assume the following case: the environment information obtained when the character is input is “A, Inc.”; the target candidate is “B (confidential project B)”; and the history table TB3 illustrated in
B (confidential project B)” is associated with “B, Inc.” different from “A, Inc.” (YES in step SA6). Assume another case as follows: the environment information obtained when the character is input is “A, Inc.”; the target candidate is “
C (non-confidential word C)”; and the history table TB3 illustrated in
C (non-confidential word C)” is associated with no environment information (NO in step SA6).
In step SA7, the CPU 101 determines whether or not the target candidate is stored in the dictionary table TB2. The determination in step SA7 is made in order to display a minimal set of conversion candidates to be displayed, in step SA10 described below. If the CPU 101 determines that the target candidate is not stored in the dictionary table TB2 (NO in step SA7), the CPU 101 causes the process to proceed to step SA8. If the CPU 101 determines that the target candidate is stored in the dictionary table TB2 (YES in step SA7), the CPU 101 causes the process to proceed to step SA10.
In step SA8, the CPU 101 determines whether or not the environment information obtained when the character is input is stored in the setting table TB5. If the CPU 101 determines that the environment information obtained when the character is input is stored in the setting table TB5 (YES in step SA8), the CPU 101 causes the process to proceed to step SA9. If the CPU 101 determines that the environment information obtained when the character is input is not stored in the setting table TB5 (NO in step SA8), the CPU 101 causes the process to proceed to step SA10.
Referring back to
A (confidential word A)” and “
B (confidential project B)” are not stored in the dictionary table TB2.
(ki)” while the user visits “A, Inc.” When the user inputs a hiragana character of “
(ki)”, characters, “
(opportunity)”, “
(memory)”, “
(go home)”, “
(confidential word A)”, “
B (confidential project B)”, and “
C (non-confidential word C)”, are extracted as conversion candidates (step SA2). In addition, “A, Inc.” is obtained as the current environment information, for example, by referring to a schedule stored in advance in the storage unit 107 of the terminal apparatus 1 (step SA3). Since “
A (confidential word A)” among the characters extracted as conversion candidates is associated with the environment information “A, Inc.” obtained when the character is input (YES in step SA4), “
A (confidential word A)” is placed higher than the other conversion candidates in the order of priority (step SA5). Therefore, “
A (confidential word A)” is displayed above the other conversion candidates. In addition, “
B (confidential project B)” among the characters extracted as conversion candidates is associated with the environment information “B, Inc.” different from the environment information “A, Inc.” obtained when the character is input (YES in step SA6), and “A, Inc.” is stored in the setting table TB5 (YES in step SA8). Therefore, “
B (confidential project B)” is deleted from the conversion candidate list (step SA9). Accordingly, “
B (confidential project B)” is not displayed as a conversion candidate.
(ki)” while the user visits “B, Inc.” When the user inputs a hiragana character of “
(ki)”, characters, “
(opportunity)”, “
(memory)”, “
(go home)”, “
A (confidential word A)”, “
B (confidential project B)”, and “
C non-confidential word C)”, are extracted as conversion candidates (step SA2). In addition, “B, Inc.” is obtained as the current environment information, for example, by referring to a schedule stored in advance in the storage unit 107 of the terminal apparatus 1 (step SA3). The character “
A (confidential word A)” among the characters extracted as conversion candidates is associated with the environment information “A, Inc.” different from the environment information “B, Inc.” obtained when the characters is input (YES in step SA6), and “B, Inc.” is stored in the setting table TB5 (YES in step SA8). Therefore, “
A (confidential word A)” is deleted from the conversion candidate list (step SA9). Accordingly, “
A (confidential word A)” is not displayed as a conversion candidate. Since “
B (confidential project B)” among the characters extracted as conversion candidates is associated with the environment information “B, Inc.” obtained when the character is input (YES in step SA4), “
B (confidential project B)” is placed higher than the other conversion candidates in the order of priority (step SA5). Therefore, “
B (confidential project B)” is displayed above the other conversion candidates.
(kiss)” and “
D (confidential project D)” are not stored in the dictionary table TB2. In addition, description will be made under assumption that both of “private use and use of thin client” as environment information are stored in the setting table TB5.
(ki)” while the user uses the terminal apparatus 1 as a thin client (i.e., in the environment use of thin client“). The environment use of thin client” indicates that the terminal apparatus 1 is being used in a so-called thin client in a broad sense (i.e., a system in which a terminal apparatus performs minimal processing and in which a server performs the remaining processing). When the user inputs a hiragana character of “
(ki)”, characters, “
(opportunity)”, “
(memory)”, “
(go home)”, “
(kiss)”, “
D (confidential project D)”, and “
E (non-confidential word E)”, are extracted as conversion candidates (step SA2). The environment information “use of thin client” is obtained as the current environment information, for example, by specifying an invoked program (specifically, specifying that an application program for achieving a thin client is being executed) (step SA3). Since “
(kiss)” among the characters extracted as conversion candidates is associated with the environment information “private use different from the environment information use of thin client” obtained when the character is input (YES in step SA6), “
(kiss)” is deleted from the conversion candidate list (step SA9). Therefore, “
(kiss) ” is not displayed as a conversion candidate. Since “
D (confidential project D) ” among the characters extracted as conversion candidates is associated with the environment information “use of thin client” obtained when the character is input (YES in step SA4), “
D (confidential project D)” is placed higher than the other conversion candidates in the order of priority (step SA5). Therefore, “
D (confidential project D)” is displayed above the other conversion candidates.
(ki)” while the user uses the terminal apparatus 1 in “private use”. The environment “private use” indicates that the terminal apparatus 1 is being used in an environment other than “use of thin client”. When the user inputs a hiragana character of “
(ki)”, characters, “
(opportunity)”, “
(memory)”, “
(go home)”, “
(kiss)”, “
D (confidential project D)”, and “
E (non-confidential word E)”, are extracted as conversion candidates (step SA2). In addition, “private use” is obtained as the current environment information, for example, by specifying an invoked program (specifically, specifying that an application program for achieving a thin client is not being executed) (step SA3). Since “
(kiss)” among the characters extracted as conversion candidates is associated with the environment information “private use” obtained when the character is input (YES in step SAA), “
(kiss)” is placed higher than the other conversion candidates in the order of priority (step SA5). Therefore, “
(kiss)” is displayed above the other conversion candidates. Since “
D (confidential project D)” among the characters extracted as conversion candidates is associated with the environment information “use of thin client” different from the environment information “private use” obtained when the character is input (YES in step SA6), “
D (confidential project D)” is deleted from the conversion candidate list (step SA9). Therefore, “
D (confidential project D)” is not displayed as a conversion candidate.
In step SB3, the CPU 101 determines whether or not the environment information obtained when the conversion candidate is selected is stored in the setting table TB4. If the CPU 101 determines that the environment information obtained when the conversion candidate is selected is stored in the setting table TB4 (YES in step SB3), the CPU 101 causes the process to proceed to step SB4. If the CPU 101 determines that the environment information obtained when the conversion candidate is selected is not stored in the setting table TB4 (NO in step SB3), the CPU 101 ends the process.
Referring back to
The process described above achieves prevention of occurrence of a state in which a character selected while the terminal apparatus 1 is used in a certain environment (for example, a word which a user does not want other people to view, such as a word describing a business secret or a word describing privacy) is displayed as a conversion candidate when the terminal apparatus 1 is used in another environment. Since the order of priority used when conversion candidates are displayed is changed in accordance with the history of user's selection of a conversion candidate in the past, usability obtained when a conversion candidate is selected is improved compared with a case in which conversion candidates are displayed in predetermined order.
An exemplary embodiment of present invention is not limited to the above-described exemplary embodiment. Various modifications may be made and be carried out. Some modified exemplary embodiments will be described below. Two or more exemplary embodiments among the modified exemplary embodiments described below may be combined so as to be used.
Acquisition of environment information in step SA3 does not need to be performed every time a character is input. The CPU 101 may obtain environment information, for example, in accordance with an instruction from a user. In another example, the CPU 101 may obtain new environment information every time a predetermined time elapses. Similarly, acquisition of environment information in step SB2 does not need to be performed every time selection of a conversion candidate is received.
Acquisition of environment information is not limited to the case in which the acquisition is performed without an operation performed by a user on the terminal apparatus 1. Environment information may be input, for example, by a user operating the terminal apparatus 1.
A character associated with the environment information obtained when a character is input, in the history table TB3 does not need to be displayed preferentially to the other characters. In this case, the processes in step SA4 and step SA5 are skipped. In step SA10, the CPU 101 displays the extracted candidates included in the conversion candidate list in predetermined order (such as the ascending order, the descending order, or the ascending order of the count in which a candidate was selected).
Data stored in the dictionary table TB1, the dictionary table TB2, the history table TB3, the setting table TB4, and the setting table TB5 may be stored in the storage unit 107 in another form other than a table.
The history table TB3 may be updated through a process other than the process described in the exemplary embodiment. The history table TB3 may be directly edited by a user. For example, a user may register a new association between a character and environment information, may delete environment information associated with a character, and may associate new environment information with a character which is already registered in the history table TB3. The terminal apparatus 1 may have a function of displaying a list of characters associated with certain environment information in the history table TB3 and receiving a change of the association between a character and the environment information.
The configuration of the terminal apparatus 1 is not limited to that described in the exemplary embodiment. The terminal apparatus 1 may be, for example, a tablet terminal having a touch panel.
In the exemplary embodiment, control programs executed by the terminal apparatus 1 may be provided by storing the programs in a computer-readable recording medium, such as a magnetic recording medium (for example, a magnetic tape or a magnetic disk, such as a hard disk drive (HDD) or a flexible disk (FD)), an optical recording medium (for example, an optical disk, such as a compact disk (CD) or a digital versatile disk (DVD)), a magneto-optical recording medium, or a semiconductor memory (for example, a flash ROM). These programs may be downloaded via a network such as the Internet.
The foregoing description of the exemplary embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, thereby enabling others skilled in the art to understand the invention for various embodiments and with the various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2015-142152 | Jul 2015 | JP | national |