Document content processing method and device
By displaying multiple preset controls in document content processing and responding to user input, the problem of low efficiency in document content processing is solved, and the correlation display of fast elements and information is realized, which improves operation efficiency and user experience.
Patent Information
- Application Number
- CN202210018398.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-07
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-01-07
AI Technical Summary
Currently, document content processing efficiency is low, and users need to frequently select and edit when using touch devices, resulting in low operation efficiency.
A document content processing method and device are provided, by displaying document content and a plurality of preset controls, and when receiving touch input from the target control, the elements and information corresponding to the control are displayed in response to the display, thereby improving the efficiency of document content processing.
By quickly responding to user input and linking display elements and information, we can improve the efficiency of document content processing and improve user experience and operation efficiency.
Smart Images

Figure CN114415887B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a document content processing method and device. Background Art
[0002] Currently, people are increasingly processing document content through touch devices, for example, adjusting document content on a mobile phone or tablet computer with a touch screen. In related technologies, users are often required to frequently select and edit document content through a cursor, resulting in low efficiency in document content processing. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a document content processing method and device, which can solve the problem of low efficiency in document content processing in related technologies.
[0004] In a first aspect, an embodiment of the present application provides a document content processing method, the method comprising:
[0005] Display document content and N preset controls, where N is a positive integer;
[0006] When a first touch input to a target control among N preset controls is received, in response to the first touch input, a first element and first information are associated and displayed at a target position of the document content, and both the first element and the first information correspond to the target control.
[0007] In a second aspect, an embodiment of the present application provides a document content processing device, the device comprising:
[0008] The first display module is used to display document content and N preset controls, where N is a positive integer;
[0009] The second display module is used to display a first element and a first information in an associated manner at a target position of the document content in response to a first touch input received to a target control among N preset controls, wherein both the first element and the first information correspond to the target control.
[0010] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method of the first aspect.
[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
[0012] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.
[0013] The document content processing method provided in the embodiment of the present application displays document content and N preset controls, where N is a positive integer; when a first touch input to a target control among the N preset controls is received, in response to the first touch input, a first element and a first information are displayed in association at a target position of the document content, and both the first element and the first information correspond to the target control. Based on the first touch input to the target control by the user, this embodiment can display the first element and the first information in association at the target position of the document content, thereby effectively improving the efficiency of document content processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a flowchart of a document content processing method provided in an embodiment of the present application;
[0015] Figure 2 to Figure 13 is an example diagram of an interface of an electronic device;
[0016] Fig.14 is a schematic diagram of the structure of a document content processing device provided in an embodiment of the present application;
[0017] Fig.15 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0018] Fig.16 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0020] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0021] The document content processing method and device provided by the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0022] like Figure 1 As shown, the document content processing method provided in the embodiment of the present application includes:
[0023] Step 101, displaying document content and N preset controls, where N is a positive integer;
[0024] Step 102, when a first touch input to a target control among N preset controls is received, in response to the first touch input, a first element and a first information are displayed in association at a target position of the document content, wherein both the first element and the first information correspond to the target control.
[0025] The document content processing method provided in the embodiment of the present application can be applied to, for example, mobile terminals, personal computers or other types of electronic devices, and is not specifically limited here.
[0026] In step 101, document content and N preset controls may be displayed on the electronic device.
[0027] In conjunction with an application scenario, a document processing application may be installed in an electronic device. On the running interface of this type of application, function controls may be displayed in the function area, and the content of an opened document may be displayed in the document display area.
[0028] The above-mentioned functional controls may correspond to preset controls, and the number of preset controls may be one or more. Each preset control may correspond to a corresponding document content processing function, for example, it may be to add a dividing line to the document content, or to modify the alignment or indentation distance of the document content, etc. Examples are not given one by one here.
[0029] Of course, in actual applications, the above-mentioned preset controls may also be located in a displayed floating window, and the floating window may be displayed or hidden according to the user's operation, thereby further realizing the display or hiding of N preset controls.
[0030] The content of the opened document is the document content mentioned above, and the document content may include text. In some examples, there may be multiple paragraphs in the document content, and the user may need to adjust the layout of these paragraphs, such as modifying the alignment or indentation distance of one or more paragraphs, or inserting a dividing line between two adjacent paragraphs.
[0031] In step 102, when receiving a first touch input from a user to a target control among N preset controls, the electronic device may display a first element and first information in association at a target position of the document content in response to the first touch input.
[0032] For example, the user may click one of the preset controls with a finger. In this case, the user's single-click input may correspond to the first touch input, and the preset control clicked by the user may be the target control.
[0033] Of course, in actual applications, the specific form of the first touch input may not be limited to a single click, but may also be, for example, a double click, a long press, etc., which is not specifically limited here.
[0034] The first element may be a graphic or a cursor, etc., which are not limited here. For example, the first element may be a dividing line, or a graphic control for adjusting the alignment of a paragraph, or a cursor with a preset adjustment function, etc.
[0035] In some examples, some preset controls may have corresponding first elements, and when a first touch input to a target control among these preset controls is received, the first element corresponding to the target control may be displayed at a target position in the document content.
[0036] The correspondence between the preset control and the first element can be reflected in the correspondence between the preset control and the display effect of the first element, for example, the display effect of the first element can be a correspondence between shape, color or size. Alternatively, the correspondence can also be reflected in the correspondence between the preset control and the type of the first element, for example, the type of the first element can be a dividing line or an alignment line.
[0037] In this embodiment, the first element may be displayed in association with the first information, and the first information may also correspond to the target control.
[0038] The correspondence between the first information and the preset control may be similar to the correspondence between the first element and the preset control.
[0039] For example, the first information may be information in text format, and different preset controls may correspond to different text fonts or contents, etc. Of course, the correspondence between the first information and the preset control may also be a correspondence between the preset control and the type of the first information.
[0040] For example, the first information can be divided into environment information and progress information according to type, wherein the environment information can be, for example, time, weather or geographical location, etc., and the progress information can indicate the progress of the target location in the overall document content.
[0041] For another example, the first information may also be determined in response to a user's selection input of document content, and the process of determining the first information through the selection input of document content may be triggered based on a first touch input of a preset control.
[0042] The first element and the first information may be displayed in association with each other. For example, the first element may be a dividing line, and the first information may be weather information. The manner in which the two are displayed in association with each other may specifically be that text or symbols representing the weather are displayed on the dividing line.
[0043] The target position of the document content can be set as required. For example, the first touch input can be a sliding input, and the target position can be the end position of the first touch input; for another example, the target position can also be the position of the cursor during text editing.
[0044] The document content processing method provided in the embodiment of the present application displays document content and N preset controls, where N is a positive integer; when a first touch input to a target control among the N preset controls is received, in response to the first touch input, a first element and a first information are displayed in association at a target position of the document content, and both the first element and the first information correspond to the target control. Based on the first touch input to the target control by the user, this embodiment can display the first element and the first information in association at the target position of the document content, thereby effectively improving the efficiency of document content processing.
[0045] like Figure 2 As shown, in combination with an application scenario, the display interface of the electronic device may include text content and multiple preset controls, wherein the text content of the document may include text "This is the first point of the meeting", "This is the second point of the meeting", etc.
[0046] like Figure 3 As shown, the target control may correspond to the control named "Style 1" in the figure. The first information corresponding to the target control may include date and city.
[0047] The first touch input may be a sliding input from the display position of the "Style 1" control to the head of the document content, and the target position of the document content may be the end position of the first touch input, that is, the head of the document content.
[0048] exist Figure 3 In the example, the first element corresponds to the mark Y1, and the first information corresponds to the mark M1. It can be seen that the first element can be a dividing line in the form of a line, and the first information can be text such as "2021 / 7 / 17" and "A City B District". These first elements and first information can be displayed in the target position in association, for example, the first information can be displayed below the first element, or the first information can be displayed superimposed on the first element.
[0049] Based on the above application scenarios, it can be seen that the target control can correspond to a first element and a first information. When receiving a first touch input to the target control, the electronic device can associate and display the first element and the first information at the target position of the document content, which helps to display more auxiliary information or personalized information to the user in the document content and enhance the user experience.
[0050] In some examples, one or more controls with functions similar to those of "Style 1" may exist among the N preset controls, and each preset control may be associated with preset first information, such as one preset control may be associated with date and city, another preset control may be associated with weather and time, and another preset control may be associated with a motto set by the user, etc. Thus, when a first touch input to different preset controls is received, different first information may be displayed at the target location of the document content.
[0051] Of course, in some feasible implementations, there may also be a type of preset control. When a touch input to this type of preset control is received, a first element of a corresponding style can be displayed in the document content. For example, a dividing line can be obtained by a combination of preset patterns, colors, and sizes, etc., to meet the user's diverse needs for document content editing.
[0052] In some implementations, the target location of the document content is any of the following locations:
[0053] the end position of the first touch input;
[0054] Pre-selected location;
[0055] Default location.
[0056] For ease of understanding, examples are given below for each target location.
[0057] In one embodiment, the target position may be the end position of the first touch input.
[0058] As shown above, the first touch input may be a sliding input, and accordingly, the first touch input may have a starting position and an ending position, wherein the starting position may be the display position of the target control, and the ending position may be the target position, which may be considered to be the position in the document content where the user expects to insert the first element and the first information to a certain extent.
[0059] Of course, in practical applications, the first touch input described above may not be limited to sliding input, but may also be multiple click inputs within a preset time. For example, the user's first click may be directed to the target control, while the second click is used to select the target position. From the perspective of the electronic device, the position of the user's second click may be determined as the target position.
[0060] In another embodiment, the target location may be a pre-selected location.
[0061] For example, when editing the content of a document, the electronic device may display a cursor indicating the editing position, and the display position of the cursor corresponds to the pre-selected position.
[0062] When the first touch input is received, the first element and the first information may be displayed at the display position of the cursor.
[0063] In actual applications, the above-mentioned pre-selected position may not depend on the existence of the cursor. For example, before the user performs the first touch input, the user can perform a long press input in the document content. In response to the long press input, the electronic device can highlight the text paragraph input by the long press, and the beginning or end of the text paragraph can correspond to the above-mentioned pre-selected position.
[0064] In yet another embodiment, the target location may be a default location.
[0065] For example, the default position may be the beginning or the end of the document content, or may be the 50% progress position of the document content.
[0066] When the first touch input is a click input on the first preset control, the electronic device can display the first element and the first information in association at the default position. The electronic device can also receive the user's adjustment input to adjust the content of the first element and the first information in the document content.
[0067] Based on the above implementation methods, it can be seen that the method for determining the target location of the document content can be flexibly selected, which helps to meet the editing habits of different users and improve the user experience.
[0068] In combination with a specific application scenario, the target location can be determined in the following ways:
[0069] In response to the first touch input, when no preset cursor exists in the document content, a first element corresponding to the target control is displayed at a default position of the document content.
[0070] In this embodiment, the electronic device determines whether there is a preset cursor in the document content. The preset cursor can generally be used to indicate the position to be edited in the document content.
[0071] When there is no preset cursor in the document content, the first element and the first information corresponding to the target control may be displayed at a default position of the text content.
[0072] For example, the first element may be a dividing line, and the default position may be the beginning or the end of the text content, or the preset position may be the middle of the display area of the text content, which is not specifically limited here.
[0073] When there is no preset cursor in the document content, displaying the first element and the first information at the default position of the document content helps the user to further input the first element and the first information from a position they are more accustomed to, thereby improving the user's operating efficiency and usage experience.
[0074] In one implementation, when a preset cursor exists in the text content, the first element and the first information corresponding to the target control may be displayed at the position of the preset cursor.
[0075] In some application examples based on the present embodiment, when the first element corresponding to the target control is an element of the dividing line or other types, the display or insertion process of the first element and the first information can be the same step, and the associated display of the first element and the first information can be considered as a visual representation of the insertion process of the first element and the first information.
[0076] Optionally, when the target control is the first preset control, the above step 102, in response to the first touch input, displaying the first element and the first information in association at the target position of the document content, may specifically include:
[0077] In response to the first touch input, displaying a first cursor at a target position of the document content;
[0078] In case of receiving a second touch input to the first cursor, determining the first information from the document content according to an input parameter of the second touch input;
[0079] The first element and the first information are displayed in association at the target position.
[0080] As shown above, N preset controls may be displayed on the electronic device, and the N preset controls may include a first preset control. When the first touch input is an input to the first preset control, the first preset control is the target control mentioned above.
[0081] like Figure 2 As shown, in combination with an application scenario, the display interface of the electronic device may include text content and multiple preset controls, wherein the text content of the document may include text "This is the first point of the meeting", "This is the second point of the meeting", etc.
[0082] The first preset control may correspond to the control named "Style 2" in the figure, such as Figure 4 As shown, when the first touch input is received and the target position of the text content is the first position of the paragraph where the text "This is the first point of the meeting" is located, the electronic device can display a first cursor (marked as G1 in the figure).
[0083] As for the specific input method of the first touch input and the method for determining the target position, please refer to the above examples and will not be described in detail here.
[0084] The first cursor may have a corresponding function, such as Figure 5 As shown, when the user drags the first cursor, the text (marked as T1 in the figure) located between the target position and the end position of the drag input of the first cursor in the document content can be determined as the first information.
[0085] Here, the input of the user dragging the first cursor may correspond to the second touch input described above. The input parameters of the second touch input may include the coordinates of the end position thereof.
[0086] Of course, in some other feasible implementations, the second touch input may also be a click input method. For example, when the electronic device receives the click input, the input parameters of the second touch input may include the coordinates of the click position. At this time, the text between the target position and the click position in the document content may be determined as the first information.
[0087] It is easy to understand that the process of determining the first information here can be implemented on the basis of performing the first touch input on the target control. Therefore, the first information here can be considered to correspond to the target control.
[0088] exist Figure 6 In the figure, the first information determined according to the second touch input (marked as T2 in the figure) can be "this is the first point of the meeting".
[0089] When the first information is determined, a first element (marked as Y2 in the figure) may be displayed in association with the first information at the target position.
[0090] exist Figure 6 In the application scenario shown, the first element may be a dividing line, and the first information may be “This is the first point of the meeting.” The first element and the first information may be associated and displayed by displaying the first information on the first element.
[0091] Based on the above application scenarios, it can be seen that this embodiment can facilitate users to quickly select first information from document content, so that the electronic device can associate the first information with the first element and display it at a target location in the document content, thereby improving the processing efficiency of the document content.
[0092] Optionally, when the target control is the second preset control, step 102, displaying the first element and the first information in association at the target position of the document content, may include:
[0093] Acquire first progress information of a target position of the document content in the document content, the first information including first progress information;
[0094] The first element and the first information are displayed in association at the target position.
[0095] Similar to the first preset control, the second preset control may also be one of the N preset controls, and when the first touch input is input to the second preset control, the second preset control is the target control. In order to simplify the description, the meaning of each preset control will not be repeatedly explained below.
[0096] It is easy to understand that each position in the document content can have a progress information in the document content, and the progress information can be used to reflect the progress of the position in the document content. For example, the head position of the document content corresponds to 0% progress; the tail position of the document content corresponds to 100% progress; and the middle position of the document content can be calculated based on the total number of words, lines or paragraphs of the document content as the denominator and the number of words, lines or paragraphs corresponding to the middle position as the numerator to obtain the progress.
[0097] Correspondingly, the target position also has corresponding progress information in the document content, that is, the first progress information mentioned above. In practical applications, the first progress information can be reflected by a numerical value or by a progress bar, etc., which is not specifically limited here.
[0098] like Figure 7 As shown, in combination with an application scenario, the second preset control may correspond to the control named "Style 3" in the figure. The first touch input may be a sliding input, and the end position of the first touch input may be located in the middle of the document content.
[0099] The target position may be the end position of the first touch input. The electronic device may determine the first progress information based on the proportion of the target position in the number of lines or words in the document content, and display it by the number 30% (marked as NU1), and the first element may also be a dividing line (marked as Y3).
[0100] That is to say, in this application scenario, the first progress information can be embodied in the form of a percentage number. In actual application, the processing can be displayed in a percentage number, or in a fraction such as "3 / 10" or a text such as "30 percent".
[0101] like Figure 8 As shown, in another application scenario, the first progress information can also be displayed by placing an icon (marked as J) on the dividing line to indicate progress. The combination of the dividing line and the icon constitutes a progress bar-style dividing line.
[0102] Of course, in actual applications, the first progress information may also be displayed by a combination of numbers, graphics or other methods, which will not be illustrated one by one here.
[0103] The first information corresponding to the second preset control includes first progress information, that is, the display of the first progress information can be regarded as the display of the first information to a certain extent.
[0104] In combination with the above application scenarios, it can be seen that in this embodiment, the first element is associated with the first progress information to display the progress of the first element in the document content. In this way, when the user is reading the document content, the real-time reading progress can be obtained according to the first progress information, thereby improving the user's reading experience.
[0105] Optionally, when the target control is a third preset control, step 102, displaying the first element and the first information in association at the target position of the document content, may include:
[0106] Get the information of the second element in the document content, where the second element is the element corresponding to the target control, and the information of the second element includes the number of the second elements and the position of each second element in the document content;
[0107] Determine the target sequence number of the target position of the document content according to the information of the second element;
[0108] The first element and the first information corresponding to the target sequence number are displayed in association at the target position.
[0109] In this embodiment, the second element can be considered as the first element added historically. For example, in actual applications, the user may need to input the third preset control multiple times to insert multiple dividing lines of the same type into the document content.
[0110] Generally speaking, the position of each second element in the document content can be obtained.
[0111] For example, based on the user's historical first touch input to the third preset control, a second element is inserted at the head and tail of the document content, respectively. After receiving the first touch input to the third preset control again, the electronic device can display the first element at the target position and obtain the position of each second element in the document content.
[0112] For example, when the first element is dragged to the middle of the document content based on the first touch input, the target position may be the end position of the first touch input. The electronic device may obtain the relative position relationship between the target position and the positions of each second element in the document content, and further determine the target sequence number of the target position.
[0113] For example, when there is a second element at the beginning and the end of the document content, and the first position is located in the middle of the document content, the target sequence number of the first element may be "second" accordingly.
[0114] If the first position is at the beginning of the document content, the target serial number of the first element can be directly determined as "first"; conversely, if the first position is at the end of the document content, the target serial number of the first element can be directly determined as "last".
[0115] Among the first element and the second element, each element can determine a corresponding first information according to a position sequence number in the document content. Specifically, a preset information set may exist in the electronic device.
[0116] For example, the preset information set may be {"BEGIN", "PART A", "PART B", ..., "END"}; for another example, the preset information set may be {"BEGIN", "PART 1", "PART 2", ..., "END"}; for another example, the preset information set may be {"BEGIN", "PART I", "PART II", ..., "END"}; for another example, the preset information set may be {"start", "A", "B", ..., "end"}; for another example, the preset information set may be {"start", "Chapter 1", "Chapter 2", ..., "end"}; for another example, the preset information set may be {"start", "①", "②", ..., "end"}, etc. For simplicity of description, no exhaustive list is given here.
[0117] The preset information in each preset information set may have a corresponding arrangement number, and each element in the document content also has a corresponding position number. According to the correspondence between the position number and the arrangement number, the preset information corresponding to each element in the document content can be determined. The preset information corresponding to the target number can be used as the first information mentioned above.
[0118] like Fig. 9 As shown, in combination with an application scenario, the first element can be a dividing line (marked as Y4), the preset information set is {"BEGIN", "PART A", "PART B", ..., "END"}, and when the target sequence number of the first element is "second", the first information corresponding to the target sequence number is "PART A" (marked as M2 in the figure).
[0119] In the document content, there is a second element (marked as Y4′ in the figure) before the first element, which is located at the head of the document content, and the corresponding preset information is “BEGIN”.
[0120] In one example, when the first element and the first information corresponding to the target serial number are displayed in association, the first element and the first information are inserted into the document content. At the same time, for the second elements whose position serial numbers have changed, the preset information corresponding to these second elements can be re-determined and displayed according to their updated position serial numbers.
[0121] In combination with the above application scenarios, it can be seen that in this embodiment, the first information corresponding to the target serial number of the target position is determined based on the information of each second element, and the first information is associated with the first element and displayed. This helps to display the first element while using the first information to indicate the position of the first element in the document content, and helps to further provide an indexing function for the document content, thereby enhancing the user experience.
[0122] Optionally, when the target control is the fourth preset control, step 102, displaying the first element and the first information in association at the target position of the document content, may include:
[0123] When the target location of the document content is located in the to-do list, obtaining second progress information of the to-do item in the to-do list;
[0124] The first element and the second progress information are displayed in association in the to-do list, and the first information includes the second progress information.
[0125] It is easy to understand that the document content may include various lists, among which a to-do list may exist in the document content as a type of list.
[0126] In one example, a to-do list may include multiple selection controls, each selection control may be associated with a to-do item, and the to-do item may be displayed in a text form. When a selection control is selected, it may represent that the to-do item associated with the selection control has been completed.
[0127] The completion of a to-do item will bring about a change in the completion progress. For example, there are 5 to-do items in the to-do list. If 2 of the to-do items are completed, the completion progress may be 40%; if 4 of the to-do items are completed, the completion progress may be 80%. The completion progress may correspond to the second progress information.
[0128] Therefore, in this embodiment, the second progress information of the to-do item in the to-do list can be obtained. Furthermore, when the first position is located on the to-do list, the first element and the second progress information can be displayed in association in the to-do list.
[0129] like Fig.10 As shown, in combination with an application scenario, there may be multiple to-do items in the to-do list, corresponding to "notebook", "pen", "cup" and "broom". Each to-do item is associated with a selection control. When the selection controls corresponding to "notebook" and "pen" are selected, the second progress information may be displayed by the number "50%" (marked as NU2 in the figure).
[0130] The first element may be a dividing line (marked as Y5 in the figure), and the first element and the second progress information may be displayed in association. For example, the second progress information may be displayed on the first element, or the second progress information may be reflected by adjusting the graphics in the first element.
[0131] The first information corresponding to the fourth preset control includes the second progress information, that is, the display of the second progress information can be regarded as the display of the first information to a certain extent.
[0132] Based on the above application scenarios, it can be seen that this embodiment can display the completion progress of the to-do items in the to-do list by associating the first element with the second progress information, so as to facilitate prompting the user of the overall completion progress and improve the user experience.
[0133] Optionally, after the first element and the first information are displayed in association at the target position of the document content, the method further includes:
[0134] When a third touch input to the first element is received, determining the text to be operated from the document content according to an input parameter of the third touch input;
[0135] Highlight the text to be acted upon.
[0136] As an example, the first element may be a dividing line. When a drag input is received on the first element, the text scanned by the first element may be determined as the text to be operated. For the text to be operated, the electronic device may highlight it, for example, by changing the background color or displaying it in bold.
[0137] Of course, in actual application, the third touch input may include a process of multiple inputs. For example, the first element may be selected by double-clicking or multiple-clicking, so that when the first element is dragged, the text scanned by the first element can be determined as the text to be operated.
[0138] As for the subsequent operation methods for the text to be operated, there is no specific limitation this time. It can be deletion, or modifying the text format, or dragging the text to be operated to change its position in the document content, etc.
[0139] It can be seen that in this embodiment, by performing the third touch input on the first element, the text to be operated can be quickly determined from the document content, which helps to efficiently operate the text in the document content later. At the same time, highlighting the text to be operated also helps the user to clearly know the selected text to be operated.
[0140] In one embodiment, when the drag input of the first element ends, for example, when the user's finger leaves the screen, the first element can be restored to the end position of the first touch input.
[0141] In other feasible implementations, if the user directly drags the first element, the electronic device may update the insertion position of the first element in the document content in response to the dragging input.
[0142] Alternatively, the electronic device may adjust the position of the first element and the paragraph associated with the first element in the document content in response to the drag input. The paragraph associated with the first element may be a preset number of paragraphs located before or after the first element, or a paragraph between the first element and an adjacent second element, etc., which may be set according to actual needs.
[0143] Optionally, in the above step 102, after the first element and the first information are displayed in association at the target position of the document content, the method further includes:
[0144] In case of receiving a fourth touch input to the first element, displaying an adjustment control in response to the fourth touch input;
[0145] When a fifth touch input to the adjustment control is received, the display effect of the first element is adjusted in response to the fifth touch input.
[0146] like Fig.11 As shown, in combination with an application scenario, the first element can be a dividing line (marked as Y6 in the figure). When receiving a long press input from the user to the first element, the electronic device can respond to the long press input, display a window (marked as W), and display an adjustment control (marked as K) in the window.
[0147] The long press input here may correspond to the fourth touch input. In actual applications, the fourth touch input may also be a double-click or multi-click input, etc., which is not specifically limited here and can be distinguished from the input method for triggering other functions in the above embodiments.
[0148] The type and number of adjustment controls can be set as needed. For example, there can be multiple adjustment controls, some of which can be used to adjust the color of the dividing line, and some can be used to adjust the length of the dividing line, etc. For simplicity of description, no examples are given here.
[0149] The electronic device can receive the user's fifth touch input to the adjustment control. For example, when the adjustment control is a selection control, the fifth touch input can be a click input to the selection control. For another example, when the adjustment control is a progress bar control, the fifth touch input can be a sliding input to the adjustment control.
[0150] In response to the fifth touch input, the electronic device may adjust the display effect of the first element. The display effect may be the color or length of the first element, etc., which is not specifically limited here.
[0151] It can be seen that in this embodiment, when the first element is displayed in the document content, the display effect of the first element can be efficiently adjusted by directly operating the first element.
[0152] In some embodiments, the adjustment control also includes a control for applying the adjusted effect of the first element to other elements. When the control is selected, if there are other elements of the same type as the first element in the document content, the display effects of other elements of the same type as the first element can be adjusted while adjusting the display effect of the first element.
[0153] Optionally, in the above step 102, before displaying the first element and the first information in association at the target position of the document content, the method further includes:
[0154] In case of receiving a first sub-input to the target control, displaying a second cursor in response to the first sub-input;
[0155] In case of receiving a second sub-input to the second cursor, determining an end position of the second sub-input as a target position;
[0156] The first touch input includes a first sub-input and a second sub-input.
[0157] In actual applications, the electronic device can determine the end position of the first touch input as the target position, and display the first element and the first information in association at the target position. Therefore, from the user's perspective, when performing the first touch input, it is necessary to more accurately grasp the position corresponding to the end position in the document content.
[0158] In this embodiment, the first touch input can be divided into two input stages.
[0159] As an example, the first input stage may be a stage corresponding to the first sub-input, the first sub-input may be a long press input of the target control, and the electronic device may display a second cursor in response to the first sub-input. The second cursor may be attached to the finger of the user performing the touch operation.
[0160] It is easy to understand that in order to facilitate the user to intuitively obtain the corresponding relationship between the target control and the first element, a thumbnail of the first element may be displayed on the target control. When the first sub-input is received, compared with the method of directly displaying the first element or its thumbnail at the touch position, in this embodiment, the displayed second cursor may have a smaller size, which can more accurately reflect the position of the first element and the first information to be inserted in the document content.
[0161] The second input stage may be a stage corresponding to the second sub-input, the second sub-input may be a drag input of the second cursor, and the electronic device may display the second cursor at the real-time position of the second sub-input in response to the second sub-input.
[0162] In other words, in the stage corresponding to the second sub-input, the second cursor can be considered to be adsorbed under the finger, which helps the user to more accurately grasp the end position of the first touch input.
[0163] Optionally, after the above step 101, displaying the document content and N preset controls, the method may further include:
[0164] When a sixth touch input to a target control among the N preset controls is received, displaying a third element in the document content in response to the sixth touch input;
[0165] When a seventh touch input to the third element is received, determining a target alignment mode according to input parameters of the seventh touch input;
[0166] Adjust the document content according to the target alignment.
[0167] like Fig.12 As shown, in combination with an application scenario, the target control may correspond to a control named "Style 6". For ease of description, the control of "Style 6" may be referred to as the fifth preset control. When a click input to the fifth preset control is received, a ruler (marked as B) may be displayed on the document content. The ruler may correspond to the third element, and the click input may correspond to the sixth touch input.
[0168] In actual applications, the specific display position of the third element determined by the electronic device in response to the sixth touch input can be the default, for example, displayed in the middle, left or right of the document content; for example, it can also be the final display position of the third element after the last touch input was performed on the fifth preset control and the third element.
[0169] Combine again Fig.12 In the application scenario shown, when a ruler is displayed, the user can perform a drag input on the ruler, that is, perform a seventh touch input on the ruler. In one example, the display position of the ruler can change with the change of the real-time position of the drag input.
[0170] If the end position of the seventh touch input is located on the left side of the document content, the target alignment can be determined to be left alignment according to the input parameters of the seventh touch input, such as the coordinates of its end position. When the end position of the sixth touch input is located on the right side of the document content, the target alignment can be determined to be right alignment according to the input parameters of the seventh touch input. When the end position of the seventh touch input is located in the middle of the document content, the target alignment can be determined to be middle alignment.
[0171] It can be seen that the display position of the ruler in the document may correspond to the alignment mode. When the ruler is displayed at a certain position, a target alignment mode may be determined accordingly. The display position of the ruler may correspond to the input parameter of the seventh touch input.
[0172] When the target alignment is determined, the layout of the document content can be adjusted, such as adjusting the text of the document content to left alignment or right alignment, etc.
[0173] Of course, in practical applications, the form of the third element is not limited to a ruler, and may also be other forms of graphics, etc., which is not specifically limited here.
[0174] In addition, the electronic device can also determine more alignment modes in combination with the input track of the seventh touch input. For example, when the seventh touch input is a back-and-forth slide on the left and right sides of the displayed content, or a clockwise slide, the target alignment mode can be determined as left-right alignment.
[0175] From the above, it can be seen that in this embodiment, the electronic device displays the third element in response to the sixth touch output to the target control, and based on the seventh touch input to the third element, the alignment of the document content can be quickly adjusted to improve the adjustment efficiency of the document content layout.
[0176] In some implementations, the user may also perform a drag input on the fifth preset control, and the electronic device may directly determine the target alignment mode according to the end point position of the drag input.
[0177] In some examples, during the continuous drag input, the electronic device may display the third element, and the third element is adsorbed under the user's finger. Of course, in other examples, during the continuous drag input, the third element may not be displayed.
[0178] By dragging and inputting the fifth preset control, the operation for adjusting the alignment of the document content can be effectively simplified, thereby improving the efficiency of adjusting the alignment of the document content.
[0179] In combination with the above embodiments, it can be seen that different forms of input for the same preset control can achieve different adjustment functions for the document content. For example, in the above embodiment, when the electronic device receives a click input for the fifth preset control, it can display the third element; and when receiving a drag input for the fifth preset control, it can directly adjust the alignment of the document content according to the end position of the drag input.
[0180] Of course, in actual applications, for other preset controls, when receiving different types of input, the electronic device can also adjust the document content to match the input type. Examples of specific adjustment methods can be found in the various embodiments above and will not be repeated here.
[0181] Optionally, after step 101, displaying the document content and N preset controls, the method further includes:
[0182] When an eighth touch input to the third element is received, in response to the eighth touch input, displaying a third cursor at an end position of the eighth touch input;
[0183] When a ninth touch input to the third cursor is received, the target paragraph is indented according to the input parameters of the ninth touch input, the target paragraph being the paragraph in the document content corresponding to the end position of the eighth touch input.
[0184] In combination with an application scenario, when a third element is displayed, different input methods of the third element can trigger different functions.
[0185] For example, when a touch input of direct dragging of the third element is received, the alignment of the document content may be adjusted according to the display position of the third element. The touch input of direct dragging corresponds to the seventh touch input in the previous embodiment.
[0186] If a long press input is received first for the third element, the third element can be updated and displayed as a third cursor, which can be attached to the user's finger and update its display position in the document content as the finger slides. When the user's finger leaves the touch screen of the electronic device, the third cursor can be displayed at the end position of the sliding input. The long press input and sliding input here can correspond to the eighth touch input in this embodiment.
[0187] like Fig.13 As shown, when the eighth touch input to the third element is received, the electronic device may display a third cursor (marked as G2) at the end position of the eighth touch input.
[0188] The end position of the eighth touch input may correspond to a target paragraph in the document content, that is, the third cursor may be displayed in the target paragraph.
[0189] When the drag input of the third cursor is received again, the target paragraph can be indented according to the drag distance or the end position of the drag of the third cursor. The drag input at this time can correspond to the ninth touch input mentioned above, and the drag distance or the end position of the drag can be the input parameter of the ninth touch input.
[0190] It can be seen that in this embodiment, when the ninth touch input to the third cursor is received, the target paragraph is indented according to the input parameters of the ninth touch input, and the target paragraph can be indented to the desired position efficiently and accurately, thereby achieving efficient adjustment of the layout of the document content.
[0191] In one example, the indentation of the target paragraph may be achieved by adding a space before the first word of the target paragraph. The longer the drag distance corresponding to the ninth touch input is, the more spaces are added.
[0192] It can be seen that in this example, by dragging the third cursor, spaces can be quickly added to achieve indentation of the target paragraph, which can effectively improve input efficiency compared to the method of entering spaces one by one.
[0193] In some feasible implementations, the electronic device may also directly display a third cursor at a target position in the document content when receiving the tenth touch input to a target control among the N preset controls. The target position may be the end position of the tenth touch input, or a pre-selected position, etc. For details, please refer to the description of the target position in the above embodiment, which will not be repeated here.
[0194] The document content processing method provided in the embodiment of the present application designs various types of dividing lines, and provides various editing operation modes for operations such as modifying and adding dividing lines, thereby improving the efficiency of paragraph editing and viewing, and enhancing the user experience. By using gesture operation modes for alignment lines, the alignment operation in the text editing process is optimized. By using different forms of dragging (such as the direct dragging or long-pressing dragging mentioned above), different functions are given to the alignment lines. After interacting with the given gestures, the alignment and indentation of the text paragraph can be quickly modified, thereby enhancing the user experience.
[0195] It should be noted that the document content processing method provided in the embodiment of the present application can be executed by a document content processing device, or a control module in the document content processing device for executing the document content processing method. In the embodiment of the present application, the document content processing device provided in the embodiment of the present application is described by taking the document content processing device executing the document content processing method as an example.
[0196] like Fig.14 As shown, the document content processing device 1400 provided in the embodiment of the present application includes:
[0197] The first display module 1401 is used to display document content and N preset controls, where N is a positive integer;
[0198] The second display module 1402 is used to display a first element and a first information in an associated manner at a target position of the document content in response to a first touch input received to a target control among N preset controls, wherein the first element and the first information both correspond to the target control.
[0199] Optionally, the second display module 1402 includes:
[0200] A first display unit, configured to display a first cursor at a target position of the document content in response to a first touch input;
[0201] A first determining unit, configured to determine first information from the document content according to an input parameter of the second touch input when receiving a second touch input to the first cursor;
[0202] The second display unit is used to display the first element and the first information in association with each other at the target position.
[0203] Optionally, the second display module 1402 includes:
[0204] A first acquisition unit, configured to acquire first progress information of a target position of the document content in the document content, wherein the first information includes first progress information;
[0205] The third display unit is used to display the first element and the first information in association with each other at the target position.
[0206] Optionally, the second display module 1402 includes:
[0207] A second acquisition unit is used to acquire information of second elements in the document content, where the second elements are elements corresponding to the target control, and the information of the second elements includes a position of each second element in the document content;
[0208] A second determining unit determines a target sequence number of a target position of the document content according to information of the second element;
[0209] The fourth display unit is used to display the first element and the first information corresponding to the target sequence number in association with each other at the target position.
[0210] Optionally, the second display module 1402 includes:
[0211] A third acquisition unit is used to acquire second progress information of a to-do item in the to-do list when the target position of the document content is located in the to-do list;
[0212] The fifth display unit is used to display the first element and the second progress information in association with each other in the to-do list, where the first information includes the second progress information.
[0213] Optionally, the document content processing device 1400 further includes:
[0214] A first determining module, configured to determine the text to be operated from the document content according to an input parameter of the third touch input when receiving the third touch input to the first element;
[0215] The third display module is used to highlight the text to be operated.
[0216] Optionally, the document content processing device 1400 further includes:
[0217] a fourth display module, configured to display an adjustment control in response to a fourth touch input to the first element when a fourth touch input to the first element is received;
[0218] The adjustment module is used to adjust the display effect of the first element in response to the fifth touch input when receiving the fifth touch input to the adjustment control.
[0219] Optionally, the destination of the document content is any of the following:
[0220] the end position of the first touch input;
[0221] Pre-selected location;
[0222] Default location.
[0223] Optionally, the document content processing device 1400 further includes:
[0224] a fifth display module, configured to display a second cursor in response to the first sub-input when receiving the first sub-input to the target control;
[0225] a sixth display module, configured to, upon receiving a second sub-input to a second cursor, determine an end position of the second sub-input as a target position;
[0226] The first touch input includes a first sub-input and a second sub-input.
[0227] Optionally, the document content processing device 1400 further includes:
[0228] a seventh display module, configured to display a third element in the document content in response to a sixth touch input received to a target control among the N preset controls;
[0229] A second determining module is used to determine a target alignment mode according to input parameters of the seventh touch input when receiving a seventh touch input to the third element;
[0230] The adjustment module is used to adjust the document content according to the target alignment.
[0231] Optionally, the document content processing device 1400 further includes:
[0232] an eighth display module, configured to display a third cursor at an end position of the eighth touch input in response to the eighth touch input when an eighth touch input to the third element is received;
[0233] The indentation module is used to indent the target paragraph according to the input parameters of the ninth touch input when receiving the ninth touch input to the third cursor. The target paragraph is the paragraph in the document content corresponding to the end position of the eighth touch input.
[0234] The document content processing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0235] The document content processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0236] The document content processing device provided in the embodiment of the present application can achieve Figures 1 to 13 The various processes implemented by the method embodiment can obtain the same technical effect, so to avoid repetition, they will not be described here.
[0237] Alternatively, if Fig.15 As shown, an embodiment of the present application also provides an electronic device 1500, including a processor 1501, a memory 1502, and a program or instruction stored in the memory 1502 and executable on the processor 1501. When the program or instruction is executed by the processor 1501, each process of the above-mentioned document content processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0238] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0239] Fig.16 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0240] The electronic device 1600 includes but is not limited to: a radio frequency unit 1601, a network module 1602, an audio output unit 1603, an input unit 1604, a sensor 1605, a display unit 1606, a user input unit 1607, an interface unit 1608, a memory 1609, and a processor 1610 and other components.
[0241] Those skilled in the art will appreciate that the electronic device 1600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.16 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0242] Among them, the display unit 1606 is used to display document content and N preset controls; when a first touch input to a target control among the N preset controls is received, in response to the first touch input, a first element and a first information are associated and displayed at a target position of the document content, and the first element and the first information both correspond to the target control; N is a positive integer.
[0243] The electronic device provided in the embodiment of the present application displays document content and N preset controls, where N is a positive integer; when a first touch input to a target control among the N preset controls is received, in response to the first touch input, a first element and a first information are displayed in association at a target position of the document content, and both the first element and the first information correspond to the target control. Based on the first touch input to the target control by the user, this embodiment can display the first element and the first information in association at the target position of the document content, thereby effectively improving the efficiency of document content processing.
[0244] Optionally, the display unit 1606 is used to display a first cursor at a target position of the document content in response to the first touch input; and to display the first element and the first information in association at the target position.
[0245] The processor 1610 is configured to determine the first information from the document content according to an input parameter of the second touch input when receiving the second touch input to the first cursor.
[0246] Optionally, the processor 1610 is configured to obtain first progress information of a target position of the document content in the document content, where the first information includes first progress information;
[0247] The display unit 1606 is used to display the first element and the first information in association with each other at the target position.
[0248] Optionally, the processor 1610 is used to obtain information about a second element in the document content, where the second element is an element corresponding to the target control, and the information about the second element includes a position of each second element in the document content; and determine a target sequence number of a target position of the document content according to the information about the second element.
[0249] The display unit 1606 is used to display the first element and the first information corresponding to the target sequence number in association with each other at the target position.
[0250] Optionally, the processor 1610 is configured to obtain second progress information of a to-do item in the to-do list when the target location of the document content is located in the to-do list;
[0251] The display unit 1606 is used to display the first element and the second progress information in association with each other in the to-do list, where the first information includes the second progress information.
[0252] Optionally, the processor 1610 is configured to determine the text to be operated from the document content according to an input parameter of the third touch input when receiving the third touch input to the first element;
[0253] The display unit 1606 is used to highlight the text to be operated.
[0254] Optionally, the display unit 1606 is configured to display an adjustment control in response to the fourth touch input when receiving the fourth touch input to the first element;
[0255] The processor 1610 is configured to adjust the display effect of the first element in response to the fifth touch input when receiving the fifth touch input to the adjustment control.
[0256] Optionally, the destination of the document content is any of the following:
[0257] the end position of the first touch input;
[0258] Pre-selected location;
[0259] Default location.
[0260] Optionally, the display unit 1606 is configured to display a second cursor in response to the first sub-input when receiving the first sub-input to the target control;
[0261] Processor 1610 is configured to, when receiving a second sub-input to a second cursor, determine an end position of the second sub-input as a target position.
[0262] The first touch input includes a first sub-input and a second sub-input.
[0263] Optionally, the display unit 1606 is configured to display a third element in the document content in response to the sixth touch input when a sixth touch input to a target control among the N preset controls is received;
[0264] Processor 1610 is configured to, when receiving a seventh touch input to a third element, determine a target alignment according to input parameters of the seventh touch input; and adjust document content according to the target alignment.
[0265] Optionally, the display unit 1606, when receiving an eighth touch input to the third element, displays a third cursor at an end position of the eighth touch input in response to the eighth touch input;
[0266] Processor 1610 is configured to, upon receiving a ninth touch input to a third cursor, indent a target paragraph according to input parameters of the ninth touch input, the target paragraph being a paragraph in the document content corresponding to an end position of the eighth touch input.
[0267] It should be understood that in the embodiment of the present application, the input unit 1604 may include a graphics processor (Graphics Processing Unit, GPU) 16041 and a microphone 16042, and the graphics processor 16041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1606 may include a display panel 16061, and the display panel 16061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1607 includes a touch panel 16071 and other input devices 16072. The touch panel 16071 is also called a touch screen. The touch panel 16071 may include two parts: a touch detection device and a touch controller. Other input devices 16072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1609 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1610 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1610.
[0268] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned document content processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0269] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0270] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned document content processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0271] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0272] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes 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 sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0273] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0274] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A document content processing method, characterized in that: include: Display document content and N preset controls, where N is a positive integer; When a first touch input to a target control among the N preset controls is received, in response to the first touch input, a first element and a first information are displayed in association at a target position of the document content, wherein both the first element and the first information correspond to the target control; When the target control is the fourth preset control and the document content includes a to-do list, displaying the first element and the first information in association at the target position of the document content includes: When the target location of the document content is located in the to-do list, obtaining second progress information of the to-do item in the to-do list; The first element and the second progress information are displayed in association in the to-do list, and the first information includes the second progress information.
2. The method according to claim 1, characterized in that In a case where the target control is a first preset control, in response to the first touch input, displaying a first element and first information in association at a target position of the document content specifically includes: In response to the first touch input, displaying a first cursor at a target position of the document content; When receiving a second touch input to the first cursor, determining the first information from the document content according to an input parameter of the second touch input; The first element and the first information are displayed in association at the target location.
3. The method according to claim 1, characterized in that In a case where the target control is a second preset control, displaying the first element and the first information in association with each other at the target position of the document content includes: Acquire first progress information of a target position of the document content in the document content, wherein the first information includes the first progress information; A first element and the first information are displayed in association at the target position.
4. The method according to claim 1, characterized in that In a case where the target control is a third preset control, displaying the first element and the first information in association with each other at the target position of the document content includes: Acquire information of second elements in the document content, where the second elements are elements corresponding to the target control, and the information of the second elements includes a position of each of the second elements in the document content; Determining a target sequence number of a target position of the document content according to the information of the second element; The first element and first information corresponding to the target sequence number are displayed in association with each other at the target position.
5. The method according to any one of claims 1 to 4, characterized in that After the first element and the first information are displayed in association at the target position of the document content, the method further includes: When a third touch input to the first element is received, determining the text to be operated from the document content according to an input parameter of the third touch input; The text to be operated is highlighted.
6. The method according to any one of claims 1 to 4, characterized in that After the first element and the first information are displayed in association at the target position of the document content, the method further includes: When receiving a fourth touch input to the first element, displaying an adjustment control in response to the fourth touch input; When a fifth touch input to the adjustment control is received, the display effect of the first element is adjusted in response to the fifth touch input.
7. The method according to any one of claims 1 to 4, characterized in that The target location of the document content is any of the following locations: the end position of the first touch input; Pre-selected location; Default location.
8. The method according to claim 1, characterized in that Before displaying the first element and the first information in association at the target position of the document content, the method further includes: In case of receiving a first sub-input to the target control, displaying a second cursor in response to the first sub-input; upon receiving a second sub-input to the second cursor, determining an end position of the second sub-input as a target position; The first touch input includes the first sub-input and the second sub-input.
9. The method according to claim 1, characterized in that: After displaying the document content and N preset controls, the method further includes: When a sixth touch input to a target control among the N preset controls is received, displaying a third element in the document content in response to the sixth touch input; When a seventh touch input to the third element is received, determining a target alignment mode according to input parameters of the seventh touch input; The document content is adjusted according to the target alignment.
10. The method according to claim 9, characterized in that After displaying the third element in the document content, the method further includes: In a case where an eighth touch input to the third element is received, in response to the eighth touch input, displaying a third cursor at an end position of the eighth touch input; When a ninth touch input to the third cursor is received, a target paragraph is indented according to input parameters of the ninth touch input, the target paragraph being a paragraph in the document content corresponding to the end position of the eighth touch input.
11. A document content processing device, characterized in that: include: The first display module is used to display document content and N preset controls, where N is a positive integer; a second display module, configured to, upon receiving a first touch input to a target control among the N preset controls, display a first element and a first information in association at a target position of the document content in response to the first touch input, wherein the first element and the first information both correspond to the target control; Wherein, the second display module includes: A third acquisition unit is used for, when the target control is a fourth preset control and the document content includes a to-do list, and when the target position of the document content is located in the to-do list, acquiring second progress information of a to-do item in the to-do list; A fifth display unit is used to display the first element and the second progress information in association with each other in the to-do list, where the first information includes the second progress information.
12. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the document content processing method as described in any one of claims 1 to 10.
