Editing method, computer-readable storage medium, and terminal

By receiving the user's touch operation, the area to be edited in the object to be edited is obtained according to the touch track, which solves the problem of time-consuming, labor-intensive and poor flexibility in the prior art, and realizes a simple and flexible editing process.

CN110222322BActive Publication Date: 2025-09-05SHENZHEN TRANSSION HLDG CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910369076.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-05
Publication Date
2025-09-05
Estimated Expiration
2039-05-05

AI Technical Summary

Technical Problem

The existing terminal editing method is time-consuming and laborious and has poor flexibility by controlling the cursor position.

Method used

By receiving the user's touch operation, the area to be edited in the object to be edited is obtained according to the touch track, and the object to be edited is determined using the object to be edited or covered by the touch track, and the area to be edited.

Benefits of technology

It realizes an editing process with simple operation and high flexibility, reduces the steps of selecting target objects, and improves editing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110222322B_ABST
    Figure CN110222322B_ABST
Patent Text Reader

Abstract

The present invention discloses an editing method, comprising receiving a user's touch operation; obtaining a touch trajectory based on the touch operation; obtaining a region to be edited in an object to be edited based on the touch trajectory; and editing the region to be edited. The present invention also provides a computer-readable storage medium and a terminal. The editing method, computer-readable storage medium, and terminal of the present invention obtain the region to be edited in an object to be edited based on the touch trajectory, and are simple to operate and highly flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to an editing method, a computer-readable storage medium, and a terminal. Background Art

[0002] With the rapid development of terminal technology, more and more people choose to use terminals, such as mobile phones or tablet computers, to read news, read e-books, browse websites, etc.

[0003] When a user is reading news or reading an e-book, he or she may need to edit the displayed characters and the like.

[0004] However, the existing editing method is to obtain the object to be edited by controlling the positions of the cursors at both ends, which is time-consuming, labor-intensive and has poor flexibility. Therefore, an editing method is needed to solve the above problems. Summary of the Invention

[0005] In view of this, the present invention provides an editing method for obtaining a to-be-edited area in an to-be-edited object according to a touch trajectory, which is simple to operate and highly flexible.

[0006] The editing method provided by the present invention includes: receiving a user's touch operation; obtaining a touch track according to the touch operation; obtaining a to-be-edited area in the to-be-edited object according to the touch track; and editing the to-be-edited area.

[0007] In one embodiment, the object to be edited is a text box, a text file, or an edit box.

[0008] In one embodiment, the step of acquiring the area to be edited in the object to be edited according to the touch track includes: when the touch track is closed, determining the area to be edited according to objects surrounded and / or covered by the touch track.

[0009] In one embodiment, the step of obtaining the area to be edited in the object to be edited according to the touch track includes: when the touch track is not closed, determining the area to be edited according to the object covered by the touch track, or determining the area to be edited according to a straight line connecting two ends of the touch track.

[0010] In one embodiment, determining the area to be edited based on the straight line connecting the two ends of the touch trajectory includes: generating a closed figure associated with the straight line based on the straight line connecting the two ends of the touch trajectory, the figure associated with the straight line including at least one of a rectangular box with the straight line as a diagonal, a circle with the straight line as a diameter, and a rectangular box with the straight line as a midpoint connecting line of the long side; determining the area to be edited based on the objects surrounded and / or covered by the closed figure associated with the straight line.

[0011] In one embodiment, the step of editing the area to be edited includes: marking the area to be edited in the object to be edited.

[0012] In one embodiment, the step of editing the area to be edited includes: moving the area to be edited according to a drag instruction; and / or expanding the area to be edited according to a add instruction; and / or shrinking the area to be edited according to a delete instruction.

[0013] In one embodiment, the step of acquiring a touch trajectory according to the touch operation includes: upon receiving a trigger instruction to start acquiring, starting to acquire and store the coordinates of the touch point according to the touch operation; upon receiving a trigger instruction to stop acquiring, stopping acquiring the coordinates of the touch point; and acquiring the touch trajectory according to the stored coordinates of the touch point.

[0014] The present invention also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned editing method are implemented.

[0015] The present invention also provides a terminal, which includes the above-mentioned computer-readable storage medium.

[0016] The editing method, computer-readable storage medium, and terminal of the present invention obtain a touch track according to a touch operation and then obtain a to-be-edited area in the to-be-edited object according to the touch track. The operation is simple and the flexibility is high.

[0017] In order to make the above and other objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic flow chart showing an editing method according to a first embodiment of the present invention is shown;

[0019] Figure 2 A schematic flow chart showing an editing method according to a second embodiment of the present invention is shown;

[0020] Figure 3 Show an application such as Figure 2 Schematic diagram of the effect of the area to be edited obtained by the editing method shown;

