CN111399728B - Setting method, electronic device and storage medium - Google Patents

Setting method, electronic device and storage medium Download PDF

Info

Publication number
CN111399728B
CN111399728B CN202010143899.8A CN202010143899A CN111399728B CN 111399728 B CN111399728 B CN 111399728B CN 202010143899 A CN202010143899 A CN 202010143899A CN 111399728 B CN111399728 B CN 111399728B
Authority
CN
China
Prior art keywords
language type
input
handwriting
language
type parameter
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.)
Active
Application number
CN202010143899.8A
Other languages
Chinese (zh)
Other versions
CN111399728A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010143899.8A priority Critical patent/CN111399728B/en
Publication of CN111399728A publication Critical patent/CN111399728A/en
Application granted granted Critical
Publication of CN111399728B publication Critical patent/CN111399728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text
    • 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
    • G06F9/454Multi-language systems; Localisation; Internationalisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application provides a setting method, electronic equipment and a storage medium, which are applied to the technical field of communication and can solve the problem that when the electronic equipment is wrongly set as a language type which is not mastered by a user, the language type parameters are difficult to quickly switch. The method comprises the following steps: the electronic device receives a first input of a user; responding to the first input, the electronic equipment displays Y marks, one mark is used for indicating one language type parameter, and the language type parameter indicated by the Y marks is a language type parameter with the association degree with the input handwriting of the first input being larger than a first threshold value; and the electronic equipment updates the target information into the target language type parameter indicated by the target identifier in the Y identifiers, wherein Y is a positive integer.

Description

Setting method, electronic device and storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a setting method, electronic equipment and a storage medium.
Background
With the development of electronic equipment technology, the frequency of using electronic equipment by users is higher and higher, and the requirements of users on the system functions of the electronic equipment are also higher and higher.
In the process of using the electronic device, the user may set the text displayed by the electronic device to a different language type (for example, language), however, when the user uses this function, the user may easily touch by mistake to set the language type of the electronic device to a language type that the user does not grasp. At this time, the user merely resets the language type through the setting interface, however, since the text in the setting interface is also the language type which the user does not grasp at this time, it is difficult for the user to switch the language type.
Disclosure of Invention
The embodiment of the application provides a setting method, electronic equipment and a storage medium, which can solve the problem that when the electronic equipment is wrongly set as a language type which is not mastered by a user, the language type parameters are difficult to quickly switch.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a setting method, including: the electronic device receives a first input of a user; responding to the first input, the electronic equipment displays Y marks, one mark is used for indicating one language type parameter, and the language type parameter indicated by the Y marks is a language type parameter with the association degree with the input handwriting of the first input being larger than a first threshold value; and the electronic equipment updates the target information into the target language type parameter indicated by the target identifier in the Y identifiers, wherein N is a positive integer.
In a second aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a receiving module, a display module and an updating module; the receiving module is used for receiving a first input of a user; the display module is used for responding to the first input received by the receiving module, displaying Y marks, wherein one mark is used for indicating one language type parameter, and the language type parameter indicated by the Y marks is a language type parameter with the association degree with the input handwriting of the first input being larger than a first threshold value; the updating module is configured to update the target information to a target language type parameter indicated by a target identifier in the Y identifiers displayed by the display module, where N is a positive integer.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program is executed by the processor to implement the steps of the setting method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the setting method according to the first aspect.
In the embodiment of the application, after receiving a first input of a user, the electronic device displays Y identifiers on the electronic device according to an input handwriting corresponding to the first input, and the association degree between a language type parameter indicated by the Y identifiers and the handwriting input by the user is greater than a first threshold. Therefore, by displaying one or more identifications to indicate one or more possible language types corresponding to the input handwriting, the electronic equipment updates the target information into the target language type parameters indicated by the target identifications in the Y identifications, so that a user can accurately and rapidly switch to the language type required by the user, and the working efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of one possible operating system architecture provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a setting method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface for applying a setting method according to an embodiment of the present application;
FIG. 4 is a second schematic diagram of an interface for applying a setting method according to an embodiment of the present disclosure;
FIG. 5 is a third schematic diagram of an interface for setting up an application of the method according to the embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 7 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In this context "/" means "or" for example, a/B may mean a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone.
It should be noted that "plurality" herein means two or more than two.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The execution main body of the setting method provided in the embodiment of the present application may be the above electronic device, or may be a functional module and/or a functional entity capable of implementing the setting method in the electronic device, which may be specifically determined according to actual use requirements, and the embodiment of the present application is not limited. The setting method provided in the embodiment of the present application is described below by taking a terminal device as an example.
The electronic device may be a terminal device, and the terminal device may be a mobile terminal device or a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.; the non-mobile terminal device may be a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present application are not particularly limited.
The electronic device in the embodiment of the application may be an electronic device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The software environment to which the setting method provided in the embodiment of the present application is applied is described below by taking an operating system as an example.
Fig. 1 is a schematic architecture diagram of one possible operating system according to an embodiment of the present application. In fig. 1, the architecture of the operating system includes 4 layers, respectively: an application program layer, an application program framework layer, a system runtime layer and a kernel layer (specifically, a Linux kernel layer).
The application layer includes various applications (including system applications and third party applications) in the operating system.
The application framework layer is a framework of applications, and developers can develop some applications based on the application framework layer while adhering to the development principle of the framework of the applications.
The system runtime layer includes libraries (also referred to as system libraries) and an operating system runtime environment. Libraries mainly provide various resources required by the operating system. The operating system runtime environment is used to provide a software environment for the operating system.
The kernel layer is an operating system layer of the operating system, and belongs to the bottommost layer of the operating system software layer. The kernel layer provides core system services and hardware-related drivers for the operating system based on the Linux kernel.
Taking an operating system as an example, in the embodiment of the present application, a developer may develop a software program for implementing the setting method provided in the embodiment of the present application based on the system architecture of the operating system shown in fig. 1, so that the setting method may be executed based on the operating system shown in fig. 1. I.e. the processor or the electronic device may implement the setting method provided by the embodiments of the present application by running the software program in an operating system.
The setting method of the embodiment of the present application is described below with reference to the flowchart of the setting method shown in fig. 2, and fig. 2 is a schematic flowchart of the setting method provided in the embodiment of the present application, including steps 201 to 203:
step 201: the electronic device receives a first input of a user.
Step 202: in response to the first input, the electronic device displays Y identifications.
Wherein, a label is used for indicating a language type parameter, and the language type parameter indicated by the Y labels is a language type parameter with the association degree with the input handwriting of the first input being greater than a first threshold value.
Illustratively, the association of the language type parameter with the input handwriting of the first input is used to indicate: the degree of association of the language type parameter with the input handwriting of the first input. In one example, the degree of association may be a degree of matching, that is, the degree of association may be a degree of matching between the input handwriting of the first input and the language type parameter, and it may be understood that the degree of association may be represented using a percentage.
It should be noted that, the first threshold may be a fixed value or may be customized, and may specifically be determined according to an actual use requirement, which is not limited in the embodiment of the present application.
For example, the first threshold may be set to 60%, that is, if the association degree between the language type parameter and the input handwriting of the first input is greater than 60%, the probability that the language type parameter is selected by the user is considered to be greater, and at this time, the identifier corresponding to the language type parameter is displayed.
Step 203: and the electronic equipment updates the target information into the target language type parameter indicated by the target identifier in the Y identifiers, wherein Y is a positive integer.
The first input may be, for example, a handwriting input of a user on a current display interface of the electronic device.
Illustratively, the handwriting input refers to handwriting input of a user on a first interface of the electronic device. In an example, the first interface may be a current display interface of the electronic device, or an interface may be set for a system of the electronic device, or may be a handwriting input interface, which is not limited in this embodiment of the present application. For example, a user handwriting a Chinese character "in" or handwriting an English word "apple" on a handwriting input interface of an electronic device.
For example, the input handwriting formed on the first interface by handwriting input may be displayed on the first interface or may not be displayed on the first interface, which is not limited in the embodiment of the present application.
For example, when the duration of stopping handwriting input by the user is greater than a predetermined threshold, the handwriting input is ended, and the electronic device ends receiving the handwriting input.
For example, the above-mentioned handwriting input content may be input with a single character, for example, chinese character "i am", or may be a character string composed of a plurality of characters, for example, chinese phrase "i am is a student".
The above-mentioned identifiers may be controls or charts, which are not limited in this embodiment of the present application.
In an example, the shape of the control may be any possible shape, such as a circle, a rectangle, a triangle, a diamond, a ring, or a polygon, and may be specifically determined according to actual use requirements, which is not limited in the embodiments of the present application.
In one example, the size of the control may be a default size, or may be flexibly adjusted according to the operation of the user. Further, the control does not obscure the content selected by the user at the first interface (i.e., the target content described above).
In one example, the control or chart described above may be displayed in hover over the first interface. For example, when a user drags the control or chart over the first interface, the control or chart may move over the first interface with the user's drag input.
Illustratively, the language type parameter is used to indicate at least one of: language, font type, font size.
Illustratively, the above language may include: chinese, english, german, and the like. The font types may include: regular script, song Ti, bold, imitation Song, and other font types. The word size may include: small, medium, large. The embodiments of the present application are not limited in this regard.
For example, one identifier indicates one language type parameter, and for each identifier, the electronic device may display the corresponding language type on the identifier.
In example 1, when the user handwriting inputs "middle" of chinese characters, the electronic device displays 3 identifiers corresponding to the language type parameter with the highest association degree of the user handwriting, namely, identifier 1, identifier 2 and identifier 3. The language type parameter indicated by the identifier 1 corresponds to a chinese simplified body, the language type parameter indicated by the identifier 2 corresponds to a chinese traditional body (taiwan), the language type parameter indicated by the identifier 3 corresponds to a chinese traditional body (hong kong), at this time, the electronic device will display the respective corresponding language names on the three identifiers, display the "chinese simplified body" on the identifier 1, display the "chinese traditional body (taiwan)" on the identifier 2, and display the "chinese traditional body (hong kong)" on the identifier 3.
Optionally, in an embodiment of the present application, the target information includes at least one of the following: the system language type of the electronic equipment and the language type of the information display of the target application program.
For example, the electronic device may receive the first input at a different display interface, thereby updating different target information according to the different display interfaces. For example, if the electronic device receives a first input on a certain application program interface, the electronic device updates the language type in the application program; if the electronic equipment receives the first input at the system setting interface, the electronic equipment updates the language type of the system of the electronic equipment.
Illustratively, the target identifier is any one of the Y identifiers.
The target identifier may be default or selected by the user, which is not limited by the embodiments of the present application.
For example, when the electronic device displays the above identifier on the current interface in real time during the writing process of the user, if the user observes that the plurality of identifiers displayed on the current interface include the target identifier, the user may stop handwriting input and directly perform click input on the target identifier to select, if in example 1, the user may not perform handwriting input any more and directly click on the "chinese simplified" identifier when the electronic device displays the language type parameter of "chinese simplified".
For example, if the user performs the wrong selection on the language type, which results in the wrong switching of the language type of the electronic device, the user may return to the interface displaying the language type through a specific operation, and reselect the language type. In one example, the specific operation may be an operation performed by a user on a physical key, or an operation performed by a user on a virtual key, which is not limited in the embodiment of the present application.
According to the setting method provided by the embodiment of the application, after the electronic equipment receives the first input of the user, Y marks are displayed on the electronic equipment according to the input handwriting corresponding to the first input, and the association degree between the language type parameters indicated by the Y marks and the handwriting input by the user is larger than a first threshold value. Therefore, the plurality of identifiers are displayed to indicate a plurality of possible language types corresponding to the input handwriting, so that the electronic equipment updates the target information into the target language type parameters indicated by the target identifiers in the Y identifiers, a user can accurately and rapidly switch to the language type required by the user, and the working efficiency is improved.
Alternatively, in the embodiment of the present application, the following step A1 and step A2 may be included in the above step 203:
Step A1: the electronic device receives a second input from the user of the target identifier of the Y identifiers.
Step A2: and in response to the second input of the user to the target identifier in the Y identifiers, the electronic equipment updates the target information into the target language type parameter indicated by the target identifier.
The second input may be a click input of the target identifier by the user, or a voice command input by the user, or a specific gesture input by the user, which may be specifically set according to the actual requirement. Wherein, the click input can be single click input, double click input or any click input; the click input can also be long-press input or short-press input; the specific gesture may be any one of a single click gesture, a swipe gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double click gesture.
For example, after the electronic device receives the second input, the system language type parameter of the electronic device or the language type parameter displayed by the information of the target application program may be changed to the target language type parameter indicated by the target identifier.
For example, in combination with the above example 1, the user may click on the identifier 1, the identifier 2, or the identifier 3, so as to select a language type to be switched, and after the user selects the language type to be switched, the electronic device performs the language type switching.
In the setting method, after the electronic equipment displays the first identifier indicating different language types to the user in the scene that the user selects the language types by himself, the user quickly sets the language types required by the user by performing the second input on the identifier, so that the efficiency of setting the language types in the electronic equipment is improved.
Optionally, in the embodiment of the present application, after the step 201 and before the step 202, the setting method provided in the embodiment of the present application may further include the following steps B1 to B3:
step B1: the electronic device obtains the handwriting characteristics of the input handwriting of the first input.
Wherein the input handwriting corresponds to M language type parameters.
Step B2: the electronic device calculates the association degree of the input handwriting with each of the M language type parameters based on the handwriting features.
Step B3: and the electronic equipment screens Y language type parameters with the association degree larger than or equal to a first threshold value from the M language types according to the association degree.
Wherein, a mark is used for indicating one language type parameter and the corresponding association degree in the Y language type parameters, M is a positive integer, and M is more than or equal to Y.
For example, the degree of association may be probability.
For example, the M language type parameters are all or part of the language type parameters corresponding to the Y identifiers.
When the handwriting input of the user comprises a plurality of characters, the electronic device analyzes the characters input by the handwriting of the user in real time, and the language type corresponding to the last character is displayed on a display interface of the electronic device.
For example, the electronic device may retrieve the language type parameter from the language database. Wherein, the language database may include: a word library, matrix data corresponding to characters, the corresponding relation between the matrix data and language types, and the like.
The handwriting features of the input handwriting can be handwriting position features, handwriting direction features, handwriting stroke features and the like corresponding to the input handwriting.
Illustratively, the handwriting features of the input handwriting may be characterized by a matrix, i.e. the handwriting features of the input handwriting may be matrix data.
For example, the electronic device may analyze handwriting input handwriting and convert the handwriting input handwriting into matrix data, and then the electronic device may compare the matrix data of the handwriting input with matrix data of characters contained in the language text database, so as to obtain a matching degree (i.e. a matched numerical value) between the matrix data of the handwriting input and the matrix data of the characters contained in the language text database.
For example, when the association degree of the matrix data of the input handwriting and the matrix data of the characters contained in the language database is greater than a first threshold, determining the language type parameter corresponding to the character with the association degree greater than the first threshold as the language type parameter possibly to be switched by the user.
By way of example, take the user entering a "middle" on the current display interface. As shown in fig. 3 (a), after the user's handwriting input "middle", the electronic device parses the handwriting input, and converts the handwriting into a form of matrix data (as shown in fig. 3 (b)) in the electronic device, at this time, the electronic device matches the matrix data with matrix data in the language database (as shown in fig. 3 (c)), and since the matching association between the two matrix data is 44.4%, which is greater than 30% (i.e., the first threshold), the electronic device determines that the language of the handwriting may be chinese.
For example, the step B2 may include the following steps C1 to C4:
step C1: the electronic device detects a handwriting change of the handwriting input.
Step C2: the electronic device parses the handwriting of the current handwriting input into target matrix data.
Step C3: and the electronic equipment compares the target matrix data with matrix data in a language database.
Step C4: and the electronic equipment calculates the association degree between the target matrix data and the corresponding language type parameters according to the numerical value duty ratio matched with the target matrix data and the matrix data in the language database.
Wherein, each matrix data in the language database corresponds to one or more language type parameters, i.e. each matrix data corresponds to one or more language types.
Illustratively, the above numerical ratios refer to: the same data between the target matrix data and a certain matrix data in the language database occupies the ratio of all data in the target matrix data.
For example, after the user has input the "middle" word by handwriting, as shown in fig. 3 b, matrix data 1 (target matrix data) of the "middle" word is found by the electronic device in the language database, as shown in fig. 3 c, matrix data 2 corresponding to the "middle" word is found by the electronic device, and matrix data 1 of the "middle" word is compared with the matrix data 2, and if matrix data 1 of the "middle" word has 9 pieces of data in total and 4 pieces of data identical to matrix data 2, the numerical value of matching between matrix data 1 and matrix data 2 is 44.4%.
Further, in combination with the above steps C1 to C4, the above step B3 may include the following step C5:
step C5: the electronic equipment compares the association degree of each language type parameter with a first threshold value, and when the association degree of a certain language type is larger than the first threshold value, the identification for indicating the language type parameter is displayed on a first interface.
Illustratively, the electronic device detecting a handwriting change of the handwriting input is used to initiate a parsing procedure of the handwriting by the electronic device.
The electronic device may start the analysis program to analyze handwriting input handwriting after the handwriting input of the user is finished, or start the analysis program to analyze handwriting input handwriting in real time during the handwriting input process.
For example, when recognizing the text input by the handwriting of the user, the electronic device may parse the handwriting input to convert the handwriting into matrix data.
The above-mentioned Y identifiers may be displayed in real time during the writing process of the user, or may be displayed after the user finishes handwriting input, which is not limited in the embodiment of the present application.
In example 2, taking an example that a user needs to switch the electronic device currently displaying english to display chinese, the user handwriting-inputs a character "in" on the current interface, and after the electronic device analyzes the handwriting input handwriting of the user at the moment of the first two strokes, the association degree of the language type and the language type parameter corresponding to the electronic device is shown in table 1. Wherein table 1 may be displayed on the current interface:
Figure GDA0004184625250000061
Figure GDA0004184625250000071
TABLE 1
After the user inputs the complete character "middle" by handwriting, the electronic device analyzes the handwriting input by the user, and the association degree of the corresponding language type and the language type parameter in the electronic device is shown in table 2. Wherein table 2 may be displayed on the current interface:
Figure GDA0004184625250000072
TABLE 2
For example, in combination with example 2, when table 1 and table 2 are displayed on the current interface, the user may select the language type to be switched by clicking on the language type in table 1 or table 2, and after the user selects the language type to be switched, the electronic device performs the language type switching.
In the setting method provided by the application, in a scene of receiving the first input on the display interface, the language type parameters corresponding to the first input can be rapidly analyzed and compared according to the character change characteristics of the first data and the matrix data prestored in the language database, so that the user can conveniently select the language type parameters.
Optionally, in an embodiment of the present application, the electronic device may determine the language setting intent of one or more language type parameters based on the input handwriting of the first input, to determine the above Y language type parameters.
Illustratively, before the step 202, the setting method provided in the embodiment of the present application further includes the following step D1 and step D2:
step D1: the electronic equipment calculates a first association degree of each language type parameter corresponding to the input handwriting.
Step D2: and the electronic equipment determines the Y language type parameters according to the first association degree.
Illustratively, the first association degree of the language type parameter corresponding to the input handwriting is used for representing: the degree of association of the handwriting feature of the input handwriting with one or more language type parameters.
Further alternatively, the step C1 may include the following steps E1 and E2:
step E1: the electronic device calculates the language setting intent of each character in the input handwriting according to the first formula.
Step E2: and the electronic equipment calculates the first relevancy of each language type parameter corresponding to the input handwriting according to the language setting intent of each character, the second relevancy of each language type parameter corresponding to each character and the second formula.
Wherein, the first formula is:
Figure GDA0004184625250000073
f (i) setting intent for the language of the ith character in the input handwriting, wherein i is used for indicating the sequence of the characters in the input handwriting, and i is a positive integer;
The second formula is:
Figure GDA0004184625250000074
h is the first association degree of the input handwriting corresponding to the first language type parameter, g (i) is the second association degree of each language type parameter corresponding to the ith character in the input handwriting, n is the number of characters corresponding to the first input corresponding to the input handwriting, the first language type parameter is one of the Y language type parameters, and i belongs to any positive integer from 1 to n.
In one example, when the input handwriting includes a plurality of characters, the electronic device may determine the input order of the current character according to a distance interval between the input handwriting of the character currently input by the user and the input handwriting of a character previous to the currently input character. For example, if the distance interval is greater than the predetermined distance interval and the previous character of the currently entered character is the 2 nd character, then the currently entered character is determined to be the 3 rd character.
In another example, when the input handwriting includes a plurality of characters, the electronic device may determine the input order of the current character according to a time interval between the input handwriting of the character currently input by the user and the input handwriting of the character previous to the currently input character. For example, if the time interval is greater than the predetermined time interval and the previous character of the currently entered character is the 2 nd character, then the currently entered character is determined to be the 3 rd character.
For example, when the input handwriting includes a plurality of characters, the electronic device may set the language setting intent of the last character in the handwriting input to be highest. In general, the language setting intent of each of the plurality of characters conforms to a gaussian distribution, and the language setting intent can be quantified by using a weight ratio, that is, the weight ratio occupied by each character is: f (i).
Illustratively, the second degree of association refers to: the degree of association of each of the n characters with one or more language type parameters.
For example, after the electronic device analyzes all possible language types by using the language database, the electronic device analyzes a second association degree that each character may be of a certain language type, where the second association degree that each character may be of a certain language type is g (i). For example, in connection with Table 2 above, after the user has entered the complete character "middle" by handwriting, the electronic device analyzes that the character has an association with the 3 language types in Table 2. Wherein, when the language type is "Chinese simplified", the association degree between the character "middle" and "Chinese simplified" is 38.0%, when the language type is "Chinese traditional (hong Kong)" the association degree between the character "middle" and "Chinese simplified" is 32.0%, and when the language type is "Chinese traditional (Taiwan)" the association degree between the character "middle" and "Chinese simplified" is 32.0%.
For example, by combining the weight ratio of each character and the second association degree of a certain language type indicated by each character, the first association degree of the character string corresponding to a certain language type may be calculated through the formula two.
Similarly, for other languages calculated by the electronic device, the same calculation steps described above may be used to obtain the first relevance of the other languages.
By way of example, a user handwriting-inputs a plurality of characters "middle" on an electronic device. When the user inputs two characters in the middle by handwriting, the electronic equipment calculates the language setting intent degree of the single character 'middle' and the single character 'between', wherein the language setting intent degree of the single character 'middle' and the 3 language type parameters have the association degree (namely the second association degree), namely the Chinese simplified body, the Chinese traditional body (hong Kong in China) and the Chinese traditional body (Taiwan in China) respectively, and the language setting intent degree of the single character 'middle' and the single character 'between' have the association degree with the 1 language type parameters, namely the Chinese simplified body.
Then, according to the second formula, the language setting intent degree of each of the two characters 'middle' and 'between' and the language type parameter corresponding to each character, the association degree (namely the first association degree) between the input handwriting 'middle' and the 3 language type parameters is calculated, and finally the language type parameter corresponding to the input handwriting 'middle' is determined to be a Chinese simplified body.
In the setting method provided by the invention, in the scene of receiving the input of the plurality of characters by the user, the user can make the electronic equipment make more accurate calculation results for the user to select the language types needing to be switched by the user in a mode of inputting the plurality of characters, thereby being convenient for the user to quickly switch the language types of the electronic equipment.
Optionally, in the embodiment of the present application, the foregoing step 201 may include the following step F:
step F: the electronic device receives a first input from a user on a target area of a first interface.
And each identifier of the Y identifiers further comprises corresponding first information, and the language type of the first information corresponding to each identifier is the same as the language type parameter indicated by the identifier.
For example, the first information may be text displayed on the Y identifiers.
For example, the identification may be a thumbnail of the current interface.
The number of the thumbnail images may be one or more, and the embodiment of the application is not limited.
For example, when the number of thumbnails is excessive, the user may make a scroll input to the thumbnails, for example, left-right scroll, or up-down scroll to view a plurality of thumbnails when the current interface displays no all of the thumbnails.
For example, the thumbnails may be ranked according to the probabilities of language type parameters, with the highest probability of language type parameters being ranked first and the lowest probability of language type parameters being ranked last.
For example, the user may select the language type parameter to be switched by performing a third input on the thumbnail, and after receiving the first input, the electronic device switches the language parameter type parameter.
For example, the third input may refer to the description of the second input, which is not repeated herein.
For example, taking the language type parameter as the language type parameter, the user needs to switch the language type parameter of the electronic device from english to chinese. Referring to fig. 3, when the user inputs the character "in" on the current interface, the electronic device parses and compares the character "in" to obtain the simplified chinese, the chinese traditional (hong kong) and the chinese traditional (taiwan), as shown in fig. 4, the probability value of the simplified chinese is the largest, and then the probability value of the chinese traditional (taiwan) is the smallest, the electronic device displays 3 thumbnails (i.e. the above Y identifiers), which are respectively thumbnail 1 (e.g. 41 in fig. 4) and thumbnail 2 (e.g. 42 in fig. 4) and thumbnail 3 (e.g. 43 in fig. 4), the electronic device sets the thumbnail 1 to be displayed in simplified chinese, thumbnail 2 to be displayed in traditional (taiwan) and thumbnail 3 to be displayed in traditional chinese (taiwan), and the user clicks the thumbnail 1, thumbnail 2 and thumbnail 3 to be displayed on the chat interface in order from left to right in suspension, and the user switches the type parameters of the electronic device in simplified chinese.
For example, when the user inputs the thumbnail by mistake and causes the language type parameter of the electronic device to switch by mistake, the user can return to the thumbnail display page through a specific operation and reselect the language type parameter.
The setting method provided by the application is applied to the scene that the electronic equipment displays the language type parameters to the user in the display interface, and the electronic equipment displays the display style of the electronic equipment after the language type is switched to the user more intuitively through the thumbnail mode, so that the user can conveniently select and switch.
Optionally, in an embodiment of the present application, any identifier is further used to indicate a probability that the input handwriting belongs to a language type parameter corresponding to any identifier.
The probability may be displayed directly in a character form, for example, 50%, or in a graph form, for example, in a pie chart.
For example, the probability values may or may not be displayed directly, which is not limited by the embodiments of the present application.
Optionally, in an embodiment of the present application, the step 202 may further include the following step G:
step G: the electronic device displays the chart.
The chart comprises Y chart elements, the Y chart elements are identified as the Y chart elements, and any chart element is used for indicating the probability that the input handwriting belongs to the language type parameter corresponding to any chart element.
For example, the probabilities may be displayed directly in the form of characters in the graph.
For example, the chart may be used to intuitively reflect the possible language type parameters of handwriting input by the user to the user, and may also be used by the electronic device to calculate the probability of the language type parameters.
By way of example, the above-described charts may be pie charts, bar charts, etc., which are not limiting of the embodiments of the present application.
Illustratively, the chart elements constitute the chart, which may be used to represent the type of language indicated by the chart. For example, taking a chart as an example, each bar in the chart indicates a language type, and the height of each bar is used for indicating the probability of the corresponding language type parameter of the bar, and when the bar is higher, the probability of the language type parameter indicated by the bar is higher; or taking a chart as an example of a pie chart, each sector area in the pie chart indicates a language type parameter, and the round angle of each sector area is used for indicating the probability of the corresponding language type parameter of the sector area, and when the larger the central angle is, the larger the probability of the language type parameter indicated by the sector area is indicated.
Example 3:
example 1: take the language type parameter as an example. As shown in fig. 5 (a), after receiving handwriting input of a user and resolving the input handwriting, the electronic device forms a fan-shaped chart, in which 3 fan-shaped areas are respectively a fan-shaped area 1 (shown as 51 in fig. 5 (a)), a fan-shaped area 2 (shown as 52 in fig. 5 (a)), and a fan-shaped area 3 (shown as 53 in fig. 5 (a)), in which the fan-shaped area 1 displays a chinese traditional (taiwan), the fan-shaped area 2 displays a chinese traditional (hong kong in china), the fan-shaped area 3 displays a chinese simplified, and the electronic device may use only the difference in size of the central angles of the fan-shaped areas to represent the difference in probability of the three language type parameters.
Example 2: as shown in fig. 5 (b), the electronic device directly indicates the probabilities of the above three language type parameters in the sector, wherein the probability of the language type parameter of the chinese traditional (taiwan) is 15%, the probability of the language type parameter of the chinese traditional (hong kong) is 40%, and the probability of the language type parameter of the chinese simplified is 45%.
The setting method provided by the application is applied to the scene that the electronic equipment displays the language type parameters to the user in the display interface, the electronic equipment can intuitively display the language type parameters and the probability of the language type parameters, which are identified by the electronic equipment and correspond to handwriting input of the user, to the user by utilizing the difference of the element properties of the chart in a form of displaying the chart, so that the user can quickly make switching selection, and the working efficiency is improved.
Optionally, in the embodiment of the present application, before the step 201, the following step H1 may be further included:
step H1: and responding to the screen locking operation of the user, and displaying a screen locking interface by the electronic equipment.
Further, in combination with the step H1, the step 202 may further include the following step H2:
step H2: the electronic device receives a fourth input from the user on the lock screen interface.
The screen lock interface is an area where the user performs the fourth input.
The screen locking operation may be a specific operation of a physical key on the electronic device by a user, or may be a virtual key operation of the electronic device by a user, which is not limited in the embodiment of the present application.
Illustratively, the fourth input may refer to the description of the first input, which is not described herein.
For example, the user triggers the electronic device to lock the screen by simultaneously pressing a button of the electronic device that increases the volume and decreases the volume, or the user triggers the electronic device to lock the screen by pressing a blank area of the current interface for a long time.
Therefore, the fixed area is set, so that the user can input the fourth input more conveniently and rapidly.
In the embodiment of the present application, the setting methods shown in the foregoing method drawings are all exemplified by a drawing in combination with the embodiment of the present application. In specific implementation, the setting method shown in the foregoing method drawings may also be implemented in combination with any other drawing that may be combined and illustrated in the foregoing embodiments, which is not repeated herein.
Fig. 6 is a schematic diagram of a possible structure of an electronic device according to an embodiment of the present application, as shown in fig. 6, an electronic device 600 includes: a receiving module 601, a displaying module 602 and an updating module 603; the receiving module 601 is configured to receive a first input of a user; the display module 602 is configured to display, in response to the first input received by the receiving module 601, Y flags, where one flag is used to indicate a language type parameter, and the language type parameter indicated by the Y flags is a language type parameter having a degree of association with an input handwriting of the first input greater than a first threshold; the updating module 603 is configured to update the target information to a target language type parameter indicated by a target identifier in the Y identifiers displayed by the display module 602, where Y is a positive integer.
Optionally, in an embodiment of the present application, the target information includes at least one of the following: the system language type of the electronic equipment and the language type of the information display of the target application program.
Optionally, in the embodiment of the present application, the receiving module 601 is specifically configured to receive a second input of a target identifier from the Y identifiers by a user; the updating module 603 is specifically configured to update, in response to the second input of the target identifier from the Y identifiers received by the receiving module 601, the target information to a target language type parameter indicated by the target identifier.
Optionally, in an embodiment of the present application, the electronic device 600 further includes: an acquisition module 604, a calculation module 605 and a screening module 606; the acquiring module 604 is configured to acquire a handwriting feature of the input handwriting of the first input; the input handwriting corresponds to M language type parameters; the calculating module 605 is configured to calculate, based on the handwriting feature, a degree of association of the input handwriting acquired by the acquiring module 604 with each of the M language type parameters, respectively; the screening module 606 is configured to screen, according to the association degree calculated by the calculating module 605, Y language type parameters whose association degree is greater than or equal to a first threshold from the M language types; wherein M is a positive integer, and M is not less than Y.
Optionally, in the embodiment of the present application, the electronic device 600 further includes a calculating module 605 and a determining module 607; the calculating module 605 is configured to calculate a first association degree of each language type parameter corresponding to the input handwriting; the determining module 607 is configured to determine the Y language type parameters according to the first degree of association calculated by the calculating module 605.
Optionally, in the embodiment of the present application, the calculating module 605 is specifically configured to calculate the language setting intent of each character in the input handwriting according to a first formula; calculating a first association degree of each language type parameter corresponding to the input handwriting according to the language setting intention degree of each character, the second association degree of each language type parameter corresponding to each character and a second formula; wherein, the first formula is:
Figure GDA0004184625250000111
f (i) setting a degree of intent for the language of the i-th character in the input handwriting; the second formula is: />
Figure GDA0004184625250000112
The H includes the input handwritingAnd (c) corresponding to a first association degree of a first language type parameter, wherein g (i) is a second association degree of the first language type parameter corresponding to an ith character in the input handwriting, n is the number of characters in the input handwriting, and the first language type parameter is one of the Y language type parameters.
After receiving a first input of a user, the electronic device provided by the embodiment of the application displays Y identifiers on the electronic device according to an input handwriting corresponding to the first input, wherein the association degree between language type parameters indicated by the Y identifiers and the handwriting input by the user is larger than a first threshold value. Therefore, the plurality of identifiers are displayed to indicate a plurality of possible language types corresponding to the input handwriting, so that the electronic equipment updates the target information into the target language type parameters indicated by the target identifiers in the Y identifiers, a user can accurately and rapidly switch to the language type required by the user, and the working efficiency is improved.
The electronic device provided in the embodiment of the present application can implement each process implemented by the electronic device in the embodiment of the method, and in order to avoid repetition, details are not repeated here.
Taking an electronic device as an example of a terminal device. Fig. 7 is a schematic hardware architecture diagram of a terminal device implementing various embodiments of the present application, where the terminal device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. It will be appreciated by those skilled in the art that the structure of the terminal device 100 shown in fig. 7 does not constitute a limitation of the terminal device, and that the terminal device 100 may comprise more or less components than illustrated, or certain components may be combined, or different arrangements of components. In the embodiment of the present application, the terminal device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
Wherein the user input unit 107 is configured to receive a first input of a user; a processor 110 for controlling the display unit 106 to display Y flags, one flag indicating a language type parameter, in response to the first input received by the user input unit 107, the language type parameter indicated by the Y flags being a language type parameter having a degree of association with an input handwriting of the first input greater than a first threshold value; the processor 110 is further configured to update the target information to a target language type parameter indicated by a target identifier in the Y identifiers displayed by the display module, where Y is a positive integer.
After receiving a first input of a user, the electronic device provided by the embodiment of the application displays Y identifiers on the electronic device according to an input handwriting corresponding to the first input, wherein the association degree between language type parameters indicated by the Y identifiers and the handwriting input by the user is larger than a first threshold value. Therefore, the plurality of identifiers are displayed to indicate a plurality of possible language types corresponding to the input handwriting, so that the electronic equipment updates the target information into the target language type parameters indicated by the target identifiers in the Y identifiers, a user can accurately and rapidly switch to the language type required by the user, and the working efficiency is improved.
It should be understood that, in the embodiment of the present application, the radio frequency unit 101 may be configured to receive and send information or signals during a call, specifically, receive downlink data from a base station, and then process the downlink data with the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices through a wireless communication system.
Terminal device 100 provides wireless broadband internet access to users, such as helping users send and receive e-mail, browse web pages, access streaming media, etc., via network module 102.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the terminal device 100. The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used for receiving an audio or video signal. The input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. Microphone 1042 may receive sound and be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode.
The terminal device 100 further comprises at least one sensor 105, such as a light sensor, a motion sensor and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the terminal device 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when the accelerometer sensor is stationary, and can be used for recognizing the gesture (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking) and the like of the terminal equipment; the sensor 105 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal device 100. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device 100, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the terminal device 100, which is not limited herein.
The interface unit 108 is an interface to which an external device is connected to the terminal apparatus 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the terminal device 100, connects respective parts of the entire terminal device 100 using various interfaces and lines, and performs various functions of the terminal device 100 and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device 100. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and optionally, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, power consumption management, etc. through the power management system.
In addition, the terminal device 100 includes some functional modules, which are not shown, and will not be described herein.
Optionally, the embodiment of the present application further provides a terminal device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor 110, where the computer program when executed by the processor implements each process of the embodiment of the setting method, and the same technical effects can be achieved, and for avoiding repetition, a description is omitted herein.
The embodiment of the application further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements each process of the above-mentioned setting method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided herein. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (8)

1. A setting method applied to an electronic device, the method comprising:
receiving a first input of a user on a first interface;
in response to the first input, displaying Y identifiers in real time, wherein one identifier is used for indicating one language type parameter, and the language type parameter indicated by the Y identifiers is a language type parameter with the association degree with the input handwriting of the first input being larger than a first threshold value;
updating the target information into target language type parameters indicated by target identifiers in the Y identifiers, wherein Y is a positive integer; the target language type parameter is used for indicating at least one of the following: language, font type, font size;
the target information includes at least one of: the system language type of the electronic equipment and the language type of information display of the target application program;
The method further comprises the steps of: updating different target information according to the difference of the first interfaces receiving the first input;
after the receiving the first input from the user and before the displaying the Y identifications, the method further includes:
acquiring handwriting characteristics of the input handwriting of the first input; the input handwriting corresponds to M language type parameters;
calculating the association degree of the input handwriting with each language type parameter in the M language type parameters based on the handwriting characteristics;
screening Y language type parameters with the association degree larger than or equal to a first threshold value from the M language types according to the association degree;
wherein M is a positive integer, and M is not less than Y.
2. The method of claim 1, wherein updating the target information to the target language type parameter indicated by the target identifier in the Y identifiers comprises:
receiving a second input of a user to a target identifier in the Y identifiers;
and in response to a second input of the user to a target identifier in the Y identifiers, updating target information into a target language type parameter indicated by the target identifier.
3. The method of claim 1, wherein prior to displaying the Y identifiers, the method further comprises:
Calculating a first association degree of each language type parameter corresponding to the input handwriting;
and determining Y language type parameters according to the first association degree.
4. A method according to claim 3, wherein said calculating a first degree of association for each language type parameter corresponding to said input handwriting comprises:
calculating the language setting intent of each character in the input handwriting according to a first formula;
calculating a first relevancy of each language type parameter corresponding to the input handwriting according to the language setting intention degree of each character, the second relevancy of each language type parameter corresponding to each character and a second formula;
wherein, the first formula is:
Figure FDA0004054390610000011
the f (i) sets intent for the language of the i-th character in the input handwriting;
the second formula is:
Figure FDA0004054390610000012
the H comprises a first association degree of the input handwriting corresponding to a first language type parameter, g (i) is a second association degree of the first language type parameter corresponding to an ith character in the input handwriting, n is the number of characters in the input handwriting, and the first language type parameter is one of the Y language type parameters.
5. An electronic device, the electronic device comprising: the device comprises a receiving module, a display module, an updating module, an acquisition module, a calculation module and a screening module;
the receiving module is used for receiving a first input of a user on a first interface;
the display module is used for responding to the first input received by the receiving module, displaying Y identifiers in real time, wherein one identifier is used for indicating one language type parameter, and the language type parameter indicated by the Y identifiers is a language type parameter with the association degree with the input handwriting of the first input being larger than a first threshold value;
the updating module is used for updating the target information into target language type parameters indicated by target identifiers in the Y identifiers displayed by the display module, wherein Y is a positive integer; the target language type parameter is used for indicating at least one of the following: language, font type, font size;
the target information includes at least one of: the system language type of the electronic equipment and the language type of information display of the target application program;
the updating module is further used for updating different target information according to the difference of the first interfaces of the first input received by the receiving module;
The acquisition module is used for acquiring handwriting characteristics of the input handwriting of the first input; the input handwriting corresponds to M language type parameters;
the calculation module is used for calculating the association degree of the input handwriting acquired by the acquisition module and each language type parameter in the M language type parameters respectively based on the handwriting characteristics;
the screening module is used for screening Y language type parameters with the association degree larger than or equal to a first threshold value from the M language types according to the association degree calculated by the calculation module;
wherein M is a positive integer, and M is not less than Y.
6. The electronic device of claim 5, wherein the electronic device comprises a memory device,
the receiving module is specifically configured to receive a second input of a user to a target identifier in the Y identifiers;
the updating module is specifically configured to update the target information to a target language type parameter indicated by the target identifier in response to the second input of the target identifier in the Y identifiers by the user received by the receiving module.
7. The electronic device of claim 5, further comprising: a calculation module and a determination module, wherein:
The computing module is used for computing a first association degree of each language type parameter corresponding to the input handwriting;
the determining module is configured to determine Y language type parameters according to the first association degree calculated by the calculating module.
8. The electronic device of claim 7, wherein the computing module is specifically configured to:
calculating the language setting intent of each character in the input handwriting according to a first formula;
calculating a first relevancy of each language type parameter corresponding to the input handwriting according to the language setting intention degree of each character, the second relevancy of each language type parameter corresponding to each character and a second formula;
wherein, the first formula is:
Figure FDA0004054390610000021
the f (i) sets intent for the language of the i-th character in the input handwriting;
the second formula is:
Figure FDA0004054390610000022
/>
the H comprises a first association degree of the input handwriting corresponding to a first language type parameter, g (i) is a second association degree of the first language type parameter corresponding to an ith character in the input handwriting, n is the number of characters in the input handwriting, and the first language type parameter is one of the Y language type parameters.
CN202010143899.8A 2020-03-04 2020-03-04 Setting method, electronic device and storage medium Active CN111399728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010143899.8A CN111399728B (en) 2020-03-04 2020-03-04 Setting method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010143899.8A CN111399728B (en) 2020-03-04 2020-03-04 Setting method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN111399728A CN111399728A (en) 2020-07-10
CN111399728B true CN111399728B (en) 2023-05-26

Family

ID=71434482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010143899.8A Active CN111399728B (en) 2020-03-04 2020-03-04 Setting method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN111399728B (en)

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH113338A (en) * 1997-06-11 1999-01-06 Toshiba Corp Multi-language input system, its method and recording medium recording multi-language input program
KR100766463B1 (en) * 2004-11-22 2007-10-15 주식회사 에이아이코퍼스 Language conversion system and service method moving in combination with messenger
CN102736821B (en) * 2011-03-31 2017-06-16 深圳市世纪光速信息技术有限公司 The method and apparatus that candidate word is determined based on sliding trace
CN102135838A (en) * 2011-05-05 2011-07-27 汉王科技股份有限公司 Method and system for partitioned input of handwritten character string
US9002699B2 (en) * 2011-11-14 2015-04-07 Microsoft Technology Licensing, Llc Adaptive input language switching
CN105718448B (en) * 2016-01-13 2019-03-19 北京新美互通科技有限公司 The method and apparatus that a kind of pair of input character carries out automatic translation
CN106033355B (en) * 2016-05-24 2019-08-30 维沃移动通信有限公司 A kind of language setting method and mobile terminal
JP7016612B2 (en) * 2017-02-10 2022-02-07 株式会社東芝 Image processing equipment and programs
CN107357490B (en) * 2017-07-12 2021-01-08 维沃移动通信有限公司 Display method of tabs and mobile terminal
CN108255555B (en) * 2017-12-26 2019-08-13 平安科技(深圳)有限公司 A kind of system language switching method and terminal device
CN108289252A (en) * 2017-12-29 2018-07-17 山东浪潮商用系统有限公司 A kind of set-top box and method of switching system language
CN108897470A (en) * 2018-06-19 2018-11-27 维沃移动通信有限公司 A kind of translation display methods and mobile terminal
CN109003600B (en) * 2018-08-02 2021-06-08 科大讯飞股份有限公司 Message processing method and device
CN109240785B (en) * 2018-08-31 2021-01-22 维沃移动通信有限公司 Method, terminal and storage medium for setting language
CN110795192B (en) * 2019-10-29 2023-08-25 Vidaa(荷兰)国际控股有限公司 Language switching method and device and terminal equipment

Also Published As

Publication number Publication date
CN111399728A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN111338530B (en) Control method of application program icon and electronic equipment
CN110874147B (en) Display method and electronic equipment
CN110245246B (en) Image display method and terminal equipment
CN110209452B (en) Page display method of mobile terminal and mobile terminal
CN109408072B (en) Application program deleting method and terminal equipment
CN109495616B (en) Photographing method and terminal equipment
CN111610904B (en) Icon arrangement method, electronic device and storage medium
CN109901761B (en) Content display method and mobile terminal
CN110868633A (en) Video processing method and electronic equipment
CN109815462B (en) Text generation method and terminal equipment
CN111124245A (en) Control method and electronic equipment
CN111352547A (en) Display method and electronic equipment
CN111124709A (en) Text processing method and electronic equipment
CN110703972A (en) File control method and electronic equipment
JP7408627B2 (en) Character input method and terminal
CN110908750B (en) Screen capturing method and electronic equipment
CN109992753B (en) Translation processing method and terminal equipment
CN111274842A (en) Method for identifying coded image and electronic equipment
US20210318787A1 (en) Information display method and terminal device
CN108491128B (en) Application program management method and terminal
CN111144065B (en) Display control method and electronic equipment
CN110780751B (en) Information processing method and electronic equipment
CN110874148B (en) Input control method and electronic equipment
CN109286726B (en) Content display method and terminal equipment
CN110780795A (en) Screen capturing method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant