Input support device, input support method and program
By displaying a cursor at the error location and reducing the contrast of other parts of the formula, scientific calculators can intuitively highlight errors and facilitate correction, improving calculation efficiency and accuracy.
Patent Information
- Application Number
- JP2022109378
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-07-07
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-07-07
AI Technical Summary
Existing scientific calculators highlight syntax errors in a way that overcrowds the display, making it difficult to intuitively identify and correct the error location.
The solution involves displaying a cursor at the error location and reducing the contrast of other parts of the formula to maintain the error's visibility, using a detection mechanism to highlight correction candidates on a different line, and adjusting display density to distinguish error parts from others.
This approach allows for easy identification and correction of errors, reducing the time required for formula calculation and ensuring accurate results by maintaining the error's visibility and reducing user burden.
Smart Images

Figure 0007601063000001 
Figure 0007601063000002 
Figure 0007601063000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an input support device, an input support method, and a program. [Background technology]
[0002] Conventionally, there is known a scientific calculator that accepts input of a mathematical formula and performs calculations. There is known a scientific calculator that displays the location of an error if there is a syntax error in the input mathematical formula. For example, there is known an electronic calculator that changes the display of an error location in an input mathematical formula from the normal display to an underline and bold highlighting display, and displays the non-error location normally (see Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2011-107772 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the electronic computer described in Patent Document 1, the highlighted information becomes too crowded on the display screen, which can make the location of the error difficult to see and difficult to understand intuitively.
[0005] An object of the present invention is to display error locations in an intuitive and easy-to-understand manner while making them easy to see. [Means for solving the problem]
[0006] In order to solve the above problems, an input support device according to the present invention includes a detection means for detecting an error in an input formula, and when an error is detected by the detection means, a cursor indicating an input position is displayed at a position corresponding to the error, and A correction candidate corresponding to the error portion is displayed on a line different from the formula, anda display control means for lowering the display contrast of other parts of the formula while maintaining the display contrast of the error part; the display control means brings the display density of the formula at the other portions closer to the display density of the background of the formula without changing the display density of the background of the formula and the display density of the formula at the error portion, thereby lowering the display contrast of the other portions while maintaining the display contrast of the error portion, and while the cursor is being displayed at the position corresponding to the error portion, displays the correction candidate in a state where the display contrast is further lowered than the display contrast of the other portions in the formula so that the correction candidate can be identified as being in a non-selected state. It is characterized by: Further, an input support method according to the present invention is an input support method executed by an input support device, comprising: a detection step of detecting an error in an input formula; and when an error is detected in the detection step, displaying a cursor indicating an input position at a position corresponding to the error; A correction candidate corresponding to the error portion is displayed on a line different from the formula, and A display control step of lowering the display contrast of other parts of the formula while maintaining the display contrast of the error part. the display control step reduces the display contrast of the other portions while maintaining the display contrast of the error portion by bringing the display density of the formula at the other portions closer to the display density of the background of the formula without changing the display density of the background of the formula and the display density of the formula at the error portion, and displays the correction candidate in a state where the display contrast of the correction candidate is further reduced compared to the display contrast of the other portions in the formula so that the correction candidate can be identified as being in a non-selected state while the cursor is displayed at a position corresponding to the error portion. It is characterized by: The program according to the present invention further comprises a detection means for detecting an error in an input mathematical expression, and when an error is detected by the detection means, causing a computer to display a cursor indicating an input position at a position corresponding to the error, The error A correction candidate corresponding to a certain part is displayed on a line different from the formula, and a display control means for lowering the display contrast of other parts in the formula while maintaining the display contrast of the error part, the display control means brings the display density of the formula at the other portions closer to the display density of the background of the formula without changing the display density of the background of the formula and the display density of the formula at the error portion, thereby lowering the display contrast of the other portions while maintaining the display contrast of the error portion, and displays the correction candidate in a state where the display contrast of the correction candidate is further lowered than the display contrast of the other portions in the formula so that the correction candidate can be identified as being in a non-selected state while the cursor is displayed at a position corresponding to the error portion. It is characterized by: Effect of the Invention
[0007] According to the present invention, the location of an error can be easily seen and displayed in an intuitive and easy-to-understand manner. [Brief description of the drawings]
[0008] [Figure 1] 1 is a front view of an electronic desk calculator according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a block diagram showing the functional configuration of the electronic desk calculator. [Diagram 3] 13 is a flowchart showing a first calculation and display process. [Figure 4]1A is a diagram showing a display screen of a first specific example of an embodiment; FIG. 1B is a diagram showing a display screen of a first specific example of an embodiment; FIG. 1C is a diagram showing a display screen of a first specific example of an embodiment; FIG. 1D is a diagram showing a display screen of a first specific example of an embodiment; FIG. 1E is a diagram showing a display screen of a first specific example of an embodiment. [Diagram 5] 1A is a diagram showing a display screen of a second specific example of an embodiment; FIG. 1B is a diagram showing a display screen of a second specific example of an embodiment; FIG. 1C is a diagram showing a display screen of a second specific example of an embodiment; FIG. 1D is a diagram showing a display screen of a second specific example of an embodiment; FIG. 1E is a diagram showing a display screen of a second specific example of an embodiment. [Figure 6] 13 is a flowchart showing a second calculation and display process. [Figure 7] (a) is a diagram showing a display screen of the first modified example. (b) is a diagram showing a display screen of the first modified example. (c) is a diagram showing a display screen of the first modified example. (d) is a diagram showing a display screen of the first modified example. (e) is a diagram showing a display screen of the first modified example. [Figure 8] 13A is a diagram showing a display screen of a first modified example, FIG. 13B is a diagram showing a display screen of a first modified example, and FIG. 13C is a diagram showing a display screen of a first modified example. [Figure 9] 13 is a flowchart showing a third calculation and display process. [Figure 10] (a) is a diagram showing a display screen of a first specific example of the second modified example. (b) is a diagram showing a display screen of the first specific example of the second modified example. (c) is a diagram showing a display screen of the first specific example of the second modified example. (d) is a diagram showing a display screen of the first specific example of the second modified example. (e) is a diagram showing a display screen of the first specific example of the second modified example. (f) is a diagram showing a display screen of the first specific example of the second modified example. [Figure 11](a) is a diagram showing a display screen of a second specific example of the second modified example. (b) is a diagram showing a display screen of a second specific example of the second modified example. (c) is a diagram showing a display screen of a second specific example of the second modified example. (d) is a diagram showing a display screen of a second specific example of the second modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] The embodiment and the first and second modified examples of the present invention will be described in detail below with reference to the accompanying drawings. Note that the embodiment and the first and second modified examples described below are subject to various technically preferable limitations for carrying out the present invention, but the scope of the present invention is not limited to the embodiment, the first and second modified examples, and the illustrated examples.
[0010] (Embodiment) An embodiment of the present invention will be described with reference to Fig. 1 to Fig. 5(e). First, the device configuration of this embodiment will be described with reference to Fig. 1 and Fig. 2. Fig. 1 is a front view of an electronic desk calculator 1 of this embodiment. Fig. 2 is a block diagram showing the functional configuration of the electronic desk calculator 1.
[0011] The electronic desk calculator 1 serving as the input support device of this embodiment is a so-called scientific calculator. As shown in FIG. 1, the electronic desk calculator 1 includes an operation unit 12 having various keys and a display unit 14.
[0012] The operation unit 12 is a group of keys for receiving input operations of numerical values, calculation symbols, and other elements of a mathematical formula from the user, and for receiving instructions for various processes, and includes a plurality of keys to which specific functions are assigned. In this embodiment, the operation unit 12 includes a numeric keypad 20a, an operation key 20b, a correction key 20c, a function key 20d, an up arrow key 21, a down arrow key 22, a right arrow key 23, a left arrow key 24, an enter key 25, an "=" key 26, various function keys 20e, and the like.
[0013] The numeric keypad 20a is used to input numeric values and includes keys "0" to "9". The calculation keys 20b are used to input operators and include the "+", "-", "x" and "÷" keys. The correction keys 20c are used to correct displayed numeric values and formulas and include a DEL (Delete) key to delete a single character and an AC (All Clear) key to delete all. The function keys 20d are used to input various functions.
[0014] The up arrow key 21, down arrow key 22, right arrow key 23 and left arrow key 24 are keys that are pressed when moving the position to be edited or selected on the display unit 14 or the cursor indicating these positions in each of the specified directions, and these keys are collectively referred to as cursor keys.
[0015] The decision key 25 is a key that accepts input of decision (OK) for various processes such as selection and transition regarding the display information displayed on the display unit 14. The "=" key 26 is a key that accepts input of an equal sign in a mathematical formula displayed on the display unit 14, and functions as an execution key that accepts input of an instruction to execute a mathematical operation (an instruction to execute an operation).
[0016] The function keys 20e are keys that accept input of various functions, and include a shift key, a menu key, a power key, and the like.
[0017] The display unit 14 is composed of a display panel such as a dot-matrix LCD (Liquid Crystal Display), and is a display unit that displays various data such as characters, codes, symbols, mathematical expressions, and calculation results in response to operations of the operation unit 12, etc., on a white background. In this embodiment, the display unit 14 is capable of displaying information in four gradations (display density, grayscale color) of black, dark gray, light gray, and white (no display) on a white background as a display mode. Hereinafter, "black on a white background" will be simply expressed as "black", "dark gray on a white background" will be simply expressed as "dark gray", and "light gray on a white background" will be simply expressed as "light gray". The number of gradations of the display mode of the display unit 14 may be 3 or 5 or more.
[0018] Regarding the display mode (four gradations) on the display unit 14, the lighter the display density of the information (characters) (black to white), the more restrained the display mode is expressed. In other words, the lower the contrast (difference in display density) of the display color of the characters against the white background, the more restrained the display mode (contrast) of the characters is expressed. Note that the operation unit 12 may be configured to be integrally provided on the display panel of the display unit 14 and to include a touch panel that accepts touch input.
[0019] Next, the internal functional configuration of the electronic desk calculator 1 will be described with reference to Fig. 2. As shown in Fig. 2, the electronic desk calculator 1 includes a CPU (Central Processing Unit) 11 as a detection means and a display control means, an operation unit 12, a RAM (Random Access Memory) 13, a display unit 14, and a storage unit 15. The various units of the electronic desk calculator 1 are connected via a bus 16.
[0020] The CPU 11 controls each part of the electronic desk calculator 1. The CPU 11 reads out a specified program from among various programs stored in the storage unit 15, loads it into the RAM 13, and executes various processes in cooperation with the loaded program.
[0021] The operation unit 12 has a number of various keys such as a numeric keypad 20a, calculation keys 20b, correction keys 20c, function keys 20d, cursor keys (up arrow key 21, down arrow key 22, right arrow key 23, left arrow key 24), decision key 25, “=” key 26, and various function keys 20e, and accepts operation inputs from the user by pressing various keys and outputs the operation information to the CPU 11.
[0022] The RAM 13 is a volatile semiconductor memory from which information can be read and written, provides a work area for the CPU 11, and temporarily stores data and programs.
[0023] The display unit 14 displays various display information input from the CPU 11 and the like on the display screen of the display panel in a display mode of four gradations.
[0024] The storage unit 15 is a storage unit that is configured with a ROM (Read Only Memory) or the like, is capable of reading out information, and stores various data and various programs. In particular, the storage unit 15 stores a first calculation and display program P1 for executing a first calculation and display process described later.
[0025] Next, the operation of the electronic desk calculator 1 will be described with reference to FIG. 3 to FIG. 5(e). FIG. 3 is a flow chart showing the first calculation display process. FIG. 4(a) is a diagram showing a display screen 30a of the first specific example. FIG. 4(b) is a diagram showing a display screen 30b of the first specific example. FIG. 4(c) is a diagram showing a display screen 30c of the first specific example. FIG. 4(d) is a diagram showing a display screen 30d of the first specific example. FIG. 4(e) is a diagram showing a display screen 30e of the first specific example. FIG. 5(a) is a diagram showing a display screen 40a of the second specific example. FIG. 5(b) is a diagram showing a display screen 40b of the second specific example. FIG. 5(c) is a diagram showing a display screen 40c of the second specific example. FIG. 5(d) is a diagram showing a display screen 40d of the second specific example. FIG. 5(e) is a diagram showing a display screen 40e of the second specific example.
[0026] In the electronic desk calculator 1, for example, when the power key of the function key 20e of the operation unit 12 is pressed to turn the power on, the CPU 11 reads the first calculation display program P1 from the memory unit 15 and executes the first calculation display process in accordance with the first calculation display program P1 that has been read.
[0027] First, the CPU 11 accepts input of a mathematical formula from the user via the operation unit 12, and displays the input mathematical formula in black on the display unit 14 (step S11). In step S11, a black cursor is blinking at the input location on the display screen for inputting a mathematical formula. The CPU 11 then determines whether or not the "=" key 26, which indicates the end of inputting the mathematical formula and an instruction to perform a calculation, has been pressed (step S12). If the "=" key 26 has not been pressed (step S12; NO), the process proceeds to step S11.
[0028] When the "=" key 26 is input (step S12; YES), the CPU 11 determines whether or not there is a syntax error in the displayed formula (step S13). A syntax error is an error in the syntax of the formula, such as an error in consecutive input of operators (for example, "~÷×~"). Strictly speaking, there are other types of errors in the formula besides syntax errors, such as calculation errors in which the calculation result exceeds the calculation range or mathematical errors (such as division by 0), but in this embodiment, for simplicity of explanation, we will consider determining only syntax errors as errors.
[0029] If a syntax error is found (step S13; YES), the CPU 11 displays "Syntax ERROR" in black on the display unit 14, indicating that the formula has a syntax error, and "Back" (for example, inverted display) indicating that an input to return to the formula display is accepted (step S14). The input of "Back" is accepted by pressing the decision key 25 or the "=" key 26.
[0030] Then, CPU 11 accepts an input from the user via enter key 25 or "=" key 26 to return to displaying the mathematical formula (step S15). CPU 11 then displays in black on display unit 14 any error parts determined to be syntax errors in step S13 of the input mathematical formula, and displays parts other than the error parts in dark gray, which is more subdued than black (step S16). There may be not only one error part in the mathematical formula, but also multiple errors.
[0031] Then, CPU 11 moves the cursor "|" to the first error location (if there is one error location in the formula, that one error location) and displays it blinking in black (step S17). CPU 11 then accepts input to correct the displayed formula via operation unit 12 (step S18). In step S18, for example, input to move the cursor is accepted by input of the cursor keys (up arrow key 21 to left arrow key 24), input to delete an unnecessary error location is accepted by input of the DEL key of correction keys 20c, and input of a necessary operator, etc. is accepted by input of operation keys 20b, etc.
[0032] Then, the CPU 11 determines whether or not the "=" key 26 has been input (step S19). If the "=" key 26 has not been input (step S19; NO), the process proceeds to step S18. If the "=" key 26 has been input (step S19; YES), the process proceeds to step S13.
[0033] If there is no syntax error (step S13; NO), the CPU 11 executes the calculation of the displayed mathematical expression, displays the mathematical expression and the calculation result in black on the display unit 14 (step S20), and ends the first calculation display process.
[0034] Here, two specific examples of the first calculation display process will be described with reference to Fig. 4(a) to Fig. 6(e). As a first specific example of the first calculation display process, consider a case where, after the start of the first calculation display process, for example, the formula "6÷×6" is input in step S11 as shown in Fig. 4(a) and the display screen 30a is displayed on the display unit 14. The display screen 30a has the formula "6÷×6" in black. In this formula, "÷×" is a syntax error location where operators are consecutive.
[0035] Then, when the "=" key 26 is pressed in step S12, it is determined in step S13 that there is a syntax error in the displayed formula, and display screen 30b is displayed in step S14, as shown in Fig. 4(b). Display screen 30b has "Syntax ERROR" in black and "Back" in reverse video.
[0036] Then, when the decision key 25 or the "=" key 26 is pressed in step S15, the display screen 30c is displayed in steps S16 and S17, as shown in FIG. 4(c). The display screen 30c has a dark gray "6", a black error part "÷×", and another dark gray "6" as a series of mathematical expressions. Also, on the display screen 30c, a black cursor "|" is moved to the middle position of the error part "÷×" and displayed. This avoids a large movement of the cursor to the error part to be corrected in step S18, making it easier to correct the error part.
[0037] Then, in step S18, the user presses the right arrow key 23 and the DEL key of the correction keys 20c to delete the "x" in the error part "÷x", and the display screen 30d is displayed as shown in FIG. 4(d). The display screen 30d has a series of formulas, including a dark gray "6", a black corrected error part "÷", and a dark gray "6". Then, in step S19, when the "=" key 26 is pressed, the process proceeds to step S13, where it is determined that there is no syntax error in the displayed formula, and in step S20, a display screen 30e of the calculation result is displayed on the display unit 14 as shown in FIG. 4(e). The display screen 30e has a black formula "6÷6" and a black calculation result "1".
[0038] Next, as a second specific example of the first calculation display process, as shown in Fig. 5(a), consider a case where, for example, the formula "6÷x6+9x÷3" is input in step S11 and the display screen 40a is displayed on the display unit 14. The display screen 40a has the formula "6÷x6+9x÷3" in black. In this formula, the two places "÷x" and "x÷" have consecutive operators and are syntax error locations.
[0039] Then, when the "=" key 26 is pressed in step S12, it is determined in step S13 that there is a syntax error in the displayed formula, and the display screen 40b is displayed in step S14 as shown in FIG. 5(b). The display screen 40b has "Syntax ERROR" in black and "Back" in inverted black. Then, when the decision key 25 or the "=" key 26 is pressed in step S15, the display screen 40c is displayed in steps S16 and S17 as shown in FIG. 5(c). The display screen 40c has a series of formulas, including a dark gray "6", a black error part "÷×", a dark gray "6+9", a black error part "×÷", and a dark gray "3". Also, in the display screen 40c, the black cursor "|" is moved to the middle position of the first error part "÷×" and displayed.
[0040] Then, in step S18, the user presses the right arrow key 23 and the DEL key of the correction keys 20c to delete the "×" from the first error location "÷×". Furthermore, as shown in FIG. 5(d), in step S18, the user presses the right arrow key 23 and the DEL key of the correction keys 20c to delete the "÷" from the second error location "×÷", and the display screen 40d is displayed. The display screen 40d has a series of mathematical expressions, including a dark gray "6", a black corrected error location "÷", a dark gray "6+9", a black corrected error location "×", and a dark gray "3".
[0041] Then, when the "=" key 26 is pressed in step S19, the process proceeds to step S13, where it is determined that there is no syntax error in the displayed formula, and as shown in Fig. 5(e), in step S20, a display screen 40e of the calculation result is displayed on the display unit 14. The display screen 40e has the formula "6÷6+9×3" in black and the calculation result "28" in black.
[0042] As described above, according to this embodiment, the electronic desk calculator 1 is provided with a CPU 11 that detects an error in an inputted formula (e.g., "6÷×6"), and when an error (e.g., "÷×") is detected, switches the display mode of other parts in the formula (e.g., "6", "6") to a more restrained display mode (dark gray) while maintaining the display mode of the error part (maintaining it black), as shown on the display screen 30b displayed on the display unit 14, for example.
[0043] This maintains the display format of the error location, making it easier to see than a configuration in which the error location is changed to bold and underlined, resulting in a crowded display, while switching the display format of other locations to a more subdued display format than the error location, allowing the error location to be reliably distinguished from other locations and instantly grasped, resulting in an intuitively easy-to-understand display. Also, the time required for the entire calculation of a formula (from inputting the formula to displaying the calculation result) can be shortened. Also, even if the formula is long, one or more (especially multiple) error locations can be instantly grasped.
[0044] Furthermore, when an instruction to calculate the input formula (the "=" key 26) is input, the CPU 11 detects the error parts of the formula. Therefore, when an instruction to calculate the formula is input, the error parts can be corrected all at once, reducing the burden on the user.
[0045] Furthermore, the CPU 11 detects the error in the corrected formula based on the input for correcting the error, and if the corrected formula contains no errors, it performs calculations on the corrected formula and displays the calculation results. This allows accurate calculation results of the error-free formula to be displayed, and the user can reliably recognize that the formula contains no errors by visually checking the calculation results.
[0046] Furthermore, the display mode of the formula is contrast (the difference in the display density of the characters against the white background). The contrast of the parts other than the error parts (dark gray) is lower than the contrast of the error parts (black). This makes it possible to use a display unit 14 that is capable of changing the contrast of the characters against the white background, and thus reduces the cost of the electronic desk calculator 1 compared to using a color display unit. In particular, even when the display color is limited to one color, black (including grays with different display densities) against a white background, the error parts can be easily seen and displayed in an intuitively easy-to-understand manner.
[0047] (First Modification) A first modified example of the above embodiment will be described with reference to Figs. 6 to 8(c). Fig. 6 is a flow chart showing the second calculation display process. Fig. 7(a) is a diagram showing a display screen 50a. Fig. 7(b) is a diagram showing a display screen 50b. Fig. 7(c) is a diagram showing a display screen 50c. Fig. 7(d) is a diagram showing a display screen 50d. Fig. 7(e) is a diagram showing a display screen 50e. Fig. 8(a) is a diagram showing a display screen 50f. Fig. 8(b) is a diagram showing a display screen 50g. Fig. 8(c) is a diagram showing a display screen 50h.
[0048] In the above embodiment, the user manually corrects all errors in the formula, but in this modified example, multiple correction suggestions are displayed for the errors in the formula, and the user can select and input one of the correction suggestions to make the correction.
[0049] As the device configuration of this modified example, the electronic desk calculator 1 is used as in the above embodiment. However, the storage unit 15 stores a second calculation display program for executing a second calculation display process described later, instead of the first calculation display program P1.
[0050] Next, the operation of the electronic desk calculator 1 of this modified example will be described with reference to Figures 6 to 8(c). In the electronic desk calculator 1, for example, when the power key of the function key 20e of the operation unit 12 is pressed to turn on the power, the CPU 11 reads out the second calculation display program from the storage unit 15 and executes the second calculation display process in accordance with the read second calculation display program.
[0051] As shown in Fig. 6, first, steps S31 to S35 are the same as steps S11 to S15 of the first calculation display process in Fig. 3. Then, CPU 11 selects, as a target error location, the first error location among the error locations determined to be a syntax error in step S33 in the formula input in step S31 (step S36). There is at least one error location in the formula.
[0052] Then, CPU 11 displays in black on display unit 14 any error location determined to be a syntax error in step S13 in the input formula, and displays non-error locations in a light gray, which is more subdued than black, on display unit 14 (step S37). CPU 11 then moves the cursor "|" to the target error location selected in step S36 (if there is only one error location in the formula, then that one error location) and displays it in blinking black, and displays multiple correction candidates corresponding to the target error location in light gray (step S38).
[0053] Then, CPU 11 accepts an alternative selection input of multiple correction candidates for the displayed formula via operation unit 12 (step S39). Then, CPU 11 displays the target error location in the displayed formula in black on display unit 14, displays error locations other than the target error location (if there are multiple error locations) in dark gray, which is more subdued than black, and displays the correction candidates selected and input in step S39 in black on display unit 14 (step S40).
[0054] Then, the CPU 11 corrects the displayed target error location with the correction candidate selected and input in step S39 and displays it in light gray on the display unit 14 (step S41).Then, the CPU 11 determines whether or not there is a syntax error in the displayed formula (step S42).
[0055] If there is a syntax error (step S42; YES), the process proceeds to step S36. If there is no syntax error (step S33 or S42; NO), the process proceeds to step S43. Step S43 is the same as step S20 in FIG.
[0056] Here, a specific example of the second calculation display process will be described with reference to Fig. 7(a) to Fig. 8(c). After the second calculation display process is started, for example, as shown in Fig. 7(a), a case will be considered in which the formula "6÷×6+9×÷3" is input in step S31 and the display screen 50a is displayed on the display unit 14. The display screen 50a has the formula "6÷×6+9×÷3" in black. In this formula, "÷×" and "×÷" are consecutive operators and are the error points of a syntax error.
[0057] Then, when the "=" key 26 is pressed in step S32, it is determined in step S33 that there is a syntax error in the displayed formula, and as shown in Fig. 7(b), display screen 50b is displayed in step S34. Display screen 50b has "Syntax ERROR" in black and "Back" in reverse video. Then, when the enter key 25 or "=" key 26 is pressed in step S35, the first error location "÷×" is selected as the target error location in step S36.
[0058] Then, as shown in FIG. 7(c), the display screen 50c is displayed in steps S37 and S38. The display screen 50c has a series of formulas, including a light gray "6", a first error part (target error part) "÷×" in black, a light gray "6+9", a second black error part "×÷", and a light gray "3". Also, on the display screen 50c, a black cursor "|" is moved to the middle position of the first error part "÷×" and displayed. The cursor "|" is moved to the target error part to be corrected, which moves in order from the front (left) error part to the back (right) error part among all the error parts of the formula.
[0059] Furthermore, the display screen 50c has a light gray "1.÷ 2.×" as a correction candidate corresponding to the first error location "÷×". More specifically, one of the first correction candidate "÷" and the second correction candidate "×" can be selected and input. For example, pressing the down arrow key 22 transitions to a correction candidate selection input mode, the displayed cursor "|" is erased, pressing the right arrow key 23 or the left arrow key 24 activates one correction candidate, and pressing the enter key 25 confirms the selection of the active correction candidate.
[0060] Then, in step S39, as described above, it is assumed that the user presses the down arrow key 22, the right arrow key 23, and the left arrow key 24 to select and input the first correction candidate "÷" corresponding to the first error location (target error location). Then, as shown in FIG. 7(d), in step S40, the display screen 50d is displayed. The display screen 50d has a series of mathematical expressions including a light gray "6", a black first error location "÷×", a light gray "6+9", a dark gray second error location "×÷", and a light gray "3", and has, as selected correction candidates, a black first correction candidate "1.÷" corresponding to the first error location "÷×" and an unselected light gray second correction candidate "2.×". In this way, when focusing on the first error point "÷×" as the target error point, the second error point "×÷" is displayed in dark gray in conjunction with the correction of the black target error point "÷×" to make it clear that it is a different error point from the black target error point "÷×".
[0061] If, in step S39, the user presses the down arrow key 22, the right arrow key 23, or the left arrow key 24 to select and input the second correction candidate "X" corresponding to the first error location (target error location), then in step S40, a display screen 50e is displayed as shown in Fig. 7(e). The display screen 50e has a series of mathematical expressions including a light gray "6", a black first error location "÷X", a light gray "6+9", a dark gray second error location "X÷", and a light gray "3", and has, as selected correction candidates, a light gray second correction candidate "1.÷" that is not selected and a black second correction candidate "2.X" that is selected and corresponds to the first error location "÷X".
[0062] Then, in step S41, the first error point "÷×" in black is corrected to a light gray "÷" by the selected correction candidate "1.÷" and displayed. Then, in step S42, since the error point "×÷" remains, it is determined that there is a syntax error in the displayed formula, and the process proceeds to step S36.
[0063] Similarly, in step S36, the new uncorrected first (old second) error location "×÷" is selected as the target error location. Then, as shown in FIG. 8(a), the display screen 50f is displayed in steps S37 and S38. The display screen 50f has a series of mathematical expressions, including "6÷6+9" in light gray, the first error location "×÷" in black, and "3" in light gray. On the display screen 50f, the target error location "×÷" returns to being displayed in black from the dark gray on the display screen 50d or 50e. Also, on the display screen 50f, the black cursor "|" is moved to the middle position of the first error location "×÷" and displayed.
[0064] Furthermore, the display screen 50f has a light gray "1.x 2.÷" as a correction candidate corresponding to the first error location "×÷". Then, in step S39, the user presses the down arrow key 22, the right arrow key 23, and the left arrow key 24 to select and input the first correction candidate "×". Then, as shown in FIG. 8(b), the display screen 50g is displayed in step S40. The display screen 50g has a series of formulas including a light gray "6÷6+9", the first error location "×÷" in black, and a light gray "3", and has a selected black correction candidate "1.x" corresponding to the first error location "×÷" and an unselected light gray correction candidate "2.÷" as selected correction candidates.
[0065] Then, in step S41, the first black error "×÷" is corrected to "×" and displayed in light gray using the selected correction candidate "1.×". Then, in step S42, since there are no remaining errors, it is determined that there is no syntax error in the displayed formula, and the process moves to step S43. Then, in step S43, a display screen 50h of the calculation result is displayed, as shown in FIG. 8(c). The display screen 50h has the black formula "6÷6+9×3" and the black calculation result "28".
[0066] As described above, according to this modified example, when an error is detected in a formula, CPU 11 displays correction candidates on display unit 14. Therefore, by selecting and inputting a correction candidate, an error in a formula can be easily and reliably corrected while reducing input errors, thereby reducing the burden on the user.
[0067] (Second Modification) A second modified example of the above embodiment will be described with reference to Figs. 9 to 11(d). Fig. 9 is a flow chart showing a third calculation display process. Fig. 10(a) is a diagram showing a display screen 60a of a first specific example. Fig. 10(b) is a diagram showing a display screen 60b of a first specific example. Fig. 10(c) is a diagram showing a display screen 60c of a first specific example. Fig. 10(d) is a diagram showing a display screen 60d of a first specific example. Fig. 10(e) is a diagram showing a display screen 60e of a first specific example. Fig. 10(f) is a diagram showing a display screen 60f of a first specific example. Fig. 11(a) is a diagram showing a display screen 70a. Fig. 11(b) is a diagram showing a display screen 70b. Fig. 11(c) is a diagram showing a display screen 70c. Fig. 11(d) is a diagram showing a display screen 70d.
[0068] In the above embodiment, the configuration was such that the error location was displayed and corrected when the calculation instruction for the input formula was entered, but in this modified example, the error location is displayed and corrected while the formula is being entered (before the calculation instruction is entered).
[0069] As the device configuration of this modified example, the electronic desk calculator 1 is used as in the above embodiment. However, the storage unit 15 stores a third calculation display program for executing a third calculation display process described later, instead of the first calculation display program P1.
[0070] Next, the operation of the electronic desk calculator 1 of this modified example will be described with reference to Figures 9 to 11(d). In the electronic desk calculator 1, for example, when the power key of the function key 20e of the operation unit 12 is pressed to turn the power on, the CPU 11 reads out the third calculation display program from the storage unit 15 and executes the third calculation display process in accordance with the read out third calculation display program.
[0071] 9, first, the CPU 11 accepts an input of a mathematical formula from the user via the operation unit 12, and displays the input mathematical formula in a set color on the display unit 14 (step S51). The set color in step S51 is initially set to black, and then the color set in steps S60 and S61 described later (dark gray or black (if black, all mathematical formulas)) is set.
[0072] Then, the CPU 11 determines whether or not there is a syntax error in the displayed formula (step S52). If there is no syntax error (step S52; NO), the CPU 11 determines whether or not the "=" key 26 has been pressed (step S53). If the "=" key 26 has not been pressed (step S53; NO), the process proceeds to step S51.
[0073] If there is a syntax error (step S52; YES), CPU 11 displays the error parts determined to be syntax errors in step S52 in black on display unit 14, and displays parts other than the error parts in dark gray, which is more subdued than black, on display unit 14 (step S54). There may be not only one error part in the formula, but also multiple errors.
[0074] Then, CPU 11 displays in light gray on display unit 14 a plurality of correction candidates corresponding to the first error location among the error locations displayed in black in step S54 (step S55). CPU 11 then accepts, via operation unit 12, an alternative selection input of the plurality of correction candidates for the formula being displayed in step S55, and determines whether or not a correction candidate has been input (step S56).
[0075] If a correction candidate has been input (step S56; YES), CPU 11 displays the correction candidate selected and input in step S56 in black from among the multiple correction candidates displayed in step S55 on display unit 14 (step S57). CPU 11 then corrects the error portion corresponding to the correction candidate selected and input in step S57 and displays it in dark gray on display unit 14 (step S58).
[0076] Then, CPU 11 determines whether or not there is a syntax error in the formula corrected in step S58 (step S59). If no correction candidate is input (step S56; NO) or if there is a syntax error (step S59; YES), CPU 11 sets dark gray as the setting color of the new formula to be input in step S51 (step S60) and proceeds to step S51. In other words, if there is an error (displayed in black) in the formula in step S60, the characters of the formula newly input in step S51 are displayed in dark gray.
[0077] If there is no syntax error (step S59; NO), CPU 11 sets black as the set color for all formulas displayed during input in step S51 (step S61), and proceeds to step S51. That is, if there is no error in the formula in step S61, all characters in the formulas already input and to be newly input in step S51 are displayed in black.
[0078] If the "=" key 26 is input (step S53; YES), the process proceeds to step S62. Step S62 is similar to step S20 in the first calculation display process in FIG.
[0079] Next, two specific examples of the third calculation display process will be described with reference to Fig. 10(a) to Fig. 11(d). As a first specific example of the third calculation display process, consider a case where, after the start of the third calculation display process, for example, a formula "6÷x" is input in step S51 as shown in Fig. 10(a) and a display screen 60a is displayed on the display unit 14. The display screen 60a has a black formula "6÷x" and a black cursor "|" after the formula. In this formula, "÷x" is a succession of operators and is an error location of a syntax error.
[0080] Then, in step S52, it is determined that there is a syntax error in the displayed formula, and in steps S54 and S55, as shown in Fig. 10(b), display screen 60b is displayed. Display screen 60b shows, as the formula, a "6" in dark gray, which is more restraining than black, a black error location "÷×", and a black cursor "|". In addition, on display screen 60b, since the formula is being entered, the black cursor "|" does not move to the error location and is displayed after the formula.
[0081] Furthermore, the display screen 60b has a light gray correction candidate "Error: 1.÷ 2.×" corresponding to the first error location "÷×". More specifically, one of the first correction candidate "÷" and the second correction candidate "×" can be selected and input.
[0082] Then, in step S56, it is assumed that the first correction candidate "÷" is selected and input by the user pressing the down arrow key 22, the right arrow key 23, and the left arrow key 24. Then, in step S57, the display screen 60c is displayed as shown in Fig. 10(c). The display screen 60c has a light gray "6" and a black error portion "÷×" as a series of mathematical expressions, and has a black "Error:", a selected first correction candidate "1.÷" in black corresponding to the error portion "÷×", and an unselected second correction candidate "2.×" in light gray as selected correction candidates.
[0083] If, in step S56, the user presses the down arrow key 22, the right arrow key 23, or the left arrow key 24 to select and input the second correction candidate "X" corresponding to the error location, then in step S57, a display screen 60d is displayed as shown in Fig. 10(d). The display screen 60d has a light gray "6" and a black error location "÷X" as a series of mathematical expressions, and has a black "Error:", an unselected light gray first correction candidate "1.÷" corresponding to the error location "÷X", and a selected black second correction candidate "2.X" as selected correction candidates.
[0084] Then, as shown in FIG. 10(d), in step S58, a display screen 60e is displayed. The display screen 60e has a series of formulas including a dark gray "6" and a dark gray "÷" after the error has been corrected by the selected correction candidate "1.÷", and has a black cursor "|" after the formula. Then, in step S59, since no error remains, it is determined that there is no syntax error in the displayed formula, and the process proceeds to step S51 via step S61. In step S51, since there is no error, the formula following the formula "6÷", whose setting color was changed to black in step S61, is input and displayed in black. For example, when a number "6" is input as the subsequent formula, the black formula "6÷6" is displayed.
[0085] Then, in step S52, it is determined that there is no syntax error in the displayed formula, and in step S53, when the "=" key 26 is entered, the formula "6÷6" is calculated in step S62, as shown in Fig. 10(f), and a display screen 60f of the calculation result is displayed on the display unit 14. The display screen 60f has the formula "6÷6" in black and the calculation result "1" in black.
[0086] Next, as a second specific example of the third calculation display process, for example, consider the case where a formula (assumed to be the whole formula) of "6÷×6+9×÷3" is input. In the whole formula, the two places where operators "÷×" and "×÷" are consecutive are syntax error locations.
[0087] Of all the above formulas, input up to "6÷" is executed in a loop from steps S51 to S53, where the formula is input and displayed in black. Then, when "×" is input in step S51, the black formula "6÷×" is displayed, and in step S52 it is determined that there is a syntax error in the displayed formula. Then, in step S54, a dark gray "6" and the black (first) error location "÷×" are displayed as a series of formulas, and in step S55, a light gray correction candidate "Error: 1.÷ 2.×" corresponding to the first error location "÷×" is displayed.
[0088] However, assume that no correction candidate is input in step S56. Then, the process moves to step S51 again via step S60, and the formula is displayed as a series of a dark gray "6" and the first error point "÷×" in black, and the light gray correction candidate "Error: 1.÷ 2.×" corresponding to the first error point "÷×" remains displayed.
[0089] Similarly, the loop of steps S51 to S56 and S60 is repeated, and when the final error "3" of all the formulas is input in step S51, display screen 70a is displayed as shown in Fig. 11(a). Display screen 70a has a series of formulas including a dark grey "6", a black first error location "÷×", a dark grey "6+9", a black second error location "×÷", and a dark grey "3", as well as a light grey correction candidate "Error: 1.÷ 2.×" corresponding to the first error location "÷×".
[0090] Then, when the correction candidate "1.÷" corresponding to the first error location "÷×" is input in step S56, the display screen 70b is displayed in step S57 as shown in FIG. 11(b). The display screen 70b has a series of formulas including a dark gray "6", a black first error location "÷×", a dark gray "6+9", a black second error location "×÷", and a dark gray "3", as well as a black "Error:", a selected black correction candidate "1.÷", and an unselected light gray correction candidate "2.×". Then, in step S58, the first error location "÷×" is corrected by the selected correction candidate "1.÷", and the dark gray "6", the dark gray first corrected error location "÷", the dark gray "6+9", the black second error location "×÷", and the dark gray "3" are displayed as a series of formulas.
[0091] However, in step S59, it is determined that there is a syntax error in the displayed formula due to the second error portion "×÷", and the process proceeds to step S51 via step S60. In step S51, the formula being displayed on the display screen does not change, and no correction candidates corresponding to the corrected error portion are displayed.
[0092] If no new input is made in step S51, it is determined in step S52 that the displayed formula contains a syntax error. In step S54, the displayed formula on the display screen remains unchanged, and in step S55, a light gray correction candidate "Error: 1.x 2.÷" corresponding to the second error "×÷" is displayed on the display screen.
[0093] Then, when the first correction candidate "1.×" corresponding to the second error location "×÷" is input in step S56, the display screen 70c is displayed in step S57, as shown in Fig. 11(c). The display screen 70c has a series of formulas including a dark gray "6", a dark gray corrected first error location "÷", a dark gray "6+9", a black second error location "×÷", and a dark gray "3", as well as a black "Error:", the selected black correction candidate "1.×", and an unselected light gray correction candidate "2.÷". Then, in step S58, the second error point, "×÷", is corrected using the selected correction candidate "1.×", and a dark grey "6", the first error point after the correction, "÷", a dark grey "6+9", the second error point after the correction, "×", and a dark grey "3" are displayed as a series of mathematical expressions.
[0094] Then, in step S59, it is determined that there is no syntax error in the displayed formula, and the process proceeds to step S51 via step S61. In step S51, a black "6", the first error point "÷" after the correction in black, a black "6+9", the second error point "×" after the correction in black, and a black "3" are displayed as a series of formulas.
[0095] Then, if no new input is made in step S51, if it is determined in step S52 that there is no syntax error in the displayed formula, and if the "=" key 26 is pressed in step S53, then a calculation result display screen 70d is displayed in step S62, as shown in Fig. 11(d). The display screen 70d has the formula "6÷6+9×3" in black and the calculation result "28" in black.
[0096] As described above, according to this modification, the CPU 11 detects the error location of the formula while the formula is being input. Therefore, the error location can be checked at any time while the formula is being input, and the error location can be grasped and corrected at an early stage of the entire calculation time of the formula (from inputting the formula to displaying the calculation result), and the entire calculation time of the formula can be shortened. In addition, the user can correct the error locations each time they occur or all at once, improving the convenience of correction.
[0097] Furthermore, while inputting a formula, CPU 11 detects an error in the corrected formula based on an input for correcting the error, and if the corrected formula has no errors and an instruction to calculate the corrected formula has been input, CPU 11 calculates the corrected formula and displays the calculation result on display unit 14. Therefore, it is possible to display an accurate calculation result of a formula without errors, and the user can reliably recognize that there are no errors in the formula by visually checking the calculation result.
[0098] In the above example of this modified example, when determining whether a syntax error exists in the formula, the display mode of the error part in the formula is maintained in black, and the display mode of the parts other than the error part is changed to dark gray, which is more restrained than black, but this is not limited to this. For example, after determining whether a syntax error exists in the formula, the display mode of the error part in the formula is changed to a predetermined color (e.g., dark gray), the display mode of the parts other than the error part is changed to, for example, black, and multiple correction candidates corresponding to the error part are displayed, and after selecting and inputting the correction candidates via the operation unit 12, the display mode of the error part in the formula is maintained in the predetermined color (dark gray), and the display mode of the parts other than the error part is changed to a display mode (e.g., light gray) that is more restrained than the predetermined color (dark gray).
[0099] In the above description, an example has been disclosed in which the storage unit 15 (ROM) is used as a computer-readable medium for the program according to the present invention, but the present invention is not limited to this example. As other computer-readable media, non-volatile memories such as flash memories and portable recording media such as CD-ROMs can be applied. In addition, carrier waves can also be applied to the present invention as a medium for providing data of the program according to the present invention via a communication line.
[0100] The description in the above embodiment is an example of the input support device, the input support method, and the program according to the present invention, and is not limited thereto. For example, at least two of the above embodiment, the first and second modified examples may be appropriately combined.
[0101] In the above embodiment and modified example, when an error part in a formula is detected, the display mode of the error part is maintained as a contrast of the characters against a white background, and the contrast of other parts other than the error part is lower than the contrast of the error part, but this is not limited to this. For example, when the display unit 14 displays information (characters) on a black background, the display mode of the error part may be maintained as a contrast of the characters against the black background (the difference in the display density of the characters against the black background), and the contrast of other parts other than the error part may be lower than the contrast of the error part (for example, the characters of the error part are white on a black background, and the characters of other parts are gray on a black background).
[0102] The display mode of the error part of the formula to be maintained may be the thickness of the characters to be displayed (referred to as the display thickness), and the display thickness of the other parts other than the error part may be thinner than the display thickness of the error part. The display mode of the error part of the formula to be maintained may be the size of the characters to be displayed (referred to as the display size), and the display size of the characters of the other parts other than the error part may be smaller than the display size of the characters of the error part. The display mode of the error part of the formula to be maintained may be the font of the characters to be displayed (referred to as the display font), and the display font of the characters of the other parts other than the error part may be more restrained than the display font of the characters of the error part (for example, a font of a type having a smaller number of black dots for the same characters). In addition, when the display unit 14 of the electronic desk calculator 1 is capable of displaying color display information, the display mode of the error part of the formula to be maintained may be the display color of the characters to be displayed (referred to as the color display color), and the color display color of the characters of the other parts other than the error part may be more restrained than the color display color of the characters of the error part (for example, a dark color).
[0103] In the above embodiment and modified example, the input support device is configured to use the electronic desk calculator 1, which is a scientific calculator, but the present invention is not limited to this. The input support device may be any device that can input and display a mathematical expression and control the display mode, and other input support devices such as a normal electronic desk calculator, a portable device other than an electronic desk calculator, or a stationary information processing device may be used.
[0104] Although the embodiments and modifications of the present invention have been described, the scope of the present invention is not limited to the above-described embodiments and modifications, but includes the scope of the invention described in the claims and its equivalents. The inventions described in the claims originally attached to this application are set forth below. The claim numbers in the appended claims are the same as those in the claims originally attached to this application. [Additional Notes] <Claim 1> A detection means for detecting an error in an input formula; a display control means for, when an error is detected by the detection means, switching the display mode of the error portion to a suppressed display mode while maintaining the display mode of the error portion; An input support device comprising: <Claim 2> the display control means displays correction candidates when an error location is detected by the detection means; 2. The input support device according to claim 1, <Claim 3> the detection means detects an error in the input mathematical expression when an instruction to execute the mathematical expression is input; 3. The input support device according to claim 1, wherein the input support device is a device that supports an input of a plurality of input signals. <Claim 4> The detection means detects an error location in the formula corrected based on the input of the correction of the error location, the display control means, when there is no error in the corrected formula, performs an operation on the corrected formula and displays a result of the operation. 4. The input support device according to claim 3, <Claim 5> The detection means detects an error in the formula during input of the formula. 3. The input support device according to claim 1, wherein the input support device is a device that supports an input of a plurality of input signals. <Claim 6> The detection means detects an error portion of the formula corrected based on an input of a correction of the error portion during input of the formula, the display control means, when the corrected formula has no error and an instruction to calculate the corrected formula has been input, calculates the corrected formula and displays a result of the calculation. 6. The input support device according to claim 5, <Claim 7> The display aspect is contrast, The contrast of the other portion is lower than the contrast of the error portion. 3. The input support device according to claim 1, wherein the input support device is a device that supports an input of a plurality of input signals. <Claim 8> A detection step of detecting an error in an input formula; a display control step of, when an error portion is detected in the detection step, switching the display mode of the other portions in the formula to a suppressed display mode while maintaining the display mode of the error portion; An input assistance method comprising: <Claim 9> Computer, A detection means for detecting an error in an input formula; a display control means for, when an error portion is detected by the detection means, switching the display mode of the other portions in the formula to a suppressed display mode while maintaining the display mode of the error portion; A program to function as a [Explanation of symbols]
[0105] 1. Electronic desk calculator 11 CPU 12 Control section 20a Numeric keypad 20b Calculation key 20c Modification Key 20d Function keys 21 Up Arrow 22 Down Arrow 23 Right Arrow Key 24 Left Arrow Key 25 Confirmation key 26 = key 20e Function Key 13 RAM 14 Display section 15 Storage section 16 Bus
Claims
1. A detection means for detecting an error in an input formula; a display control means for, when an error portion is detected by the detection means, displaying a cursor indicating an input position at a position corresponding to the error portion, displaying a correction candidate corresponding to the error portion on a line different from the mathematical formula, and lowering the display contrast of other portions in the mathematical formula while maintaining the display contrast of the error portion in the mathematical formula; Equipped with The display control means by bringing the display density of the formula in the other portion closer to the display density of the background of the formula without changing the display density of the background of the formula and the display density of the formula in the error portion, while maintaining the display contrast of the error portion and lowering the display contrast of the other portion; and while the cursor is being displayed at the position corresponding to the error portion, the display contrast of the correction candidate is lowered further than the display contrast of the other portions in the formula so that the correction candidate can be identified as being in a non-selected state.
13. An input support device comprising:
2. when the display control means displays the cursor at a position corresponding to the error portion, the display control means displays the cursor with a higher display contrast than the other portions where the display contrast has been reduced.
2. The input support device according to claim 1,
3. The detection means detects an error in the formula while the formula is being input.
3. The input support device according to claim 1, wherein the input support device is a device that supports an input of a plurality of input signals.
4. An input assistance method executed by an input assistance device, comprising: A detection step of detecting an error in an input formula; a display control step of, when an error portion is detected in the detection step, displaying a cursor indicating an input position at a position corresponding to the error portion, displaying a correction candidate corresponding to the error portion on a line different from the mathematical formula, and lowering the display contrast of other portions in the mathematical formula while maintaining the display contrast of the error portion in the mathematical formula; Including, The display control step includes: by bringing the display density of the formula in the other portion closer to the display density of the background of the formula without changing the display density of the background of the formula and the display density of the formula in the error portion, while maintaining the display contrast of the error portion and lowering the display contrast of the other portion; and while the cursor is being displayed at the position corresponding to the error portion, the display contrast of the correction candidate is lowered further than the display contrast of the other portions in the formula so that the correction candidate can be identified as being in a non-selected state.
13. An input assistance method comprising:
5. A computer comprising: A detection means for detecting an error in an input formula; a display control means for, when an error portion is detected by said detection means, displaying a cursor indicating an input position at a position corresponding to said error portion, displaying correction candidates corresponding to said error portion on a line different from said formula, and lowering the display contrast of other portions in said formula while maintaining the display contrast of said error portion in said formula; Function as a The display control means by bringing the display density of the formula in the other portion closer to the display density of the background of the formula without changing the display density of the background of the formula and the display density of the formula in the error portion, while maintaining the display contrast of the error portion and lowering the display contrast of the other portion; and while the cursor is being displayed at the position corresponding to the error portion, the display contrast of the correction candidate is lowered further than the display contrast of the other portions in the formula so that the correction candidate can be identified as being in a non-selected state. A program characterized by:
Citation Information
Patent Citations
Method and device for displaying abnormal state of control and monitor system
JP1998187233A
Electronic computer and program therefor
JP2011107772A
Electronic calculation apparatus and program
JP2011180710A
Electronic calculator and program
JP2011186567A
Arithmetic unit and program
JP2011186771A