[0021] Figure 4 A schematic flow chart showing an editing method according to a third embodiment of the present invention;

[0022] Figure 5 Show an application such as Figure 4 Schematic diagram of the effect of the area to be edited obtained by the editing method shown;

[0023] Figure 6 A schematic structural diagram of a computer-readable storage medium according to a fourth embodiment of the present invention is shown;

[0024] Figure 7 FIG. 4 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention. DETAILED DESCRIPTION

[0025] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0026] Figure 1 FIG. 1 is a flow chart showing an editing method according to a first embodiment of the present invention. Figure 1 As shown, the editing method can be applied to, but is not limited to, a terminal or a server. The terminal can be a mobile phone, a computer, a television, or other electronic device with an editing function. The method includes the following steps:

[0027] Step S11: receiving a user's touch operation;

[0028] The user's touch operation may be, but is not limited to, a touch operation on the displayed object to be edited.

[0029] Specifically, the object to be edited can be an editable object such as a text box, a text file, or an edit box. The content in the object to be edited can specifically include characters such as numbers, letters, and words, or other editable objects such as images, or any combination thereof.

[0030] Step S12: Acquire a touch track according to the touch operation;

[0031] In one embodiment, step S12: acquiring the touch track according to the touch operation includes starting to acquire and store the coordinates of the touch point according to the touch operation when a trigger instruction to start acquiring is received.

[0032] Specifically, the trigger instruction for starting acquisition is determined to have been received when multiple long press events are detected simultaneously. In other embodiments, the trigger instruction for starting acquisition may be determined to have been received when a single long press event or multiple consecutive short press events are detected. Alternatively, the trigger instruction for starting acquisition may be determined to have been received when a voice instruction including a keyword such as "start acquiring" is received.

[0033] In one embodiment, when a trigger instruction to start acquisition is received, the coordinates of the touch points are acquired and stored according to the touch information, which may include but is not limited to: marking the stored touch points in real time according to the coordinates of the touch points, and displaying the objects to be edited with the marked touch points in real time.

[0034] In one embodiment, step S12: acquiring a touch track according to the touch operation may also include, but is not limited to: displaying the object to be edited marked with the touch track in real time. Specifically, for example, the touch track may be marked in real time with a solid line.

[0035] Step S13: obtaining the area to be edited in the object to be edited according to the touch track;

[0036] Specifically, in one embodiment, step S13, before acquiring the to-be-edited area of ​​the to-be-edited object based on the touch trajectory, includes: determining that a trigger instruction to stop acquisition has been received when no touch information is detected within a preset time period; upon receiving the trigger instruction to stop acquisition, stopping acquisition of the touch point coordinates and acquiring the to-be-edited area based on the touch trajectory. In other embodiments, the to-be-edited area of ​​the to-be-edited object can also be acquired in real time based on the touch trajectory.

[0037] In one embodiment, step S13 : after obtaining the area to be edited in the object to be edited according to the touch track, may include, but is not limited to: marking the area to be edited. Specifically, for example, the area to be edited may be marked in real time using a dotted frame.

[0038] Step S14: Edit the area to be edited.

[0039] Specifically, in one embodiment, step S14: editing the area to be edited may include but is not limited to: editing the characters or pictures in the area to be edited, such as rearranging, deleting a character or picture in the area to be edited, or inserting a character or picture in the area to be edited, etc., and may also include copying and pasting the entire area to be edited, etc.

[0040] The editing method of this embodiment obtains the area to be edited in the object to be edited according to the touch trajectory, which is simple to operate and highly flexible. In addition, the editing method of this embodiment can display the object to be edited with the touch point marked in real time, which can help users select the target object more accurately.

[0041] Figure 2 FIG. 1 is a flow chart showing an editing method according to a second embodiment of the present invention. Figure 2 As shown, the editing method of this embodiment includes the following steps:

[0042] Step S21: receiving a user's touch operation;

[0043] Step S22: Acquire a touch track according to the touch operation;

[0044] Step S23: when the touch track is closed, determining the area to be edited according to the objects surrounded and / or covered by the touch track;

[0045] Specifically, in this embodiment, step S23: when the touch track is closed, determining the area to be edited based on the objects surrounded and / or covered by the touch track includes: if the touch track covers a second object, expanding the touch track to a state that surrounds the second object and minimizes the number of objects; and deforming the expanded touch track according to the layout rules of the edited object. The second object may be, for example, a character. Of course, those skilled in the art will appreciate that the deformation process may also be performed before or simultaneously with the expansion process. Figure 3 Show an application such as Figure 2 The effect diagram of the area to be edited obtained by the editing method shown in FIG. Figure 3 As shown, since the layout of the editing objects is arranged in a matrix, the boundary of the area to be edited is also composed of horizontal and vertical lines, but the present invention is not limited to this. The boundary of the area to be edited can also be arc-shaped, wavy, etc.

