Information processing method and electronic device

Through the target operation and combination instructions of the operation body, combined with the combination type and direction, the characters to be combined on the display interface are combined, solving the problem of combining information content in scenarios such as teaching, and achieving flexible and efficient character combination processing.

CN114610164BActive Publication Date: 2024-12-20LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210262766.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-17
Publication Date
2024-12-20
Estimated Expiration
2042-03-17

AI Technical Summary

Technical Problem

In application scenarios such as teaching or knowledge sharing, it is difficult to effectively process and combine different information content on the display interface, such as combining two words into one new word.

Method used

Through the target operation of the operation body, determine the characters to be combined on the display interface, obtain the combination instructions, and combine these characters according to the combination method, including moving, selecting or input operations, triggering the combination instructions, determining the combination type and direction, and finally Combine into target combination characters with complete semantics.

Benefits of technology

It realizes effective combination processing of multiple characters to be combined on the display interface, meets the diverse character combination needs in different application scenarios, and improves the flexibility and accuracy of information processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114610164B_ABST
    Figure CN114610164B_ABST
Patent Text Reader

Abstract

The present application discloses an information processing method and an electronic device, the method comprising: obtaining operation information of a target operation of an operating body; determining multiple characters to be combined on a display interface according to the operation information of the target operation; obtaining a combination instruction for the multiple characters to be combined; determining a combination method for the multiple characters to be combined that matches the combination instruction; and combining the multiple characters to be combined on the display interface according to the combination method. Thus, based on the scheme of the present application, combining the multiple characters to be combined can meet the needs of combining different information contents in application scenarios such as teaching or knowledge sharing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information processing technology, and in particular, relates to an information processing method and an electronic device. Background Art

[0002] In application scenarios such as teaching or knowledge sharing, it is often desired to process different information content, such as combining two characters to form a new character, etc. Therefore, providing a solution that can meet this demand has become a technical problem that urgently needs to be solved in this field. Summary of the invention

[0003] To this end, this application discloses the following technical solutions:

[0004] An information processing method, comprising:

[0005] Obtaining operation information of a target operation of an operator;

[0006] Determining a plurality of characters to be combined on a display interface according to the operation information of the target operation;

[0007] Obtaining a combination instruction for the plurality of characters to be combined;

[0008] Determine a combination mode of the plurality of characters to be combined that matches the combination instruction;

[0009] According to the combination mode, the multiple characters to be combined on the display interface are combined.

[0010] Optionally, the obtaining operation information of a target operation of the operator, and determining a plurality of characters to be combined on the display interface according to the operation information of the target operation, includes:

[0011] Obtaining movement operation information of an operator moving a first character on the display interface, determining a second character that satisfies a preset position condition with the first character after the position is moved according to the movement operation information, and determining the first character and the second character as the multiple characters to be combined;

[0012] Or, obtaining selection operation information of an operator performing area selection on the display interface, and determining each character in the selected area corresponding to the selection operation information as the multiple characters to be combined;

[0013] Alternatively, first input information of an operating body is obtained, and each character indicated by the first input information on the display interface is determined as the plurality of characters to be combined.

[0014] Optionally, obtaining a combination instruction for the plurality of characters to be combined and determining a combination mode for the plurality of characters to be combined that matches the combination instruction includes:

[0015] obtaining an instruction for combining the first character and the second character triggered by moving the first character so that the first character and the second character meet the preset position condition, and determining a combination method for the first character and the second character according to the moving operation information;

[0016] or, obtaining a combination instruction for the multiple characters in the selected area triggered by performing a combination operation on the multiple characters included in the selected area, and determining a combination method for the multiple characters in the selected area according to operation information of the combination operation;

[0017] Or, a second input information based on the operating body is obtained, which triggers a combination instruction for each corresponding character on the display interface, and a combination method for each corresponding character on the display interface is determined according to the second input information.

[0018] Optionally, determining a combination method of the first character and the second character according to the movement operation information includes:

[0019] Determine, according to the movement operation information, a combination type of the first character and the second character, and obtain a combination mode composed of the combination type;

[0020] Or, according to the movement operation information, the combination type and the combination direction of the first character and the second character are determined to obtain a combination mode consisting of the combination type and the combination direction.

[0021] Optionally, the combining process of the plurality of characters to be combined on the display interface according to the combining mode includes:

[0022] At least according to the combination type in the combination mode, combining the multiple characters to be combined into a first target combined character;

[0023] Or, at least according to the combination type in the combination mode and a combination character set matching the combination type, the multiple characters to be combined on the display interface are combined; the combination character set includes at least one combination character with complete semantics.

[0024] Optionally, the combining process of the plurality of characters to be combined on the display interface at least according to a combination type in the combination mode and a combination character set matching the combination type includes:

[0025] Determining, based on a combined character set matching the combination type, whether the plurality of characters to be combined can be combined into a combined character with complete semantics at least according to the combination type;

[0026] If so, the multiple characters to be combined are combined into a second target combined character with complete semantics at least according to the combination type, and output; the second target combined character includes each of the characters to be combined and / or variants of the characters to be combined, and the second target combined character is a corresponding combined character in the combined character set.

[0027] Optionally, also include:

[0028] The character structure of the corresponding target combined character obtained by processing is optimized, and the corresponding target combined character is output according to the optimized character structure.

[0029] Optionally, also include:

