CN112965781A - Method and device for processing page - Google Patents

Method and device for processing page Download PDF

Info

Publication number
CN112965781A
CN112965781A CN202110374729.5A CN202110374729A CN112965781A CN 112965781 A CN112965781 A CN 112965781A CN 202110374729 A CN202110374729 A CN 202110374729A CN 112965781 A CN112965781 A CN 112965781A
Authority
CN
China
Prior art keywords
soft keyboard
page
size
defined soft
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110374729.5A
Other languages
Chinese (zh)
Inventor
高天惟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202110374729.5A priority Critical patent/CN112965781A/en
Publication of CN112965781A publication Critical patent/CN112965781A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a method and a device for processing a page, and relates to the technical field of computers. One embodiment of the method comprises: the user-defined soft keyboard can be started under the condition that the application mode of the page is judged to be the old-age mode, the user-defined soft keyboard utilizes a tiled display mode and does not need to switch input methods or character type changes, so that the difficulty of inputting Chinese texts in the page is reduced, and the user experience of part of old-age users is improved; the size of the self-defined soft keyboard is determined based on the full screen size of the screen, and the maximum value of the character size displayed in the display area of the self-defined soft keyboard is calculated, so that the problems of high error rate and poor experience of input texts caused by small character sizes of the characters are solved, and the user experience of the aged with hypopsia is improved.

Description