[0046] In other embodiments, step S23: when the touch track is closed, determining the area to be edited based on the objects surrounded and / or covered by the touch track includes: obtaining a first object surrounded by the touch track and a second object covered by the touch track; and determining the area within the object to be edited that contains the first object and the second object as the area to be edited. Alternatively, only the area within the object to be edited that contains the first object may be determined as the area to be edited, and the second object covered by the touch track may also be extracted to generate the area to be edited. The layout of the second object in the area to be edited may be the same as or different from the layout of the second object within the object to be edited. The first object and / or the second object may be characters, pictures, or other types of objects.

[0047] Step S24: marking the area to be edited in the object to be edited;

[0048] Specifically, if Figure 3 As shown, the boundary of the area to be edited can be marked with a dotted line, but the present invention is not limited thereto.

[0049] Step S25: Edit the area to be edited.

[0050] In one embodiment, before editing the region to be edited, step S25 may also include, but is not limited to: moving the region to be edited according to a drag command; and / or expanding the region to be edited according to a join command; and / or shrinking the region to be edited according to a delete command. Specifically, for example, upon receiving a join command, two regions to be edited are merged to expand the region to be edited. Upon receiving a delete command, a subregion within the region to be edited is deleted to shrink the region to be edited.

[0051] The editing method of this embodiment can obtain the area to be edited in the object to be edited according to the closed touch track, without the need to select target objects (such as characters) in sequence. The operation is simple and flexible.

[0052] Figure 4 FIG. 4 is a flow chart showing an editing method according to a third embodiment of the present invention. Figure 4 As shown, the editing method of this embodiment includes the following steps:

[0053] Step S41: displaying the object to be edited;

[0054] Step S42: receiving a touch operation from the user;

[0055] Step S43: Acquire a touch track according to the touch operation;

[0056] In one embodiment, step S43: after acquiring the touch track according to the touch operation, the following may also be included but not limited to: marking the touch track in real time (please refer to Figure 5 , Figure 5 The touch track is marked with a solid line, but the present invention is not limited thereto).

[0057] Step S44: when the touch track is not closed, determining the area to be edited based on a straight line connecting the two ends of the touch track;

[0058] Specifically, step S44: When the touch track is not closed, determining the area to be edited based on the straight line formed by connecting the two ends of the touch track may include, but is not limited to: generating a graphic associated with the straight line based on the straight line formed by connecting the two ends of the touch track; and determining the area to be edited based on the objects surrounded and / or covered by the graphic associated with the straight line. The graphic associated with the straight line includes at least one of a rectangular box with the straight line as a diagonal, a circle with the straight line as a diameter, a rectangular box with the straight line as a midpoint connecting the long side, and a rectangular box with the straight line as a long side. Those skilled in the art will appreciate that the graphic associated with the straight line may also be other closed graphics set by the system, such as a rhombus, or other non-closed graphics, such as a semicircle with the straight line as a diameter, or other closed graphics generated according to the layout rules of the objects in the object to be edited. In other embodiments, when the distance between the two ends of the touch track is less than a threshold, the touch track may be treated as a closed graphic to determine the area to be edited. For the method of determining the area to be edited when the touch track is a closed graphic, please refer to the relevant description in the second embodiment and will not be repeated here.

[0059] Figure 5 Show application as Figure 4 The effect diagram of the area to be edited obtained by the editing method shown. Determining the area to be edited based on the objects surrounded and / or covered by the graphics associated with the straight line may include but is not limited to: displaying the graphics associated with the straight line ( Figure 5 The content of the object to be edited (shown as a rectangle) includes multiple characters; determining the area to be edited as the area containing the characters surrounded by the graphics associated with the straight line and the characters covered; marking the area to be edited in the object to be edited ( Figure 5 dotted lines are used).

[0060] In other embodiments, when the touch track is not closed, the area to be edited may be determined based on objects covered by the touch track, such as characters. In other words, the objects covered by the touch track, such as characters, are extracted to generate the area to be edited.

[0061] Step S45: Edit the area to be edited.

[0062] The editing method of this embodiment can obtain the area to be edited in the object to be edited based on a non-closed touch trajectory, without selecting the target objects (such as characters) in sequence. The corresponding characters can be obtained within a shorter touch operation time, and the operation is simple and flexible.

[0063] Figure 6 FIG. 4 shows a schematic diagram of the structure of a computer-readable storage medium according to a fourth embodiment of the present invention. Figure 6The computer readable storage medium shown stores a computer program 60, which implements the steps of the above-mentioned editing method when executed by a processor. The above-mentioned computer readable storage medium is, for example, a non-volatile memory such as an optical disk, a hard disk, or a flash memory.

[0064] Figure 7 FIG. 5 shows a schematic diagram of the structure of a terminal according to a fifth embodiment of the present invention. Figure 7 As shown, the terminal 10 of this embodiment includes a camera module 102, a memory 104, a storage controller 106, one or more (only one is shown) processors 108, a screen 110, and a peripheral interface 112. These components communicate with each other via one or more communication buses / signal lines.

[0065] I understand. Figure 7 The structure shown is for illustration only. The terminal 10 may also include Figure 7 More or fewer components than shown, or with Figure 7 Different configurations shown. Figure 7 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0066] The camera module 102 is used to take photos or videos. The photos or videos taken can be stored in the memory 104. The memory 104 can be used to store software programs and modules, such as the file editing method and program instructions / modules corresponding to the device in the embodiments of the present invention. The processor 102 executes the software programs and modules stored in the memory 104 to execute various functional applications and data processing, that is, to implement the above-mentioned editing method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely located relative to the processor 108, and these remote memories can be connected to the terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. Access to the memory 104 by the processor 108 and other possible components can be carried out under the control of the storage controller 106.