[0030] Based on detecting that the first character and the second character meet the preset position condition, the display effects of the first character and the second character are adjusted to a target display effect.

[0031] Optionally, the character to be combined is a minimum character unit with complete semantics, or a component of the minimum character unit, or a whole composed of multiple minimum character units.

[0032] An electronic device, comprising:

[0033] A memory for storing at least one set of instructions;

[0034] A processor is used to call and execute the instruction set in the memory, and implement the information processing method as described in any one of the above by executing the instruction set.

[0035] It can be seen from the above scheme that the information processing method and electronic device disclosed in the present application determine multiple characters to be combined on the display interface through the operation information of the target operation, obtain a combination instruction for the multiple characters to be combined, determine a combination method for the multiple characters to be combined that matches the combination instruction, and perform combination processing on the multiple characters to be combined on the display interface according to the combination method. Therefore, based on the scheme of the present application, the combination processing of multiple characters to be combined can meet the needs of combining different information contents in application scenarios such as teaching or knowledge sharing. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0037] Figure 1It is a flow chart of the information processing method provided by this application;

[0038] FIG. 2( a ) is an example provided by the present application of moving one character next to another character (without overlapping);

[0039] FIG2( b ) is an example of superimposing one character on another character provided by the present application;

[0040] FIG2( c ) is an example of character selection through area selection operation provided by the present application;

[0041] FIG. 3( a ) and FIG. 3( b ) are examples of identifying corresponding combination types according to different positional relationships of characters to be combined provided by the present application;

[0042] FIG. 4( a ), FIG. 4( b ) and FIG. 4( c ) are respectively examples of different overlapping orientations when two characters to be combined overlap, provided by the present application;

[0043] FIG. 5( a ) and FIG. 5( b ) are respectively examples of different relative orientations of two characters to be combined provided by the present application when they do not overlap;

[0044] Figure 6 It is a flow chart of combining multiple characters to be combined according to the combination mode and the combination character set provided by the present application;

[0045] Figure 7 It is another flowchart of the information processing method provided by the present application;

[0046] Figure 8 This is a schematic diagram of the structure of an electronic device provided by this application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] The present application discloses an information processing method and an electronic device, which are applicable to, but not limited to, the combination processing of different characters on a display interface in application scenarios such as teaching or knowledge sharing, so as to meet the diverse character combination requirements of users in the above scenarios or similar scenarios. The information processing method can be applied to an electronic device. The electronic device applying the method of the present application is equipped with a display device and / or can externally connect a display device through a display interface (such as a DP interface, an HDMI interface, a screen mirroring interface, etc.). Specifically, it can be, but is not limited to, a device under numerous general or special computing device environments or configurations that is equipped with a display device and / or can externally connect a display device through a display interface, such as: a personal computer, a server computer, a handheld device or a portable device, a tablet device, an AR / VR device, a multi-processor device, and so on.

[0049] See Figure 1 The flowchart of the provided information processing method. The information processing method disclosed in the embodiments of the present application includes the following processing steps:

[0050] Step 101: Obtain the operation information of the target operation of the operating body.

[0051] In this step, the operating body can be any one or more of a stylus pen, an electronic pen, a mouse, a finger, etc.

[0052] The target operation is an operation performed by the operating body to determine multiple characters to be combined from the various characters displayed on the display interface. The multiple characters on the display interface can often be combined into a Chinese character, or a word, or an idiom, or even a short sentence, etc. Correspondingly, the user can select the characters to be combined on the display interface through the target operation of the operating body according to the actual application scenario.

[0053] In an embodiment, the target operation can be an operation of moving a first character on a display interface displaying multiple characters, so that the relative position between the first character and a second character on the display interface changes, and the relative position between the moved first character and the second character meets a preset position condition.

[0054] Among them, the preset position condition can be, but is not limited to, set as any one of the following:

[0055] Condition 1: The distance between the first character and the second character is less than a preset distance threshold, and the character areas of the two characters do not overlap;

[0056] For example, move the character "female" on the display interface to within the above distance threshold next to the character "student", but the two do not overlap, etc.

[0057] Condition 2: The character areas between the first character and the second character overlap.

[0058] Among them, the character regions of different characters overlapping may mean that the character regions corresponding to different characters completely overlap or partially overlap, without limitation.

[0059] For example, moving the character "female" on the display interface to the character "student" so that at least part of their character regions overlap, etc.

[0060] In this implementation manner, the operation information of the target operation obtained is correspondingly the operation information of the above-mentioned moving operation, including but not limited to some or all of the information such as the type of the moving operation, the characters indicated by the moving operation (the moved character and the characters that meet the above position conditions with the moved character after the movement is completed), and the relative position information of different characters indicated by the moving operation after the moving operation ends.

[0061] Further, optionally, based on detecting that the first character and the second character meet the above position conditions, the electronic device adjusts the display effects of the first character and the second character to the target display effects, such as semi-transparent effects, or highlighting, or displaying them in special colors, etc., so as to facilitate users (such as teachers and students in a teaching scenario) to intuitively view each character selected for combination.

[0062] In another implementation manner, the target operation of the operation body can also be an area selection operation performed by the operation body on the display interface displaying multiple characters. This area selection operation is used to select a target area containing multiple characters on the display interface according to requirements, so as to perform combination processing on the characters in the selected target area. In this implementation manner, the operation information of the target operation obtained is correspondingly the operation information of the above-mentioned area selection operation, including but not limited to the type of the area selection operation, the area position information of the target area selected by the area selection operation, and so on.

