Information processing device and program
The information processing device maintains readability by adjusting character sizes outside a specified range when new characters exceed the input field, addressing the issue of reduced readability due to character size reduction.
Patent Information
- Application Number
- JP2022013271
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-01-31
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2042-01-31
AI Technical Summary
When new characters are entered that do not fit into a character input field of fixed size, the character size becomes too small, reducing readability.
An information processing device that maintains readability by reducing the size of characters outside a predetermined range or number of characters immediately before the input position without changing the size of characters within that range.
Maintains readability of the input portion by adjusting character sizes outside a specified range, ensuring clarity even when new characters do not fit within the fixed input field.
Smart Images

Figure 0007786228000001 
Figure 0007786228000002 
Figure 0007786228000003
Abstract
Description
[Technical Field]
[0001] The present invention relates to an information processing device and a program. [Background technology]
[0002] Patent document 1 describes that when new characters are entered that do not fit into a character input field such as a text box of fixed size, the size of the characters is reduced so that the entire entered characters fit into the character input field. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] International Publication No. 04-034278 Summary of the Invention [Problem to be solved by the invention]
[0004] When new characters are entered that do not fit into a character input field such as a text box of fixed size, it is possible to reduce the size of the characters so that the entire entered characters fit into the character input field. However, if the number of characters to be entered increases, the problem arises that the character size becomes too small, reducing the readability of the input portion of the characters.
[0005] An object of the present invention is to provide an information processing device and a program that can maintain the readability of the input portion of a character even when a new character that does not fit in a character input field of a fixed size is entered. [Means for solving the problem]
[0006] An information processing device of a first aspect of the present invention includes a processor, and when a new character that does not fit in a character input field of a fixed size is input, the processor displays all characters input into the character input field by reducing the size of characters other than those within a predetermined range based on the input position where the character was input, without changing the size of the characters.
[0007] An information processing device of a second aspect of the present invention is the information processing device of the first aspect, in which the processor does not change the size of characters within a predetermined range immediately before the input position, but reduces the size of other characters, and displays all characters entered in the character input field.
[0008] An information processing device of a third aspect of the present invention is the information processing device of the second aspect, in which the processor does not change the size of characters within a predetermined number of characters immediately before the input position, but reduces the size of other characters, and displays all characters entered in the character input field.
[0009] An information processing device of a fourth aspect of the present invention is the information processing device of the second aspect, in which the processor does not change the size of characters within a predetermined number of words immediately before the input position including the word being input, but reduces the size of other characters, and displays all characters input into the character input field.
[0010] An information processing device of a fifth aspect of the present invention is the information processing device of the second aspect, in which, in the case of a language in which sentences are separated by specific symbols, the processor does not change the size of characters contained in the sentence being input, but reduces the size of other characters, and displays all characters input into the character input field.
[0011] An information processing device of a sixth aspect of the present invention is the information processing device of the second aspect, in which, in the case of a language in which parts of a sentence are separated by specific symbols, the processor does not change the size of characters included in part of the sentence being input, but reduces the size of other characters, and displays all characters entered in the character input field.
[0012] An information processing device of a seventh aspect of the present invention is the information processing device of any one of the first to sixth aspects, wherein the processor performs emphasis processing on characters whose size is not changed.
[0013] An information processing device of an eighth aspect of the present invention is an information processing device of the seventh aspect, in which the highlighting processing is processing in which the display color and / or font of characters whose size is not changed is different from that of characters whose size is changed.
[0014] A ninth aspect of the program of the present invention causes a computer to execute the steps of: detecting that a character has been entered that does not fit in a character input field of a fixed size; and, if detected, displaying all characters entered in the character input field by reducing the size of characters other than those within a predetermined range based on the input position without changing the size of the characters. [Effects of the Invention]
[0015] According to the information processing device of the first aspect of the present invention, even when new characters that do not fit into a character input field of a fixed size are input, the readability of the input portion of the characters can be maintained.
[0016] According to the information processing device of the second aspect of the present invention, it is possible to input characters while ensuring the readability of the character immediately before the input position.
[0017] According to the information processing device of the third aspect of the present invention, it is possible to always keep the size of characters of a fixed number of characters unchanged.
[0018] According to the information processing device of the fourth aspect of the present invention, it is possible to prevent the size of characters from changing within one word.
[0019] According to the information processing device of the fifth aspect of the present invention, it is possible to maintain the readability of the entire sentence being input.
[0020] According to the information processing device of the sixth aspect of the present invention, it is possible to maintain the readability of a part of a sentence being input.
[0021] According to the information processing device of the seventh aspect of the present invention, it is possible to improve the readability of characters whose size is not changed, that is, characters whose readability is maintained, compared to when no emphasis processing is performed.
[0022] According to the information processing device of the eighth aspect of the present invention, highlighting can be performed by simple processing such as changing the display color or font of characters.
[0023] According to the program of the ninth aspect of the present invention, even when new characters that do not fit in a character input field of fixed size are input, the readability of the input portion of the characters can be maintained. [Brief explanation of the drawings]
[0024] [Figure 1] 1 is a diagram illustrating a system configuration of a data processing system according to an embodiment of the present invention. [Figure 2] 1 is a block diagram showing a hardware configuration of an information processing apparatus according to an embodiment of the present invention; [Figure 3] 1 is a block diagram showing a functional configuration of an information processing device according to an embodiment of the present invention; [Figure 4] 10A and 10B are diagrams for explaining processing when a new character that does not fit in a character input field of a fixed size is input. [Figure 5] 10A and 10B are diagrams illustrating an example in which emphasis processing is performed on characters within a character size maintenance range in a character input field. [Figure 6] FIG. 10 is a diagram showing an example in which the range of one word immediately before the input position is set as the character size maintenance range. [Figure 7] FIG. 10 is a diagram showing an example in which the range of three words immediately before the input position is set as the character size maintenance range. [Figure 8] 8 is a diagram showing an example in which emphasis processing is performed on characters within a character size maintenance range in the character input field shown in FIG. 7. FIG. [Figure 9] FIG. 10 is a diagram showing an example in which the input language is English and the range of the sentence being input is set as the character size maintenance range. [Figure 10] FIG. 10 is a diagram showing an example in which the input language is Japanese and the range of the sentence being input is set as the character size maintenance range. [Figure 11] 10 is a diagram showing an example in which emphasis processing is performed on characters within a character size maintenance range in the character input field shown in FIG. 9. FIG. [Figure 12] FIG. 10 is a diagram showing an example in which the input language is English and a part of a sentence being input is set as a character size maintenance range. [Figure 13] FIG. 10 is a diagram showing an example in which the input language is Japanese and a part of a sentence being input is set as a character size maintenance range. [Figure 14] 13 is a diagram showing an example in which emphasis processing is performed on characters within a character size maintenance range in the character input field shown in FIG. 12. FIG. [Figure 15] 10 is a flowchart illustrating a processing flow when characters are input into a personal computer. DETAILED DESCRIPTION OF THE INVENTION
[0025] Next, an embodiment of the present invention will be described in detail with reference to the drawings. Fig. 1 is an external view of a personal computer 10 according to an embodiment of the present invention. Fig. 2 is a diagram showing the hardware configuration of the personal computer 10 according to an embodiment of the present invention.
[0026] The personal computer 10 of this embodiment is a device capable of editing text in a character input field such as a text box. As shown in Fig. 1, the personal computer 10 of this embodiment has a computer main body 11, a display 12 as a display device, a keyboard 13 as an input device, and a mouse 14 as an input device. The personal computer 10 is an example of an information processing device in the technology of the present invention.
[0027] 2, the computer main body 11 has a CPU (Central Processing Unit) 11a, memory 11b, a storage device 11c such as a hard disk drive, a communication interface (hereinafter abbreviated as IF) 11d for transmitting and receiving data to and from external devices, and a control bus 11e. The CPU 11a, memory 11b, storage device 11c, communication IF 11d, display 12, keyboard 13, and mouse 14 are connected to one another via the control bus 11e.
[0028] The CPU 11a is a processor that controls the operation of the personal computer 10 by executing predetermined processes based on a control program stored in the memory 11b or the storage device 11c. In the present embodiment, the CPU 11 reads and executes the control program stored in the memory 11b or the storage device 11c, but this is not limiting. The control program may be provided in a form recorded on a computer-readable recording medium. For example, the program may be provided in a form recorded on an optical disc such as a CD (Compact Disc)-ROM (Read Only Memory) or a DVD (Digital Versatile Disc)-ROM, or in a semiconductor memory such as a USB (Universal Serial Bus) memory or a memory card. The control program may also be obtained from an external device via a communication line connected to the communication interface 11d.
[0029] 3 is a block diagram showing the functional configuration of the personal computer 10 realized by executing the above control program. As shown in FIG. 3, the personal computer 10 of this embodiment has a control unit 31, a display unit 32, an operation input unit 33, and a data transmission / reception unit 34.
[0030] The control unit 31 controls the overall operation of the personal computer 10. The display unit 32 is controlled by the control unit 31 and displays various information to the user. The operation input unit 33 inputs information on various operations performed by the user. The data transmission / reception unit 34 transmits and receives data to and from external devices.
[0031] In the personal computer 10 of this embodiment, the control unit 31 displays a character input field TB (see FIG. 4) of fixed size on the display unit 32. The processing of the control unit 31 when a character is input into the character input field TB by the user via the operation input unit 33 will be described below.
[0032] When a new character that does not fit in the character input field TB (see FIG. 4) of a fixed size is input, the control unit 31 displays all characters input in the character input field TB by reducing the size of characters other than those within a preset range based on the input position where the character was input, without changing the size of the characters.
[0033] Here, the control unit 31 may display all characters entered in the character input field TB without changing the size of the characters within a predetermined range immediately before the input position, and by reducing the size of the other characters.
[0034] In addition, the control unit 31 may display all characters entered in the character input field TB without changing the size of the characters within a predetermined number of characters immediately before the input position, and by reducing the size of the other characters.
[0035] The processing in the personal computer 10 of this embodiment will be described in detail below. Fig. 4 is a diagram for explaining the processing that is performed when a new character that does not fit into a character input field of fixed size is input. Here, as an example, a mode will be described in which, when a new character that does not fit into a character input field TB of fixed size is input, the size of the seven characters immediately before the input position is not changed, and the size of the other characters is reduced to display all the characters input into the character input field.
[0036] As shown in Fig. 4, the character input field TB displays a cursor C indicating the character input position and the character input by the user. The range of seven characters immediately preceding the cursor C is a character size maintenance range RP in which the character size is maintained without being changed when new characters that do not fit in the character input field TB are entered. The range of the character input field TB other than the character size maintenance range RP is a character size change range RC in which the character size is changed when new characters that do not fit in the character input field TB are entered.
[0037] The control unit 31 displays all characters entered into the character input field TB at the same character size until the characters no longer fit in the character input field TB. At this time, there are no particular restrictions on the character size, font type, display color, typeface, etc., and any settings can be made. Figure 4(A) shows a state in which the number of characters entered is just enough to fit into the character input field TB. If a new character is entered at the position of the cursor C in this state, the characters entered in the character input field TB will no longer fit in the character input field TB.
[0038] Therefore, as shown in Fig. 4(B), control unit 31 does not change the size of the characters in character size maintaining range RP of the seven characters immediately before cursor C, but reduces the size of the characters in character size changing range RC, which is the range outside character size maintaining range RP in character input field TB. At this time, control unit 31 reduces the size of the characters in character size changing range RC by one size at a time until all characters input into character input field TB fit within it. In other words, control unit 31 sets the size of the characters in character size changing range RC to the largest size that will fit all characters input into character input field TB.
[0039] The size of one size when changing the character size can be set to any size, such as a font size of 0.5 points, 1 point, or 2 points, etc. The size of one size when changing the character size may be constant regardless of the size of the characters in the current character size change range RC, or may vary depending on the size of the characters in the current character size change range RC.
[0040] When varying the size of one size, the smaller the size of the characters within the current character size change range RC, the smaller the size of one size when changing the character size. For example, if the size of the characters within the current character size change range RC is 20 points or more, the size of one size may be 2 points, if it is less than 20 points but greater than or equal to 10 points, the size of one size may be 1 point, and if it is less than 10 points, the size of one size may be 0.5 points.
[0041] 4(B), if a new character is further input at the position of cursor C, the characters input into character input field TB will again no longer fit in character input field TB. Therefore, as shown in FIG. 4(C), control unit 31 further reduces the size of the characters within character size change range RC so that all of the characters input into character input field TB will fit.
[0042] Furthermore, there are no particular restrictions on the processing of the control unit 31 when, after reducing the size of the characters within the character size change range RC, the characters in the character input field TB are deleted, creating space within the character size change range RC to display new characters, and the control unit 31 can perform, for example, the following processing.
[0043] Conversely to the above process, the control unit 31 may increase the size of the characters within the character size change range RC by one size at a time until the characters entered in the character input field TB no longer fit in the character input field TB, and set the size to the largest size that still fits all of the characters entered in the character input field TB.
[0044] Furthermore, even if a blank space for displaying new characters is generated within the character size change range RC, the control unit 31 may maintain the size of the characters within the character size change range RC that have been reduced.
[0045] By adopting the above-described embodiment, even when new characters that do not fit into the character input field TB, which has a fixed size, are input, the readability of the input portion of the characters is maintained.
[0046] Note that the characters within the character size maintenance range RP near the cursor C are the characters that the user pays particular attention to when entering characters into the character input field TB. Therefore, in the personal computer 10 of this embodiment, the control unit 31 may perform highlighting processing on the characters within the character size maintenance range RP whose size is not changed, as shown in Fig. 5 as an example. In this case, the highlighting processing may be processing that makes either or both of the display color and typeface of the characters whose size is not changed different from those of the characters whose size is changed.
[0047] Figure 5 shows an example in which the characters in the character size maintaining range RP have both a different display color and font style than the characters in the character size changing range RC. In detail, the characters in the character size changing range RC are displayed in black with a standard font style, while the characters in the character size maintaining range RP are displayed in red with a bold and italic font style.
[0048] In addition, the control unit 31 may display all characters entered in the character input field TB without changing the size of characters within a predetermined number of words immediately before the input position including the word being entered, and by reducing the size of other characters.
[0049] That is, the control unit 31 may set the range of one word immediately before the cursor C as the character size maintenance range RP, as shown in Fig. 6. Alternatively, the control unit 31 may set the range of multiple words immediately before the cursor C as the character size maintenance range RP, as shown in Fig. 7. Fig. 7 shows an example in which the range of three words is set as the character size maintenance range RP.
[0050] In this case, the input language is not limited to a language that uses word segments, such as English, but may also be a language that does not use word segments, such as Japanese. Here, "word segments" refers to a writing style in which spaces are inserted to separate words. If the input language uses word segments, words can be identified by the space symbols between characters. If the input language does not use word segments, words in a sentence can be identified by known sentence recognition technology.
[0051] Also in this case, as shown in FIG. 8, emphasis processing may be performed on characters within the character size maintaining range RP.
[0052] Furthermore, in the case of a language in which sentences are separated by specific symbols, the control unit 31 may display all characters entered in the character input field TB without changing the size of the characters included in the sentence being input, and reducing the size of the other characters. Here, a language in which sentences are separated by specific symbols is, for example, English, which separates sentences with a period ".", and Japanese, which separates sentences with a full stop ".". In this case, the range from the position of the cursor C to just before the nearest symbol before the cursor C can be identified as the sentence being input.
[0053] That is, the control unit 31 may set the range of the sentence being input immediately before the cursor C as the character size maintenance range RP, as shown in Figures 9 and 10. Figure 9 shows an example where the input language is English. Figure 10 shows an example where the input language is Japanese.
[0054] Also in this case, as shown in FIG. 11, emphasis processing may be performed on characters within the character size maintaining range RP.
[0055] Furthermore, in the case of a language in which parts of a sentence are separated by specific symbols, the control unit 31 may display all characters entered in the character input field TB without changing the size of characters included in the part of the sentence being input, and reducing the size of the other characters. Here, languages in which parts of a sentence are separated by specific symbols include, for example, English, which separates parts of a sentence with a period "." and a comma ",", and Japanese, which separates parts of a sentence with a period "." and a comma ",". In this case, the range from the position of cursor C to just before the nearest symbol before cursor C can be identified as part of the sentence being input.
[0056] That is, the control unit 31 may set a part of the range of the sentence being input immediately before the cursor C as the character size maintenance range RP, as shown in Fig. 12 and Fig. 13. Fig. 12 shows an example in which the input language is English. Fig. 13 shows an example in which the input language is Japanese.
[0057] Also in this case, as shown in FIG. 14, emphasis processing may be performed on characters within the character size maintenance range RP.
[0058] Next, the flow of processing when characters are input in the personal computer 10 of this embodiment will be described with reference to the flowchart of FIG.
[0059] If the control unit 31 detects in step S11 that new characters have been entered into the character input field TB, it determines in step S12 whether the characters entered into the character input field TB all fit within the character input field TB.
[0060] If it is determined in step S12 that all the characters input into the character input field TB fit within the character input field TB, the control unit 31 returns to the state immediately before step S11 and waits until the next character is detected.
[0061] If it is determined in step S12 that the characters entered in the character input field TB do not all fit within the character input field TB, the control unit 31 reduces the size of the characters within the character size change range RC of the character input field TB by one size in step S13.
[0062] Next, in step S14, the control unit 31 determines whether or not all of the characters input into the character input field TB fit within the character input field TB.
[0063] If it is determined in step S14 that all the characters input into the character input field TB fit within the character input field TB, the control unit 31 returns to the state immediately before step S11 and waits until the next character is detected.
[0064] If it is determined in step S12 that the characters input into the character input field TB do not all fit within the character input field TB, the control unit 31 proceeds to step S13. The control unit 31 repeats steps S13 and S14 until the characters input into the character input field TB all fit within the character input field TB.
[0065] [Variations] Although the data processing system according to one embodiment of the present invention has been described above, the present invention is not limited to the above embodiment and can be modified as appropriate.
[0066] In each of the above embodiments, the term "processor" refers to a processor in a broad sense, and includes general-purpose processors (e.g., CPU: Central Processing Unit, etc.) and dedicated processors (e.g., GPU: Graphics Processing Unit, ASIC: Application Specific Integrated Circuit, FPGA: Field Programmable Gate Array, programmable logic device, etc.).
[0067] Furthermore, the operations of the processor in each of the above embodiments may be performed not only by a single processor but also by multiple processors located at physically separate locations working together. Furthermore, the order of the operations of the processor is not limited to the order described in each of the above embodiments and may be changed as appropriate. [Explanation of symbols]
[0068] 10. Personal Computers 11 Computer main body 11a CPU 11b memory 11c storage device 11e control bus 12 Display 13 Keyboard 14 Mouse 31 Control Unit 32 Display section 33 Operation input section 34 Data transmission / reception unit C cursor RC Font size change range RP font size maintenance range TB Text input field
Claims
1. a processor; When a new character that does not fit in a character input field of a fixed size is input, the processor does not change the size of characters within a preset range immediately before the input position where the character is input, but reduces the size of other characters to display all characters input in the character input field. Information processing device.
2. a processor; When a new character that does not fit in a character input field of a fixed size is input, the processor performs highlighting processing on characters within a preset range based on the input position where the character was input without changing the size, and reduces the size of other characters to display all characters input in the character input field. Information processing device.
3. The processor displays all characters entered in the character entry field by reducing the size of the characters within a preset number of characters immediately before the input position without changing the size of the characters. The information processing device according to claim 1 .
4. The processor displays all characters entered in the character entry field by reducing the size of the characters within a predetermined number of words immediately preceding the input position, including the word being entered, without changing the size of the characters. The information processing device according to claim 1 .
5. In the case of a language in which sentences are separated by specific symbols, the processor displays all characters entered in the character entry field without changing the size of characters included in the sentence being entered, and by reducing the size of other characters. The information processing device according to claim 1 .
6. In the case of a language in which parts of a sentence are separated by specific symbols, the processor displays all characters entered in the character entry field without changing the size of characters included in the part of the sentence being entered, and by reducing the size of other characters. The information processing device according to claim 1 .
7. The highlighting process is a process in which the display color and / or font of characters whose size is not changed is different from that of characters whose size is changed. The information processing device according to claim 2 .
8. Detecting that a character that does not fit in a character input field of a fixed size has been entered; When the character is detected, the size of the characters within a predetermined range immediately before the input position where the character is input is not changed, and the size of the other characters is reduced, thereby displaying all the characters input in the character input field; A program that causes a computer to execute the following.
9. Detecting that a character that does not fit in a character input field of a fixed size has been entered; a step of highlighting characters within a predetermined range based on the input position without changing their size when detected, and reducing the size of other characters to display all characters input in the character input field; A program that causes a computer to execute the following.
Citation Information
Patent Citations
Document processor, its method and recording medium
JP1998301929A
Display program, display system, and display device
JP2013200849A
Inline editing of web page input fields using a visibly prominent field
US20080235578A1
Device and method for generating a text object
US20080266298A1
Text edition device and program
WO2004034278A1