Method and device for processing page
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a page.
Background
With the development and popularization of internet technology, internet applications running on smart phones become essential tools for people's daily life, and therefore user experience using internet applications becomes a problem to be considered in developing internet applications.
At present, the development of internet applications is usually specific to all users, when a user needs to input a text on a page, the size of a soft keyboard started by the application is relatively fixed and often occupies a range smaller than fifty percent in a screen, under the condition that the screen of a smart phone is limited, the display size of characters contained in the soft keyboard is relatively small, and when an input method is switched or character categories are switched, such as numbers, letters, special characters, full-angle characters, half-angle characters and the like, multi-step operations need to be executed on the soft keyboard to complete the operation, so that the use experience of a part of old users is influenced, and particularly the user experience of the old users with impaired vision is influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for processing a page, which can start a user-defined soft keyboard when determining that an application mode of the page is an old-age mode, where the user-defined soft keyboard uses a tiled display mode, and does not need to switch between an input method and a character type change, thereby greatly reducing difficulty in inputting a chinese text and improving user experience of some old-age users; the size of the self-defined soft keyboard is determined based on the full screen size of the screen, and the maximum value of the character size displayed in the display area of the self-defined soft keyboard is calculated, so that the problems of high error rate and poor experience of input texts caused by small character sizes of the characters are solved, and the user experience of the aged with hypopsia is improved.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of processing a page, including: responding to an instruction for displaying a page, acquiring an application mode contained in an application to which the page belongs, and judging whether the application mode corresponding to the page is an old mode or not; and under the condition that the application mode corresponding to the page is judged to be the old-age mode, responding to an input text instruction received by the page, and starting an input page, wherein the input page comprises a self-defined soft keyboard corresponding to the old-age mode, so that a user-defined soft keyboard is utilized to input a text in the input page.
Optionally, the method for processing a page, wherein an input page is started in response to an input text instruction received by the page, and the input page includes a custom soft keyboard corresponding to the old age mode, and includes: responding to an input text instruction received by a page, acquiring the screen size for displaying the input page, acquiring the user-defined soft keyboard of the old age mode corresponding to the screen size, and starting the user-defined soft keyboard.
Optionally, the method for processing a page is further characterized by:
obtaining the user-defined soft keyboard of the old age mode corresponding to the screen size, further comprising: and before the user-defined soft keyboard of the old age mode corresponding to the screen size is obtained, constructing the user-defined soft keyboard corresponding to the screen size.
Optionally, the method of processing pages, wherein,
constructing the self-defined soft keyboard corresponding to the screen size, comprising the following steps: calculating the size of the self-defined soft keyboard corresponding to the screen size according to the screen size and the set ratio; and determining the size of a text box displayed on the input page together with the self-defined soft keyboard, so that the sum of the size of the self-defined soft keyboard and the size of the text box is not larger than the screen size.
Optionally, the method of processing pages, wherein,
constructing the self-defined soft keyboard corresponding to the screen size, comprising the following steps:
constructing one or more display areas contained in the self-defined soft keyboard, wherein characters displayed in the display areas contain letters, numbers and symbols of set types, and the one or more display areas are displayed in a tiled mode; calculating a size of the one or more tiled display areas based on the layout of the custom soft keyboard.
Optionally, the method of processing pages, wherein,
constructing a self-defined soft keyboard corresponding to the screen size, and further comprising:
and when the letters contained in the self-defined soft keyboard are constructed, determining the display sequence of each letter in the display area of the self-defined soft keyboard based on the spelling rule of Chinese pinyin.
Optionally, the method for processing a page is further characterized by:
calculating the size of characters contained in the display area based on the calculated size of the one or more display areas; calculating a size of a character contained in the display area, including: the method comprises the steps of 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 size corresponding to the character in the display range based on the display range, and displaying the character corresponding to the character size of the maximum value in each display area.
To achieve the above object, according to a second aspect of the embodiments of the present invention, there is provided a client for processing a page, including: judging an application mode module and a self-defined soft keyboard module; wherein,
the application mode judging module is used for responding to a command for displaying a page and acquiring an application mode contained in an application to which the page belongs; judging whether the application mode corresponding to the page is an old mode or not;
the user-defined soft keyboard module is used for responding to a text input instruction received by a page and starting an input page under the condition that the application mode corresponding to the page is judged to be the old mode, wherein the input page comprises a user-defined soft keyboard corresponding to the old mode, and the user-defined soft keyboard is used for inputting texts in the input page.
Optionally, the client for processing a page, wherein in response to an input text instruction received by a page, an input page is started, and the input page includes a custom soft keyboard corresponding to the old age mode, and includes: responding to an input text instruction received by a page, acquiring the screen size for displaying the input page, acquiring the user-defined soft keyboard of the old age mode corresponding to the screen size, and starting the user-defined soft keyboard.
Optionally, the client for processing the page further includes:
obtaining the user-defined soft keyboard of the old age mode corresponding to the screen size, further comprising: and before the user-defined soft keyboard of the old age mode corresponding to the screen size is obtained, constructing the user-defined soft keyboard corresponding to the screen size.
Optionally, the client for processing pages, characterized in that,
constructing the self-defined soft keyboard corresponding to the screen size, comprising the following steps: calculating the size of the self-defined soft keyboard corresponding to the screen size according to the screen size and the set ratio; and determining the size of a text box displayed on the input page together with the self-defined soft keyboard, so that the sum of the size of the self-defined soft keyboard and the size of the text box is not larger than the screen size.
Optionally, the client for processing pages, characterized in that,
constructing the self-defined soft keyboard corresponding to the screen size, comprising the following steps:
constructing one or more display areas contained in the self-defined soft keyboard, wherein characters displayed in the display areas contain letters, numbers and symbols of set types, and the one or more display areas are displayed in a tiled mode; calculating a size of the one or more tiled display areas based on the layout of the custom soft keyboard.
Optionally, the client for processing pages, characterized in that,
constructing a self-defined soft keyboard corresponding to the screen size, and further comprising:
and when the letters contained in the self-defined soft keyboard are constructed, determining the display sequence of each letter in the display area of the self-defined soft keyboard based on the spelling rule of Chinese pinyin.
Optionally, the client that processes the page is further characterized by:
calculating the size of characters contained in the display area based on the calculated size of the one or more display areas; calculating a size of a character contained in the display area, including: the method comprises the steps of 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 size corresponding to the character in the display range based on the display range, and displaying the character corresponding to the character size of the maximum value in each display area.
To achieve the above object, according to a third aspect of the embodiments of the present invention, there is provided an electronic device for processing a page, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method as in any one of the methods of processing pages described above.
To achieve the above object, according to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method as in any one of the methods of processing a page described above.
One embodiment of the above invention has the following advantages or benefits: the user-defined soft keyboard can be started under the condition that the application mode corresponding to the page is judged to be the old-age mode, the user-defined soft keyboard utilizes a tiled display mode, and switching of an input method or character type change is not needed, so that the difficulty of inputting Chinese texts is greatly reduced, and the user experience of part of old-age users is improved; the method and the device have the advantages that the size of the self-defined soft keyboard is determined based on the full screen size of the screen, the maximum value of the character size displayed in the display area of the self-defined soft keyboard is calculated, the problems of high error rate and poor experience of text input caused by the fact that the character size of the soft keyboard is small are solved, and the user experience of the aged with poor eyesight is improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a flowchart illustrating a method for processing a page according to an embodiment of the present invention;
FIG. 2A is a diagram of an input page provided by one embodiment of the invention;
FIG. 2B is a diagram of an existing input page provided by one embodiment of the present invention;
FIG. 3A is a diagram of a custom soft keyboard in an input page according to an embodiment of the present invention;
FIG. 3B is a diagram of a custom soft keyboard in another input page provided by an embodiment of the invention;
FIG. 4 is a diagram of a custom soft keyboard in another input page provided by one embodiment of the invention;
FIG. 5 is a schematic structural diagram of a client for processing a page according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 7 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As shown in fig. 1, an embodiment of the present invention provides a method for processing a page, where the method may include the following steps:
step S101: responding to an instruction for displaying a page, and acquiring an application mode contained in an application to which the page belongs; and judging whether the application mode corresponding to the page is an old mode or not.
Specifically, the display page may be any page included in any application, and after receiving an instruction to display the page, an application mode included in the application to which the page belongs is acquired, where the application mode may be a teenager mode, an old age mode, a normal mode, or the like; wherein the default display mode may be a normal mode; options for application mode may be presented for user selection by the time the application launches a page, for example: before entering the application, the user can select an old-age mode, a teenager mode, a common mode and the like, and can also set the application mode after starting the application by adding an option of 'old-age mode' in a setting menu of the application; further, after receiving the instruction for displaying the page, the currently set application mode corresponding to the instruction is acquired to determine whether the application mode included in the application to which the page to be displayed belongs is the old mode.
Currently, some applications have introduced a teenager mode to control the content and format of the page display using different modes; however, an application mode for elderly users with hypopsia and insufficient experience of using smart phones is lacking at present, and although the application may include a function of adjusting a display font to a large font, the application mode lacks a function of adjusting the font size for a soft keyboard; aiming at the old age mode, the application can design the character size of the automatically amplified text or automatically set the displayed text size to be maximum, and the like. Currently, most of the soft keyboards used by internet applications running on a mobile phone are relatively fixed in size, for example, fig. 2B shows a schematic page diagram of a soft keyboard used in an existing application, as shown in fig. 2B, the soft keyboard in a page occupies a range of less than fifty percent of a screen, and under the condition that the screen of a smart phone is limited, the display size of characters contained in the soft keyboard is relatively small; therefore, the use experience of the aged with hypopsia is influenced, and the error rate and the input speed of the aged inputting texts by using the soft keyboard are improved; moreover, most of the existing soft keyboard input method switching and character switching can be completed only by executing multi-step operation, so that the operation difficulty of part of old users is improved, and the user experience is influenced. In view of this, the present invention provides a method for constructing a custom soft keyboard, and specifically, the description for constructing the custom soft keyboard is consistent with the description of step S102, and is not repeated here.
Step S102: under the condition that the application mode corresponding to the page is judged to be the old-age mode, responding to an input text instruction received by the page, starting an input page, wherein the input page comprises a self-defined soft keyboard corresponding to the old-age mode, and inputting text by using the self-defined soft keyboard in the input page
Specifically, when a user needs to input text on any page in an application in the process of using the application, starting an input page corresponding to an old-age mode, namely starting the input page corresponding to the old-age mode, wherein the input page comprises a custom soft keyboard corresponding to the old-age mode, so that the user can input text by using the custom soft keyboard in the input page. The starting of the input page may trigger the input of a text instruction when a user performs a page operation on a corresponding page, for example, a clicking component, a dragging component, and the like. Wherein, starting an input page corresponding to the old age mode, the input page including a custom soft keyboard corresponding to the old age mode, comprises: and acquiring the screen size for displaying the input page, acquiring a user-defined soft keyboard of an old mode corresponding to the screen size, and starting the user-defined soft keyboard. Specifically, the user-defined soft keyboard corresponding to the size of the page is obtained by obtaining the screen size for displaying the input page and selecting the corresponding user-defined soft keyboard according to the screen size, wherein the set of the user-defined soft keyboards comprises user-defined soft keyboards of which the existing screen sizes correspond to the old mode.
Two methods for acquiring the user-defined soft keyboard of the old age mode corresponding to the screen size are provided:
the first method comprises the following steps: the method comprises the steps that a client side obtains from a server, the server comprises a user-defined soft keyboard set corresponding to an old mode, and the user-defined soft keyboard set corresponding to the old mode in screen size is selected from the user-defined soft keyboard set according to the screen size of the user-defined soft keyboard set; currently, the screen sizes of cell phones are in the range of 4.5 to 7 inches in size, so custom soft keyboards can be built for each screen size. The method for constructing the user-defined soft keyboard can construct a template of the user-defined soft keyboard, and the template is zoomed in and out in a corresponding proportion based on the proportional relation between the screen sizes so as to construct a plurality of user-defined soft keyboards corresponding to the screen sizes.
The second method comprises the following steps: the client locally stores the user-defined soft keyboard corresponding to the old mode, namely the user-defined soft keyboard corresponding to the old mode with the screen size is obtained from the client.
Further, before the user-defined soft keyboard of the old age mode corresponding to the screen size is obtained, the user-defined soft keyboard corresponding to the screen size is constructed. Specifically, the constructing of the self-defined soft keyboard corresponding to the screen size includes: calculating the size of the self-defined soft keyboard corresponding to the screen size according to the screen size and the set ratio; and determining the size of a text box displayed on the input page together with the self-defined soft keyboard, so that the sum of the size of the self-defined soft keyboard and the size of the text box is not larger than the screen size. For example: in the schematic diagram of three screen sizes (screen size 1, screen size 2, screen size 3) shown in fig. 2A, for each example of the screen size, the ratio may be set, for example: the size of the self-defined soft keyboard accounts for 85% of the screen size, and the text box accounts for 15% of the screen size; the page comprises a self-defined soft keyboard and a text box, namely the sum of the size of the self-defined soft keyboard and the size of the text box is not larger than the size of the screen; 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 enlarged by full-screen display of the input page, and the display size of the characters contained in the soft keyboard is enlarged by enlarging the size of the custom soft keyboard, so as to improve the use experience of the aged with impaired vision. The method for acquiring the screen size may be that, by acquiring the screen width and height, for the screen width: for example by taking the following values:
window. innerwidth or document. document element. client width or document. body. client width;
for screen height: for example by taking the following values:
window. lnnerheart height or scope. documentelement. clientheart height or scope. body. clientheart height
Further, constructing a self-defined soft keyboard corresponding to the screen size comprises the following steps: constructing one or more display areas contained in the self-defined soft keyboard, wherein characters displayed in the display areas contain letters, numbers and symbols of set types, and the one or more display areas are displayed in a tiled mode; calculating a size of the one or more tiled display areas based on the layout of the custom soft keyboard. For example: taking the schematic diagram of the input page and the customized soft keyboard shown in fig. 3A as an example, the customized soft keyboard shown in fig. 3A includes a display area 301 and a display area 302, that is, the customized soft keyboard includes one or more display areas; further, as shown in fig. 3A, the display area 301 contains letters and symbols, and the display area 302 contains numbers and symbols, i.e., the characters displayed in the display area contain letters, numbers and symbols of setting categories; as shown in fig. 3A, each display area is displayed in a tiled manner, that is, on one page, the input method is a default pinyin input method, and chinese characters, numbers, common symbols, and the like can be input without switching among multiple pages of the soft keyboard for many times, so that the usability of the custom soft keyboard is improved to a large extent, and the user experience of some elderly users is improved. It is understood that the layout of the input page may be vertical, as illustrated in the schematic diagram of FIG. 3A; or it may be cross-screened, as shown schematically in FIG. 3B; the present invention does not limit the specific layout of the input page.
Further, constructing a self-defined soft keyboard corresponding to the screen size further comprises: and when the letters contained in the self-defined soft keyboard are constructed, determining the display sequence of each letter in the display area of the self-defined soft keyboard based on the spelling rule of Chinese pinyin. Specifically, the method for determining the display order of each letter in the display area of the self-defined soft keyboard based on the spelling rule of the pinyin of Chinese comprises at least:
1) determining the display sequence of letters by using the display sequence of the initial consonant list and the rhyme list of the Chinese pinyin; wherein, the sequence of the phonetic alphabet is as follows: b. p, m, f, d, t, n, l, g, k, h, j, q, x, zh, ch, sh, r, z, c, s, y, w. The vowel table contains 6 single vowels: a. o, e, i, u, v; the display order of the letters is determined in combination with the 26 letters of english as shown in fig. 3. It can be appreciated that for some elderly people, the speed of finding the letters in the soft keyboard, and the speed and ease of text entry can be improved by using the pinyin sequence, compared to the alphabetical arrangement sequence using the existing QWERT soft keyboard.
2) According to the Chinese use frequency, acquiring the letter sequence contained in the pinyin of the high-frequency word, and determining the display sequence of the letters, for example: the most common first 2500 Chinese characters are obtained from a character frequency statistical table of modern Chinese common characters, the letter combination contained in the pinyin of each Chinese character is obtained, and the sequence of the letters with the high frequency to the low frequency is as follows through statistics: 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; counting from the angle of the first position of the pinyin letter combination, and obtaining the frequency from high to low as: 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; one embodiment for determining the alphabetic order in a custom keyboard is shown in FIG. 4, in combination with the two orders described above. The speed and the usability of inputting the text can be improved by utilizing the sequence of the pinyin of the high-frequency words.
Further, based on the calculated size of the one or more display areas, calculating the size of the characters contained in the display areas; calculating a size of a character contained in the display area, including: the method comprises the steps of 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 size corresponding to the character in the display range based on the display range, and displaying the character corresponding to the character size of the maximum value in each display area.
Specifically, still taking the customized soft keyboard shown in fig. 3A as an example, as shown in the display 301, the area size of the display area is obtained, for example: the display area 301 has an area size of 256 long and 160 high; suppose that the display area 301 contains 28 characters to be displayed, including 26 letters and 2 characters; calculating the display range of each character based on the number of the displayed characters, and assuming that the display range of a single character in the display area is 33 x 33 after calculation, determining the maximum value of the character size of the corresponding character according to the pixels 32px after calculation to be 24, it can be understood that the maximum value of the character size is determined by a method not larger than any one of the length and the width of the display range of the single character, namely, the maximum value of the character size is calculated in a fixed display range; namely, based on the display range, determining the maximum value of the character size corresponding to the character in the display range; the maximum value is utilized to maximize the size of characters (letters, numbers, etc.) displayed within the display range, so as to improve the use experience of the elderly with impaired vision. It is understood that the letters, numbers and symbols may be in the same size or in different sizes. For example: the symbols are used with a font size larger than the font size of the letters. By displaying the soft keyboard in a full-screen state, the user experience is improved by utilizing capital letters and displaying the maximum value of the character size corresponding to the character to the maximum extent.
Further, constructing the custom soft keyboard corresponding to the screen size may further include: and one or more function buttons contained in the self-defined soft keyboard are constructed, so that any one or more of operations of confirming and completing input text, deleting input text, exiting the soft keyboard and self-defining functions can be executed through the function buttons. In particular, the current page is usually marked by an "X" on the top side of the page for the exit function, and is difficult for the elderly with impaired vision to recognize, so that a plurality of function buttons as shown in fig. 3A, 3B and 4 can be added in the customized soft keyboard, and the labels of the buttons use definite meanings, such as: clicking the 'finish' button to finish the Chinese input; clicking the exit button indicates exiting the current input page; clicking 'delete' is used for deleting the input Chinese text, and a self-defined function button can be added, for example, 'switching' indicates switching from a self-defined soft keyboard in a current old-age mode to a soft keyboard in a common mode, so as to input special characters, English words and the like which are not included in the current self-defined soft keyboard. By adding one or more functional buttons, the user experience of part of the old people using the input page and the old mode self-defined soft keyboard is improved.
The method for developing the input page and the user-defined soft keyboard can be implemented by using a native method combined with HTML (HyperText Mark-up Language), CSS (Cascading Style Sheets), and JavaScript tools, or by using a development framework of a third party, for example: the VUE and REACT are realized, Chinese input by the user-defined input keyboard can be associated with a Chinese character library of a third party by using a user-defined virtual keyboard, so that the operation of generating Chinese by inputting letters representing pinyin is realized.
As shown in fig. 5, an embodiment of the present invention provides a client 500 for processing a page, including: judging an application mode module 501 and a self-defined soft keyboard module 502; wherein,
the application mode judging module 501 is configured to respond to a page display instruction and acquire an application mode included in an application to which a page belongs; judging whether the application mode corresponding to the page is an old mode or not;
the custom soft keyboard module 502 is configured to, in a case that it is determined that the application mode corresponding to the page is the old-age mode, start an input page in response to an input text instruction received by the page, where the input page includes a custom soft keyboard corresponding to the old-age mode, so as to input a text by using the custom soft keyboard in the input page.
An embodiment of the present invention further provides an electronic device for processing a page, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the method provided by any one of the above embodiments.
Embodiments of the present invention further provide a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method provided in any of the above embodiments.
Fig. 6 illustrates an exemplary system architecture 600 of a method of processing pages or an apparatus for processing pages to which embodiments of the present invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. Various client applications, such as an e-mall client application, a web browser application, a search-type application, an instant messaging tool, a mailbox client, and the like, may be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be various electronic devices having display screens and supporting various client applications, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server providing support for client applications used by users with the terminal devices 601, 602, 603. The background management server can process the received page display request and feed back page information required by the page to the terminal equipment.
It should be noted that the method for processing a page provided by the embodiment of the present invention is generally executed by the terminal devices 601, 602, and 603, and accordingly, the client for processing a page is generally disposed in the terminal devices 601, 602, and 603.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary 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 bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. 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, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units described in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware. The described modules and/or units may also be provided in a processor, and may be described as: a processor includes a judge application mode module and a custom soft keyboard module. The names of the modules do not limit the module itself under certain circumstances, for example, the module for determining the application mode may be further described as a module for determining whether the application mode is the old mode according to the application mode corresponding to the page.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: responding to an instruction for displaying a page, acquiring an application mode contained in an application to which the page belongs, and judging whether the application mode corresponding to the page is an old mode or not; and under the condition that the application mode corresponding to the page is judged to be the old-age mode, responding to an input text instruction received by the page, and starting an input page, wherein the input page comprises a self-defined soft keyboard corresponding to the old-age mode, so that a user-defined soft keyboard is utilized to input a text in the input page.
According to the embodiment of the invention, the user-defined soft keyboard can be started under the condition that the application mode corresponding to the page is judged to be the old mode, the user-defined soft keyboard utilizes a tiled display mode, and the input method or the character type change does not need to be switched, so that the difficulty of inputting Chinese texts is greatly reduced, and the user experience of part of old users is improved; and the size of the self-defined soft keyboard is determined based on the screen size, and the maximum value of the character size displayed in the display area of the self-defined soft keyboard is calculated, so that the problems of high error rate and poor experience of text input caused by small size of the soft keyboard characters are solved, and the user experience of the aged with hypopsia is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of processing a page, comprising:
responding to an instruction for displaying a page, acquiring an application mode contained in an application to which the page belongs, and judging whether the application mode corresponding to the page is an old mode or not;
and under the condition that the application mode corresponding to the page is judged to be the old-age mode, responding to an input text instruction received by the page, and starting an input page, wherein the input page comprises a self-defined soft keyboard corresponding to the old-age mode, so that a user-defined soft keyboard is utilized to input a text in the input page.
2. The method of claim 1,
responding to an input text instruction received by a page, starting an input page, wherein the input page comprises a self-defined soft keyboard corresponding to the old age mode, and the method comprises the following steps:
responding to an input text instruction received by a page, acquiring the screen size for displaying the input page, acquiring the user-defined soft keyboard of the old age mode corresponding to the screen size, and starting the user-defined soft keyboard.
3. The method of claim 2, further comprising:
obtaining the user-defined soft keyboard of the old age mode corresponding to the screen size, further comprising: and before the user-defined soft keyboard of the old age mode corresponding to the screen size is obtained, constructing the user-defined soft keyboard corresponding to the screen size.
4. The method of claim 3,
constructing the self-defined soft keyboard corresponding to the screen size, comprising the following steps:
calculating the size of the self-defined soft keyboard corresponding to the screen size according to the screen size and the set ratio; and determining the size of a text box displayed on the input page together with the self-defined soft keyboard, so that the sum of the size of the self-defined soft keyboard and the size of the text box is not larger than the screen size.
5. The method of claim 3,
constructing the self-defined soft keyboard corresponding to the screen size, comprising the following steps:
constructing one or more display areas contained in the self-defined soft keyboard, wherein characters displayed in the display areas contain letters, numbers and symbols of set types, and the one or more display areas are displayed in a tiled mode;
calculating a size of the one or more tiled display areas based on the layout of the custom soft keyboard.
6. The method of claim 3,
constructing a self-defined soft keyboard corresponding to the screen size, and further comprising:
and when the letters contained in the self-defined soft keyboard are constructed, determining the display sequence of each letter in the display area of the self-defined soft keyboard based on the spelling rule of Chinese pinyin.
7. The method of claim 5, further comprising:
calculating the size of characters contained in the display area based on the calculated size of the one or more display areas;
calculating a size of a character contained in the display area, including:
the method comprises the steps of 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 size corresponding to the character in the display range based on the display range, and displaying the character corresponding to the character size of the maximum value in each display area.
8. A client for processing a page, comprising: judging an application mode module and a self-defined soft keyboard module; wherein,
the application mode judging module is used for responding to a command for displaying a page and acquiring an application mode contained in an application to which the page belongs; judging whether the application mode corresponding to the page is an old mode or not;
the user-defined soft keyboard module is used for responding to a text input instruction received by a page and starting an input page under the condition that the application mode corresponding to the page is judged to be the old mode, wherein the input page comprises a user-defined soft keyboard corresponding to the old mode, and the user-defined soft keyboard is used for inputting texts in the input page.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202110374729.5A 2021-04-08 2021-04-08 Method and device for processing page Pending CN112965781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110374729.5A CN112965781A (en) 2021-04-08 2021-04-08 Method and device for processing page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110374729.5A CN112965781A (en) 2021-04-08 2021-04-08 Method and device for processing page