[0063] In addition, the target operation of the operation body can also be an input operation performed by the operation body for indicating multiple characters to be combined. The operation method of this input operation can be but is not limited to any one or more of voice input, text input, gesture input, etc. Correspondingly, the operation information of the target operation obtained is the input information corresponding to the input operation. In this embodiment, the input information here is referred to as the first input information. Exemplarily, taking the case where this input operation is used to indicate that the characters "strength" and "mouth" on the display interface are the characters to be combined as an example, the first input information can specifically be but is not limited to: the voice information "select'strength' and'mouth'" input by the user through voice input, or the two characters "strength" and "mouth" input by text input, or the gesture information indicating these two characters input by performing click and other gesture operations on these two characters "strength" and "mouth" respectively.

[0064] Among them, the display interface displaying multiple characters can be but is not limited to the corresponding application interface on the electronic device’s own display screen or extended screen or projection area.

[0065] Optionally, the multiple characters displayed on the display interface are the smallest character unit with complete semantics, or a component of a smallest character unit, or a whole composed of multiple smallest character units. The smallest character unit with complete semantics can be, but is not limited to, a Chinese character or an English word. Correspondingly, the component of the smallest character unit can be a radical of a Chinese character or a partial character of an English word. The whole composed of multiple smallest character units can be a word, an idiom, a short sentence, etc. Of course, a character to be combined can also be a letter, a word, a phrase, etc.

[0066] Step 102: Determine a plurality of characters to be combined on the display interface according to the operation information of the target operation.

[0067] After the operation information of the target operation is obtained, a plurality of characters to be combined on the display interface are determined according to the operation information of the target operation, so as to perform a combination process on the plurality of characters to be combined.

[0068] Among them, the operation information for the obtained target operation is an implementation method of the operation information of the above-mentioned moving operation, and specifically, according to the obtained operation information of the moving operation, that is, the moving operation information, the second character that satisfies the above-mentioned position condition with the first character after the move is completed can be determined, and the first character and the second character can be determined as a plurality of characters to be combined. In this implementation method, the operating body (such as a stylus pen, a finger) can move the first character on the display interface by dragging or the like, and move the first character to the side of or on the second character to be combined with it (that is, so that the two characters overlap), and the character movement process can be presented on a device with a display function, such as a display, a mobile phone screen, a teaching screen, etc., and the electronic device responds to the detection of this moving operation, obtains its corresponding moving operation information, and according to the obtained moving operation information, the first character to be moved and the second character that satisfies the above-mentioned position condition with the first character after the move is completed (the distance is less than the distance threshold and there is no overlap, or there is overlap) are determined as a plurality of characters to be combined.

[0069] Optionally, to determine whether different characters in the display interface meet preset position conditions, a coordinate system of the display interface may be established, and whether different characters meet preset position conditions may be determined based on the coordinate position relationship between the characters.

[0070] The number of second characters that satisfy the position condition with the first character can be one or more, and there is no limit to this. For example, move a "wood" character on the display interface between two other "wood" characters on the display interface, so that both of the other two "wood" characters satisfy the position condition with the moved "wood" character. Correspondingly, the characters to be combined can be two or more.

[0071] The following is an example. In this example, there are three characters on the display interface, namely "mouth", "strength", and "king". Assume that the first character for position movement is "mouth". After moving the "mouth" character, it is possible to determine whether "strength" satisfies the position condition with the moved "mouth" and whether "king" satisfies the position condition with the moved "mouth" respectively based on the relative position relationship between "strength" and "mouth" and the relative position relationship between "king" and "mouth". Among them, in Figure 2(a), move the "mouth" to beside "strength" (within the distance threshold range), but there is no overlapping area between them. In Figure 2(b), move the "mouth" onto "strength", and they overlap. Then, for the situations in Figure 2(a) and Figure 2(b), "strength" can be determined as the second character that satisfies the preset position condition with the moved "mouth", while "king" does not satisfy this preset position condition. Furthermore, "strength" and "mouth" are determined as the characters to be combined.

[0072] The directed lines in Figure 2(a) and Figure 2(b) represent the movement trajectories of the operating body on the characters, and the dashed boxes represent the corresponding positions, which do not represent the actual display content.

[0073] For the operation information of the obtained target operation, the implementation manner of the selection operation information for the above-mentioned area selection operation is as follows. Specifically, each character within the selected area corresponding to the selection operation information can be determined as multiple characters to be combined.

[0074] There are multiple characters displayed on the display interface. In this implementation manner, the operating body (such as a stylus, finger) can perform area selection on the display interface for the purpose of enclosing characters. The electronic device detects this area selection operation and obtains operation information such as the type of the area selection operation corresponding to this operation and the position information of the selected area. At the same time, in combination with the layout positions of different characters on the display interface, each character located in the selected area is determined. Exemplarily, as shown in Figure 2(c), in response to detecting the area selection operation of the user's operating body on the area on the display interface that includes "mouth" and "strength", the characters "mouth" and "strength" within the selected area are determined as the characters to be combined. The dashed box in Figure 2(c) represents the selected area.

