Document Processing Method, Apparatus, Electronic Device and Medium
By identifying and responding to preset modification symbols in document processing methods, the problem of cumbersome operations during soft keyboard editing is solved, and more efficient document modification and user experience is achieved.
Patent Information
- Application Number
- CN202111011616.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-31
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-08-31
AI Technical Summary
In the prior art, when editing documents based on soft keyboards, the operation is more cumbersome and the modification efficiency is low.
A document processing method is provided, by receiving a first input from a user when a document is displayed, identifying and responding to a preset modification symbol, and saving the modified document. The method includes identifying a preset modification symbol in the first input track, modifying the document according to the associated modification rules, and displaying the text associated with the preset modification symbol differently.
By displaying the first input track and differently displaying text associated with preset modification symbols, the user's need to obtain specific modification content of the document is effectively met, and the efficiency of document processing and user experience are improved.
Smart Images

Figure CN113705178B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of electronic devices, and particularly relates to a document processing method, apparatus, electronic device, and medium. Background Art
[0002] With the development of electronic devices, more and more users use electronic devices for reading. In some application scenarios, when reading a document, a user may need to edit the document, such as making annotations or modifications to the document. However, in related technologies, when a user has an editing need for a document, a soft keyboard is often required for text input or deletion, and the operation is relatively cumbersome, and the modification efficiency is low. Summary of the Invention
[0003] The purpose of the embodiments of this application is to provide a document processing method, apparatus, electronic device, and medium, which can solve the problem that in related technologies, document editing based on a soft keyboard leads to relatively cumbersome operations and low modification efficiency.
[0004] In a first aspect, the embodiments of this application provide a document processing method, which includes:
[0005] When a first document is displayed, receive a first input to the first document;
[0006] When the first input trajectory of the first input includes a preset modification symbol, save a second document or save a third document;
[0007] Wherein, the second document is the first document including the first input trajectory, and the preset modification symbol in the second document is associated with a modification rule;
[0008] The third document is a document obtained by modifying the first document according to the modification rule associated with the preset modification symbol.
[0009] In a second aspect, the embodiments of this application provide a document processing apparatus, which includes:
[0010] A receiving module, configured to receive a first input to the first document when the first document is displayed;
[0011] A saving module, configured to save the second document or save the third document when the first input trajectory of the first input includes a preset modification symbol;
[0012] Wherein, the second document is the first document including the first input trajectory, and the preset modification symbol in the second document is associated with a modification rule;
[0013] The third document is a document obtained by modifying the first document according to the modification rule associated with the preset modification symbol.
[0014] 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 on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the method according to the first aspect are implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method according to the first aspect.
[0017] For the document processing method provided by the embodiments of the present application, when a document is displayed, a first input to the document is received. In response to the first input, a first input trajectory of the first input is displayed. When the first input trajectory includes a preset modification symbol, the first text is displayed differentially, that is, the text in the document associated with the preset modification symbol is displayed differentially. By displaying the first input trajectory and differentially displaying the first text, the embodiments of the present application can effectively meet the user's need to obtain the specific modification content of the document and improve the document processing effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a schematic flowchart of the document processing method provided by the embodiment of the present application;
[0019] Figures 2a to 2d is an example diagram of a preset modification symbol;
[0020] Figure 3a is an example diagram of a document display interface when a first input trajectory is included;
[0021] Figure 3b is an example diagram of a document display interface after the document is modified according to the preset modification symbol;
[0022] Figure 4 is a schematic flowchart of the document processing method in a specific application example;
[0023] Figure 5 is a schematic structural diagram of the document processing device provided by the embodiment of the present application;
[0024] Figure 6 is a schematic structural diagram of the electronic device provided by the embodiment of the present application;
[0025] Figure 7 is a schematic hardware structure diagram of an electronic device for implementing the embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0026] The following will clearly describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings 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. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, 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 means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0028] The following will, in conjunction with the accompanying drawings, provide a detailed description of the document processing method and apparatus provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0029] As Figure 1 shown, the document processing method provided in the embodiments of the present application includes:
[0030] Step 101, when a first document is displayed, receive a first input to the first document;
[0031] Step 102, when the first input trajectory of the first input includes a preset modification symbol, save a second document or save a third document;
[0032] Wherein, the second document is the first document including the first input trajectory, and the preset modification symbol in the second document is associated with a modification rule;
[0033] The third document is a document obtained by modifying the first document according to the modification rule associated with the preset modification symbol.
[0034] The document processing method provided in the embodiments of the present application can be applied to an electronic device, which can be, for example, a mobile terminal, a tablet computer or other types of electronic devices, and no specific limitation is made here.
[0035] For the sake of simplicity, in the following, an electronic device is mainly taken as an example of a tablet computer, which may include a touch screen and a stylus for users to perform input operations. In some examples, a communication connection can be established between the stylus and the body of the tablet computer. On the one hand, users can use the stylus to write on the touch screen. On the other hand, they can also input on the stylus to control the display content of the tablet computer, etc.
[0036] Of course, various input operations mentioned in the embodiments of the present application can be not only the input brought by users using a stylus, but also the input of fingers on the screen of the electronic device, or voice input, etc., which are not specifically limited herein.
[0037] The electronic device can display a first document. Combining some application scenarios, the first document can be an article, a courseware, or information being edited, etc.
[0038] In some examples, the first document can include text, pictures, etc. The text in the first document can be stored in text format, or can be the text obtained by recognizing the pictures in the first document, which is not specifically limited herein.
[0039] In this embodiment, the text or pictures in the first document can be used for modification. For example, the text can be edited, or the pictures can be deleted or resized, etc. For the sake of simplicity, in the following embodiments, the modification of the first document can mainly refer to the modification of the text in the first document.
[0040] In step 101, when the electronic device is displaying the first document, it can receive a first input from the user to the first document.
[0041] For example, the user can use the stylus to write in the display area of the electronic device for displaying the first document, and this writing input can correspond to the first input from the user to the first document. Of course, this is only an example of the first input. In actual applications, the input area corresponding to the first input can also be not limited to the display area of the first document; or, the user can also use fingers for the first input, etc.
[0042] In step 102, when the first input trajectory of the first input includes a preset modification symbol, the electronic device can save a second document or save a third document.
[0043] Combining some application scenarios, when the user is reading the first document, they may annotate some of their thoughts on the content of the first document in the first document. At this time, the first input trajectory may correspond to the text annotated by the user.
[0044] Alternatively, the user may also find some grammar errors in the text of the first document and need to modify this text, and thus may use proofreading marks.
[0045] For example, the first document includes the following text "Today is Monday Monday". Among them, the word "Monday" is repeated. The user can input a deletion mark at the display position of the word "Monday". At this time, the first input trajectory can correspond to the above-mentioned deletion mark.
[0046] For another example, the first document includes the following text "Today is Xingqi 1". Among them, the word "Xingqi" is a typo. The user can input a replacement mark at the display position of the word "Xingqi" and write the word "Monday" above the replacement mark. At this time, the first input trajectory can correspond to the replacement mark and the written word "Monday".
[0047] The above processes of annotating or modifying the first document can all be regarded as the editing process of the first document. When the user modifies the first document, the first input trajectory may include preset proofreading marks.
[0048] In one embodiment, the electronic device can identify the above-mentioned first input trajectory to determine whether the first input trajectory includes preset proofreading marks.
[0049] For the preset proofreading marks, they can be preset. Refer to Figures 2a to 2d , Figures 2a to 2d as the example diagrams of several preset proofreading marks. For simplicity of description, according to the modification functions corresponding to each preset proofreading mark, the Figures 2a to 2d shown preset proofreading marks can be respectively denoted as deletion marks, transposition marks, replacement marks, and addition marks.
[0050] In an example, these preset proofreading marks can be used as training samples to train a deep learning model so that the trained deep learning model can identify the preset proofreading marks.
[0051] Of course, the styles of the preset proofreading marks corresponding to the modification functions may not be limited to Figures 2a to 2d the examples. For example, the deletion mark can also be a line drawn through the text, etc. In addition, one modification function can also correspond to multiple styles of preset proofreading marks, and no detailed examples will be given here.
[0052] Combined with the above examples, in practical applications, the types of preset proofreading marks can be one or more. In the case where the types of preset proofreading marks are multiple, if the first input trajectory includes any one type of preset proofreading mark, it can be considered that the first input trajectory includes preset proofreading marks.
[0053] In the case where the first input trajectory of the first input includes preset modification symbols, corresponding processing can be performed on these preset modification symbols as needed to form a second document or a third document for saving.
[0054] Among them, the second document is the first document including the first input trajectory. Correspondingly, when processing the preset modification symbols, the first input trajectory including the preset modification symbols can be retained in the document. At the same time, the preset modification symbols can be associated with corresponding modification rules.
[0055] Combined with an application scenario, on the basis of saving the above-mentioned second document, if the user reopens the second document later, the electronic device can display the content of the original first document and the first input trajectory input by the user, and the preset modification symbols in these first input trajectories are associated with modification rules.
[0056] In an example, the preset modification symbols are associated with modification rules, which can reflect that the electronic device can receive the user's preset input and modify the content of the first document according to the modification rules. Of course, this is only an example of a manifestation form in which the preset modification symbols are associated with modification rules. In actual applications, its manifestation form can also be in the display differences of each preset modification symbol, or in the display differences of the text associated with each preset modification symbol in the first document, etc. No further examples will be given here.
[0057] The third document can be a document obtained by modifying the first document according to the modification rules associated with the preset modification symbols.
[0058] Combined with the above examples of deletion symbols and replacement symbols, each preset modification symbol can be associated with a modification rule, and the first document can be modified according to the modification rules associated with the preset modification symbols.
[0059] For example, if a deletion symbol is input at the display position of the word "week", the word "week" can be deleted, and the original text "Today is week Monday" is modified to "Today is Monday". For another example, if a replacement symbol is input at the display position of the word "rise", and the word "week" is written above the replacement symbol, the word "rise" can be replaced with the word "week", and the original text "Today is rise one" is modified to "Today is Monday".
[0060] In the related art, if the user needs to delete the word "week", the user needs to first position the cursor behind the word "week" with a finger, and then call the soft keyboard to delete the word "week"; if the user needs to replace the word "rise" with the word "week", the user needs to first position the cursor behind the word "rise" with a finger, then call the soft keyboard to delete the word "rise", and finally input the word "week" through the input method.
[0061] In contrast, in the embodiments of the present application, the user can perform a first input on an electronic device, and the electronic device can process the first document accordingly based on a preset modification symbol in the first input trajectory of the first input, and save it in a second document or save it as a third document. Thus, the complexity of user operations can be effectively reduced.
[0062] In some examples, whether the electronic device specifically saves the first document as a second document or as a third document can be determined according to the default settings or the settings made by the user, or alternatively, it can also be determined according to the further input of the user to the first document, and no specific limitation is made here.
[0063] The document processing method provided by the embodiments of the present application, when a first document is displayed, receives a first input to the first document, and when the first input trajectory of the first input includes a preset modification symbol, saves a second document or saves a third document, where the second document is the first document including the first input trajectory, and the preset modification symbol in the second document is associated with a modification rule; the third document is a document obtained by modifying the first document according to the modification rule associated with the preset modification symbol. In the embodiments of the present application, the preset modification symbol in the first input trajectory can be associated with a modification rule, and the user can edit the first document through the first input, thereby helping to simplify user operations and improve the modification efficiency of the document.
[0064] Optionally, in step 102 above, when the first input trajectory of the first input includes a preset modification symbol, saving the third document may specifically include:
[0065] When a second input is received, in response to the second input, modify the first text according to the modification rule associated with the preset modification symbol to obtain a third document, where the first text is the text in the first document associated with the preset modification symbol;
[0066] Save the third document.
[0067] Combined with some application scenarios, the user may need to modify the text in the first document by performing a first input on the first document. Correspondingly, the first input trajectory of the first input may include a preset modification symbol.
[0068] In this embodiment, when a second input is received, the electronic device can, in response to the second input, modify the first text according to the modification rule associated with the preset modification symbol. At this time, it can be considered that the text of the first document is updated so that the user can more intuitively obtain the text content of the first document after modification.
[0069] For example, the first document includes the following text "Today is Monday of the week". When the first input is received, the electronic device can keep displaying "Today is Monday of the week", but can further display the first input trajectory. For example, it can display the deletion symbol written by the user at the previous "week". At this time, the previous "week" can be regarded as the above-mentioned first text.
[0070] When the second input is received, the electronic device can delete the previous "week" according to the modification rule corresponding to the deletion symbol, that is, it can modify the text "Today is Monday of the week" to "Today is Monday".
[0071] That is to say, when the preset modification symbol is the deletion symbol, the modification rule associated with the preset modification symbol can be to delete the text circled by the deletion symbol.
[0072] Similarly, when the preset modification symbol is other types of modification symbols, corresponding modification rules can also be associated.
[0073] For example, as Figure 2c shown, the replacement symbol can include a closed curve and two diagonal lines connected to the closed curve. The modification rule associated with the replacement symbol can be to replace the text circled by the closed curve with the text input by the user between the two diagonal lines.
[0074] As for the second input, it can be a preset gesture input, or an input to a preset control displayed on the electronic device, etc., which is not specifically limited here.
[0075] For example, when the electronic device includes a stylus, the second input can correspond to a tapping input by the user on the end of the stylus away from the tip.
[0076] For another example, at the top of the display area for displaying the first document, a preset control can be displayed. When a click input to the preset control is received, the first text is modified.
[0077] After modifying the first text in the first document according to the modification rule associated with the preset modification symbol, the above-mentioned third document can be obtained. The electronic device can further save the third document.
[0078] It can be seen that in this embodiment, the electronic device can respond to the user's second input to modify the first text in the first document to obtain the third document, so as to facilitate the user to continuously read the text content of the third document and effectively meet the user's diverse processing requirements for documents.
[0079] In one embodiment, when the electronic device receives the second input, it can also delete the above first input trajectory to prevent the first input trajectory from interfering with the user during the reading of the third document.
[0080] Optionally, modifying the first text according to the modification rules associated with the preset modification symbols includes at least one of the following:
[0081] When the modification rule associated with the preset modification symbol is to delete text, delete the first text;
[0082] When the modification rule associated with the preset modification symbol is to swap text, determine the first sub-text and the second sub-text from the first text, and swap the positions of the first sub-text and the second sub-text;
[0083] When the modification rule associated with the preset modification symbol is to replace text, replace the first text with the second text;
[0084] When the modification rule associated with the preset modification symbol is to add text, add the second text at a preset position in the first text, and the preset position corresponds to the position of the preset modification symbol;
[0085] Wherein, the second text is the text included in the first input trajectory, or the second text is the text input in the preset input box.
[0086] As shown above, the type of the preset modification symbol can be one or more, and the modification rules associated with each preset modification symbol can correspond to the type of each preset modification symbol, or rather, correspond to the modification function of each preset modification symbol.
[0087] For example, the preset modification symbol can be a deletion symbol, a swapping symbol, a replacement symbol or an addition symbol.
[0088] Combined with the above examples, for the deletion symbol, the associated modification rule can be to delete the text circled by the deletion symbol. For the replacement symbol, the associated modification rule can be to replace the text circled in the closed curve with the text input by the user between the two slashes.
[0089] Generally speaking, when the electronic device determines that the first input trajectory includes a preset modification symbol, the type of the preset modification symbol can also be determined. Correspondingly, the modification rules associated with the preset modification symbol can also be determined.
[0090] To facilitate a better understanding of the implementation process of modifying the first text according to the response of the electronic device to the second input, the following will be combined with Figure 3a and Figure 3b for illustrative examples.
[0091] Among them, Figure 3a is an example diagram of the first document display interface when including the first input trajectory, Figure 3b is an example diagram of the first document display interface after modifying the first document according to the preset modification symbol in the first input trajectory.
[0092] Figure 3a The preset modification symbol shown at the position of R1 in Figure 3a can be a deletion symbol, and the associated modification rule is to delete text. There is bold text "very" at the position of R1, corresponding to the first text.
[0093] See Figure 3b the content shown at the position of R'1 in Figure 3b , the above first text "very" has been deleted. In other words, in response to the second input, the electronic device can delete the first text circled by the deletion symbol according to the modification rule associated with the deletion symbol.
[0094] Figure 3a The preset modification symbol shown at the position of R2 in Figure 3a can be a swapping symbol, and the associated modification rule is to swap text. There is bold text "announce officially" at the position of R2, corresponding to the first text.
[0095] According to the characteristics of the lines of the swapping symbol, the two sub-texts "announce" and "officially" can be determined from the first text, that is, the above first sub-text and second sub-text. For example, combined with the swapping symbol shown at the position of R2, it includes a downward-opening curve and an upward-opening curve. The text circled inside each curve can be used as a sub-text respectively.
[0096] See Figure 3b the content shown at the position of R'2 in Figure 3b , the positions of "announce" and "officially" are swapped, that is, the content here is shown as "officially announce". In other words, in response to the second input, the electronic device can swap the first sub-text and the second sub-text circled by the swapping symbol according to the modification rule associated with the swapping symbol.
[0097] Figure 3a The preset modification symbol shown at the position of R3 in Figure 3a can be a replacement symbol, and the associated modification rule is to replace text. There is bold text "received" at the position of R3, corresponding to the first text.
[0098] At the position of R3, in addition to showing the replacement symbol, there is also the handwriting "suffered" written by the user. It is easy to understand that the electronic device can recognize the first input handwriting to obtain the text "suffered". From another perspective, the above first input handwriting can include the replacement symbol and the text "suffered", and the text "suffered" corresponds to the above second text.
[0099] SeeFigure 3b Regarding the content shown at identification R′3, replace the text "received" in the first document with "subjected to". In other words, in response to the second input, the electronic device can, according to the modification rule associated with the replacement symbol, replace the first text it has circled with the second text written by the user.
[0100] Of course, as shown above, the second text can be the text included in the first input trajectory or the text input by the user in the preset input box.
[0101] For example, when the electronic device recognizes the replacement symbol in the first input trajectory, it can determine the first text "received" according to the replacement symbol and display a preset input box above the first text. The user can enter the word "subjected to" in this preset input box.
[0102] After the user finishes entering the word "subjected to", the user can click on the preset control displayed beside the preset input box. This input of clicking on the preset control can correspond to the second input. In response to the second input, the electronic device can replace the text "received" in the first document with "subjected to".
[0103] Of course, in actual applications, the display interface of the first document itself can be the editing interface of the first document. Correspondingly, this editing interface can be regarded as a preset input box as a whole. At this time, the user can directly enter the word "subjected to" in front of or behind the word "received". When receiving the second input, the electronic device, in response to the second input, replaces the text "received" with "subjected to".
[0104] Figure 3a The preset modification symbol shown at identification R4 can be an addition symbol, and the associated modification rule is to add text. At identification R4, an I-shaped cursor is displayed between the text "at" and the text "1", and the text "at" and the text "1" can be regarded as the first text.
[0105] At identification R4, in addition to the addition symbol being displayed, the handwriting "January" written by the user is also displayed. Similar to the note of "subjected to" above, the handwriting "January" can be included in the corresponding first input trajectory and can be recognized as text, that is, corresponding to the above-mentioned second text.
[0106] See Figure 3b Regarding the content shown at identification R′4, the text "January" is added between the text "at" and the text "1" (i.e., the display position of the I-shaped cursor). In other words, in response to the second input, the electronic device can, according to the modification rule associated with the addition symbol, add the second text in the first input trajectory to the preset position of the first text, and this preset position corresponds to the position of the addition symbol.
[0107] Similarly, the above-mentioned second text "January" can also be obtained based on the user's input in the preset input box, which will not be elaborated here.
[0108] It can be seen that in this embodiment, the electronic device can associate modification rules with various preset modification symbols to effectively meet the user's different forms of modification requirements for the first document.
[0109] As shown above, the first input trajectory can correspond to the user's feelings and the like annotated in the first document. At this time, the first input trajectory may not include preset modification symbols. For the convenience of description, the first input trajectory that does not include preset modification symbols can be called the second input trajectory. In some feasible implementation manners, when the second input is received, the electronic device can retain the display of these second input trajectories on the first document.
[0110] Optionally, after step 101 of receiving the first input to the first document, the method further includes:
[0111] In response to the first input, display the first input trajectory of the first input;
[0112] When the first input trajectory includes a preset modification symbol, display the first text differently. The first text is the text in the first document associated with the preset modification symbol.
[0113] In this embodiment, when the first input trajectory includes a preset modification symbol, the first text can be displayed differently, that is, the text in the first document associated with the preset modification symbol.
[0114] It is easy to understand that when the user uses a modification symbol to modify the text, it is usually to modify on the basis of the existing text in the first document. Therefore, when the first input trajectory includes a preset modification symbol, the preset modification symbol is usually associated with text.
[0115] For example, for Figure 2a the deletion symbol shown, the text associated with it can be the text circled in the closed curve. For Figure 2b the transposition symbol shown, the text associated with it can include two sub-texts to be transposed in position, and these two sub-texts can be determined by the enclosed area of the two C-shaped lines. For Figure 2c the replacement symbol shown, the text associated with it can be the text circled in the closed curve. For Figure 2d the addition symbol shown, the text associated with it can be the text on both sides of the tip of the V-shaped line.
[0116] The text associated with the above preset modification symbols in the first document can be called the first text. For these first texts, they can be displayed differently.
[0117] For example, for the above-mentioned first text, it can be displayed in a color different from other texts in the first document, or the first text can be processed in ways such as bolding, italicizing, underlining, or changing the font, etc., to achieve highlighting of the first text. Of course, in practical applications, other processing methods can also be used, or a combination of multiple processing methods can be used to achieve highlighting of the first text, which will not be elaborated one by one here.
[0118] For another example, a preset mark can be displayed at a preset position of the first text. For example, for the first text associated with the addition symbol, an I-shaped cursor can be additionally displayed therein to indicate the addition position of the text to be added. And displaying the I-shaped cursor can actually also be regarded as a way to distinguish and display the first text.
[0119] In summary, the ways to distinguish and display the first text can be highlighting the first text, or displaying a preset mark at a preset position of the first text, or a combination of multiple ways, etc., which will not be elaborated one by one here.
[0120] In the embodiment of the present application, by displaying the first input trajectory and distinguishing and displaying the first text, the user's need to obtain the specific modified content of the first document can be effectively met, and the processing effect of the first document can be improved. In addition, by highlighting the first text, it helps the user check whether the modifications made to the first document are accurate, effectively enhancing the user experience.
[0121] Optionally, when the first input trajectory includes a preset modification symbol, after distinguishing and displaying the first text, the method further includes at least one of the following:
[0122] When receiving a third input, in response to the third input, re-determine the first text;
[0123] When receiving a fourth input, in response to the fourth input, delete the first input trajectory.
[0124] The following illustrates this embodiment in combination with some application scenarios.
[0125] In an application scenario, the quality of the first input trajectory may be poor. For example, the deletion symbol in the first input trajectory may intersect with some text in the first document. At this time, it may be difficult for the electronic device to accurately determine the first text.
[0126] From the user's perspective, by observing whether the highlighted text is the text to be deleted, it can be determined whether the first text determined by the electronic device is accurate. When the determined first text is inaccurate, the user can make a third input, for example, tap one end of the stylus near the tip.
[0127] In response to a third input, the electronic device can re-determine the first text. That is to say, the electronic device can re-determine the text circled by the deletion symbol according to the first input trajectory and highlight the re-determined first text.
[0128] Of course, for other types of preset modification symbols, there may also be similar problems where the circled or associated text is inaccurately determined. In response to a third input, the electronic device can also re-determine the first text.
[0129] It can be seen that the electronic device re-determines the first text in response to a third input, which helps to accurately determine the user's modification requirements for the text, and the operation is relatively simple, effectively improving the user operation experience.
[0130] In another application scenario, the user may write incorrectly, or the writing position is inaccurate, resulting in the electronic device being unable to accurately determine the first text according to the first input trajectory. At this time, the user can make a fourth input. For example, continuously tap the end of the stylus near the tip twice.
[0131] In response to the fourth input, the electronic device can delete the first input trajectory. At this time, the modification brought by the first input to the first document can be cancelled, and the user can re-make the first input later to accurately complete the modification of the first document.
[0132] As Figure 3a shown, the user makes multiple first inputs for the text in the first document. Correspondingly, multiple first input trajectories can be included in the display interface of the first document. Combining some examples, the user can write a "√" each time after completing the first input. From the perspective of the electronic device, the "√" written by the user can be said to be a gesture corresponding to indicating the completion of the first input. In response to this gesture, the electronic device can wait to receive the user's next first input.
[0133] To facilitate the electronic device to distinguish the first input trajectory corresponding to each first input, the user can make a fifth input on the electronic device after completing one first input. For example, the user can draw a "√" in the first document, or click on a preset control displayed on the electronic device, etc.
[0134] In response to the fifth input, the electronic device can save the first input trajectory. From another perspective, when receiving the fifth input, the electronic device can determine that the user's first input is completed, and then save the first input trajectory of this first input and wait to receive the user's next first input. In this way, it can effectively avoid determining multiple first input trajectories obtained by the user's multiple first inputs as the same first input trajectory, and further avoid the problem that the electronic device determines multiple modifications made by the user to the first document as the same modification, resulting in incorrect modification of the first document.
[0135] Of course, in the above application scenarios, the specific ways of each input by the user on the electronic device are only illustrative examples for ease of understanding. In actual applications, these input methods can be set as needed and are not specifically limited here. As for the above gesture input of drawing "√" or other forms, when the electronic device recognizes these gesture inputs, it can cancel the display of the input trajectory brought by the gesture input.
[0136] In one example, when the electronic device receives a fifth input, it can, in response to the fifth input, save the first document as a second document. And when the fifth input is subsequently received again, the electronic device can update the second document and save the updated second document.
[0137] In another example, the electronic device saving the first document as the second document can be in response to other forms of input (denoted as the sixth input). For example, after the user finishes editing the first document, the user can click the "Save" control, and the electronic device, in response to the sixth input of clicking the "Save" control, saves the first document as the second document.
[0138] Optionally, after receiving a first input to the first document, the file processing method may further include:
[0139] In response to the first input, update the edit record associated with the first document, where the edit record is used to store the input parameters of the first input.
[0140] In this embodiment, the edit record associated with the first document can be used to record each step of the user's editing process of the first document. For example, the edit record associated with the first document may include the edit nodes corresponding to each first input. Updating the edit record associated with the first document according to the first input can, to a certain extent, be generating the edit nodes corresponding to the first input.
[0141] Updating the edit record associated with the first document according to the first input in this embodiment can facilitate the user to view any edit node in the editing process, help the user recall the editing process, and improve the user experience.
[0142] As shown above, the editing process of the first document may include the process of annotating or modifying the first document. For example, the user can annotate their reading impressions in the first document, and the edit record can record the annotation time of the annotation content and the annotation position in the first document, etc. For another example, the user can write modification symbols on the first document to modify the text in the first document, and the edit record can record the modification time of the modification and the text before and after the modification of the first document, etc.
[0143] Of course, the specific content recorded in the edit record can be set according to actual needs, and no examples will be given here one by one.
[0144] From the perspective of the electronic device, each editing process of the first document by the user can be reflected in the input parameters of each first input. For example, the first input parameters include the above-mentioned first input trajectory, and can also include the above-mentioned annotation time, annotation position, modification time, and so on.
[0145] In one example, a version control system can be used to record the editing nodes during the editing process. For example, taking the distributed version control system GIT as an example of the version control system, every time the user makes a first input on the electronic device, GIT can save the corresponding annotation or modification content generated for the first input.
[0146] In one example, the electronic device can delete the editing nodes in the edit record whose existence duration exceeds a preset duration, and this existence duration can be the duration obtained by starting to time from the generation moment of the editing node.
[0147] For example, the above-mentioned preset duration can be ten days. When the existence time of a certain editing node exceeds ten days, the electronic device can delete the editing node, which helps to save the storage resources of the electronic device.
[0148] The following will illustrate the document processing method provided by the embodiments of the present application in combination with a specific application example.
[0149] In this specific application example, the document processing method can be applied to a tablet computer including a stylus and a touch screen. As Figure 4 shown, the document processing method can include:
[0150] Step 401, display a document editing interface;
[0151] For example, the user can click on the first document icon on the touch screen to display the first document.
[0152] In one example, the first document display interface can default to the document editing interface, and the user can use the stylus to edit the first document. In another example, the tablet computer can also receive an input to a preset control in the first document display interface to enter the first document editing interface.
[0153] Step 402, receive a first input to the first document;
[0154] The user can use the stylus to write on the first document, that is, make a first input on the first document.
[0155] The first input trajectory of the first input can include preset modification symbols, such asFigures 2a to 2d The deletion symbol, transposition symbol, replacement symbol, or addition symbol shown.
[0156] Step 403: Differentially display the text in the first document associated with the preset modification symbol.
[0157] Each type of preset modification symbol can be associated with text in the first document, i.e., the above-mentioned first text. For example, the text associated with the deletion symbol can be the text it encloses; the text associated with the transposition symbol can be the text enclosed by the two open curves respectively, and so on.
[0158] Different preset modification symbols correspond to different modification operations. During the deletion operation, the text in the enclosed part is highlighted to prompt the user whether the enclosed text to be deleted is correct; during the transposition operation, the text in the transposed part is highlighted to help prompt whether the transposed text is correct; during the replacement operation, the text to be replaced is highlighted to help prompt whether the text to be replaced is correct; during the addition operation, a cursor is displayed at the addition insertion point of two characters or symbols to help prompt whether the addition point is correct.
[0159] Step 404: Determine whether a confirmation input from the user for the first input trajectory is received. If not, execute step 405; if so, execute step 406.
[0160] Step 405: When a single-click input from the user near the tip of the stylus is received, re-determine the first text; when a double-click input from the user near the tip of the stylus is received, delete the first input trajectory.
[0161] In this step, the user can judge whether the tablet computer correctly determines the modification intention of the text according to the differentially displayed first text.
[0162] For example, when the first input trajectory includes a deletion symbol, the user can detect whether the first text to be deleted is correct. If not, an optional operation is to single-click near the tip of the stylus (corresponding to the third input) to control the tablet computer to re-determine the first text; another optional operation is to double-click near the tip of the stylus (corresponding to the fourth input) to control the tablet computer to delete the first input trajectory. At this time, the user can re-use the stylus for the first input.
[0163] After re-determining the first text, step 403 can be returned for execution. After deleting the first input trajectory, step 402 can be returned for execution.
[0164] Step 406: Save the first input trajectory and generate an editing node.
[0165] For example, when a tablet computer receives a first input and detects a "√" written by the user, it can determine that the user has completed the current first input. At this time, the tablet computer can save the trajectory of the current first input and wait to receive the user's next first input.
[0166] In addition, when the tablet computer determines that the user has completed the first input, it can generate an editing node corresponding to the first input, that is, update the editing record, so that the user can view the editing process corresponding to the first input later.
[0167] Step 407: Determine whether an input for ending the editing of the first document is received. If not, keep waiting to receive the user's first input. If the first input is received, return to execute step 402. If so, execute step 408.
[0168] Step 408: When a single-click input of the stylus away from the pen tip is received by the user, save the first document with the trajectory of the first input, that is, save the second document. When a double-click input of the stylus away from the pen tip is received by the user, save the first document modified according to the modification symbol, that is, save the third document.
[0169] That is to say, if the user does not want to view the document with the corrected content, by double-clicking the top of the stylus (corresponding to the second input), the system saves the third document generated after correction as the saved document, and the tablet computer automatically generates a new document according to the editing intention.
[0170] If the user wants to view the document with the corrected content, by single-clicking the top of the stylus, the tablet computer saves the second document with the correction marks as the saved document, and when the second document is opened next time, the document with the corrected content will be displayed.
[0171] Step 409: When the existence duration of the editing node in the editing record exceeds ten days, delete the editing node.
[0172] The ten days here can correspond to the above-mentioned preset duration. The editing node will be saved for ten days, and the user can view each modification node in the modification history.
[0173] In an example, the editing record of the document can be saved for ten days for the user to review in time. The user can view any editing node in the editing process to help recall the editing process, which can refer to each commit in GIT where each modification is saved. Editing node records will be cleared after ten days to save storage resources.
[0174] As can be seen from the above specific application examples, the embodiments of the present application can add some correction symbols, such as deletion symbols, transposition symbols, correction symbols, and addition symbols, etc., to the document editing ability. During the editing of the first document, the user can use a stylus to use such annotation symbols for editing on the first document displayed on the touch screen. The electronic device can recognize the modification rules of such annotation symbols. When the annotation is completed, the user can determine that the annotation is "completed", and the electronic device will automatically generate a new document that conforms to the user's annotation intention, thereby effectively improving the text processing effect of the electronic device and enhancing the user experience.
[0175] It should be noted that for the document processing method provided by the embodiments of the present application, the execution subject can be a document processing device, or a control module in the document processing device for executing the document processing method. In the embodiments of the present application, the case where the document processing device executes the document processing method is taken as an example to illustrate the document processing device provided by the embodiments of the present application.
[0176] As Figure 5 shown, the document processing device 500 provided by the embodiments of the present application includes:
[0177] A receiving module 501, configured to receive a first input to the first document when the first document is displayed.
[0178] A saving module 502, configured to save a second document or a third document when the first input trajectory of the first input includes a preset modification symbol.
[0179] Wherein, the second document is the first document including the first input trajectory, and the preset modification symbol in the second document is associated with a modification rule.
[0180] The third document is a document obtained by modifying the first document according to the modification rule associated with the preset modification symbol.
[0181] Optionally, the saving module 502 may specifically include:
[0182] A modification unit, configured to, when receiving a second input, in response to the second input, modify the first text according to the modification rule associated with the preset modification symbol to obtain a third document, where the first text is the text in the first document associated with the preset modification symbol.
[0183] A saving unit, configured to save the third document.
[0184] Optionally, the modification unit includes at least one of the following:
[0185] A deletion subunit, configured to delete the first text when the modification rule associated with the preset modification symbol is to delete text.
[0186] A swapping subunit, configured to determine a first sub - text and a second sub - text from a first text and swap the positions of the first sub - text and the second sub - text when the modification rule associated with a preset modification symbol is to swap texts;
[0187] A replacement subunit, configured to replace the first text with a second text when the modification rule associated with a preset modification symbol is to replace texts;
[0188] An adding subunit, configured to add a second text at a preset position of the first text when the modification rule associated with a preset modification symbol is to add texts, where the preset position corresponds to the position of the preset modification symbol;
[0189] Wherein, the second text is the text included in the first input trajectory, or the second text is the text input in a preset input box.
[0190] Optionally, the document processing device 500 may further include:
[0191] A first display module, configured to display a first input trajectory of a first input in response to the first input;
[0192] A second display module, configured to differentially display a first text when the first input trajectory includes a preset modification symbol, where the first text is the text in a first document associated with the preset modification symbol.
[0193] Optionally, the document processing device 500 may further include at least one of the following:
[0194] A determination module, configured to re - determine the first text in response to a third input when the third input is received;
[0195] A deletion module, configured to delete the first input trajectory in response to a fourth input when the fourth input is received.
[0196] Optionally, the document processing device 500 may further include:
[0197] An update module, configured to update an edit record associated with a first document according to the first input in response to the first input, where the edit record is used to store input parameters of the first input.
[0198] The document processing device 500 provided by the embodiment of the present application, when a first document is displayed, receives a first input to the first document. In response to the first input, when the first input trajectory of the first input includes a preset modification symbol, a second document or a third document is saved. The second document is the first document including the first input trajectory, and a modification rule is associated with the preset modification symbol in the second document. The third document is a document obtained by modifying the first document according to the modification rule associated with the preset modification symbol. The preset modification symbol in the first input trajectory of the embodiment of the present application can be associated with a modification rule, and the user can realize the editing of the first document through the first input, which helps to simplify the user operation and improve the modification efficiency of the document. In addition, by displaying the first input trajectory and differentially displaying the first text, the embodiment of the present application can effectively meet the user's need to obtain the specific modification content of the first document and improve the processing effect of the first document. By highlighting the first text, it helps the user check whether the modification made to the first document is accurate and effectively improves the user experience.
[0199] The document 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. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, 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. The embodiment of the present application does not make specific limitations.
[0200] The document processing device in the embodiment of the present application can be a device with an operating system. The operating system can be the Android operating system, the iOS operating system, or other possible operating systems. The embodiment of the present application does not make specific limitations.
[0201] The document processing device provided by the embodiment of the present application can implement Figures 1 to 4 each process implemented by the method embodiment. To avoid repetition, it will not be elaborated here.
[0202] Optionally, as Figure 6As shown in the figure, an embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, a program or instruction stored on the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, it implements each process of the above-mentioned document processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0203] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.
[0204] Figure 7 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.
[0205] The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710 and other components.
[0206] Those skilled in the art can understand that the electronic device 700 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 710 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 7 The structure of the electronic device shown in the figure does not limit the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements, which will not be elaborated here.
[0207] Among them, the user input unit 707 is used to receive a first input to the first document when the first document is displayed.
[0208] The memory 709 is used to save a second document or a third document when the first input trajectory of the first input includes a preset modification symbol; wherein, the second document is the first document including the first input trajectory, and the preset modification symbol in the second document is associated with a modification rule; the third document is a document obtained by modifying the first document according to the modification rule associated with the preset modification symbol.
[0209] The electronic device provided by the embodiment of the present application, when displaying a first document, receives a first input to the first document. When the first input trajectory of the first input includes a preset modification symbol, a second document or a third document is saved, where the second document is the first document including the first input trajectory, and the preset modification symbol in the second document is associated with a modification rule; the third document is a document obtained by modifying the first document according to the modification rule associated with the preset modification symbol. In the embodiment of the present application, the preset modification symbol in the first input trajectory can be associated with a modification rule, and the user can realize the editing of the first document through the first input, which helps to simplify the user operation and improve the modification efficiency of the document.
[0210] Optionally, the processor 710 can be used to, when receiving a second input, in response to the second input, modify the first text according to the modification rule associated with the preset modification symbol to obtain a third document, where the first text is the text in the first document associated with the preset modification symbol;
[0211] Correspondingly, the memory 709 can be used to save the third document.
[0212] Optionally, the processor 710 can be specifically used for at least one of the following:
[0213] When the modification rule associated with the preset modification symbol is to delete text, delete the first text;
[0214] When the modification rule associated with the preset modification symbol is to swap text, determine a first sub-text and a second sub-text from the first text, and swap the positions of the first sub-text and the second sub-text;
[0215] When the modification rule associated with the preset modification symbol is to replace text, replace the first text with the second text;
[0216] When the modification rule associated with the preset modification symbol is to add text, add the second text at a preset position in the first text, and the preset position corresponds to the position of the preset modification symbol;
[0217] Wherein, the second text is the text included in the first input trajectory, or the second text is the text input in a preset input box.
[0218] Optionally, the display unit 706 can be used to, in response to the first input, display the first input trajectory of the first input; when the first input trajectory includes a preset modification symbol, display the first text differently, where the first text is the text in the first document associated with the preset modification symbol.
[0219] Optionally, the processor 710 can also be used for at least one of the following:
[0220] Upon receiving a third input, in response to the third input, re-determine the first text;
[0221] Upon receiving a fourth input, in response to the fourth input, delete the first input trajectory.
[0222] Optionally, the processor 710 may also be used to update an edit record associated with the first document according to the first input in response to the first input, where the edit record is used to store input parameters of the first input.
[0223] It should be understood that, in the embodiments of the present application, the input unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042. The graphics processor 7041 processes image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. The other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here. The memory 709 may be used to store software programs and various data, including but not limited to application programs and operating systems. The processor 710 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 710.
[0224] The embodiments of the present application further provide 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 processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.
[0225] Wherein, the processor is the processor in the electronic device in the above-mentioned 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 disc, etc.
[0226] Another embodiment of the present application further provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run programs or instructions to implement each process of the above-described embodiment of the document processing method and can achieve the same technical effects. To avoid repetition, details are not described herein again.
[0227] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0228] It should be noted that in this document, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the presence of additional identical elements in the process, method, article or device including such element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.
[0229] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present application.
[0230] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.
Claims
1. A document processing method, characterized in that, it includes: When a first document is displayed, receiving a first input to the first document, where the first input is an input made by the user writing on the first document with a stylus; In response to the first input, displaying a first input trajectory of the first input; When the first input trajectory includes a preset modification symbol, differentially displaying a first text, where the first text is the text in the first document associated with the preset modification symbol; In response to the first input, updating an edit record associated with the first document according to the first input, where the edit record is used to store input parameters of the first input, and the input parameters include the first input trajectory, edit time, edit position, and the text before and after editing; When the first input trajectory includes a preset modification symbol and a single-click input of the user away from the pen tip of the stylus is received, saving a second document; When the first input trajectory includes a preset modification symbol and a double-click input of the user away from the pen tip of the stylus is received, saving a third document; wherein, the second document is the first document including the first input trajectory, and the preset modification symbol in the second document is associated with a modification rule; The third document is a document obtained by modifying the first document according to the modification rule associated with the preset modification symbol.
2. The method according to claim 1, characterized in that, The saving of the third document specifically includes: When a second input is received, in response to the second input, modifying the first text according to the modification rule associated with the preset modification symbol to obtain the third document, where the first text is the text in the first document associated with the preset modification symbol; Saving the third document.
3. The method according to claim 2, characterized in that, The modifying of the first text according to the modification rule associated with the preset modification symbol includes at least one of the following: When the modification rule associated with the preset modification symbol is to delete text, deleting the first text; When the modification rule associated with the preset modification symbol is to swap text, determining a first sub-text and a second sub-text from the first text, and swapping the positions of the first sub-text and the second sub-text; When the modification rule associated with the preset modification symbol is to replace text, replacing the first text with a second text; When the modification rule associated with the preset modification symbol is to add text, adding a second text at a preset position of the first text, where the preset position corresponds to the position of the preset modification symbol; wherein, the second text is the text included in the first input trajectory, or the second text is the text input in a preset input box.
4. The method according to claim 1, characterized in that, After differentially displaying the first text when the first input trajectory includes a preset modification symbol, the method further includes at least one of the following: Upon receiving a third input, in response to the third input, re-determine the first text; Upon receiving a fourth input, in response to the fourth input, delete the first input trajectory.
5. A document processing apparatus, characterized in that, comprising: a receiving module, configured to receive a first input to the first document when the first document is being displayed, where the first input is an input made by a user writing on the first document with a stylus; a first display module, configured to display a first input trajectory of the first input in response to the first input; a second display module, configured to differentially display a first text when the first input trajectory includes a preset modification symbol, where the first text is text in the first document associated with the preset modification symbol; an update module, configured to update an edit record associated with the first document according to the first input in response to the first input, where the edit record is used to store input parameters of the first input, and the input parameters include the first input trajectory, edit time, edit position, and text before and after editing; a saving module, configured to save a second document when the first input trajectory includes a preset modification symbol and when a single-click input of the user away from the pen tip of the stylus is received and save a third document when the first input trajectory includes a preset modification symbol and when a double-click input of the user away from the pen tip of the stylus is received; wherein the second document is the first document including the first input trajectory, and a modification rule is associated with the preset modification symbol in the second document; the third document is a document obtained by modifying the first document according to the modification rule associated with the preset modification symbol.
6. The apparatus according to claim 5, characterized in that, the saving module specifically includes: a modification unit, configured to, upon receiving a second input, in response to the second input, modify the first text according to the modification rule associated with the preset modification symbol to obtain the third document, where the first text is text in the first document associated with the preset modification symbol; a saving unit, configured to save the third document.
7. The apparatus according to claim 6, characterized in that, the modification unit includes at least one of the following: a deletion subunit, configured to delete the first text when the modification rule associated with the preset modification symbol is to delete text; a swapping subunit, configured to, when the modification rule associated with the preset modification symbol is to swap text, determine a first sub-text and a second sub-text from the first text, and swap the positions of the first sub-text and the second sub-text; a replacement subunit, configured to replace the first text with a second text when the modification rule associated with the preset modification symbol is to replace text; an addition subunit, configured to add a second text at a preset position of the first text when the modification rule associated with the preset modification symbol is to add text, where the preset position corresponds to the position of the preset modification symbol; Wherein, the second text is the text included in the first input trajectory, or the second text is the text input in a preset input box.
8. The apparatus according to claim 5, wherein, the apparatus further includes at least one of the following: a determination module, configured to re-determine the first text in response to a third input when the third input is received; a deletion module, configured to delete the first input trajectory in response to a fourth input when the fourth input is received.
9. An electronic device, wherein, it includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the document processing method according to any one of claims 1-4 are implemented.
10. A readable storage medium, wherein, a program or instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the document processing method according to any one of claims 1-4 are implemented.
Citation Information
Patent Citations
Ink to text representation conversion
CN105264517A