[0067] In some embodiments, the peripheral interface 112 couples various input / output devices to the processor 108 and the memory 104. The processor 108, the memory controller 106, and the peripheral interface 112 can be implemented in a single chip. In other embodiments, they can be implemented in separate chips.

[0068] The screen 110 provides an output interface between the terminal 10 and the user. Specifically, the screen 110 displays video output to the user, and the content of the video output may include characters, graphics, videos, and any combination thereof.

[0069] The editing method, computer-readable storage medium, and terminal of the present invention, upon receiving a trigger instruction to start acquisition, begin to acquire and store the coordinates of the touch point according to the touch information, and after acquiring the touch trajectory according to the stored coordinates of the touch point, acquire the area to be edited in the object to be edited according to the touch trajectory. The operation is simple and flexible.

[0070] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similarities between the various embodiments can be referred to in conjunction with each other. For device embodiments, since they are generally similar to method embodiments, their description is relatively simple, and for relevant details, reference can be made to the description of the method embodiments.

[0071] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0072] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any form. Although the present invention has been disclosed as above in terms of preferred embodiments, they are not intended to limit the present invention. Any technician familiar with the present profession can make some changes or modifications to equivalent embodiments using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. An editing method, characterized in that: The editing method comprises: Receive user touch operations; Acquiring a touch track according to the touch operation; When the touch track is an unclosed track, the area to be edited is determined according to the object covered by the touch track, or the area to be edited is determined according to a straight line connecting the two ends of the touch track, and a closed figure is generated in combination with the layout rules of the object; Sort by object version law, deforming the boundary of the closed figure; When the touch track is closed, determining the area to be edited according to the objects surrounded and / or covered by the touch track; The area to be edited includes a first object surrounded by the touch track and / or a second object covered by the touch track; or when the touch track covers the second object, the touch track is expanded outward to surround the second object and to a state where the number of objects is minimal; Edit the area to be edited.

2. The editing method according to claim 1, wherein: The object to be edited is a text box, a text file, or an edit box.

3. The editing method according to claim 1, wherein: The step of determining the area to be edited according to a straight line connecting two ends of the touch track includes: generating a closed figure associated with the straight line according to the straight line connecting the two ends of the touch track, wherein the figure associated with the straight line includes at least one of a rectangular frame with the straight line as a diagonal, a circle with the straight line as a diameter, and a rectangular frame with the straight line as a line connecting the midpoints of the long side; The area to be edited is determined according to objects surrounded and / or covered by a closed figure associated with the straight line.

4. The editing method according to claim 1, wherein: Before the step of editing the area to be edited, the step further includes: Mark the area to be edited in the object to be edited.

5. The editing method according to claim 4, wherein: Before the step of editing the area to be edited, the step further includes: Move the area to be edited according to the drag instruction; and / or Expand the area to be edited according to the adding instruction; and / or The area to be edited is reduced according to the deletion instruction.

6. The editing method according to claim 1, wherein: The step of acquiring a touch track according to the touch operation includes: When receiving a trigger instruction to start acquiring, the coordinates of the touch point are acquired and stored according to the touch operation; When receiving a trigger instruction to stop acquiring, stop acquiring the coordinates of the touch point; The touch track is acquired according to the stored coordinates of the touch point.

7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the editing method according to any one of claims 1 to 6.

8. A terminal, characterized in that: The terminal includes the computer-readable storage medium according to claim 7.

Citation Information

Patent Citations

  • Method and device for processing display object

    CN105653145A

  • Region selection method and apparatus, and graphic user interface

    CN107066167A

  • Editing device and interactive multimedia system

    CN108062393A