[0075] For the implementation manner in which the operation information of the target operation obtained is the above-mentioned first input information of the operation body, the respective characters indicated by the first input information on the display interface are correspondingly determined as a plurality of characters to be combined. In this implementation manner, the user can input the first input information for indicating the selection of a plurality of characters to be combined to the electronic device in ways such as voice, gesture, and / or text input. Essentially, the first input information can be used as a selection instruction for selecting characters to be combined from the display interface. The electronic device determines the respective characters indicated by the instruction as characters to be combined by detecting and parsing the input selection instruction (the first input information). For example, for the voice instruction "select the two characters 'female' and 'life'" input by the user, or the voice instruction "use 'oral' and 'power' as characters to be combined", the characters to be combined are determined as 'female' and 'life', or 'oral' and 'power' respectively through voice instruction parsing.

[0076] Step 103: Obtain a combination instruction for a plurality of characters to be combined.

[0077] Step 104: Determine a combination method for the plurality of characters to be combined that matches the combination instruction.

[0078] Among them, for the target operations of the above several different implementation manners, steps 103-104, obtaining a combination instruction for a plurality of characters to be combined and determining a combination method for the plurality of characters to be combined that matches the combination instruction can be correspondingly further implemented as the corresponding manners in the following several ways:

[0079] Method 1: Obtain a combination instruction for the first character and the second character triggered by moving the first character so that the first character and the second character meet a preset position condition, and determine the combination method for the first character and the second character according to the movement operation information.

[0080] This combination instruction is triggered when moving the first character so that the first character and the second character meet a preset position condition. That is, the electronic device automatically determines the first character and the second character as characters to be combined in response to detecting a movement operation of moving the first character so that the first character and the second character meet a preset position condition, and automatically triggers a combination instruction for these two characters to be combined. On this basis, the combination method for combining the first character and the second character is further determined according to the operation information of this movement operation.

[0081] The combination methods for combining multiple characters to be combined at least include the combination types for combining multiple characters to be combined. The combination types include, but are not limited to, forming characters, forming words, etc. Among them, forming a character means combining different characters into one character, and forming a word means combining different characters into a word, an idiom, or even a short sentence. In addition, optionally, the combination methods for combining multiple characters to be combined can also include the combination directions when combining different characters. For example, when combining two radicals into one character, the corresponding combination directions are up / down, down / up, left / right, right / left, and inside / outside, outside / inside, etc. Or when combining two Chinese characters into a word, the combination directions are left / right, right / left, etc.

[0082] In this implementation manner based on the movement operation of characters, after obtaining the combination instruction for multiple characters to be combined, the combination method for the first character and the second character can be further determined according to the relative position information between different characters (the first character and the second character) after the movement operation ends included in the movement operation information.

[0083] Specifically, the relative position relationship between the first character and the second character to be combined is determined through the above relative position information included in the movement operation information, including the distance and / or orientation between the first character and the second character.

[0084] After that, for the case where the combination method corresponding to multiple characters to be combined only includes the combination type, the combination type for the first character and the second character is further determined according to the distance between the first character and the second character, and a combination method consisting only of the combination type is obtained.

[0085] Specifically, if the distance between the first character and the second character is less than 0, that is, the first character and the second character overlap, it is determined that the combination method for the first character and the second character is to form a character, that is, the first character and the second character need to be combined into one character (for example, a Chinese character). Refer to Fig. 3(a). After the movement operation ends, the first character "female" and the second character "life" overlap. At this time, it can be determined that the combination method corresponding to these two characters to be combined is the combination type of "forming a character".

[0086] It should be noted that after the movement operation ends, in the case where the first character and the second character overlap, the recognition result that the first character and the second character overlap can be directly regarded as the recognition that the distance between the first character and the second character is less than 0, without actually performing the operation of calculating or determining the distance between the two characters. Of course, it is also possible to assign a distance value less than 0 to the distance between the two characters based on the recognition that the first character and the second character overlap. There is no restriction on this.

[0087] If the first character and the second character do not overlap (i.e., the distance between the two is greater than or equal to 0), and the spacing between the first character and the second character is less than the distance threshold set in the above position condition, it is determined that the combination method of the first character and the second character is "forming a word". For example, according to the actual character conditions of the first character and the second character (such as single character or multi-character), the first character and the second character are combined into a word, idiom, short sentence, etc. Referring to Fig. 3(b), assuming that the first character is "女" and the second character is "生", the spacing d1 between the first character and the second character is less than the distance threshold d and the two characters do not overlap, then it can be determined that the combination method of the two characters is "forming a word". And considering the character feature that both the first character and the second character are single characters, this "forming a word" specifically means forming a word. In other embodiments, if the first character and / or the second character to be combined are multi-characters, then the first character and the second character can be correspondingly combined into an idiom or a short sentence. For example, the first character "丰富" and the second character "多彩" are combined into the idiom "丰富多彩", etc.

[0088] In an alternative embodiment, when the two characters do not overlap, in addition to judging whether to form a word or a character by the spacing between the first character and the second character, it is also possible to judge whether the combination method of the two characters is forming a word or a character by whether the first character and the second character can be combined to obtain a character with complete semantics. For example, assume that after moving, the two characters "力" and "口" do not overlap and the spacing is less than the distance threshold. If according to the above determination logic, it can be determined that "力" and "口" need to be combined into a word. However, if the two characters are combined into a word, "口力" or "力口" will be obtained. Obviously, neither of these two groups of words has complete semantics. On the contrary, if the two characters are combined into a Chinese character, "加", "另", "叻", etc. can be obtained, which have actual semantics. Therefore, preferably, it can be automatically determined that the combination method of these two characters is forming a character rather than a word. In practical applications, this processing method can be used as a supplement or correction to the above method of determining the combination method of two characters based on the spacing between the first character and the second character. That is, preferably, on the premise of meeting the above position conditions, the situation where the first character and the second character do not overlap is determined to adopt the word-forming method, and the overlapping situation is determined to adopt the character-forming method. And if the combination method determined according to the above logic cannot combine the two characters into a combined character with actual semantics / complete semantics, then the processing method of this embodiment is used to correct the determined combination method.

[0089] In another alternative embodiment, in addition to determining the character combination method by the spacing between the first character and the second character or whether the combined characters have a complete semantic meaning, the combination method of the characters can also be determined according to the configured application mode. Among them, if the current application mode is configured as the character composition mode, the combination method of multiple characters to be combined is determined as character composition. If the current application mode is configured as the word composition mode, the combination method of multiple characters to be combined is correspondingly determined as word composition. At this time, regardless of whether the first character and the second character overlap, as long as the above position conditions are met, the combination method of the first character and the second character can be determined according to the application mode.

[0090] For the case where the combination method corresponding to multiple characters to be combined includes a combination type and a combination direction, in addition to determining the combination type of the first character and the second character according to the distance between the first character and the second character, the combination direction of the first character and the second character is also determined according to the relative orientation of the first character and the second character. Thus, a combination method composed of a combination type and a combination direction is obtained.

[0091] The following is an example to illustrate the process of determining the combination direction according to the relative orientation of the first character and the second character:

[0092] If it is determined that the combination method of the first character and the second character is character composition based on the overlapping situation where the first character overlaps with the second character, on this basis, the combination direction of the characters can be further obtained by identifying the specific direction in which the first character overlaps the second character. As shown in Figure 4(a), the first character '口' overlaps on the right side of the second character '力'. Then, according to the identified overlapping orientation information, the combination direction when '口' and '力' form a character can be determined as the right-left direction, that is, '力' on the left and '口' on the right. Another example is that in Figure 4(b), the first character '口' overlaps on the left side of the second character '力'. Then, the combination direction when '口' and '力' form a character can be determined as the left-right direction, that is, '口' on the left and '力' on the right. For another example, in Figure 4(c), the first character '口' overlaps above the second character '力'. Then, the combination direction when '口' and '力' form a character can be determined as the up-down direction, that is, '口' on the top and '力' on the bottom.

[0093] If it is determined that the combination method of the first character and the second character is word formation based on the situation that the first character and the second character do not overlap but the distance between them is less than the distance threshold, on this basis, the combination method of the characters can be further obtained by identifying whether the first character is on the left or right of the second character. As shown in Figure 5(a), the first character is "water" and the second character is "clear". After moving the first character, the distance d2 between the first character and the second character is less than the distance threshold d, they do not overlap, and the first character is on the right of the second character, then it can be determined that the combination direction when "water" and "clear" form a word is right-left, that is, "clear" is on the left and "water" is on the right. Another example, in Figure 5(b), after moving the first character, the first character "water" is on the left of the second character "clear", they do not overlap, and the distance d3 between them is less than the distance threshold d, then it can be determined that the combination direction when "water" and "clear" form a word is left-right, that is, "water" is on the left and "clear" is on the right.

[0094] Method 2: Obtain the combination instruction for multiple characters in the selected area triggered by performing a combination operation on multiple characters included in the selected area, and determine the combination method of multiple characters in the selected area according to the operation information of the combination operation.

[0095] In this implementation manner based on the area selection operation, after determining the selected area based on the area selection operation, optionally, the electronic device automatically calls and displays combination operation controls for combining characters in the selected area, such as menus, buttons, selection boxes, etc., for the user to operate.

[0096] The user can perform operations such as selection, input, and / or clicking based on controls such as menus, buttons, or selection boxes to trigger the combination instruction for multiple characters in the selected area, as well as combination method information such as specific combination types and combination directions.

[0097] For example, in response to detecting an area selection operation on the area where multiple characters are located, the electronic device automatically displays a selection box for character combination types on the display interface. The selection box can contain selection items for forming words or characters; of course, the selection box can further include selection items for the combination direction of characters, such as selection items for up-down direction, left-right direction, inside-outside direction, etc. When the operator selects one or more selection items, the combination method for multiple characters such as "mouth" and "strength" in the selected area can be determined according to the selection items. For example, if the selection item for forming characters is selected, the combination method includes the combination type of forming characters. Another example, if the two selection items of forming characters and up-down direction are selected, the combination method includes the combination type of forming characters and the combination direction of up-down.

[0098] However, not limited to the above embodiments, in other embodiments, the operator may also input the combination method (combination type, or combination type and combination direction) of each character in the selected area based on information input methods such as gestures, voices, and / or texts. The electronic device parses and obtains the corresponding combination method from the input information such as the voice, gesture, and / or text of the operator. For example, by parsing the voice input information, the character combination method obtained includes the combination type of forming words. Another example is that by parsing the text input information, the character combination method obtained includes the combination type of forming characters and the combination direction of left and right.

[0099] Method 3: Obtain the combination instruction for each character to be combined on the display interface triggered by the second input information of the operator, and determine the combination method of each character to be combined on the display interface according to the second input information.

[0100] The second input information is the input information used to indicate the combination of multiple characters to be combined, and the combination method information such as the combination type or combination direction of the multiple characters to be combined is carried in the input information.

[0101] Among them, the electronic device can obtain the second input information of the operator and parse the second input information to obtain the combination method of each character to be combined on the display interface, such as the combination type, or the combination type and combination direction, through the interaction method between the operator and the electronic device.

[0102] Similar to the first input information, the second input information can also be the information input by the operator based on methods such as voice, gesture, and / or text.

[0103] Moreover, the second input information and the first input information above can be the same input information or different input information, without limitation. In the case where the two are the same input information, the same input information carries both the character indication information to be combined and the combination method information for the characters to be combined. Accordingly, based on the same input information, multiple characters to be combined and the combination method for the multiple characters to be combined, such as the combination type, or the combination type and combination direction, can be parsed. For example, the voice input information of the user: Combine 'female' and 'life' into one character in the left - right direction. Then, based on this information, the characters to be combined 'female' and 'life', as well as the combination type 'forming characters' and the combination direction 'left - right' can be parsed.

[0104] Step 105: Combine and process multiple characters to be combined on the display interface according to the combination method.

[0105] Optionally, this step 105 of combining and processing multiple characters to be combined on the display interface according to the combination method can be implemented as: Combining multiple characters to be combined into the first target combined character at least according to the combination type in the combination method.

[0106] In this embodiment, if the determined combination method only includes a combination type, multiple characters to be combined are combined according to the determined combination type to obtain corresponding first target combined characters. For example, if the characters to be combined are "口" and "力", when the determined combination type is character formation, "口" and "力" can be combined into any one or more of the characters such as "加", "叻", and "另". Another example is that if the characters to be combined are "女" and "生", when the determined combination type is character formation, "女" and "生" are combined into the character "姓", and when the combination type is word formation, "女" and "生" are combined into the word "女生".

[0107] If the determined combination method includes a combination type and a combination direction, multiple characters to be combined are combined according to the determined combination type and combination direction. Compared with the combination method that only includes a combination type above, the first target combined characters obtained by this method are characters or words with character position relationship restrictions (i.e., restricted by the combination direction). For example, if the characters to be combined are "口" and "力", when the combination type is character formation and the combination direction is the up-down direction, the first target combined character formed is "另", excluding the characters formed by "口" and "力" in other directions. Another example is that if the characters to be combined are "清" and "水", when the combination type is word formation and the combination direction is the left-right direction, the first target combined character formed is "清水", excluding the words formed by "清" and "水" in other directions.

[0108] In another embodiment, step 105 can also be implemented as: combining multiple characters to be combined on the display interface at least according to the combination type in the combination method and the combination character set matching the combination type; the combination character set includes at least one combined character with complete semantics.

[0109] The combination character set matching the combination type can be a character library matching the character formation type or a word library matching the word formation type. Among them, the character library includes a series of characters composed of different radicals and / or characters, and the word library includes a series of words, idioms, and / or short sentences composed of different characters. Obviously, the characters or words / idioms / short sentences included in the character library and the word library respectively have actual semantics, which are referred to as having complete semantics in the embodiments of the present application.

[0110] In this embodiment, in addition to being based on the combination method, the combination character set such as the character library or the word library is also used as a basis to combine multiple characters to be combined.

[0111] See Figure 6 , this process can be further implemented as steps 601 - 602 as follows.

[0112] Step 601: Determine whether multiple characters to be combined can be combined into a combined character with complete semantics at least according to the combination type, based on the combination character set matching the combination type.

[0113] When the combination type is character composition, the combination character set matching the character composition type is the character library. Among them, if the combination method only includes the combination type (i.e., character composition), correspondingly, based on the character library, determine whether multiple characters to be combined (such as multiple radicals and / or characters) can be combined into a character existing in the character library; if the combination method includes the combination type (i.e., character composition) and the specified combination direction, then based on the character library, determine whether multiple characters to be combined can be combined into a character existing in the character library according to the indicated combination direction. In the above two methods, if the determination result indicates that a character existing in the character library can be formed, it correspondingly represents that multiple characters to be combined can be combined into a combined character with complete semantics; otherwise, it represents that a combined character with complete semantics cannot be combined.

[0114] When the combination type is word composition, the combination character set matching the word composition type is the word library. Among them, if the combination method only includes the combination type (i.e., word composition), correspondingly, based on the word library, determine whether multiple characters to be combined (such as multiple characters) can be combined into a word / idiom / short sentence existing in the word library; if the combination method includes the combination type (i.e., word composition) and the specified combination direction, then based on the word library, determine whether multiple characters to be combined can be combined into a word / idiom / short sentence existing in the word library according to the specified combination direction. In the above two methods, if the determination result indicates that a word / idiom / short sentence existing in the word library can be formed, it correspondingly represents that multiple characters to be combined can be combined into a combined character with complete semantics; otherwise, it represents that a combined character with complete semantics cannot be combined.

[0115] The following is an example: When determining whether multiple characters to be combined can be combined into a combined character with complete semantics according to the combination type and the corresponding combination character set, if the combination type is character composition and the characters to be combined are "口" and "力", and a Chinese character containing "口" and "力", such as "加", can be found in the character library, then it can be determined that "口" and "力" can be combined into a combined character with complete semantics according to the current combination type (character composition). If the combination type is word composition and the characters to be combined are "口" and "力", and no word containing "口" and "力" can be found in the word library, and "口力" and "力口" do not have complete semantics, then it is determined that "口" and "力" cannot be combined into a combined character with complete semantics according to the current combination type (word composition).

[0116] When further combining in combination directions to determine whether multiple characters to be combined can be combined into a combined character with complete semantics, if the combination type is character composition and the combination direction is left-right direction, for the characters to be combined "qing" and "shui", whether it is "qing" on the left and "shui" on the right or "shui" on the left and "qing" on the right, no matching Chinese character is found in the font library, indicating that the character obtained by combining the two characters does not have complete semantics. At this time, it can be determined that "qing" and "shui" cannot be combined into a combined character with complete semantics in the character composition method and the specified direction.

[0117] Step 602: If so, combine multiple characters to be combined into a second target combined character with complete semantics at least according to the combination type, and output it.

[0118] When multiple characters to be combined can be combined into a combined character with complete semantics, combine the multiple characters to be combined according to the corresponding combination method to obtain a second target combined character.

[0119] Combining multiple characters to be combined according to the corresponding combination method can specifically be, combining multiple characters to be combined according to the determined combination type (such as character composition or word formation). For example, if the characters to be combined are "li" and "kou", then in the character composition type, any one or more of the second target combined characters "jia", "ling", "le" can be obtained; or, combining multiple characters to be combined according to the corresponding combination method can also be, combining multiple characters to be combined according to the determined combination type and combination direction. For example, according to the determined character composition type and left-right combination direction, combine the characters to be combined "li" and "kou" into "jia". The first target combined character / second target combined character includes the corresponding individual characters to be combined and / or variants of the characters to be combined, and the second target combined character is the corresponding combined character in the combined character set. The variant of the character to be combined can be, but is not limited to, the result obtained by performing any one or more of the following treatments on the character to be combined: shape deformation, stroke correction, size adaptation adjustment, etc.

[0120] For example, when combining two "mu" into "lin", at least the "mu" on the left needs to be deformed to adapt to the morphological characteristics of the character "lin", and the "mu" on the left in the character "lin" is regarded as a variant of the character to be combined "mu".

[0121] Conversely, if multiple characters to be combined cannot be combined into a combined character with complete semantics, no combination and output processing of the combination result of the multiple characters to be combined is performed.

[0122] Among them, for the combination type of forming characters, it is preferable to adopt an implementation manner based on a combined character set, so that the combined and output characters (such as Chinese characters) are words with actual semantics, avoiding misleading effects in scenarios such as teaching or knowledge sharing. For the combination type of forming words, there is no restriction, and the required implementation manner can be flexibly selected according to actual needs.

[0123] In the embodiments of the present application, each character to be combined and the corresponding target combined character obtained after combination are presented on the display interface in the form of controls. Each character control presented on the display interface is an independent and indivisible operable unit. Specifically, but not limited to, operations such as dragging, selecting, deleting, scaling, and semantic search (such as jumping to the network space to search for the semantics of a certain character or word) can be performed on the character control as an operable unit on the display interface as needed. All the contents in the same character control (such as the two "mu" characters in the character "lin") participate in the operations on the character control as a whole.

[0124] As can be seen from the above solutions, the method of the embodiments of the present application determines multiple characters to be combined on the display interface through the operation information of the target operation, obtains a combination instruction for the multiple characters to be combined, determines a combination method for the multiple characters to be combined that matches the combination instruction, and performs combination processing on the multiple characters to be combined on the display interface according to the combination method. Thus, based on the solution of the present application, performing combination processing on multiple characters to be combined can meet the requirements for processing different information contents in application scenarios such as teaching or knowledge sharing.

[0125] Optionally, in one embodiment, if multiple characters to be combined cannot be combined into a combined character with actual semantics according to the specified combination direction in the combination method, the combination direction is automatically adjusted to other combination directions that can form a combined character with actual semantics for combination.

[0126] For example, if the characters to be combined are "female" and "mouth" respectively, when the combination type is forming characters and the combination direction is the up-down direction, no Chinese character with the "female" and "mouth" in the up-down position relationship is found in the character library. At this time, the combination direction can be automatically adjusted to search in the left-right direction and the inside-outside direction to see if there are Chinese characters containing "female" and "mouth" in the character library, and the combined characters "ru" and "nan" can be obtained.

[0127] Another example is that if the characters to be combined are "detailed" and "specific" respectively, when the combination type is forming words and the combination direction is right-left, no word with "specific" on the left and "detailed" on the right is found in the word library. At this time, the combination direction can be automatically adjusted to form words in the left-right direction, and the combined character "detailed" can be obtained at this time.

[0128] Optionally, in one embodiment, in addition to using the indicated characters to be combined as components of the target combined character, combined characters whose structures include both the characters to be combined and the extended parts can be generated according to the characters / words in the font library / lexicon that contain the characters to be combined.

[0129] For example, if the characters to be combined are "wood" and "wood", i.e., two "woods", in the character composition type, the character "forest" formed by the two "woods" can be directly output. Or, in other embodiments, the character "forest" formed by the two "woods" can be output, as well as characters such as "sen" and "bin" extended based on the font library.

[0130] Optionally, in one embodiment, referring to Figure 7 the flowchart of the information processing method provided, the information processing method disclosed in this application may further include the following processing:

[0131] Step 106: Optimize the character structure of the corresponding target combined character obtained by processing, and output the corresponding target combined character according to the optimized character structure.

[0132] The characters displayed on the display interface can be standard fonts or handwritten fonts. In particular, when the target combined character is a handwritten font, the character structure of the target combined character can be optimized. This optimization process can include correcting incorrect strokes of Chinese characters, adjusting the size ratio of different characters, beautifying the character form, etc., and outputting the target combined character after the optimization process on the display interface, so that the characters displayed on the display interface are correct or recognizable.

[0133] Preferably, when optimizing the character structure of the target combined character, at least part of the handwritten feature information of the handwritten font is retained, so that while correcting incorrect strokes, adaptively adjusting the character ratio, and beautifying the character form, the user's personalized handwritten features are also retained to a certain extent.

[0134] In addition, an embodiment of this application also discloses an electronic device, which can be, but is not limited to, devices under numerous general or special computing device environments or configurations, such as: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor devices, and so on.

[0135] The composition structure of the electronic device, as Figure 8 shown, at least includes:

[0136] A memory 10 for storing a computer instruction set;

[0137] The computer instruction set can be implemented in the form of a computer program.

[0138] The processor 20 is used to implement the information processing method disclosed in any of the above method embodiments by executing a computer instruction set.

[0139] The processor 20 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices.

[0140] The electronic device includes a display device and / or includes a display interface and can be connected to an external display device.

[0141] Optionally, the electronic device also includes a camera assembly, and / or is connected to an external camera assembly.

[0142] In addition, the electronic device may also include components such as a communication interface and a communication bus. The memory, the processor and the communication interface communicate with each other through the communication bus.

[0143] The communication interface is used for communication between electronic devices and other devices. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.

[0144] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0145] For the convenience of description, the above systems, devices or equipment are described as being divided into various modules or units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0146] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0147] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0148] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An information processing method, comprising: Obtaining operation information of a target operation of an operator; Determining a plurality of characters to be combined on a display interface according to the operation information of the target operation; Obtaining a combination instruction for the plurality of characters to be combined; Determine a combination mode of the plurality of characters to be combined that matches the combination instruction; According to the combination mode, combining the multiple characters to be combined on the display interface; The step of obtaining operation information of a target operation of the operator and determining a plurality of characters to be combined on the display interface according to the operation information of the target operation includes: Obtain movement operation information of an operator moving a first character on the display interface, determine a second character that satisfies a preset position condition with the first character after the position is moved according to the movement operation information, and determine the first character and the second character as the multiple characters to be combined.

2. According to the method of claim 1, the step of obtaining a combination instruction for the plurality of characters to be combined and determining a combination mode for the plurality of characters to be combined that matches the combination instruction comprises: obtaining an instruction for combining the first character and the second character triggered by moving the first character so that the first character and the second character meet the preset position condition, and determining a combination method for the first character and the second character according to the moving operation information; Or, obtaining a combination instruction for the multiple characters triggered by performing a combination operation on the multiple characters, and determining a combination method for the multiple characters according to operation information of the combination operation; Or, a second input information based on the operating body is obtained, which triggers a combination instruction for each corresponding character on the display interface, and a combination method for each corresponding character on the display interface is determined according to the second input information.

3. The method according to claim 2, wherein determining the combination of the first character and the second character according to the movement operation information comprises: Determine, according to the movement operation information, a combination type of the first character and the second character, and obtain a combination mode composed of the combination type; Or, according to the movement operation information, the combination type and the combination direction of the first character and the second character are determined to obtain a combination mode consisting of the combination type and the combination direction.

4. The method according to claim 3, wherein the combining process of the plurality of characters to be combined on the display interface according to the combining mode comprises: At least according to the combination type in the combination mode, combining the multiple characters to be combined into a first target combined character; Or, at least according to the combination type in the combination mode and a combination character set matching the combination type, the multiple characters to be combined on the display interface are combined; the combination character set includes at least one combination character with complete semantics.

5. The method according to claim 4, wherein the combining process is performed on the display interface on the plurality of characters to be combined according to at least the combination type in the combination mode and the combination character set matching the combination type, comprising: Determining, based on a combined character set matching the combination type, whether the plurality of characters to be combined can be combined into a combined character with complete semantics at least according to the combination type; If so, the multiple characters to be combined are combined into a second target combined character with complete semantics at least according to the combination type, and output; the second target combined character includes each of the characters to be combined and / or variants of the characters to be combined, and the second target combined character is a corresponding combined character in the combined character set.

6. The method according to claim 5, further comprising: The character structure of the corresponding target combined character obtained by processing is optimized, and the corresponding target combined character is output according to the optimized character structure.

7. The method according to claim 1, further comprising: Based on detecting that the first character and the second character meet the preset position condition, the display effects of the first character and the second character are adjusted to a target display effect.

8. According to the method of claim 1, the character to be combined is a minimum character unit with complete semantics, or a component of the minimum character unit, or a whole composed of multiple minimum character units.

9. An electronic device, comprising: A memory for storing at least one set of instructions; A processor is used to call and execute the instruction set in the memory, and implement the information processing method according to any one of claims 1 to 8 by executing the instruction set.