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

Setting method, electronic device, and storage medium Download PDF

Info

Publication number
CN111399728A
CN111399728A CN202010143899.8A CN202010143899A CN111399728A CN 111399728 A CN111399728 A CN 111399728A CN 202010143899 A CN202010143899 A CN 202010143899A CN 111399728 A CN111399728 A CN 111399728A
Authority
CN
China
Prior art keywords
language type
input
handwriting
type parameter
language
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.)
Granted
Application number
CN202010143899.8A
Other languages
Chinese (zh)
Other versions
CN111399728B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

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 language type parameters are difficult to switch quickly when the electronic equipment is set to be a language type which is not mastered by a user by mistake. The method comprises the following steps: the electronic equipment receives a first input of a user; responding to the first input, the electronic equipment displays Y marks, wherein one mark is used for indicating a language type parameter, and the language type parameter indicated by the Y marks is the language type parameter with the relevance degree of the input handwriting of the first input larger than a first threshold value; and the electronic equipment updates the target information into a 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 device technology, the frequency of using electronic devices by users is higher and higher, and the requirements of users on the system functions of electronic devices are also higher and higher.
While the user is using the electronic device, the text displayed on the electronic device may be set to a different language type (e.g., language type), however, when the user uses this function, it is easy for the user to mistakenly touch the text to set the language type of the electronic device to a language type that the user does not grasp. At this time, the user only resets the language type through the setting interface, however, since the text in the setting interface is also the language type which is not grasped by the user 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, an electronic device and a storage medium, which can solve the problem that language type parameters are difficult to switch quickly when the electronic device is set to be a language type which is not mastered by a user by mistake.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a setting method, where the method includes: the electronic equipment receives a first input of a user; responding to the first input, the electronic equipment displays Y marks, wherein one mark is used for indicating a language type parameter, and the language type parameter indicated by the Y marks is the language type parameter with the relevance degree of the input handwriting of the first input larger than a first threshold value; and the electronic equipment updates the target information into a 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 configured to display Y identifiers in response to the first input received by the receiving module, where one identifier is used to indicate one language type parameter, and the language type parameter indicated by the Y identifiers is a language type parameter whose association with the input handwriting of the first input is greater than a first threshold; 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, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the setting method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when 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, wherein the association degree between language type parameters indicated by the Y identifiers and the input handwriting of the user is greater than a first threshold value. Therefore, one or more identifications are displayed to indicate one or more possible language types corresponding to the input handwriting, so that the electronic equipment updates the target information to the target language type parameters indicated by the target identifications in the Y identifications, the user can accurately and quickly switch to the language type required by the user, and the working efficiency is improved.
Drawings
FIG. 1 is a block diagram of a possible operating system according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a setting method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an interface for setting method applications according to an embodiment of the present disclosure;
fig. 4 is a second schematic diagram of an interface applied by a setting method according to an embodiment of the present application;
fig. 5 is a third schematic diagram of an interface applied by a setting method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
It should be noted that "a 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 "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
An execution main body of the setting method provided in the embodiment of the present application may be the electronic device, or may also 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 following takes a terminal device as an example to exemplarily explain a setting method provided by the embodiment of the present application.
For 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 (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile terminal device may be a 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 present application may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The following describes a software environment to which the setting method provided by the embodiment of the present application is applied, by taking an operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible operating system according to an embodiment of the present disclosure, in fig. 1, the architecture of the operating system includes 4 layers, which are an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, L inux kernel layer).
The application layer comprises various application programs (including system application programs and third-party application programs) in an operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes a library (also referred to as a system library) and an operating system runtime environment. The library mainly provides 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 lowest layer of an operating system software layer, and the kernel layer provides core system services and hardware-related drivers for the operating system based on L inux 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 run based on the operating system shown in fig. 1. That is, the processor or the electronic device may implement the setting method provided by the embodiment of the present application by running the software program in the operating system.
The following describes a setting method according to an embodiment of the present application with reference to a flow chart of the setting method shown in fig. 2, where fig. 2 is a schematic flow chart of the setting method provided in the embodiment of the present application, and the setting method includes steps 201 to 203:
step 201: the electronic device receives a first input from a user.
Step 202: in response to the first input, the electronic device displays Y identifiers.
And one mark is used for indicating one language type parameter, and the language type parameters indicated by the Y marks are the language type parameters of which the association degree with the input handwriting of the first input is greater than a first threshold value.
Illustratively, the association degree of the language type parameter with the input handwriting of the first input is used to indicate: the degree of association between the language type parameter and the input handwriting of the first input. In an example, the relevance may be a matching degree, that is, the relevance may be a matching degree between the input handwriting of the first input and the language type parameter, and it is understood that the relevance may be characterized by a percentage.
It should be noted that the first threshold may be a fixed value, or may also be self-defined, and may be determined specifically according to actual use requirements, and the embodiment of the present application is not limited.
For example, the first threshold may be set to 60%, that is, if the degree of association 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 a target language type parameter indicated by the target identifier in the Y identifiers, wherein Y is a positive integer.
For example, the first input may be a handwriting input, for example, a handwriting input of the 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, may also be a system setting interface of the electronic device, and may also be a handwriting input interface, which is not limited in this embodiment of the application. For example, a user may hand-write the Chinese character "middle" or the English word "applet" on a handwriting input interface of the electronic device.
For example, the input handwriting formed by the handwriting input on the first interface may be displayed on the first interface, or may not be displayed on the first interface, which is not limited in this embodiment of the application.
Illustratively, when the time length for the user to stop performing the handwriting input is greater than a predetermined threshold, the handwriting input is ended, and the electronic device ends receiving the handwriting input.
Illustratively, the content of the handwriting input can input a single character, for example, a Chinese character "I", or can be a character string composed of a plurality of characters, for example, a Chinese short sentence "I is Chinese".
For example, the identifier may be a control or a chart, which is not limited in this embodiment of the application.
In an example, the shape of the control element may be any possible shape, such as a circle, a rectangle, a triangle, a diamond, a ring, or a polygon, which may be determined according to actual use requirements, and the embodiment of the present application is not limited.
In an example, the size of the control can be a default size, and can also be flexibly adjusted along with the operation of the user. Further, the control does not block the content (i.e., the target content) selected by the user in the first interface.
In one example, the control or chart described above may be displayed in a floating manner on the first interface. For example, when the user drags the control or chart on the first interface, the control or chart may move on the first interface along with the user's drag input.
Illustratively, the language type parameter is used to indicate at least one of: language, font type, font size.
For example, the languages may include: chinese, English, German, etc. The font types may include: regular script, song script, black script, song-imitating script and other font types. The word size may include: small size, medium size, large size. The embodiments of the present application do not limit this.
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 a user inputs a Chinese character "middle" by handwriting, the electronic device displays 3 identifiers corresponding to language type parameters with the highest association degree with the handwriting of the user, namely identifier 1, identifier 2 and identifier 3. The language type parameter indicated by the identifier 1 corresponds to a Chinese simplified form, the language type parameter indicated by the identifier 2 corresponds to a Taiwan traditional form, and the language type parameter indicated by the identifier 2 corresponds to a hong Kong traditional form, at this time, the electronic device displays respective corresponding language names on the three identifiers, displays the Chinese simplified form on the identifier 1, displays the Taiwan traditional form on the identifier 2, and displays the hong Kong traditional form on the identifier 3.
Optionally, in an embodiment of the present application, the target information includes at least one of: 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 a first input at a different display interface, so as to update different target information according to the different display interfaces. For example, if the electronic device receives a first input on an application program interface, the electronic device updates the language type in the application program; and if the electronic equipment receives the first input on 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.
For example, the target identifier may be a default, or may be selected by the user, which is not limited in this embodiment of the application.
Illustratively, when the electronic device displays the identifiers on the current interface in real time in the writing process of the user, and when the user does not write all characters or complete characters, if the user observes that a plurality of identifiers displayed on the current interface include a target identifier, the user may stop performing handwriting input and directly click the target identifier for selection, for example, in example 1, when the user may display a language type parameter of "chinese simplified" on the electronic device, the user may not perform handwriting input any more, and directly click the "chinese simplified" identifier.
For example, if the user selects the language type by mistake, which results in a 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 to reselect the language type. In an example, the specific operation may be an operation of a physical key by a user, or may also be an operation of a virtual key by the user, which is not limited in this 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 identifications are displayed on the electronic equipment according to the input handwriting corresponding to the first input, and the association degree of the language type parameters indicated by the Y identifications and the input handwriting of the user is greater than a first threshold value. Therefore, the plurality of identifications 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 identifications in the Y identifications, the user can accurately and quickly switch to the language type required by the user, and the working efficiency is improved.
Optionally, in this embodiment of the present application, the following step a1 and step a2 may be included in the step 203:
step A1: and the electronic equipment receives a second input of the target identifier in the Y identifiers from the user.
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.
For example, the second input may be a click input of the target identifier by the user, or a voice instruction input by the user, or a specific gesture input by the user, which may be set according to actual requirements. The click input can be single click input, double click input or click input of any number of times; the click input can also be a long-press input or a short-press input; the specific gesture may be any one of a single-click gesture, a sliding 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 receiving the second input, the electronic device may change the system language type parameter of the electronic device or the language type parameter of the information display of the target application program to the target language type parameter indicated by the target identifier.
For example, with reference to example 1, the user may select the language type to be switched by clicking identifier 1, identifier 2, or identifier 3, and after the user selects the language type to be switched, the electronic device switches the language type.
According to the setting method, in a scene that the user selects the language type by himself, after the electronic equipment displays the first identification indicating different language types to the user, the user quickly sets the language type required by the user through second input of the identification, and therefore the efficiency of setting the language type in the electronic equipment is improved.
Optionally, in this embodiment of the present application, after the step 201 and before the step 202, the setting method provided in this embodiment of the present application may further include the following steps B1 to B3:
step B1: the electronic equipment acquires the handwriting characteristics of the input handwriting of the first input.
Wherein, the input handwriting corresponds to M language type parameters.
Step B2: and the electronic equipment calculates the association degree of the input handwriting with each language type parameter in the M language type parameters respectively based on the handwriting characteristics.
Step B3: and the electronic equipment screens out 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, one mark is used for indicating one language type parameter in the Y language type parameters and the corresponding relevancy, M is a positive integer and is more than or equal to Y.
Illustratively, the association degree may be a probability.
Illustratively, the M language type parameters are all or part of the language type parameters corresponding to the Y identifiers.
Illustratively, when the user handwriting input comprises a plurality of characters, the electronic device analyzes the plurality of characters input by the user in real time and displays the language type corresponding to the last character on the display interface of the electronic device.
For example, the electronic device may retrieve language type parameters from a language database. Wherein, the language database may include: word stock, matrix data corresponding to characters, corresponding relation between the matrix data and language type, etc.
For example, the handwriting characteristics of the input handwriting can be handwriting position characteristics, handwriting direction characteristics, handwriting stroke characteristics, and the like corresponding to the input handwriting.
For example, the handwriting characteristics of the input handwriting may be characterized by a matrix, that is, the handwriting characteristics of the input handwriting may be matrix data.
For example, after the electronic device may parse the handwriting input and convert the handwriting input into matrix data, the electronic device may compare the matrix data of the handwriting input with the matrix data of the characters included in the language character database, and obtain a matching degree (i.e., a matching numerical value) between the matrix data of the handwriting input and the matrix data of the characters included in the language character database.
For example, when the degree of association of the matrix data of the input handwriting with the matrix data of the characters included in the language database is greater than a first threshold, the language type parameter corresponding to the character with the degree of association greater than the first threshold is determined, and the language type parameter is the language type parameter which the user may switch.
For example, the user inputs "center" on the current display interface. As shown in fig. 3 (a), when the user finishes handwriting input of "medium", the electronic device parses the handwriting input by the handwriting input, and converts the handwriting into a matrix data form inside the electronic device (as shown in fig. 3 (b)), at this time, the electronic device matches the matrix data with the matrix data in the language database (as shown in fig. 3 (c)), and since the degree of association of the matching between the two matrix data is 44.4% and 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 handwriting changes of the handwritten input.
Step C2: the electronic equipment analyzes 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 ratio matched with the target matrix data and the matrix data in the language database.
Each matrix data in the language database corresponds to one or more language type parameters, that is, each matrix data corresponds to one or more language types.
Illustratively, the numerical ratio is: the same data between the target matrix data and a certain matrix data in the language database accounts for the ratio of all data in the target matrix data.
For example, when the user finishes handwriting input of the "middle" word, as shown in (b) of fig. 3, the matrix data 1 (target matrix data) of the "middle" word is found in the language database by the electronic device, and then, as shown in (c) of fig. 3, the matrix data 2 corresponding to the "middle" word is found in the language database by the electronic device, and the matrix data 1 of the "middle" word is compared with the matrix data 2, and if the matrix data 1 of the "middle" word has 9 data in total and there are 4 data identical to the matrix data 2, the ratio of the number of matching between the matrix data 1 and the matrix data 2 is 44.4%.
Further, in combination with the steps C1 to C4, the step B3 may include the step C5 of:
step C5: the electronic equipment compares the relevance of each language type parameter with a first threshold value, and displays a mark for indicating the language type parameter on a first interface when the relevance of a certain language type is greater than the first threshold value.
Illustratively, the electronic device detects a handwriting change of the handwriting input for starting a handwriting parsing program of the electronic device.
For example, the electronic device may start the analysis program to analyze the handwriting input by the user after the handwriting input by the user is finished, or may start the analysis program to analyze the handwriting input by the user in real time during the handwriting input.
For example, when recognizing the characters input by the user, the electronic device may parse the handwriting input by the user and convert the handwriting input into matrix data.
For example, the 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.
Example 2, for example, if a user needs to switch an electronic device currently displaying english to display chinese, the user inputs a character "middle" by handwriting on the current interface, and at two moments before writing, after the electronic device analyzes according to a handwriting input by the user, the association between the corresponding language type and the language type parameter in the electronic device is shown in table 1. Where table 1 may be displayed on the current interface:
Figure BDA0002400041560000061
TABLE 1
After the user inputs the complete character "middle" by handwriting, the electronic device analyzes the handwriting input by the user, and the corresponding language type and the association degree of the language type parameter in the electronic device are shown in table 2. Where table 2 may be displayed on the current interface:
Figure BDA0002400041560000071
TABLE 2
Illustratively, with reference to example 2, when table 1 and table 2 are displayed on the current interface, the user may click on the language type in table 1 or table 2 to select the language type to be switched, and after the user selects the language type to be switched, the electronic device switches the language type.
According to the setting method, in a scene of receiving the first input on the display interface, the language type parameters corresponding to the first input can be quickly analyzed and compared through the handwriting change characteristics of the first data and according to the pre-stored matrix data in the language database, and therefore the language type parameters can be conveniently provided for a user to select and use.
Optionally, in this embodiment of the application, the electronic device may determine the language setting intention of one or more language type parameters based on the input handwriting of the first input, so as to determine the Y language type parameters.
For example, before the step 202, the setting method provided by the embodiment of the present application further includes the following steps D1 and D2:
step D1: the electronic equipment calculates the first relevance of each language type parameter corresponding to the input handwriting.
Step D2: the electronic equipment determines the Y language type parameters according to the first relevance.
Illustratively, the first relevance of the language type parameter corresponding to the input handwriting is used to characterize: the degree to which the handwriting characteristics of the input handwriting are associated with one or more language type parameters.
Further optionally, the step C1 may include the following steps E1 and E2:
step E1: the electronic device calculates language setting intention of each character in the input handwriting according to a first formula.
Step E2: and the electronic equipment calculates the 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 BDA0002400041560000072
(i) setting an intention degree 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 BDA0002400041560000073
h is a first relevance degree of the input handwriting corresponding to the first language type parameter, g (i) is a second relevance degree of each language type parameter corresponding to the ith character in the input handwriting, n is the number of characters corresponding to the input handwriting corresponding to the first input, 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 an input order of a current character according to a distance interval between the input handwriting of the currently input character and an 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 input character is the 2 nd character, the currently input 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 currently input character and the input handwriting of a 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 input character is the 2 nd character, the currently input character is determined to be the 3 rd character.
For example, when the input handwriting contains a plurality of characters, the electronic device may set that the language setting intention of the last character in the handwriting input is the highest. Generally, the language setting intention of each character of the characters conforms to a gaussian distribution, and the language setting intention can be quantized by using a weight ratio, that is, the weight ratio of each character is: f (i).
Exemplarily, the second association degree refers to: a degree of association of each of the n characters with one or more language type parameters.
For example, after analyzing all possible language types by using the language database, the electronic device analyzes the second association degree of each character which is possibly a certain language type, wherein the second association degree of each character which is possibly a certain language type is g (i). For example, in connection with Table 2 above, after the user enters the complete character "in" by hand, 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 degree of association between the 'middle' and 'Chinese simplified' of the character is 38.0%, when the language type is 'Chinese traditional', the degree of association between the 'middle' and 'Chinese simplified' of the character is 32.0%, and when the language type is 'Taiwan traditional', the degree of association between the 'middle' and 'Chinese simplified' of the character is 32.0%.
For example, 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 the certain language type can be calculated by the formula two.
Similarly, for other languages calculated by the electronic device, the same calculation steps as described above may be used to obtain the first association degrees of the other languages.
For example, the user may input a plurality of characters "china" by hand on the electronic device. When a user inputs two characters of Chinese by handwriting, the electronic equipment calculates the language setting intention degree of the single character of Chinese and the single character of country according to a first formula, wherein the language setting intention degree of the character of Chinese and the 3 language type parameters have the association degrees (namely the second association degrees) which are respectively Chinese simplified, hong Kong traditional and Taiwan traditional, and the character of country and the 1 language type parameter have the association degrees and are the Chinese simplified.
Then, according to a second formula and the respective language setting intention of the two characters "China" and "nation" and the language type parameter corresponding to each character, the association degree (i.e. the first association degree) between the input handwriting "China" and the 3 language type parameters is calculated, and finally the language type parameter corresponding to the input handwriting "China" is determined to be a Chinese simplified body.
According to the setting method, in the scene that the user inputs a plurality of characters, the user can make a more accurate calculation result for the language type to be switched by the user through the mode of inputting the plurality of characters, so that the user can conveniently and quickly switch the language type of the electronic equipment.
Optionally, in this embodiment of the present application, the step 201 may include the following step F:
step F: the electronic device receives a first input by a user on a target area of a first interface.
Each of the Y identifiers further includes corresponding first information, and a language type of the first information corresponding to each identifier is the same as a language type parameter indicated by the identifier.
For example, the first information may be characters displayed on Y identifiers.
Illustratively, the above identification may be a thumbnail of the current interface.
For example, one or more thumbnails may be used, and the embodiments of the present application do not limit this.
For example, when the number of thumbnails is too large and the current interface does not display all of the thumbnails, the user may enter a flip input for the thumbnails, such as flipping left or right, or flipping up or down to view multiple thumbnails.
For example, the thumbnails may be sorted according to the probability of the language type parameter, where the probability of the language type parameter is the highest and the probability of the language type parameter is the lowest.
For example, the user may select the language type parameter to be switched by performing a third input on the thumbnail, and the electronic device switches the language type parameter after receiving the first input.
For example, the third input may refer to the description of the second input, and is not described herein again.
For example, the language type parameter is taken as a language type parameter, and 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 "middle" on the current interface, and the language type parameter corresponding to the character "middle" is simplified chinese, hong kong traditional and taiwan traditional through the analysis and comparison of the electronic device, as shown in fig. 4, the probability value of simplified chinese is the largest, next hong kong traditional and taiwan traditional is the smallest, the electronic device displays 3 thumbnail images (i.e. the above-mentioned Y identifiers), which are respectively thumbnail image 1 (41 in fig. 4), thumbnail image 2 (42 in fig. 4) and thumbnail image 3 (43 in fig. 4), the electronic device sets the above-mentioned thumbnail image 1 as simplified chinese display, thumbnail image 2 as hong kong traditional display and thumbnail image 3 as taiwan traditional, and floats and displays the thumbnail images 1, thumbnail image 2 and thumbnail image 3 on the chat interface in the order from left to right, the user clicks the thumbnail image displayed in simplified chinese, the language type parameter of the electronic device is switched to simplified chinese.
Illustratively, when the user inputs the thumbnail by mistake, which results in an error in switching the language type parameter of the electronic device, the user may return to the thumbnail display page through a specific operation to reselect the language type parameter.
The setting method provided by the application is applied to a scene that the electronic equipment displays the language type parameters to the user on the display interface, and the electronic equipment displays the display style of the switched language type to the user more intuitively through the form of the thumbnail, so that the user can conveniently select and switch.
Optionally, in this embodiment of the present application, any identifier is further configured to indicate a probability that the input handwriting belongs to a language type parameter corresponding to any identifier.
Illustratively, the probability may be displayed directly in a character manner, for example, 50%, or may be displayed in a graph manner, for example, a pie chart.
For example, the probability value may or may not be directly displayed, which is not limited in the embodiment of the present application.
Optionally, in this embodiment of the present application, the step 202 may further include the following step G:
step G: the electronic device displays a chart.
The graph comprises Y graph elements, the Y marks are the Y graph elements, and any graph element is used for indicating the probability that the input handwriting belongs to the language type parameter corresponding to any graph element.
For example, the probability may be displayed directly in the graph in a character form.
For example, the chart can be used for intuitively reflecting language type parameters possible for handwriting input by a user to the user, and can also be used for calculating the probability magnitude of the language type parameters by the electronic equipment.
For example, the graph may be a pie chart, a bar chart, and the like, which is not limited by the embodiment of the present application.
Illustratively, the chart elements make up the chart and may be used to represent the language type indicated by the chart. For example, taking a chart as an example of a bar chart, each bar in the bar chart indicates a language type, the height of each bar is used to indicate the probability of the language type parameter corresponding to the bar chart, and when the bar chart is higher, the higher the probability of the language type parameter indicated by the bar chart is, the higher the probability is; or, taking a chart as a pie chart as an example, each sector area in the pie chart indicates a language type parameter, 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 central angle is larger, the probability of the language type parameter indicated by the sector area is larger.
Example 3:
example 1: take language type parameter as an example. As shown in fig. 5 (a), after receiving a handwriting input by a user and analyzing the input handwriting, the electronic device forms a fan-shaped chart, and the fan-shaped icon has 3 fan-shaped areas, which are respectively a fan-shaped area 1 (e.g. 51 in fig. 5 (a)), a fan-shaped area 2 (e.g. 52 in fig. 5 (a)), and a fan-shaped area 3 (e.g. 53 in fig. 5 (a)), and names of three different language types are displayed in the fan-shaped chart, where the fan-shaped area 1 displays taiwan complex, the fan-shaped area 2 displays hong kong complex, and the fan-shaped area 3 displays chinese simplified, and the electronic device can only use the difference of the size of the central angle of the fan-shaped area to indicate that the probability of the three language type parameters is different.
Example 2: as shown in fig. 5 (b), the electronic device directly marks the probabilities of the three language type parameters in the sector area, wherein the probability of the language type parameter in taiwan complex is 15%, the probability of the language type parameter in hong kong complex is 40%, and the probability of the language type parameter in chinese simplified is 45%.
The setting method provided by the application is applied to a scene that the electronic equipment displays the language type parameters to the user on the display interface, and the electronic equipment can intuitively display the language type parameters which are identified by the electronic equipment and correspond to the handwriting input of the user and the probability of the language type parameters to the user by using different properties of chart elements through the form of displaying the chart, so that the user can quickly make switching selection, and the working efficiency is improved.
Optionally, in this embodiment of the present application, before the step 201, the following step H1 may also be 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: and the electronic equipment receives a fourth input of the user on the screen locking interface.
Illustratively, the lock screen interface is an area where the user makes a fourth input.
For example, the screen locking operation may be a specific operation of a user on a physical key on the electronic device, or may also be a virtual key operation of the user on the electronic device, which is not limited in this embodiment of the present application.
For example, the fourth input may refer to the description of the first input, and will not be described here.
For example, the user may trigger the electronic device to lock the screen by pressing a button of the electronic device to increase the volume and decrease the volume at the same time, or the user may trigger the electronic device to lock the screen by pressing a blank area of the current interface.
Therefore, the fourth input is more convenient and quicker for the user by setting the fixed area.
In the embodiments of the present application, the setting methods shown in the above-mentioned method drawings are all exemplarily described with reference to one drawing in the embodiments of the present application. In specific implementation, the setting method shown in each method drawing can also be implemented by combining any other drawing which can be combined and is illustrated in the above embodiments, and details are not described here.
Fig. 6 is a schematic structural diagram of an electronic device for implementing the embodiment of the present application, and as shown in fig. 6, the electronic device 600 includes: a receiving module 601, a display 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, configured to display Y identifiers in response to the first input received by the receiving module 601, where one identifier is used to indicate one language type parameter, and the language type parameter indicated by the Y identifiers is a language type parameter whose association with the input handwriting of the first input is 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 displaying 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 system language type of the electronic equipment and the language type of the information display of the target application program.
Optionally, in this embodiment of the application, the receiving module 601 is specifically configured to receive a second input of the target identifier in the Y identifiers from the user; the updating module 603 is specifically configured to update the target information to the target language type parameter indicated by the target identifier in response to the second input, received by the receiving module 601, of the target identifier in the Y identifiers by the user.
Optionally, in this embodiment of the application, the electronic device 600 further includes: an acquisition module 604, a calculation module 605 and a screening module 606; the obtaining module 604 is configured to obtain a handwriting characteristic of the first input handwriting; the input handwriting corresponds to M language type parameters; the calculating module 605 is configured to calculate, based on the handwriting features, a degree of association between the input handwriting obtained by the obtaining module 604 and each of the M language type parameters; the filtering module 606 is configured to filter out Y language type parameters with a relevancy greater than or equal to a first threshold from the M language types according to the relevancy calculated by the calculating module 605; wherein M is a positive integer, and M is more than or equal to Y.
Optionally, in this 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 degree of association 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 association degree calculated by the calculating module 605.
Optionally, in an embodiment of the present application, the computing module is further configured to determine a position of the mobile device605 specifically configured to calculate a language setting intention degree 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 BDA0002400041560000111
(i) setting an intention degree for the language of the ith character in the input handwriting; the second formula is:
Figure BDA0002400041560000112
the H includes a first degree of association of the input handwriting with a first language type parameter, g (i) is a second degree of association of the first language type parameter with an i-th character in the input handwriting, n is a number of characters in the input handwriting, and the first language type parameter is one of the Y language type parameters.
According to the electronic equipment provided by the embodiment of the application, after a first input of a user is received, Y marks are displayed on the electronic equipment according to an input handwriting corresponding to the first input, and the association degree of language type parameters indicated by the Y marks and the input handwriting of the user is greater than a first threshold value. Therefore, the plurality of identifications 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 identifications in the Y identifications, the user can accurately and quickly 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 above method embodiments, and is not described here again to avoid repetition.
Take an electronic device as an example. Fig. 7 is a schematic diagram of a hardware structure of a terminal device for 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. Those skilled in the art will appreciate that the configuration 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 include more or less components than those shown, or combine some components, or arrange different 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.
The user input unit 107 is used for receiving a first input of a user; a processor 110, configured to control the display unit 106 to display Y identifiers in response to the first input received by the user input unit 107, where one identifier is used to indicate one language type parameter, and the language type parameter indicated by the Y identifiers is a language type parameter with a degree of association with the input handwriting of the first input greater than a first threshold; 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.
According to the electronic equipment provided by the embodiment of the application, after a first input of a user is received, Y marks are displayed on the electronic equipment according to an input handwriting corresponding to the first input, and the association degree of language type parameters indicated by the Y marks and the input handwriting of the user is greater than a first threshold value. Therefore, the plurality of identifications 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 identifications in the Y identifications, the user can accurately and quickly 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 used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, 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 can also communicate with a network and other devices through a wireless communication system.
The terminal device 100 provides the user with wireless broadband internet access via the network module 102, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
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 related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture 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 graphic 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. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes 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 that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
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 (L acquired Crystal Display, L CD), an Organic light-Emitting Diode (O L ED), or the like.
The user input unit 107 may be used to receive input numeric or character information and 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. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, 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 panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the 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 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device 100, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (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 the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the 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 various parts of the entire terminal device 100 by 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, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which 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 supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present application further provides a terminal device, which includes 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 setting method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the setting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A setting method is applied to electronic equipment, and is characterized by comprising the following steps:
receiving a first input of a user;
displaying Y identifiers in response to the first input, wherein one identifier is used for indicating one language type parameter, and the language type parameter indicated by the Y identifiers is the language type parameter with the relevance degree of the input handwriting of the first input larger than a first threshold value;
and updating the target information into a target language type parameter indicated by a target identifier in the Y identifiers, wherein Y is a positive integer.
2. The method of claim 1, wherein the target information comprises at least one of: the system language type of the electronic equipment and the language type of the information display of the target application program.
3. The method according to claim 1, wherein the updating the target information to the target language type parameter indicated by the target identifier of the Y identifiers comprises:
receiving a second input of a user to a target identifier in the Y identifiers;
and in response to the second input of the target identifier in the Y identifiers by the user, updating the target information into the target language type parameter indicated by the target identifier.
4. The method of claim 1, wherein after receiving the first input from the user and before displaying the Y identifiers, the method further comprises:
acquiring handwriting characteristics of the first input handwriting; the input handwriting corresponds to M language type parameters;
based on the handwriting characteristics, calculating the relevance of the input handwriting matched with each language type parameter in the M language type parameters;
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 more than or equal to Y.
5. The method of claim 1, wherein prior to displaying the Y identifiers, the method further comprises:
calculating a first relevance degree of each language type parameter corresponding to the input handwriting;
and determining Y language type parameters according to the first relevance.
6. The method according to claim 5, wherein the calculating the first relevance of each language type parameter corresponding to the input handwriting comprises:
calculating language setting intention 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 FDA0002400041550000011
the f (i) sets an intention degree for the language of the ith character in the input handwriting;
the second formula is:
Figure FDA0002400041550000012
the H comprises a first degree of association of the input handwriting with a first language type parameter, g (i) is a second degree of association 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.
7. An electronic device, characterized in that the electronic device comprises: the device comprises 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 and displaying Y identifiers, wherein one identifier is used for indicating one language type parameter, and the language type parameter indicated by the Y identifiers is the language type parameter with the relevance degree with the input handwriting of the first input larger than a first threshold value;
and the updating module is used for updating the target information into the target language type parameter indicated by the target identifier in the Y identifiers displayed by the display module, wherein Y is a positive integer.
8. The electronic device of claim 7, wherein the target information comprises at least one of: the system language type of the electronic equipment and the language type of the information display of the target application program.
9. The electronic device of claim 7,
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 the target language type parameter indicated by the target identifier in response to the second input, received by the receiving module, of the target identifier in the Y identifiers.
10. The electronic device of claim 7, further comprising: the system comprises an acquisition module, a calculation module and a screening module;
the acquisition module is used for acquiring the handwriting characteristics of the first input handwriting; the input handwriting corresponds to M language type parameters;
the calculation module is configured to calculate, based on the handwriting features, a degree of association between the input handwriting acquired by the acquisition module and each of the M language type parameters;
the screening module is used for screening Y language type parameters of which the association degrees are greater than or equal to a first threshold value from the M language types according to the association degrees calculated by the calculation module;
wherein M is a positive integer, and M is more than or equal to Y.
11. The electronic device of claim 7, further comprising: a calculation module and a determination module, wherein:
the calculation module is used for calculating a first relevance degree of each language type parameter corresponding to the input handwriting;
the determining module is used for determining Y language type parameters according to the first relevance calculated by the calculating module.
12. The electronic device of claim 11, wherein the computing module is specifically configured to:
calculating language setting intention 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 FDA0002400041550000021
the f (i) sets an intention degree for the language of the ith character in the input handwriting;
the second formula is:
Figure FDA0002400041550000022
the H comprises a first degree of association of the input handwriting with a first language type parameter, g (i) is a second degree of association 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 true CN111399728A (en) 2020-07-10
CN111399728B 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)