Publications (1)

Publication Number Publication Date
CN112965781A true CN112965781A (en) 2021-06-15

Family

ID=76279789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110374729.5A Pending CN112965781A (en) 2021-04-08 2021-04-08 Method and device for processing page

Country Status (1)

Country Link
CN (1) CN112965781A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113918080A (en) * 2021-09-09 2022-01-11 西安震有信通科技有限公司 Control method and system of virtual keyboard and computer readable storage medium
CN113961299A (en) * 2021-11-17 2022-01-21 拉扎斯网络科技(上海)有限公司 Content display method, content display apparatus, electronic device, storage medium, and program product
CN114047869A (en) * 2021-09-30 2022-02-15 广州网货帮科技有限公司 Information input method and intelligent terminal
CN115309318A (en) * 2022-08-09 2022-11-08 中国银行股份有限公司 Picture operation processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468382A (en) * 2016-02-01 2016-04-06 浙江慧脑信息科技有限公司 Adaptive layout programming method
CN107995969A (en) * 2016-11-30 2018-05-04 深圳市柔宇科技有限公司 Electronic device and its soft keyboard display method
CN110764680A (en) * 2018-07-25 2020-02-07 北京京东金融科技控股有限公司 Method and device for generating simulation keyboard, electronic equipment and computer readable medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468382A (en) * 2016-02-01 2016-04-06 浙江慧脑信息科技有限公司 Adaptive layout programming method
CN107995969A (en) * 2016-11-30 2018-05-04 深圳市柔宇科技有限公司 Electronic device and its soft keyboard display method
CN110764680A (en) * 2018-07-25 2020-02-07 北京京东金融科技控股有限公司 Method and device for generating simulation keyboard, electronic equipment and computer readable medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113918080A (en) * 2021-09-09 2022-01-11 西安震有信通科技有限公司 Control method and system of virtual keyboard and computer readable storage medium
CN113918080B (en) * 2021-09-09 2024-03-29 西安震有信通科技有限公司 Control method and system of virtual keyboard and computer readable storage medium
CN114047869A (en) * 2021-09-30 2022-02-15 广州网货帮科技有限公司 Information input method and intelligent terminal
CN113961299A (en) * 2021-11-17 2022-01-21 拉扎斯网络科技(上海)有限公司 Content display method, content display apparatus, electronic device, storage medium, and program product
CN115309318A (en) * 2022-08-09 2022-11-08 中国银行股份有限公司 Picture operation processing method and device

Similar Documents

Publication Publication Date Title
CN112965781A (en) Method and device for processing page
KR102087807B1 (en) Character inputting method and apparatus
EP3037948B1 (en) Portable electronic device and method of controlling display of selectable elements
CN109074375B (en) Content selection in web documents
WO2002079913A2 (en) Coordinating images displayed on devices with two or more displays
CN102426511A (en) System level search user interface
CN105308551A (en) Multiple graphical keyboards for continuous gesture input
EP2909702B1 (en) Contextually-specific automatic separators
CN107678658A (en) Data inputting method and device for terminal device
CN112163432A (en) Translation method, translation device and electronic equipment
CN113392660B (en) Page translation method and device, electronic equipment and storage medium
CN107835305B (en) Information input method and device for terminal equipment with screen
US20150082234A1 (en) Electronic device and text-input interface displaying method thereof
CN113642290A (en) Text typesetting method and device, electronic equipment and storage medium
CN113626441A (en) Text management method, device and equipment based on scanning equipment and storage medium
Garcia-Lopez et al. Comparing zooming methods in mobile devices: effectiveness, efficiency, and user satisfaction in touch and nontouch smartphones
US10198429B2 (en) Automatic text language selection mechanism
CN111694443A (en) Input method using touch gestures as interaction mode
EP3352068B1 (en) Portable electronic device including physical keyboard and method of controlling selection of information
EP4379596A1 (en) Text typesetting
US20190087086A1 (en) Method for providing cognitive semiotics based multimodal predictions and electronic device thereof
JP6485495B2 (en) Document display device, document display method, document display system, and program
CN112764551A (en) Vocabulary display method and device and electronic equipment
CN112328097A (en) Input control method and device
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination