A method and device for processing pages
By starting a custom soft keyboard for the elderly mode in the Internet application of smartphones, using tile display and maximum character font size, the problem of input difficulties and high error rate caused by small characters on the soft keyboard is solved, and the input experience of elderly users is improved .
Patent Information
- Application Number
- CN202110374729.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-08
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-04-08
AI Technical Summary
The soft keyboards of existing Internet applications are fixed in size on smartphones, resulting in small characters display, increasing the error rate and difficulty of input text for elderly users, especially those with vision loss, and affecting the user experience.
When judging that the page is in the elderly mode, start the custom soft keyboard, use the tile display method to determine the soft keyboard size based on the full screen size of the screen, and calculate the maximum character font size in the display area to reduce the difficulty and error rate of input text.
It improves the input experience of elderly users, reduces the input text error rate, and enhances the convenience of users with vision loss.
Smart Images

Figure CN112965781B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing pages. Background Art
[0002] With the development and popularization of Internet technology, Internet applications running on smartphones have become an essential tool in people's daily lives. Therefore, the user experience of using Internet applications has become an issue that needs to be focused on when developing Internet applications.
[0003] Currently, the development of Internet applications is often aimed at all users. When users need to enter text on a page, the size of the soft keyboard launched by the application is relatively fixed, often occupying less than 50% of the screen. Given the limited screen size of a smartphone, the display size of the characters contained in the soft keyboard is small, and when switching input methods or character categories, such as switching between numbers, letters, special characters, full-width characters, half-width characters, etc., multiple steps need to be performed on the soft keyboard to complete the operation, which affects the user experience of some elderly users, especially elderly users with impaired vision. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method and device for processing a page, which can start a custom soft keyboard when it is determined that the application mode of the page is the elderly mode. The custom soft keyboard uses a tiled display method and does not need to be switched for input method or character category changes, which greatly reduces the difficulty of inputting Chinese text and improves the user experience of some elderly users. By determining the size of the custom soft keyboard based on the full screen size of the screen and calculating the maximum font size of the characters displayed in the display area of the custom soft keyboard, the problems of high error rate and poor experience in inputting text due to small font size of the characters are overcome, and the user experience of elderly users with impaired vision is improved.
[0005] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a method for processing a page is provided, characterized in that it includes: in response to an instruction to display a page, obtaining an application mode included in an application to which the page belongs, and judging whether the application mode corresponding to the page is an elderly mode; in the case where it is judged that the application mode corresponding to the page is an elderly mode, in response to an input text instruction received by the page, starting an input page, the input page including a custom soft keyboard corresponding to the elderly mode, so as to input text in the input page using the custom soft keyboard.
[0006] Optionally, the method for processing pages is characterized in that, in response to an input text instruction received by the page, an input page is started, and the input page includes a custom soft keyboard corresponding to the elderly mode, including: in response to the input text instruction received by the page, obtaining the screen size displaying the input page, obtaining the custom soft keyboard of the elderly mode corresponding to the screen size, and starting the custom soft keyboard.
[0007] Optionally, the method for processing a page is characterized by further comprising:
[0008] Acquiring the custom soft keyboard for the elderly mode corresponding to the screen size further includes: before acquiring the custom soft keyboard for the elderly mode corresponding to the screen size, constructing a custom soft keyboard corresponding to the screen size.
[0009] Optionally, the method for processing a page is characterized in that:
[0010] Constructing a custom soft keyboard corresponding to the screen size, including: calculating the size of the custom soft keyboard corresponding to the screen size according to the screen size and a set ratio; and determining the size of a text box displayed on the input page with the custom soft keyboard, so that the sum of the size of the custom soft keyboard and the size of the text box is not greater than the screen size.
[0011] Optionally, the method for processing a page is characterized in that:
[0012] Construct a custom soft keyboard corresponding to the screen size, including:
[0013] Construct one or more display areas included in the custom soft keyboard, the characters displayed in the display areas include letters, numbers and set type symbols, and the one or more display areas are displayed in a tiled form; based on the layout of the custom soft keyboard, calculate the size of the one or more tiled display areas.
[0014] Optionally, the method for processing a page is characterized in that:
[0015] Constructing a custom soft keyboard corresponding to the screen size further includes:
[0016] When constructing the letters included in the custom soft keyboard, the display order of each letter in the display area of the custom soft keyboard is determined based on the spelling rules of Chinese pinyin.
[0017] Optionally, the method for processing a page is characterized by further comprising:
[0018] Based on the calculated sizes of the one or more display areas, the sizes of the characters contained in the display areas are calculated; calculating the sizes of the characters contained in the display areas includes: obtaining the area sizes of each display area, calculating the display range of each character displayed in the display area based on the area sizes, determining the maximum value of the character font size corresponding to the character within the display range based on the display range, and displaying the characters corresponding to the character font size of the maximum value in each display area.
[0019] To achieve the above object, according to a second aspect of an embodiment of the present invention, a client for processing pages is provided, characterized in that it includes: an application mode determination module and a custom soft keyboard module; wherein:
[0020] The application mode determination module is used to respond to the instruction of displaying a page, obtain the application mode included in the application to which the page belongs, and determine whether the application mode corresponding to the page is the elderly mode;
[0021] The custom soft keyboard module is used to start an input page in response to an input text instruction received by the page when it is determined that the application mode corresponding to the page is the elderly mode, and the input page includes a custom soft keyboard corresponding to the elderly mode, so as to input text in the input page using the custom soft keyboard.
[0022] Optionally, the client for processing the page is characterized in that, in response to an input text instruction received by the page, an input page is started, and the input page contains a custom soft keyboard corresponding to the elderly mode, including: in response to the input text instruction received by the page, obtaining the screen size for displaying the input page, obtaining the custom soft keyboard for the elderly mode corresponding to the screen size, and starting the custom soft keyboard.
[0023] Optionally, the client for processing pages is characterized by further comprising:
[0024] Acquiring the custom soft keyboard for the elderly mode corresponding to the screen size further includes: before acquiring the custom soft keyboard for the elderly mode corresponding to the screen size, constructing a custom soft keyboard corresponding to the screen size.
[0025] Optionally, the client for processing the page is characterized in that:
[0026] Constructing a custom soft keyboard corresponding to the screen size, including: calculating the size of the custom soft keyboard corresponding to the screen size according to the screen size and a set ratio; and determining the size of a text box displayed on the input page with the custom soft keyboard, so that the sum of the size of the custom soft keyboard and the size of the text box is not greater than the screen size.
[0027] Optionally, the client for processing the page is characterized in that:
[0028] Construct a custom soft keyboard corresponding to the screen size, including:
[0029] Construct one or more display areas included in the custom soft keyboard, the characters displayed in the display areas include letters, numbers and set type symbols, and the one or more display areas are displayed in a tiled form; based on the layout of the custom soft keyboard, calculate the size of the one or more tiled display areas.
[0030] Optionally, the client for processing the page is characterized in that:
[0031] Constructing a custom soft keyboard corresponding to the screen size further includes:
[0032] When constructing the letters included in the custom soft keyboard, the display order of each letter in the display area of the custom soft keyboard is determined based on the spelling rules of Chinese pinyin.
[0033] Optionally, the client for processing pages is characterized by further comprising:
[0034] Based on the calculated sizes of the one or more display areas, the sizes of the characters contained in the display areas are calculated; calculating the sizes of the characters contained in the display areas includes: obtaining the area sizes of each display area, calculating the display range of each character displayed in the display area based on the area sizes, determining the maximum value of the character font size corresponding to the character within the display range based on the display range, and displaying the characters corresponding to the character font size of the maximum value in each display area.
[0035] To achieve the above-mentioned purpose, according to the third aspect of an embodiment of the present invention, there is provided an electronic device for processing pages, characterized in that it includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described in the above-mentioned methods for processing pages.
[0036] To achieve the above-mentioned purpose, according to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any method as described in the above-mentioned method for processing a page is implemented.
[0037] One embodiment of the above invention has the following advantages or beneficial effects: it is possible to start a custom soft keyboard when it is determined that the application mode corresponding to the page is the elderly mode. The custom soft keyboard uses a tiled display method and does not need to be switched for input method or character category changes, which greatly reduces the difficulty of inputting Chinese text and improves the user experience of some elderly users; by determining the size of the custom soft keyboard based on the full screen size of the screen, and calculating the maximum font size of the characters displayed in the display area of the custom soft keyboard, the problems of high error rate and poor experience in inputting text caused by the small font size of the soft keyboard characters are overcome, and the user experience of elderly users with impaired vision is improved.
[0038] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0040] Figure 1 It is a flowchart of a method for processing pages provided by an embodiment of the present invention;
[0041] Figure 2A is a schematic diagram of an input page provided by an embodiment of the present invention;
[0042] Figure 2B is a schematic diagram of an existing input page provided by an embodiment of the present invention;
[0043] Figure 3A is a schematic diagram of a custom soft keyboard in an input page provided by an embodiment of the present invention;
[0044] Figure 3B is a schematic diagram of another customized soft keyboard in an input page provided by an embodiment of the present invention;
[0045] Figure 4 is a schematic diagram of another customized soft keyboard in an input page provided by an embodiment of the present invention;
[0046] Figure 5 It is a structural diagram of a client for processing pages provided by an embodiment of the present invention;
[0047] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0048] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0050] like Figure 1 As shown, an embodiment of the present invention provides a method for processing a page, which may include the following steps:
[0051] Step S101: in response to an instruction to display a page, obtain an application mode included in the application to which the page belongs; and determine whether the application mode corresponding to the page is an elderly mode.
[0052] Specifically, the display page can be any page contained in any application. After receiving the instruction to display the page, the application mode contained in the application to which the page belongs is obtained, wherein the application mode can be youth mode, senior mode, normal mode, etc.; wherein the default display mode can be normal mode; the application mode options can be displayed when the application starts the page for the user to choose, for example: the user can choose senior mode, youth mode, normal mode, etc. before entering the application, or the user can add the "senior mode" option in the settings menu of the application to allow the user to set the application mode after starting the application; further, after receiving the instruction to display the page, the currently set application mode corresponding to the instruction is obtained to determine whether the application mode contained in the application to which the page to be displayed belongs is senior mode.
[0053] At present, some applications have launched youth modes to control the content and format of page display using different modes; however, there is currently a lack of application modes for elderly users with impaired vision and insufficient experience in using smartphones. Although the application may include the function of adjusting the display font to a large font, it lacks the function of adjusting the font size for the soft keyboard; for the elderly mode, the application can be designed to automatically enlarge the character size of the text, or automatically set the displayed text font size to the maximum, etc. The present invention does not limit the specific content and form of the elderly mode. At present, the soft keyboard size used by most Internet applications running on mobile phones is relatively fixed, for example Figure 2B A schematic diagram of a page of a soft keyboard used in an existing application is shown in FIG. Figure 2BAs shown, the soft keyboard in the page occupies less than 50% of the screen. When the screen of a smart phone is limited, the display size of the characters contained in the soft keyboard is small; therefore, the user experience of elderly users with impaired vision is affected, and the error rate and input speed of the elderly using this type of soft keyboard to input text are increased; and most existing soft keyboard input method switching and character switching require multiple steps to complete, which increases the operation difficulty of some elderly users and affects the user experience. In view of this, the present invention provides a method for constructing a custom soft keyboard. Specifically, the description of constructing a custom soft keyboard is consistent with the description of step S102, and will not be repeated here.
[0054] Step S102: when it is determined that the application mode corresponding to the page is the elderly mode, in response to the input text instruction received by the page, starting an input page, the input page including a custom soft keyboard corresponding to the elderly mode, so that text can be input in the input page using the custom soft keyboard
[0055] Specifically, when the user needs to input text on any page in the application during the use of the application, the input page corresponding to the elderly mode is started, that is, the input page corresponding to the elderly mode is started, and the input page includes a custom soft keyboard corresponding to the elderly mode, so that text can be input in the input page using the custom soft keyboard. Among them, starting the input page can trigger the input text instruction when the user performs a page operation on the corresponding page, for example, clicking a component, dragging a component, etc. Among them, starting the input page corresponding to the elderly mode, and the input page includes a custom soft keyboard corresponding to the elderly mode, includes: obtaining the screen size of the input page, obtaining the custom soft keyboard of the elderly mode corresponding to the screen size, and starting the custom soft keyboard. Specifically, by obtaining the screen size of the input page, the corresponding custom soft keyboard is selected according to the screen size to obtain the custom soft keyboard corresponding to the size of the page, wherein the set of custom soft keyboards includes custom soft keyboards corresponding to the elderly mode for each existing screen size.
[0056] There are two ways to obtain the custom soft keyboard for the elderly mode corresponding to the screen size:
[0057] The first method: the client obtains from the server, the server contains a set of custom soft keyboards corresponding to the elderly mode, and the client selects a custom soft keyboard corresponding to the elderly mode from the set of custom soft keyboards according to its own screen size; currently, the screen size of mobile phones is in the range of 4.5 to 7 inches, so a custom soft keyboard can be built for each screen size. The method for building a custom soft keyboard can build a template of a custom soft keyboard, and based on the proportional relationship between the screen sizes, the template is scaled in a corresponding proportion to build multiple custom soft keyboards corresponding to the screen sizes.
[0058] The second method: the client locally stores the custom soft keyboard for the elderly mode, that is, obtains the custom soft keyboard for the elderly mode corresponding to the screen size from the client.
[0059] Furthermore, before obtaining the custom soft keyboard for the elderly mode corresponding to the screen size, a custom soft keyboard corresponding to the screen size is constructed. Specifically, constructing the custom soft keyboard corresponding to the screen size includes: calculating the size of the custom soft keyboard corresponding to the screen size according to the screen size and the set ratio; and determining the size of the text box displayed on the input page with the custom soft keyboard, so that the sum of the size of the custom soft keyboard and the size of the text box is not greater than the screen size. For example: Figure 2A In the schematic diagram of the three screen sizes (screen size 1, screen size 2, screen size 3) shown, for each screen size example, a set ratio can be used, for example: the size of the custom soft keyboard accounts for 85% of the screen size, and the text box accounts for 15% of the screen size; that is, the page includes a custom soft keyboard and a text box, that is, the sum of the size of the custom soft keyboard and the size of the text box is not greater than the screen size; the present invention does not limit the value of the set ratio. It can be understood that the display range and size of the custom soft keyboard are expanded by utilizing the full-screen display of the input page, and the display size of the characters contained in the soft keyboard is expanded by expanding the size of the custom soft keyboard, so as to improve the user experience of elderly people with impaired vision. Among them, the method of obtaining the screen size can be by obtaining the screen width and height. For the screen width: for example, it is obtained by obtaining the following values:
[0060] window.innerWidth or document.documentElement.clientWidth or document.body.clientWidth;
[0061] For screen height: For example, get the following value:
[0062] window.innerHeight or document.documentElement.clientHeight or document.body.clientHeight
[0063] Furthermore, constructing a custom soft keyboard corresponding to the screen size includes: constructing one or more display areas included in the custom soft keyboard, wherein the characters displayed in the display areas include letters, numbers, and set symbols, and the one or more display areas are displayed in a tiled form; and calculating the size of the one or more tiled display areas based on the layout of the custom soft keyboard. Figure 3A Take the input page and the diagram of the custom soft keyboard as an example. Figure 3A The custom soft keyboard shown in FIG. 1 includes a display area 301 and a display area 302, that is, the custom soft keyboard includes one or more display areas; further, as shown in FIG. Figure 3A As shown, the display area 301 includes letters and symbols, and the display area 302 includes numbers and symbols, that is, the characters displayed in the display area include letters, numbers and set type symbols; Figure 3A As shown, each display area is displayed in a tiled manner, that is, displayed on one page. The input method is the default Pinyin input method. There is no need to switch between multiple pages of the soft keyboard multiple times to input Chinese, numbers, common symbols, etc., which greatly improves the usability of the custom soft keyboard and improves the user experience of some elderly users. It is understandable that the layout of the input page can be vertical, such as Figure 3A The schematic diagram shown in FIG. 1 can also be horizontal, such as Figure 3B The present invention does not limit the specific layout of the input page.
[0064] Furthermore, constructing the custom soft keyboard corresponding to the screen size further includes: when constructing the letters included in the custom soft keyboard, based on the spelling rules of Chinese pinyin, determining the display order of each letter in the display area of the custom soft keyboard. Specifically, based on the spelling rules of Chinese pinyin, the method of determining the display order of each letter in the display area of the custom soft keyboard at least includes:
[0065] 1) Determine the display order of letters by using the display order of the Chinese Pinyin initial consonant table and the final consonant table; wherein, the order of the Pinyin initial consonant table is: b, p, m, f, d, t, n, l, g, k, h, j, q, x, zh, ch, sh, r, z, c, s, y, w. The final consonant table contains 6 single vowels: a, o, e, i, u, v; combined with the 26 letters of the English alphabet, determine the display order of letters, as shown in Figure 3. It is understandable that for some elderly people, compared with the order of letters in the existing QWERT soft keyboard, using the order of Pinyin can increase the speed of finding letters in the soft keyboard, and improve the speed and ease of inputting text.
[0066] 2) According to the frequency of use of Chinese, the order of letters contained in the pinyin of high-frequency words is obtained to determine the display order of the letters. For example, from the frequency statistics table of commonly used Chinese characters in modern Chinese, the top 2500 most commonly used Chinese characters are obtained, and the letter combinations contained in the pinyin of each Chinese character are obtained. After statistics, the order of letters with high frequency of occurrence from high to low is: i, n, a, e, u, h, g, o, d, z, y, s, j, l, x, b, c, t, w, m, q, r, f, k, p, v; from the perspective of appearing in the first position of the pinyin letter combination, the frequency order obtained from high to low is: d, z, y, s, j, l, x, g, b, h, c, t, w, m, q, f, r, n, k, p, e, a, o, i, u, v; combining the above two orders to determine an implementation example of the order of letters in the custom keyboard Figure 4 Using the order of the pinyin of high-frequency words can improve the speed and ease of text input.
[0067] Furthermore, based on the calculated sizes of the one or more display areas, the sizes of the characters contained in the display areas are calculated; calculating the sizes of the characters contained in the display areas includes: obtaining the area sizes of each display area, calculating the display range of each character displayed in the display area based on the area sizes, determining the maximum value of the character font size corresponding to the character within the display range based on the display range, and displaying the characters corresponding to the character font size of the maximum value in each display area.
[0068] Specifically, Figure 3ATake the custom soft keyboard shown in as an example, as shown in display 301, obtain the area size of the display area, for example: the area size of the display area 301 is 256 in length and 160 in height; assuming that the display area 301 contains 28 characters to be displayed, including 26 letters and 2 characters; then calculate the display range of each character based on the number of displayed characters, assuming that after calculation, the display range of a single character in the display area is 33*33, and after calculation, the corresponding character font size is determined to be 24 according to the pixel 32px. It can be understood that the method for determining the maximum font size is not greater than any one of the length or width of the display range of a single character, that is, calculate the maximum font size within a fixed display range; that is, based on the display range, determine the maximum value of the character font size corresponding to the character within the display range; use the maximum value to maximize the size of the characters (letters, numbers, etc.) displayed within the display range to improve the user experience of elderly people with impaired vision. It can be understood that letters, numbers, and symbols can use the same font size or different font sizes. For example: the font size used by symbols is larger than the font size of letters. The user experience is improved by displaying the soft keyboard in full screen mode, using uppercase letters, and displaying the maximum font size of the characters to the greatest extent possible.
[0069] Furthermore, constructing a custom soft keyboard corresponding to the screen size may also include: constructing one or more function buttons contained in the custom soft keyboard, so as to execute any one or more operations of confirming the completion of input text, deleting the input text, exiting the soft keyboard, and custom functions through the function buttons. Specifically, the current page usually uses an "X" mark on the top side of the page for the exit function, which is difficult for elderly people with impaired vision to recognize. Therefore, the following can be added to the custom soft keyboard: Figure 3A , Figure 3B , Figure 4 The multiple function buttons shown have clear meanings on the button labels, for example: clicking the "Finish" button means completing the Chinese input; clicking the "Exit" button means exiting the current input page; clicking "Delete" is used to delete the input Chinese text. Custom function buttons can also be added, for example, "Switch" means switching from the current custom soft keyboard in the elderly mode to the soft keyboard in the normal mode to input special characters, English words, etc. that are not included in the current custom soft keyboard. By adding one or more function buttons, the user experience of some elderly people using the input page and the custom soft keyboard in the elderly mode is improved.
[0070] Among them, the method of developing input pages and custom soft keyboards can be implemented using native methods combining HTML (HyperTextMark-up Language), CSS (Cascading Style Sheets), and JavaScript tools, or can be implemented in combination with third-party development frameworks such as VUE and REACT. The Chinese input through the custom input keyboard can be associated with a third-party Chinese character library using a custom virtual keyboard, thereby realizing the operation of generating Chinese by inputting letters representing pinyin. The present invention does not limit the specific methods, program languages, and tools for developing input pages and custom soft keyboards.
[0071] like Figure 5 As shown, the embodiment of the present invention provides a client 500 for processing pages, including: an application mode determination module 501 and a custom soft keyboard module 502; wherein,
[0072] The application mode determination module 501 is used to obtain the application mode included in the application to which the page belongs in response to the instruction of displaying the page; and determine whether the application mode corresponding to the page is the elderly mode;
[0073] The custom soft keyboard module 502 is used to start an input page in response to an input text instruction received by the page when it is determined that the application mode corresponding to the page is the elderly mode, and the input page includes a custom soft keyboard corresponding to the elderly mode, so as to input text in the input page using the custom soft keyboard.
[0074] An embodiment of the present invention also provides an electronic device for processing pages, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in any of the above embodiments.
[0075] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method provided in any of the above embodiments is implemented.
[0076] Figure 6 An exemplary system architecture 600 is shown to which the method for processing pages or the apparatus for processing pages according to the embodiments of the present invention can be applied.
[0077] like Figure 6As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0078] Users can use terminal devices 601, 602, 603 to interact with server 605 through network 604 to receive or send messages, etc. Various client applications can be installed on terminal devices 601, 602, 603, such as electronic shopping mall client applications, web browser applications, search applications, instant messaging tools, and email clients.
[0079] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting various client applications, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0080] The server 605 may be a server providing various services, such as a background management server providing support for client applications used by users using the terminal devices 601, 602, and 603. The background management server may process the received display page request and feed back the page information required by the page to the terminal device.
[0081] It should be noted that the method for processing pages provided in the embodiment of the present invention is generally executed by the terminal devices 601 , 602 , and 603 . Accordingly, the client for processing pages is generally disposed in the terminal devices 601 , 602 , and 603 .
[0082] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0083] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0084] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0085] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0086] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.
[0087] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0088] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0089] The modules and / or units involved in the embodiments of the present invention may be implemented by software or hardware. The modules and / or units described may also be provided in a processor. For example, they may be described as follows: a processor includes an application mode determination module and a custom soft keyboard module. The names of these modules do not, in certain cases, constitute limitations on the modules themselves. For example, the application mode determination module may also be described as a "module for determining whether the application mode is an elderly mode based on the application mode corresponding to the page."
[0090] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: in response to an instruction to display a page, obtaining an application mode included in the application to which the page belongs, and determining whether the application mode corresponding to the page is an elderly mode; in the case where it is determined that the application mode corresponding to the page is an elderly mode, in response to an input text instruction received by the page, starting an input page, the input page including a custom soft keyboard corresponding to the elderly mode, so as to input text in the input page using the custom soft keyboard.
[0091] An embodiment of the present invention can start a custom soft keyboard when it is determined that the application mode corresponding to the page is the elderly mode. The custom soft keyboard uses a tiled display method and does not need to be switched for input method or character category changes, which greatly reduces the difficulty of inputting Chinese text and improves the user experience of some elderly users. The size of the custom soft keyboard is determined based on the screen size, and the maximum font size of the characters displayed in the display area of the custom soft keyboard is calculated, which overcomes the problems of high error rate and poor experience in inputting text due to the small font size of the soft keyboard characters, and improves the user experience of elderly users with impaired vision.
[0092] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing a page, characterized in that: include: In response to an instruction to display a page, obtaining an application mode included in an application to which the page belongs, and determining whether the application mode corresponding to the page is an elderly mode; In the case where it is determined that the application mode corresponding to the page is the elderly mode, in response to the input text instruction received by the page, an input page is started, the input page including a custom soft keyboard corresponding to the elderly mode, so as to input text in the input page using the custom soft keyboard; In case that the application mode is an elderly mode, the method further includes: Constructing a plurality of display areas included in the custom soft keyboard, wherein the characters displayed in the display areas include letters, numbers, and set type symbols, and the plurality of display areas are displayed in a tiled form; When constructing the letters included in the custom soft keyboard, the display order of the letters is determined according to the display order of the initial consonant table and the final consonant table of Chinese pinyin; wherein, the display order of the letters is determined in combination with the order of the initial consonant table of pinyin b, p, m, f, d, t, n, l, g, k, h, j, q, x, zh, ch, sh, r, z, c, s, y, w, the 6 single vowels a, o, e, i, u, v included in the final consonant table and the 26 letters of English; According to the screen size and the set ratio, the size of the custom soft keyboard corresponding to the screen size is calculated, based on the layout of the custom soft keyboard, the size of one or more tiled display areas is calculated, and based on the calculated size of the one or more display areas, the size of the characters contained in the display areas is calculated; wherein calculating the size of the characters contained in the display areas includes: obtaining the area size of each display area, calculating the display range of each character displayed in the display area based on the area size, determining the maximum value of the character font size corresponding to the character in the display range based on the display range, and displaying the character corresponding to the character font size of the maximum value in each display area; Construct one or more function buttons included in the custom soft keyboard to perform any one or more operations of confirming the completion of input text, deleting the input text, exiting the soft keyboard, and custom functions through the function buttons; the label of each function button has a clear meaning.
2. The method according to claim 1, characterized in that In response to the input text instruction received by the page, an input page is started, wherein the input page includes a custom soft keyboard corresponding to the elderly mode, including: In response to an input text instruction received by the page, the screen size displaying the input page is obtained, the custom soft keyboard of the elderly mode corresponding to the screen size is obtained, and the custom soft keyboard is started.
3. The method according to claim 2, characterized in that Further including: Acquiring the custom soft keyboard for the elderly mode corresponding to the screen size further includes: before acquiring the custom soft keyboard for the elderly mode corresponding to the screen size, constructing a custom soft keyboard corresponding to the screen size.
4. The method according to claim 3, characterized in that Construct a custom soft keyboard corresponding to the screen size, including: According to the screen size and the set ratio, the size of the custom soft keyboard corresponding to the screen size is calculated; and the size of the text box displayed on the input page with the custom soft keyboard is determined so that the sum of the size of the custom soft keyboard and the size of the text box is not greater than the screen size.
5. A client for processing a page, characterized in that: include: Determine the application mode module and the custom soft keyboard module; wherein, The application mode determination module is used to respond to the instruction of displaying a page, obtain the application mode included in the application to which the page belongs, and determine whether the application mode corresponding to the page is the elderly mode; The custom soft keyboard module is used to start an input page in response to an input text instruction received by the page when it is determined that the application mode corresponding to the page is the elderly mode, wherein the input page includes a custom soft keyboard corresponding to the elderly mode, so as to input text in the input page using the custom soft keyboard; The custom soft keyboard module is further used to construct multiple display areas included in the custom soft keyboard, and the characters displayed in the display areas include letters, numbers and set types of symbols, and the multiple display areas are displayed in a tiled form; when constructing the letters included in the custom soft keyboard, the display order of the letters is determined according to the display order of the initial consonant table and the final vowel table of Chinese pinyin; wherein, the display order of the letters is determined in combination with the order of the initial consonant table of pinyin b, p, m, f, d, t, n, l, g, k, h, j, q, x, zh, ch, sh, r, z, c, s, y, w, the 6 single vowels a, o, e, i, u, v included in the final vowel table and the 26 letters of English; for the case where the application mode is the elderly mode, the custom soft keyboard module is further used to calculate the size of the custom soft keyboard corresponding to the screen size according to the screen size and the set ratio, Based on the layout of the custom soft keyboard, the size of one or more tiled display areas is calculated, and based on the calculated size of one or more display areas, the size of the characters contained in the display areas is calculated; wherein, calculating the size of the characters contained in the display areas includes: obtaining the area size of each display area, calculating the display range of each character displayed in the display area based on the area size, determining the maximum value of the character font size corresponding to the character within the display range based on the display range, and displaying the character corresponding to the maximum value character font size in each display area; constructing one or more function buttons contained in the custom soft keyboard, so as to execute any one or more operations of confirming the completion of input text, deleting the input text, exiting the soft keyboard, and custom functions through the function buttons; the label of each function button has a clear meaning.
6. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
7. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