Citations (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
US20070294078A1 (en) * 2004-11-22 2007-12-20 Kang-Ki Kim Language Conversation System And Service Method Moving In Combination With Messenger
CN102135838A (en) * 2011-05-05 2011-07-27 汉王科技股份有限公司 Method and system for partitioned input of handwritten character string
CN102736821A (en) * 2011-03-31 2012-10-17 腾讯科技(深圳)有限公司 Method and apparatus for determining candidate words based on sliding path
US20130124187A1 (en) * 2011-11-14 2013-05-16 Microsoft Corporation Adaptive input language switching
CN106033355A (en) * 2016-05-24 2016-10-19 维沃移动通信有限公司 Language setting method and mobile terminal
US20170199870A1 (en) * 2016-01-13 2017-07-13 Beijing Xinmei Hutong Technology Co.,Ltd Method and Apparatus for Automatic Translation of Input Characters
CN107357490A (en) * 2017-07-12 2017-11-17 维沃移动通信有限公司 The display methods and mobile terminal of a kind of tab
US10003709B1 (en) * 2017-02-10 2018-06-19 Kabushiki Kaisha Toshiba Image processing apparatus and program
CN108255555A (en) * 2017-12-26 2018-07-06 平安科技(深圳)有限公司 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
CN109003600A (en) * 2018-08-02 2018-12-14 科大讯飞股份有限公司 Message treatment method and device
CN109240785A (en) * 2018-08-31 2019-01-18 维沃移动通信有限公司 A kind of method, terminal and storage medium that language is set
CN110795192A (en) * 2019-10-29 2020-02-14 青岛海信传媒网络技术有限公司 Language switching method and device and terminal equipment

Patent Citations (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
US20070294078A1 (en) * 2004-11-22 2007-12-20 Kang-Ki Kim Language Conversation System And Service Method Moving In Combination With Messenger
CN102736821A (en) * 2011-03-31 2012-10-17 腾讯科技(深圳)有限公司 Method and apparatus for determining candidate words based on sliding path
CN102135838A (en) * 2011-05-05 2011-07-27 汉王科技股份有限公司 Method and system for partitioned input of handwritten character string
US20130124187A1 (en) * 2011-11-14 2013-05-16 Microsoft Corporation Adaptive input language switching
US20170199870A1 (en) * 2016-01-13 2017-07-13 Beijing Xinmei Hutong Technology Co.,Ltd Method and Apparatus for Automatic Translation of Input Characters
CN106033355A (en) * 2016-05-24 2016-10-19 维沃移动通信有限公司 Language setting method and mobile terminal
US10003709B1 (en) * 2017-02-10 2018-06-19 Kabushiki Kaisha Toshiba Image processing apparatus and program
CN107357490A (en) * 2017-07-12 2017-11-17 维沃移动通信有限公司 The display methods and mobile terminal of a kind of tab
CN108255555A (en) * 2017-12-26 2018-07-06 平安科技(深圳)有限公司 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
CN109003600A (en) * 2018-08-02 2018-12-14 科大讯飞股份有限公司 Message treatment method and device
CN109240785A (en) * 2018-08-31 2019-01-18 维沃移动通信有限公司 A kind of method, terminal and storage medium that language is set
CN110795192A (en) * 2019-10-29 2020-02-14 青岛海信传媒网络技术有限公司 Language switching method and device and terminal equipment

Also Published As

Publication number Publication date
CN111399728B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN111142747B (en) Group management method and electronic equipment
CN110245246B (en) Image display method and terminal equipment
CN111061383A (en) Character detection method and electronic equipment
CN111610904B (en) Icon arrangement method, electronic device and storage medium
CN109901761B (en) Content display method and mobile terminal
CN111352547A (en) Display method and electronic equipment
CN110703972A (en) File control method and electronic equipment
CN110908750B (en) Screen capturing method and electronic equipment
JP7408627B2 (en) Character input method and terminal
CN109992753B (en) Translation processing method and terminal equipment
CN109286726B (en) Content display method and terminal equipment
US20210318787A1 (en) Information display method and terminal device
CN111144065B (en) Display control method and electronic equipment
CN111443819A (en) Control method and electronic device
CN111600729A (en) Group member adding method and electronic equipment
CN111368151A (en) Display method and electronic equipment
CN110780795A (en) Screen capturing method and electronic equipment
CN111427496B (en) Parameter adjusting method and electronic equipment
CN111399728B (en) Setting method, electronic device and storage medium
CN111026315B (en) Text selection method and electronic equipment
CN111027406B (en) Picture identification method and device, storage medium and electronic equipment
CN110045897B (en) Information display method and terminal equipment
CN109002239B (en) Information display method and terminal equipment
CN109491515B (en) Input method, intelligent terminal and computer readable storage medium
CN109032379B (en) Language option display method and terminal

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