CN109445958A - Editing and processing method, electronic equipment and the storage medium of data - Google Patents

Editing and processing method, electronic equipment and the storage medium of data Download PDF

Info

Publication number
CN109445958A
CN109445958A CN201811160724.7A CN201811160724A CN109445958A CN 109445958 A CN109445958 A CN 109445958A CN 201811160724 A CN201811160724 A CN 201811160724A CN 109445958 A CN109445958 A CN 109445958A
Authority
CN
China
Prior art keywords
data
rule
data output
output rule
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811160724.7A
Other languages
Chinese (zh)
Other versions
CN109445958B (en
Inventor
王欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811160724.7A priority Critical patent/CN109445958B/en
Publication of CN109445958A publication Critical patent/CN109445958A/en
Application granted granted Critical
Publication of CN109445958B publication Critical patent/CN109445958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

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

Abstract

Editing and processing method, electronic equipment and the storage medium of data disclosed in the present application, at least one first data is being obtained according to the first operation, and it will be after first data storage to memory block, the second operation can further be obtained, and data output rule is obtained according at least to second operation, further at least one described first data are handled according to the data of acquisition output rule on this basis, final output presses resulting second data after rule process.It can be seen that, for at least one the first data, the application, which can be realized, to be handled it by the corresponding data output rule of operation and exports the second data to match with data output rule, compared with existing copy/paste or shearing/technology for applying (original data content that the data exported when stickup are duplication/shearing data), the application form of the application is more flexible, can preferably meet diversified editor's demand when people carry out data edition.

Description

Data editing method, electronic device and storage medium
Technical Field
The present application belongs to the field of data processing technologies, and in particular, to a data editing processing method, an electronic device, and a storage medium.
Background
Copy/paste, or cut/paste, is a common function that people use in editing the data content of a file.
The existing copying/pasting or cutting/pasting technologies directly paste the original data content of the copied or cut data to a target position from a cutting board, and the application form is single, so that the diversified editing requirements of people for editing file data can not be met gradually.
Disclosure of Invention
In view of the above, an object of the present application is to provide a data editing processing method, an electronic device, and a storage medium, so as to better satisfy the diversified editing requirements when people edit data.
Therefore, the application discloses the following technical scheme:
a data editing processing method comprises the following steps:
acquiring a first operation;
acquiring at least one first data according to a first operation, and storing the at least one first data in a storage area;
acquiring a second operation;
processing the at least one first data at least according to a data output rule at least according to the second operation to obtain second data;
and outputting the second data.
In the method, preferably, the first data is character data, and the data output rule is a rule for processing a character itself.
In the method, preferably, the first data is file data, and the data output rule is a rule for processing a file name.
The method preferably further includes the step of acquiring a first operation, including:
obtaining the copy operation of the copy data;
or,
and acquiring a cutting operation of cutting data.
The method above, preferably, the second operation includes at least:
operations on the keyboard, wherein the operations on the keyboard comprise at least one, wherein each operation on the keyboard is associated with a different data output rule;
or,
a series of operations on the mouse, wherein the series of operations of the mouse at least comprises: displaying the operation of a pull-down menu, and selecting the menu item; wherein the menu items include at least one, wherein different menu items are associated with different data output rules;
or,
a series of operations on the keyboard and/or mouse, wherein the series of operations of the keyboard and/or mouse includes at least one of: displaying a dialog box, inputting information in the dialog box, and selecting an output rule;
or,
the method comprises the following steps of operating the touch screen, wherein the operating the touch screen comprises the following steps: executing the operation of a preset gesture; or, displaying the operation of a pull-down menu, and selecting the menu items, wherein the menu items at least comprise one type, and different menu items are associated with different data output rules; alternatively, the operation of displaying a dialog box, the operation of inputting information in the dialog box, and the operation of selecting an output rule are performed.
An electronic device, comprising:
a memory for storing at least one set of instructions;
a processor for invoking and executing the set of instructions in the memory, by executing the set of instructions:
acquiring a first operation;
acquiring at least one first data according to a first operation, and storing the at least one first data in a storage area;
acquiring a second operation;
processing the at least one first data at least according to a data output rule at least according to the second operation to obtain second data;
and outputting the second data.
The electronic device described above, preferably,
if the first data is character data, the data output rule is a rule for processing the character;
and if the first data is file data, the data output rule is a rule for processing a file name.
In the electronic device, preferably, the second operation acquired by the processor at least includes:
operations on the keyboard, wherein the operations on the keyboard comprise at least one, wherein each operation on the keyboard is associated with a different data output rule;
or,
a series of operations on the mouse, wherein the series of operations of the mouse at least comprises: displaying the operation of a pull-down menu, and selecting the menu item; wherein the menu items include at least one, wherein different menu items are associated with different data output rules;
or,
a series of operations on the keyboard and/or mouse, wherein the series of operations of the keyboard and/or mouse includes at least one of: displaying a dialog box, inputting information in the dialog box, and selecting an output rule;
or,
the method comprises the following steps of operating the touch screen, wherein the operating the touch screen comprises the following steps: executing the operation of a preset gesture; or displaying the operation of a pull-down menu, and selecting the menu items, wherein the menu items at least comprise one type, and different menu items are associated with different data output rules; alternatively, the operation of displaying a dialog box, the operation of inputting information in the dialog box, and the operation of selecting an output rule are performed.
An electronic device, comprising:
a first acquisition unit configured to acquire a first operation;
the storage unit is used for acquiring at least one first data according to a first operation and storing the at least one first data into a storage area;
a second obtaining unit configured to obtain a second operation;
a third obtaining unit, configured to obtain a data output rule at least according to the second operation;
the processing unit is used for processing the at least one first data at least according to the data output rule to obtain second data;
an output unit for outputting the second data.
A storage medium storing at least one set of instructions;
the set of instructions is for being called and performing at least the processing method as described above.
According to the above scheme, the data editing processing method, the electronic device and the storage medium provided by the application can further obtain the second operation after obtaining at least one first data according to the first operation and storing the first data in the storage area, and obtain the data output rule at least according to the second operation, further process the at least one first data according to the obtained data output rule on the basis, and finally output the second data obtained after the data processing according to the rule. Therefore, for at least one first data, the application can process the first data according to the data output rule corresponding to the operation and output second data matched with the data output rule, and compared with the existing copying/pasting or cutting/pasting technology (the data output in pasting is the original data content of the copied/cut data), the application form of the application is more flexible, and the diversified editing requirements of people in data editing can be better met.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a first embodiment of a method for editing and processing data provided by the present application;
fig. 2 is a schematic structural diagram of a fourth embodiment of an electronic device according to the present application;
fig. 3 is a schematic structural diagram of a seventh embodiment of an electronic device according to the present application.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In order to better meet the diversified editing requirements of people during data editing, the application provides a data editing processing method, an electronic device and a storage medium, and the data editing processing method, the electronic device and the storage medium of the application are described through a plurality of embodiments.
The embodiment of the present application provides a data editing processing method, which may be applied to an electronic device, where the electronic device may be, but is not limited to, a computer device such as a notebook, a desktop, and an all-in-one machine, or may also be a portable/wearable mobile terminal of various types such as a smart phone, a tablet computer, a Personal Digital Assistant (PDA), a smart band, and a smart watch, where the solution of the present application may be preferably applied to various computer devices or electronic devices with a large display screen such as a smart phone, a tablet computer, and a Personal Digital Assistant.
Referring to fig. 1, a flowchart of a first embodiment of a data editing processing method provided in the present application is shown, where in this embodiment, the data editing processing method includes the following steps:
step 101, a first operation is obtained.
In this application, the first operation may be a copy operation for copying data or a cut operation for cutting data, which is performed on the electronic device by a device user using a corresponding operation body. For example, a user of a computer device such as a notebook, a desktop, a kiosk, etc. performs a copy operation/cut operation on a computer screen using a mouse or a keyboard, or a user of a terminal such as a smartphone, a tablet, etc. performs a copy operation/cut operation on a terminal screen using his finger or a stylus, etc.
Correspondingly, as an execution subject of the method of the present application, the electronic device may obtain the first operation for copying or cutting data of the user based on a corresponding mouse/keyboard event detection technology or a touch screen event detection technology.
Step 102, acquiring at least one first data according to a first operation, and storing the at least one first data in a storage area.
As described above, the first operation is a copy operation for copying data or a cut operation for cutting data, and correspondingly, in this step, the obtaining at least one piece of first data according to the first operation is to obtain at least one piece of first data corresponding to the copy operation or obtain at least one piece of first data corresponding to the cut operation.
After the at least one first data corresponding to the copy operation is acquired or the at least one first data corresponding to the cut operation is acquired, the acquired at least one first data may be further stored in a storage area of the device to be used as a data basis when the data is subsequently output.
The storage area may preferably be a predetermined area in the device memory that provides a data relay function by caching copied or cut data, which is similar to the function of the prior art clipboard.
And 103, acquiring a second operation.
Corresponding to the first operation, the second operation may be a paste operation performed by a device user on the electronic device using the corresponding operation body to paste data. For example, a user of a computer device such as a notebook, a desktop, a kiosk, etc. performs a paste operation on a computer screen using a mouse or a keyboard, or a user of a terminal such as a smartphone, a tablet, etc. performs a paste operation on a terminal screen using his finger or a stylus, etc.
The electronic device may also obtain the second operation for pasting data by the user based on a corresponding mouse/keyboard event detection technique or touch screen event detection technique.
Here, it should be noted that the second operation for pasting data in the present application is different from the pasting operation in the prior art, and the second operation in the present application can indicate a data output rule to be adopted when outputting data, in addition to outputting data stored in the storage area to a certain target location;
in a specific implementation manner, as a possible implementation manner, a plurality of different paste operations may be provided in advance in the device, and corresponding different data output rules are associated with the different paste operations, so that when a user selects to execute one of the paste operations, the user can provide the corresponding data output rule for the device through the specific paste operation executed.
The association between different pasting operations and corresponding different data output rules may be a pre-association, i.e. a static association, or a dynamic association based on the operation process of the pasting operation, and is not limited to one of them.
And 104, acquiring a data output rule at least according to the second operation.
As described above, in the present application, the second operation is a paste operation for pasting data, and different data output rules are associated with different paste operations, and once a user executes one of the paste operations, a required data output rule is determined immediately, so that, for an electronic device as an execution subject, the corresponding or associated data output rule can be obtained by analyzing the paste operation executed by the user.
And 105, processing the at least one first data at least according to the data output rule to obtain second data.
After the corresponding data output rule is obtained according to the second operation, the at least one first data can be processed according to the data output rule, so that the data to be output, namely the second data, matched with the data output rule is obtained.
In a specific implementation, the second data obtained by processing the at least one first data according to the required data output rule may also be buffered in a memory of the electronic device for output.
And 106, outputting the second data.
And after the at least one first data is processed according to the data output rule corresponding to the second operation and the second data is obtained, the second data can be output, and the second data is matched with the data output rule and correspondingly matched with the specific pasting operation selected and executed by the user when the second operation is executed.
When the second data is output, the second data may be specifically output to a paste position indicated by a specific paste operation selected by the user to be performed, for example, to a certain position of a certain document, or to a certain path of the device, and so on.
According to the data editing processing method, the electronic device and the storage medium, after at least one first data is obtained according to a first operation and stored in the storage area, a second operation can be further obtained, a data output rule is obtained at least according to the second operation, on the basis, the at least one first data is further processed according to the obtained data output rule, and finally the second data obtained after the data processing according to the rule is output. Therefore, for at least one first data, the application can process the first data according to the data output rule corresponding to the operation and output second data matched with the data output rule, and compared with the existing copying/pasting or cutting/pasting technology (the data output in pasting is the original data content of the copied/cut data), the application form of the application is more flexible, and the diversified editing requirements of people in data editing can be better met.
In the above-described data editing processing method, the first data may be character data, such as any one character or combination of multiple characters of characters, letters, numbers or other symbols (e.g., "+", "/", "#", "@", etc.).
The data output rule may be a rule for processing a character itself, corresponding to a case where the first data is character data.
The rules for processing the characters themselves may specifically include, but are not limited to, rules for limiting the number of output of the characters, rules for processing the output content of the characters, rules for limiting the output format of the characters and/or rules for limiting the language form in which the characters are output, and the like.
The rule for limiting the number of output characters may be, for example, limiting that character data is output in a one-to-one manner, or output in a one-to-many manner; the rule for processing the output content of the character may be that the original data content of the character data is changed according to a certain processing mode, so that the output content and the copied or cut original data content are changed based on the rule when data pasting is subsequently performed; the rule for defining the output format of the character may be to output the character according to a desired output format, for example, to output the original character data according to a set font, font size and/or line feed rule, etc.; the rules defining the language form of the character output may be, for example, output the copied/cut characters in one language form (e.g., chinese characters) and the characters in another language form (e.g., english output, pinyin output, etc.).
In a specific implementation, the rule for processing the character itself may be any one or a combination of several of the above rules, and refer to table 1 below, where table 1 gives several examples of the rule for processing the character itself, and the rule in table 1 specifically fuses the above rule for limiting the output number of the character and the rule for processing the output content of the character:
TABLE 1
Raw data Outputting the data
CN0.6 CN0.7 CN0.8……
CN0.6 CN0.07 CN0.08……
CN0.6 CN0.6A CN0.6B……
CN0.6 1CN0.6 2CN0.6……
CN0.6 CN0.6 CN0.6……
Different from the case that the first data is character data, the first data may also be file data, such as specifically a picture file, an audio/video file, a document file, or a folder including a plurality of files. The data output rule may be a rule for processing a file name, corresponding to a case where the first data is file data.
Taking the first data as an example, the rule for processing file names is typically applied in a scenario that a user selects to copy/cut a plurality of picture files under different folders, where the picture files belong to the same person, for example, when the pictures are copied to the same folder in batches, the output rule may be obtained and named in a uniform naming manner indicated by the output rule, for example, the picture name is "three-in-one", and a suffix generated in sequence is added, for example, a suffix may be a/b/c …, or 1/2/3 …, or _ a/_ b/_ c …, or a date and the like may be added at the end of the file name.
The above-mentioned several processing rules for the character data or the file name are only exemplary and non-limiting illustrations provided by the description scheme of the present embodiment, and the practical application is not necessarily limited thereto.
In the second embodiment, the application uses an application scenario in which the above method is applied to a computer device such as a notebook, a desktop, and a kiosk (i.e., in the second embodiment, the main execution body of the solution of the application is the computer device), and the data editing processing method in the above embodiments is further described in detail.
In an application scenario of this embodiment, the second operation in the foregoing method at least includes:
the first operation is: operations on the keyboard, wherein the operations on the keyboard comprise at least one, wherein each operation on the keyboard is associated with a different data output rule;
or,
the second operation is as follows: a series of operations on the mouse, wherein the series of operations of the mouse at least comprises: displaying the operation of a pull-down menu, and selecting the menu item; wherein the menu items include at least one, wherein each menu item is associated with a different data output rule;
or,
the third operation: a series of operations on the keyboard and/or mouse, wherein the series of operations of the keyboard and/or mouse includes at least one of: an operation of displaying a dialog box, an operation of inputting information in the dialog box, and an operation of selecting an output rule.
The operation mode of the second operation including the first operation may be understood as an operation mode based on a shortcut key, in which the operation on the keyboard may specifically be an operation on a certain key on the keyboard or an operation on a certain key combination on the keyboard, and correspondingly, different operations on the keyboard may be operations on different keys on the keyboard or operations on different key combinations on the keyboard, where the operations on different keys or operations on different key combinations on the keyboard are associated with different data output rules.
As described in the first embodiment, the second operation is a paste operation for pasting data, and in this embodiment, different paste operations can be implemented by operations on different keys or different key combinations on the keyboard, and each paste operation can indicate, in addition to outputting data to a certain target position, a data output rule to be adopted when outputting data based on a corresponding data output rule associated in advance.
Referring to the following table 2, taking the first data as the character data as an example, the table 2 exemplarily provides different key combinations corresponding to several different paste operations and different data output rules corresponding thereto:
TABLE 2
Shortcut key (Key combination) Raw data Outputting the data
Ctrl+Q CN0.6 CN0.7 CN0.8……
Ctrl+W CN0.6 CN0.07 CN0.08……
Ctrl+E CN0.6 CN0.6A CN0.6B……
Ctrl+D CN0.6 1CN0.6 2CN0.6……
Ctrl+C CN0.6 CN0.6 CN0.6……
The data output rule associated with the different shortcut keys may be a data output rule for character data or a data output rule for file data, and the data output rule for character data and the data output rule for file data may specifically refer to the above description, which is not described in detail herein.
When a user needs to copy or cut at least one piece of data based on a certain data output rule, a shortcut key corresponding to the needed data output rule can be selected for operation, after the user selects and operates the shortcut key, the system performs corresponding data processing and output on the data stored during data copying/cutting based on the data output rule associated with the shortcut key in advance, and the data finally output to the target position is matched with the data output rule associated with the shortcut key selected and operated by the user.
Correspondingly, the operation mode of the second operation including the second operation can be understood as an operation mode based on menu items, in which a pull-down menu can be set in advance for a "paste" menu in a system menu of the computer device, and a plurality of different paste menu items can be provided in the pull-down menu, and different data output rules can be associated in advance for the different paste menu items.
The data output rule associated with the different paste menu items may be a data output rule for character data or a data output rule for file data, and the data output rule for character data and the data output rule for file data may also be referred to the above description, and detailed description is omitted here.
For example, with regard to the above table 2, different data output rules associated with different paste menu items in the pull-down menu may be obtained by replacing a column of the above "shortcut key (key combination)" with "paste menu item", for example, replacing the above "Ctrl + Q", "Ctrl + W", "Ctrl + E", "Ctrl + D", "Ctrl + C" with "paste menu item one", "paste menu item two", "paste menu item three", "paste menu item four", "paste menu item five", and the like, where a detailed output rule form corresponding to each paste menu item of the pull-down menu is not given, and may be understood by referring to the above table 2 in combination with the description herein.
On the basis, when a user needs to copy or cut at least one piece of data based on a certain data output rule, a pull-down menu of a paste menu can be called by using a mouse, a paste menu item matched with the needed data output rule is selected from the pull-down menu, and after the user selects the paste menu item, the system performs corresponding data processing on the data stored during copying/cutting the data based on the data output rule associated with the paste menu item in advance and outputs the data, so that the data finally output to the target position is matched with the data output rule associated with the paste menu item selected by the user.
In practical application, for the above-mentioned operation modes based on the shortcut keys and/or the operation modes based on the menu items, a function that a user can set data output rules corresponding to different shortcut keys (such as different key combinations) and/or a function that data output rules corresponding to different pasting menu items in a pull-down menu can be added in the device system, and the set function is opened to the user, so that the user can set the data output rules corresponding to different shortcut keys and/or pasting menu items individually according to the needs of the user.
Different from the two static associated data output rules of the second operation (i.e. the data output rules associated with the keys or the menu items in advance), for the execution main body of the computer device, this embodiment also provides an operation mode for dynamically setting the data output rules based on the dialog box for the second operation, which is an operation mode corresponding to the second operation including the third operation above.
Corresponding to the operation mode, a function capable of dynamically setting a data output rule based on a dialog box mode when data is to be copied/pasted, cut/pasted may be added in advance to the system of the computer device, the dialog box is used to provide a data output rule setting function for character data and/or file data to a user, and specifically, it may provide the data output rule setting function to the user in a mode of information input and/or option selection, etc. Therefore, when the user needs to copy/cut data, the dialog box can be called by the user through the operation of a mouse or a keyboard, and further, the data output rule aiming at the character data or the file data needing to be copied/cut is dynamically set in the dialog box in the modes of information input, option selection and the like based on the output rule setting function provided by the dialog box, and the system of the equipment can obtain the rule after setting, and processes and outputs the copied/cut data based on the rule when pasting the output data.
The following exemplary provides several exemplary application scenarios for the solution of the present embodiment.
Programmed application scenarios:
when programming, the user can realize that a series of variables are named in sequence when pasting the variables by pressing a corresponding shortcut key, or clicking a pull-down menu of a paste function by using a mouse to call out a pull-down menu item corresponding to a required paste menu item, or calling out a dialog box and setting an output rule, for example, the user copies the variable name 'VNAME', and pastes and outputs 6 variable names 'VNAME' in a written program document by the paste operation_1 "," VNAME _2 ", VNAME _ 3", "VNAME _ 4", "VNAME _ 5", "VNAME _ 6", etc.
(II) batch copy of the scene of the photo:
1) the user selects n photos belonging to the same person in one folder, such as folder 1, copies or cuts the n photos by operating shortcut keys ctrl + c or ctrl + x (e.g., pressing the key combination at the same time, etc.), and then enters a target folder to which the selected photos are desired to be pasted and output, such as a folder named "zhang san" or a folder named "zhang san" capable of designating the belonging person as zhang san, and so on, specifically, taking the folder named "zhang san" as an example, in the target folder, a dialog box for setting a data output rule is called by operating shortcut key ctrl + q, and characters for serving as a main part of the photo name, such as "zhang san", "zhang san 2000 good all", can be input in an information input box displayed in the dialog box, and a suffix output rule of the photo name can be selected in a pull-down menu simultaneously displayed in the dialog box, such as "increasing Arabic numerals" suffix output rules (e.g., 1/2/3 …, or _1/_2_3 …), "increasing English letters" suffix output rules (e.g., a/b/c …, or _ a/_ b/_ c …), etc., and then optionally clicking a confirm button (of course a cancel button is also displayed) simultaneously displayed in the dialog box, on the basis, the system can obtain the data output rule set by the user, name and output the selected n photos according to the obtained rule, taking 1/2/3 … as an example of the suffix output rule selected by the user, n photos named as "zhang san 1", "zhang san 2", and … "zhang san n" can be finally output under the target folder of zhang san;
2) the user continues to select m photos of the third folder in another folder, such as the folder 2 storing the photos of the third folder, copy or cut the m photos by operating ctrl + c or ctrl + x, and reenter the target folder, such as the folder named as "third folder", at this time, by operating the shortcut key ctrl + w, the m photos of the third folder selected from the folder 2 can continue to be named as "third n + 1", and … "third n + m", and output without setting the output rule again based on the dialog box; in another embodiment, when the folder "zhang san" is entered again, the same effect as ctrl + w can be achieved by clicking the right mouse button and continuing to click "continue paste" in the called-up pull-down menu.
It should be noted that, in the above example, different functions provided by ctrl + q and ctrl + w when data pasting is performed are preset in the system, but in practical application, the setting authority of the function corresponding to the shortcut keys may also be opened to the user, and the shortcut keys ctrl + q and ctrl + w and the functions corresponding to the shortcut keys and the implementation forms of the dialog boxes described above are only exemplary descriptions provided by the description scheme of the present application, and in practical application, specific implementation forms of the shortcut keys and the functions corresponding to the shortcut keys and the dialog boxes may be various, and the description of the present embodiment is not limited to the above description.
In practical applications, any one or more of the above manners may be adopted to implement the data editing processing method of the present application, and the implementation is not necessarily limited to a specific one. Compared with the existing copying/pasting or cutting/pasting technology (the data output during pasting is the original data content of the copied/cut data), the scheme of the embodiment has more flexible application form and can better meet the diversified editing requirements of people during data editing.
In the third embodiment, the application uses the application scenario in which the method is applied to a mobile terminal such as a smart phone and a tablet pc (that is, in the third embodiment, the execution subject of the solution of the application is a mobile terminal), and the data editing processing method is further described in detail.
In an application scenario of this embodiment, the second operation in the foregoing method at least includes:
the method comprises the following steps of operating the touch screen, wherein the operating the touch screen comprises the following steps:
executing the operation of a preset gesture;
or,
displaying the operation of a pull-down menu, and selecting the menu item; wherein the menu items include at least one, wherein each menu item is associated with a different data output rule;
or,
an operation of displaying a dialog box, an operation of inputting information in the dialog box, and an operation of selecting an output rule.
For the second operation including the operation of executing the predetermined gesture, a plurality of different pasting functions based on different pasting gestures may be added in advance in the system of the mobile terminal, wherein different pasting gestures are respectively associated with different data output rules.
Therefore, when a user needs to copy/cut at least one piece of data according to a certain specific required data output rule, the mobile terminal can process and output the copied/cut data according to the data output rule corresponding to the gesture by executing a corresponding paste gesture at the target position of the data to be output.
In a specific implementation, the predetermined gesture may be a single gesture or a combined gesture formed by combining a plurality of gestures, which is not limited in this embodiment.
The operation of displaying the pull-down menu, the operation of selecting the menu item, may be an operation performed by the user on the touch screen of the mobile terminal using an operation body such as a finger or a touch pen of the user.
In this operation mode, correspondingly, a pull-down menu may be set in advance for a "paste" menu in a system menu of the mobile terminal, and a plurality of different paste menu items may be provided in the pull-down menu, while different data output rules may be associated in advance for the different paste menu items.
The data output rule associated with the different paste menu items may be a data output rule for character data or a data output rule for file data, and the data output rule for character data and the data output rule for file data may also be referred to the above description, and detailed description is omitted here.
On the basis, when a user needs to copy or cut at least one piece of data based on a certain data output rule, a pull-down menu item of a paste menu can be called on a touch interface of a mobile terminal such as a mobile phone by using an operation body such as a finger or a touch pen, a required paste menu item is selected from the pull-down menu item, after the user selects a certain paste menu item, the system performs corresponding data processing on the data stored during copying/cutting the data based on the data output rule associated with the paste menu item in advance and outputs the data, so that the data finally output to a target position is matched with the data output rule associated with the paste menu item selected by the user.
The operation mode based on the predetermined gesture and the operation mode based on the menu item of the second operation also belong to the operation mode of the static associated data output rule (i.e. the gesture or menu item associated data output rule is preset). In practical application, for the two operation modes, a function that a user can set data output rules corresponding to different gestures and/or a function that data output rules corresponding to different paste menu items in a pull-down menu can be added in an equipment system of the mobile terminal, and the set function is opened to the user, so that the user can set the data output rules corresponding to different gestures and/or paste menu items individually according to the requirements of the user.
Different from the above two operation modes of the static associated data output rule, for the execution subject of the mobile terminal, this embodiment also provides an operation mode of dynamically setting the data output rule based on the dialog box for the second operation.
In this operation mode, the operation of displaying the dialog box, the operation of inputting information in the dialog box, and the operation of selecting the output rule may also be operations performed by the user on the touch screen of the mobile terminal using an operation body such as a finger or a stylus pen.
Corresponding to the operation mode, a function capable of dynamically setting a data output rule based on a dialog box mode when data is to be copied/pasted, cut/pasted may be added in advance to the system of the mobile terminal, the dialog box is used to provide a user with a data output rule setting function for character data and/or file data, and specifically, it may provide the user with the data output rule setting function in a mode of information input and/or option selection. Therefore, when the user needs to copy or cut data, the user can call the dialog box through gesture operation or menu item operation, and further, based on the output rule setting function provided by the dialog box, the data output rule for the character data or the file data needing to be copied/cut is dynamically set in the dialog box in the modes of information input, option selection and the like, and after the setting is finished, the terminal system can obtain the rule, and when the output data is pasted, the copied/cut data is processed and output based on the rule.
In practical applications, any one or more of the above manners may be adopted to implement the data editing processing method of the present application, and the implementation is not necessarily limited to a specific one. Compared with the existing copying/pasting or cutting/pasting technology (the data output during pasting is the original data content of the copied/cut data), the scheme of the embodiment has more flexible application form and can better meet the diversified editing requirements of people during data editing.
Corresponding to the above data editing processing method, the present application further provides an electronic device, where the electronic device may be, but is not limited to, a computer device such as a notebook, a desktop, and an all-in-one machine, or may also be a portable/wearable mobile terminal of various types such as a smart phone, a tablet computer, a personal digital assistant, a smart bracelet, and a smart watch, and preferably, the electronic device is any of the above computer devices or a device having a larger display screen such as a smart phone, a tablet computer, and a personal digital assistant.
Referring to fig. 2, a schematic structural diagram of a fourth embodiment of an electronic device in the present application is shown, in this embodiment, the electronic device includes:
a memory 201 for storing at least one set of instructions.
The memory 201 may be various types of memory devices with data storage function, such as a ROM (Read only memory), a FLASH, an optical disc, a hard disc, etc., and the stored instruction set is used for instructing the processor 202 to perform the corresponding processing operation as described below, and the instruction set may be stored in the memory 201 in the form of a program.
A processor 202 for invoking and executing the set of instructions in the memory, by executing the set of instructions:
acquiring a first operation;
acquiring at least one first data according to a first operation, and storing the at least one first data in a storage area;
acquiring a second operation;
acquiring a data output rule at least according to the second operation;
processing the at least one first data at least according to the data output rule to obtain second data;
and outputting the second data.
In this application, the first operation may be a copy operation for copying data or a cut operation for cutting data, which is performed on the electronic device by a device user using a corresponding operation body. For example, a user of a computer device such as a notebook, a desktop, a kiosk, etc. performs a copy operation/cut operation on a computer screen using a mouse or a keyboard, or a user of a terminal such as a smartphone, a tablet, etc. performs a copy operation/cut operation on a terminal screen using his finger or a stylus, etc.
Correspondingly, as an execution subject of the method of the present application, the electronic device may obtain the first operation for copying or cutting data of the user based on a corresponding mouse/keyboard event detection technology or a touch screen event detection technology.
As described above, the first operation is a copy operation for copying data or a cut operation for cutting data, and correspondingly, in this step, the obtaining at least one piece of first data according to the first operation is to obtain at least one piece of first data corresponding to the copy operation or obtain at least one piece of first data corresponding to the cut operation.
After the at least one first data corresponding to the copy operation is acquired or the at least one first data corresponding to the cut operation is acquired, the acquired at least one first data may be further stored in a storage area of the device to be used as a data basis when the data is subsequently output.
The storage area may preferably be a predetermined area in the device memory that provides a data relay function by caching copied or cut data, which is similar to the function of the prior art clipboard.
Corresponding to the first operation, the second operation may be a paste operation performed by a device user on the electronic device using the corresponding operation body to paste data. For example, a user of a computer device such as a notebook, a desktop, a kiosk, etc. performs a paste operation on a computer screen using a mouse or a keyboard, or a user of a terminal such as a smartphone, a tablet, etc. performs a paste operation on a terminal screen using his finger or a stylus, etc.
The electronic device may also obtain the second operation for pasting data by the user based on a corresponding mouse/keyboard event detection technique or touch screen event detection technique.
Here, it should be noted that the second operation for pasting data in the present application is different from the pasting operation in the prior art, and the second operation in the present application can indicate a data output rule to be adopted when outputting data, in addition to outputting data stored in the storage area to a certain target location;
in a specific implementation manner, as a possible implementation manner, a plurality of different paste operations may be provided in advance in the device, and corresponding different data output rules are associated with the different paste operations, so that when a user selects to execute one of the paste operations, the user can provide the corresponding data output rule for the device through the specific paste operation executed.
The association between different pasting operations and corresponding different data output rules may be a pre-association, i.e. a static association, or a dynamic association based on the operation process of the pasting operation, and is not limited to one of them.
As described above, in the present application, the second operation is a paste operation for pasting data, and different data output rules are associated with different paste operations, and once a user executes one of the paste operations, a required data output rule is determined immediately, so that, for an electronic device as an execution subject, the corresponding or associated data output rule can be obtained by analyzing the paste operation executed by the user.
After the corresponding data output rule is obtained according to the second operation, the at least one first data can be processed according to the data output rule, so that the data to be output, namely the second data, matched with the data output rule is obtained.
In a specific implementation, the second data obtained by processing the at least one first data according to the required data output rule may also be buffered in a memory of the electronic device for output.
And after the at least one first data is processed according to the data output rule corresponding to the second operation and the second data is obtained, the second data can be output, and the second data is matched with the data output rule and correspondingly matched with the specific pasting operation selected and executed by the user when the second operation is executed.
When the second data is output, the second data may be specifically output to a paste position indicated by a specific paste operation selected by the user to be performed, for example, to a certain position of a certain document, or to a certain path of the device, and so on.
According to the electronic equipment for data, after at least one piece of first data is obtained according to a first operation and stored in a storage area, a second operation can be further obtained, a data output rule is at least obtained according to the second operation, on the basis, the at least one piece of first data is further processed according to the obtained data output rule, and finally, the second data obtained after processing according to the rule is output. Therefore, for at least one first data, the application can process the first data according to the data output rule corresponding to the operation and output second data matched with the data output rule, and compared with the existing copying/pasting or cutting/pasting technology (the data output in pasting is the original data content of the copied/cut data), the application form of the application is more flexible, and the diversified editing requirements of people in data editing can be better met.
In the electronic device of the above embodiment, the first data may be character data, such as any one character or combination of multiple characters in words, letters, numbers or other symbols (such as "+", "/", "#", "@", etc.).
The data output rule may be a rule for processing a character itself, corresponding to a case where the first data is character data.
The rules for processing the characters themselves may specifically include, but are not limited to, rules for limiting the number of output of the characters, rules for processing the output content of the characters, rules for limiting the output format of the characters and/or rules for limiting the language form in which the characters are output, and the like.
The rule for limiting the number of output characters may be, for example, limiting that character data is output in a one-to-one manner, or output in a one-to-many manner; the rule for processing the output content of the character may be that the original data content of the character data is changed according to a certain processing mode, so that the output content and the copied or cut original data content are changed based on the rule when data pasting is subsequently performed; the rule for defining the output format of the character may be to output the character according to a desired output format, for example, to output the original character data according to a set font, font size and/or line feed rule, etc.; the rules defining the language form of the character output may be, for example, output the copied/cut characters in one language form (e.g., chinese characters) and the characters in another language form (e.g., english output, pinyin output, etc.).
In a specific implementation, the rule for processing the character itself may be any one or a combination of several of the above rules, and refer to table 1 below, where table 1 gives several examples of the rule for processing the character itself, and the rule in table 1 specifically fuses the above rule for limiting the output number of the character and the rule for processing the output content of the character:
TABLE 1
Raw data Outputting the data
CN0.6 CN0.7 CN0.8……
CN0.6 CN0.07 CN0.08……
CN0.6 CN0.6A CN0.6B……
CN0.6 1CN0.6 2CN0.6……
CN0.6 CN0.6 CN0.6……
Different from the case that the first data is character data, the first data may also be file data, such as specifically a picture file, an audio/video file, a document file, or a folder including a plurality of files. The data output rule may be a rule for processing a file name, corresponding to a case where the first data is file data.
Taking the first data as an example, the rule for processing file names is typically applied in a scenario that a user selects to copy/cut a plurality of picture files under different folders, where the picture files belong to the same person, for example, when the pictures are copied to the same folder in batches, the output rule may be obtained and named in a uniform naming manner indicated by the output rule, for example, the picture name is "three-in-one", and a suffix generated in sequence is added, for example, a suffix may be a/b/c …, or 1/2/3 …, or _ a/_ b/_ c …, or a date and the like may be added at the end of the file name.
The above-mentioned several processing rules for the character data or the file name are only exemplary and non-limiting illustrations provided by the description scheme of the present embodiment, and the practical application is not necessarily limited thereto.
In the fifth embodiment, the present application will take the electronic device as a computer device such as a notebook, a desktop, and a kiosk as an example, and further details the functions of the processor 202 of the electronic device in the above embodiments.
In an application scenario of this embodiment, when the processor 202 obtains the second operation, the obtained second operation at least includes:
the first operation is: operations on the keyboard, wherein the operations on the keyboard comprise at least one, wherein each operation on the keyboard is associated with a different data output rule;
or,
the second operation is as follows: a series of operations on the mouse, wherein the series of operations of the mouse at least comprises: displaying the operation of a pull-down menu, and selecting the menu item; wherein the menu items include at least one, wherein each menu item is associated with a different data output rule;
or,
the third operation: a series of operations on the keyboard and/or mouse, wherein the series of operations of the keyboard and/or mouse includes at least one of: an operation of displaying a dialog box, an operation of inputting information in the dialog box, and an operation of selecting an output rule.
The operation mode of the second operation including the first operation may be understood as an operation mode based on a shortcut key, in which the operation on the keyboard may specifically be an operation on a certain key on the keyboard or an operation on a certain key combination on the keyboard, and correspondingly, different operations on the keyboard may be operations on different keys on the keyboard or operations on different key combinations on the keyboard, where the operations on different keys or operations on different key combinations on the keyboard are associated with different data output rules.
As described in the first embodiment, the second operation is a paste operation for pasting data, and in this embodiment, different paste operations can be implemented by operations on different keys or different key combinations on the keyboard, and each paste operation can indicate, in addition to outputting data to a certain target position, a data output rule to be adopted when outputting data based on a corresponding data output rule associated in advance.
Referring to the following table 2, taking the first data as the character data as an example, the table 2 exemplarily provides different key combinations corresponding to several different paste operations and different data output rules corresponding thereto:
TABLE 2
Shortcut key (Key combination) Raw data Outputting the data
Ctrl+Q CN0.6 CN0.7 CN0.8……
Ctrl+W CN0.6 CN0. 07CN0.08……
Ctrl+E CN0.6 CN0.6A CN0.6B……
Ctrl+D CN0.6 1CN0.6 2CN0.6……
Ctrl+C CN0.6 CN0.6 CN0.6……
The data output rule associated with the different shortcut keys may be a data output rule for character data or a data output rule for file data, and the data output rule for character data and the data output rule for file data may specifically refer to the above description, which is not described in detail herein.
When a user needs to copy or cut at least one piece of data based on a certain data output rule, a shortcut key corresponding to the needed data output rule can be selected for operation, after the user selects and operates the shortcut key, the system performs corresponding data processing and output on the data stored during data copying/cutting based on the data output rule associated with the shortcut key in advance, and the data finally output to the target position is matched with the data output rule associated with the shortcut key selected and operated by the user.
Correspondingly, the operation mode of the second operation including the second operation can be understood as an operation mode based on menu items, in which a pull-down menu can be set in advance for a "paste" menu in a system menu of the computer device, and a plurality of different paste menu items can be provided in the pull-down menu, and different data output rules can be associated in advance for the different paste menu items.
The data output rule associated with the different paste menu items may be a data output rule for character data or a data output rule for file data, and the data output rule for character data and the data output rule for file data may also be referred to the above description, and detailed description is omitted here.
For example, with regard to the above table 2, different data output rules associated with different paste menu items in the pull-down menu may be obtained by replacing a column of the above "shortcut key (key combination)" with "paste menu item", for example, replacing the above "Ctrl + Q", "Ctrl + W", "Ctrl + E", "Ctrl + D", "Ctrl + C" with "paste menu item one", "paste menu item two", "paste menu item three", "paste menu item four", "paste menu item five", and the like, where a detailed output rule form corresponding to each paste menu item of the pull-down menu is not given, and may be understood by referring to the above table 2 in combination with the description herein.
On the basis, when a user needs to copy or cut at least one piece of data based on a certain data output rule, a pull-down menu of a paste menu can be called by using a mouse, a paste menu item matched with the needed data output rule is selected from the pull-down menu, and after the user selects the paste menu item, the system performs corresponding data processing on the data stored during copying/cutting the data based on the data output rule associated with the paste menu item in advance and outputs the data, so that the data finally output to the target position is matched with the data output rule associated with the paste menu item selected by the user.
In practical application, for the above-mentioned operation modes based on the shortcut keys and/or the operation modes based on the menu items, a function that a user can set data output rules corresponding to different shortcut keys (such as different key combinations) and/or a function that data output rules corresponding to different pasting menu items in a pull-down menu can be added in the device system, and the set function is opened to the user, so that the user can set the data output rules corresponding to different shortcut keys and/or pasting menu items individually according to the needs of the user.
Different from the two static associated data output rules of the second operation (i.e. the data output rules associated with the keys or the menu items in advance), for the execution main body of the computer device, this embodiment also provides an operation mode for dynamically setting the data output rules based on the dialog box for the second operation, which is an operation mode corresponding to the second operation including the third operation above.
Corresponding to the operation mode, a function capable of dynamically setting a data output rule based on a dialog box mode when data is to be copied/pasted, cut/pasted may be added in advance to the system of the computer device, the dialog box is used to provide a data output rule setting function for character data and/or file data to a user, and specifically, it may provide the data output rule setting function to the user in a mode of information input and/or option selection, etc. Therefore, when the user needs to copy/cut data, the dialog box can be called by the user through the operation of a mouse or a keyboard, and further, the data output rule aiming at the character data or the file data needing to be copied/cut is dynamically set in the dialog box in the modes of information input, option selection and the like based on the output rule setting function provided by the dialog box, and the system of the equipment can obtain the rule after setting, and processes and outputs the copied/cut data based on the rule when pasting the output data.
The following exemplary provides several exemplary application scenarios for the solution of the present embodiment.
Programmed application scenarios:
when programming, the user can use the corresponding shortcut key to press, or use the mouse to click the pull-down menu of the paste function and select the corresponding needed paste menu item, or call the dialog box and set the output rule, so as to name a series of variables in sequence when pasting the variables, for example, the user copies the variable name "VNAME" and pastes and outputs 6 variable names "VNAME _ 1", "VNAME _ 2": "VNAME _ 3", "VNAME _ 4", "VNAME _ 5", "VNAME _ 6", etc. in the written program document by the above-mentioned paste operation.
(II) batch copy of the scene of the photo:
1) the user selects n photos belonging to the same person in one folder, such as folder 1, copies or cuts the n photos by operating shortcut keys ctrl + c or ctrl + x (e.g., pressing the key combination at the same time, etc.), and then enters a target folder to which the selected photos are desired to be pasted and output, such as a folder named "zhang san" or a folder named "zhang san" capable of designating the belonging person as zhang san, and the like, specifically taking the folder named "zhang san" as an example, in the target folder, a dialog box for setting a data output rule is called by operating shortcut key ctrl + q, and the characters "zhang san", "zhang 2000 for success" as a main part of the photo name can be input in an information input box displayed in the dialog box, and a suffix output rule of the photo name can be selected in a pull-down menu simultaneously displayed in the dialog box, such as "increasing Arabic numerals" suffix output rules (e.g., 1/2/3 …, or _1/_2_3 …), "increasing English letters" suffix output rules (e.g., a/b/c …, or _ a/_ b/_ c …), etc., and then optionally clicking a confirm button (of course a cancel button is also displayed) simultaneously displayed in the dialog box, on the basis, the system can obtain the data output rule set by the user, name and output the selected n photos according to the obtained rule, taking 1/2/3 … as an example of the suffix output rule selected by the user, n photos named as "zhang san 1", "zhang san 2", and … "zhang san n" can be finally output under the target folder of zhang san;
2) the user continues to select m photos of the third folder in another folder, such as the folder 2 storing the photos of the third folder, copy or cut the m photos by operating ctrl + c or ctrl + x, and reenter the target folder, such as the folder named as "third folder", at this time, by operating the shortcut key ctrl + w, the m photos of the third folder selected from the folder 2 can continue to be named as "third n + 1", and … "third n + m", and output without setting the output rule again based on the dialog box; in another embodiment, when the folder "zhang san" is entered again, the same effect as ctrl + w can be achieved by clicking the right mouse button and continuing to click "continue paste" in the called-up pull-down menu.
It should be noted that, in the above example, different functions provided by ctrl + q and ctrl + w when data pasting is performed are preset in the system, but in practical application, the setting authority of the function corresponding to the shortcut keys may also be opened to the user, and the shortcut keys ctrl + q and ctrl + w and the functions corresponding to the shortcut keys and the implementation forms of the dialog boxes described above are only exemplary descriptions provided by the description scheme of the present application, and in practical application, specific implementation forms of the shortcut keys and the functions corresponding to the shortcut keys and the dialog boxes may be various, and the description of the present embodiment is not limited to the above description.
In practical applications, the data editing processing method of the present application may be implemented by any one or more of the above manners, and is not necessarily limited to a specific one. Compared with the existing copying/pasting or cutting/pasting technology (the data output during pasting is the original data content of the copied/cut data), the scheme of the embodiment has more flexible application form and can better meet the diversified editing requirements of people during data editing.
In the sixth embodiment, the electronic device is taken as a mobile terminal such as a smart phone or a tablet computer, and the application further details the functions of the processor 202 of the electronic device in the above embodiments.
In an application scenario of this embodiment, when the processor 202 obtains the second operation, the obtained second operation at least includes:
the second operation includes at least:
the method comprises the following steps of operating the touch screen, wherein the operating the touch screen comprises the following steps:
executing the operation of a preset gesture;
or,
displaying the operation of a pull-down menu, and selecting the menu item; wherein the menu items include at least one, wherein each menu item is associated with a different data output rule;
or,
an operation of displaying a dialog box, an operation of inputting information in the dialog box, and an operation of selecting an output rule.
For the second operation including the operation of executing the predetermined gesture, a plurality of different pasting functions based on different pasting gestures may be added in advance in the system of the mobile terminal, wherein different pasting gestures are respectively associated with different data output rules.
Therefore, when a user needs to copy/cut at least one piece of data according to a certain specific required data output rule, the mobile terminal can process and output the copied/cut data according to the data output rule corresponding to the gesture by executing a corresponding paste gesture at the target position of the data to be output.
In a specific implementation, the predetermined gesture may be a single gesture or a combined gesture formed by combining a plurality of gestures, which is not limited in this embodiment.
The operation of displaying the pull-down menu, the operation of selecting the menu item, may be an operation performed by the user on the touch screen of the mobile terminal using an operation body such as a finger or a touch pen of the user.
In this operation mode, correspondingly, a pull-down menu may be set in advance for a "paste" menu in a system menu of the mobile terminal, and a plurality of different paste menu items may be provided in the pull-down menu, while different data output rules may be associated in advance for the different paste menu items.
The data output rule associated with the different paste menu items may be a data output rule for character data or a data output rule for file data, and the data output rule for character data and the data output rule for file data may also be referred to the above description, and detailed description is omitted here.
On the basis, when a user needs to copy or cut at least one piece of data based on a certain data output rule, a pull-down menu item of a paste menu can be called on a touch interface of a mobile terminal such as a mobile phone by using an operation body such as a finger or a touch pen, a required paste menu item is selected from the pull-down menu item, after the user selects a certain paste menu item, the system performs corresponding data processing on the data stored during copying/cutting the data based on the data output rule associated with the paste menu item in advance and outputs the data, so that the data finally output to a target position is matched with the data output rule associated with the paste menu item selected by the user.
The operation mode based on the predetermined gesture and the operation mode based on the menu item of the second operation also belong to the operation mode of the static associated data output rule (i.e. the gesture or menu item associated data output rule is preset). In practical application, for the two operation modes, a function that a user can set data output rules corresponding to different gestures and/or a function that data output rules corresponding to different paste menu items in a pull-down menu can be added in an equipment system of the mobile terminal, and the set function is opened to the user, so that the user can set the data output rules corresponding to different gestures and/or paste menu items individually according to the requirements of the user.
Different from the above two operation modes of the static associated data output rule, for the execution subject of the mobile terminal, this embodiment also provides an operation mode of dynamically setting the data output rule based on the dialog box for the second operation.
In this operation mode, the operation of displaying the dialog box, the operation of inputting information in the dialog box, and the operation of selecting the output rule may also be operations performed by the user on the touch screen of the mobile terminal using an operation body such as a finger or a stylus pen.
Corresponding to the operation mode, a function capable of dynamically setting a data output rule based on a dialog box mode when data is to be copied/pasted, cut/pasted may be added in advance to the system of the mobile terminal, the dialog box is used to provide a user with a data output rule setting function for character data and/or file data, and specifically, it may provide the user with the data output rule setting function in a mode of information input and/or option selection. Therefore, when the user needs to copy or cut data, the user can call the dialog box through gesture operation or menu item operation, and further, based on the output rule setting function provided by the dialog box, the data output rule for the character data or the file data needing to be copied/cut is dynamically set in the dialog box in the modes of information input, option selection and the like, and after the setting is finished, the terminal system can obtain the rule, and when the output data is pasted, the copied/cut data is processed and output based on the rule.
In practical applications, the data editing processing method of the present application may be implemented by any one or more of the above manners, and is not necessarily limited to a specific one. Compared with the existing copying/pasting or cutting/pasting technology (the data output during pasting is the original data content of the copied/cut data), the scheme of the embodiment has more flexible application form and can better meet the diversified editing requirements of people during data editing.
Corresponding to the above data editing processing method, the present application also provides another electronic device, which may also be, but is not limited to, various types of computer devices or mobile terminals described above, wherein preferably, the electronic device is any of the various types of computer devices described above or a device with a larger display screen, such as a smart phone, a tablet computer, a personal digital assistant, and the like.
Referring to fig. 3, a schematic structural diagram of a seventh embodiment of an electronic device in the present application is shown, in this embodiment, the electronic device includes: a first acquisition unit 301, a storage unit 302, a second acquisition unit 303, a third acquisition unit 304, a processing unit 305, and an output unit 306. Wherein:
a first obtaining unit 301, configured to obtain a first operation.
In this application, the first operation may be a copy operation for copying data or a cut operation for cutting data, which is performed on the electronic device by a device user using a corresponding operation body. For example, a user of a computer device such as a notebook, a desktop, a kiosk, etc. performs a copy operation/cut operation on a computer screen using a mouse or a keyboard, or a user of a terminal such as a smartphone, a tablet, etc. performs a copy operation/cut operation on a terminal screen using his finger or a stylus, etc.
Correspondingly, as an execution subject of the method of the present application, the electronic device may obtain the first operation for copying or cutting data of the user based on a corresponding mouse/keyboard event detection technology or a touch screen event detection technology.
The storage unit 302 is configured to obtain at least one first data according to a first operation and store the at least one first data in a storage area.
As described above, the first operation is a copy operation for copying data or a cut operation for cutting data, and correspondingly, in this step, the obtaining at least one piece of first data according to the first operation is to obtain at least one piece of first data corresponding to the copy operation or obtain at least one piece of first data corresponding to the cut operation.
After the at least one first data corresponding to the copy operation is acquired or the at least one first data corresponding to the cut operation is acquired, the acquired at least one first data may be further stored in a storage area of the device to be used as a data basis when the data is subsequently output.
The storage area may preferably be a predetermined area in the device memory that provides a data relay function by caching copied or cut data, which is similar to the function of the prior art clipboard.
A second obtaining unit 303, configured to obtain a second operation.
Corresponding to the first operation, the second operation may be a paste operation performed by a device user on the electronic device using the corresponding operation body to paste data. For example, a user of a computer device such as a notebook, a desktop, a kiosk, etc. performs a paste operation on a computer screen using a mouse or a keyboard, or a user of a terminal such as a smartphone, a tablet, etc. performs a paste operation on a terminal screen using his finger or a stylus, etc.
The electronic device may also obtain the second operation for pasting data by the user based on a corresponding mouse/keyboard event detection technique or touch screen event detection technique.
Here, it should be noted that the second operation for pasting data in the present application is different from the pasting operation in the prior art, and the second operation in the present application can indicate a data output rule to be adopted when outputting data, in addition to outputting data stored in the storage area to a certain target location;
in a specific implementation manner, as a possible implementation manner, a plurality of different paste operations may be provided in advance in the device, and corresponding different data output rules are associated with the different paste operations, so that when a user selects to execute one of the paste operations, the user can provide the corresponding data output rule for the device through the specific paste operation executed.
The association between different pasting operations and corresponding different data output rules may be a pre-association, i.e. a static association, or a dynamic association based on the operation process of the pasting operation, and is not limited to one of them.
A third obtaining unit 304, configured to obtain the data output rule at least according to the second operation.
As described above, in the present application, the second operation is a paste operation for pasting data, and different data output rules are associated with different paste operations, and once a user executes one of the paste operations, a required data output rule is determined immediately, so that, for an electronic device as an execution subject, the corresponding or associated data output rule can be obtained by analyzing the paste operation executed by the user.
The processing unit 305 is configured to process the at least one first data according to at least the data output rule to obtain a second data.
After the corresponding data output rule is obtained according to the second operation, the at least one first data can be processed according to the data output rule, so that the data to be output, namely the second data, matched with the data output rule is obtained.
In a specific implementation, the second data obtained by processing the at least one first data according to the required data output rule may also be buffered in a memory of the electronic device for output.
An output unit 306, configured to output the second data.
And after the at least one first data is processed according to the data output rule corresponding to the second operation and the second data is obtained, the second data can be output, and the second data is matched with the data output rule and correspondingly matched with the specific pasting operation selected and executed by the user when the second operation is executed.
When the second data is output, the second data may be specifically output to a paste position indicated by a specific paste operation selected by the user to be performed, for example, to a certain position of a certain document, or to a certain path of the device, and so on.
The electronic device for data provided in this embodiment may further obtain a second operation after obtaining at least one first data according to the first operation and storing the first data in the storage area, and obtain a data output rule at least according to the second operation, further process the at least one first data according to the obtained data output rule on the basis, and finally output the second data obtained after processing according to the rule. Therefore, for at least one first data, the application can process the first data according to the data output rule corresponding to the operation and output second data matched with the data output rule, and compared with the existing copying/pasting or cutting/pasting technology (the data output in pasting is the original data content of the copied/cut data), the application form of the application is more flexible, and the diversified editing requirements of people in data editing can be better met.
Corresponding to the above data editing processing method, the present application also provides a storage medium, which may be, but is not limited to, various types of computer-readable storage media such as a floppy disk, an optical disk, a hard disk, a flash memory, a usb flash disk, etc., the storage medium is configured to store at least one set of instruction sets, and the instruction sets are configured to perform the following processing when being called and executed:
acquiring a first operation;
acquiring at least one first data according to a first operation, and storing the at least one first data in a storage area;
acquiring a second operation;
acquiring a data output rule at least according to the second operation;
processing the at least one first data at least according to the data output rule to obtain second data;
and outputting the second data.
The above processing performed by the instruction set in the storage medium when being called and executed may specifically refer to the description of the data editing processing method above, and here, details about the processing procedure corresponding to the instruction set in the storage medium are not described again.
In the process of being called and executed, the instruction set in the storage medium provided by this embodiment may further obtain a second operation after obtaining at least one first data according to the first operation and storing the first data in the storage area, and obtain a data output rule at least according to the second operation, and further process the at least one first data according to the obtained data output rule on this basis, and finally output the second data obtained after being processed according to the rule. Therefore, for at least one first data, the application can process the first data according to the data output rule corresponding to the operation and output second data matched with the data output rule, and compared with the existing copying/pasting or cutting/pasting technology (the data output in pasting is the original data content of the copied/cut data), the application form of the application is more flexible, and the diversified editing requirements of people in data editing can be better met.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
For convenience of description, the above system or apparatus is described as being divided into various modules or units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
Finally, it is further noted that, herein, relational terms such as first, second, third, fourth, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a preferred embodiment of the present disclosure, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A data editing processing method comprises the following steps:
acquiring a first operation;
acquiring at least one first data according to a first operation, and storing the at least one first data in a storage area;
acquiring a second operation;
processing the at least one first data at least according to a data output rule at least according to the second operation to obtain second data;
and outputting the second data.
2. The method according to claim 1, wherein the first data is character data, and the data output rule is a rule for processing a character itself.
3. The method according to claim 1, wherein the first data is file data, and the data output rule is a rule for processing a file name.
4. The method of claim 1, wherein obtaining the first operation comprises:
obtaining the copy operation of the copy data;
or,
and acquiring a cutting operation of cutting data.
5. The method according to claim 1, characterized in that said second operations comprise at least:
operations on the keyboard, wherein the operations on the keyboard comprise at least one, wherein each operation on the keyboard is associated with a different data output rule;
or,
a series of operations on the mouse, wherein the series of operations of the mouse at least comprises: displaying the operation of a pull-down menu, and selecting the menu item; wherein the menu items include at least one, wherein different menu items are associated with different data output rules;
or,
a series of operations on the keyboard and/or mouse, wherein the series of operations of the keyboard and/or mouse includes at least one of: displaying a dialog box, inputting information in the dialog box, and selecting an output rule;
or,
the method comprises the following steps of operating the touch screen, wherein the operating the touch screen comprises the following steps: executing the operation of a preset gesture; or, displaying the operation of a pull-down menu, and selecting the menu items, wherein the menu items at least comprise one type, and different menu items are associated with different data output rules; alternatively, the operation of displaying a dialog box, the operation of inputting information in the dialog box, and the operation of selecting an output rule are performed.
6. An electronic device, comprising:
a memory for storing at least one set of instructions;
a processor for invoking and executing the set of instructions in the memory, by executing the set of instructions:
acquiring a first operation;
acquiring at least one first data according to a first operation, and storing the at least one first data in a storage area;
acquiring a second operation;
processing the at least one first data at least according to a data output rule at least according to the second operation to obtain second data;
and outputting the second data.
7. The electronic device of claim 6, wherein:
if the first data is character data, the data output rule is a rule for processing the character;
and if the first data is file data, the data output rule is a rule for processing a file name.
8. The electronic device of claim 6, wherein the second operation obtained by the processor comprises at least:
operations on the keyboard, wherein the operations on the keyboard comprise at least one, wherein each operation on the keyboard is associated with a different data output rule;
or,
a series of operations on the mouse, wherein the series of operations of the mouse at least comprises: displaying the operation of a pull-down menu, and selecting the menu item; wherein the menu items include at least one, wherein different menu items are associated with different data output rules;
or,
a series of operations on the keyboard and/or mouse, wherein the series of operations of the keyboard and/or mouse includes at least one of: displaying a dialog box, inputting information in the dialog box, and selecting an output rule;
or,
the method comprises the following steps of operating the touch screen, wherein the operating the touch screen comprises the following steps: executing the operation of a preset gesture; or displaying the operation of a pull-down menu, and selecting the menu items, wherein the menu items at least comprise one type, and different menu items are associated with different data output rules; alternatively, the operation of displaying a dialog box, the operation of inputting information in the dialog box, and the operation of selecting an output rule are performed.
9. An electronic device, comprising:
a first acquisition unit configured to acquire a first operation;
the storage unit is used for acquiring at least one first data according to a first operation and storing the at least one first data into a storage area;
a second obtaining unit configured to obtain a second operation;
a third obtaining unit, configured to obtain a data output rule at least according to the second operation;
the processing unit is used for processing the at least one first data at least according to the data output rule to obtain second data;
an output unit for outputting the second data.
10. A storage medium storing at least one set of instructions;
the set of instructions is for being called and executing at least the processing method of any one of claims 1-5.
CN201811160724.7A 2018-09-30 2018-09-30 Data editing method, electronic device and storage medium Active CN109445958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811160724.7A CN109445958B (en) 2018-09-30 2018-09-30 Data editing method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811160724.7A CN109445958B (en) 2018-09-30 2018-09-30 Data editing method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN109445958A true CN109445958A (en) 2019-03-08
CN109445958B CN109445958B (en) 2022-04-22

Family

ID=65545894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811160724.7A Active CN109445958B (en) 2018-09-30 2018-09-30 Data editing method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN109445958B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244885A (en) * 2019-05-08 2019-09-17 北京百度网讯科技有限公司 Input method, device, equipment and storage medium
CN110275786A (en) * 2019-05-31 2019-09-24 联想(北京)有限公司 A kind of information processing method and device
CN113255304A (en) * 2021-06-30 2021-08-13 徐州众星显示科技有限公司 Data processing method and device and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605564A (en) * 2013-11-15 2014-02-26 青岛尚慧信息技术有限公司 Mobile terminal and data copying and pasting method thereof
CN105302784A (en) * 2014-07-16 2016-02-03 腾讯科技(深圳)有限公司 Method and system for copying/ cutting and pasting data
CN106201746A (en) * 2016-07-21 2016-12-07 东莞酷派软件技术有限公司 A kind of data editing method based on shear plate and device
CN106776078A (en) * 2016-12-28 2017-05-31 北京金山安全软件有限公司 Clipboard content processing method and device and terminal equipment
CN107463451A (en) * 2017-07-26 2017-12-12 深圳天珑无线科技有限公司 One kind replicates method of attaching, mobile terminal and computer-readable recording medium
CN107992371A (en) * 2017-11-30 2018-05-04 努比亚技术有限公司 Replicate method of attaching, device and computer-readable recording medium
CN107992458A (en) * 2016-10-26 2018-05-04 腾讯科技(北京)有限公司 The generation method and device of form rule

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605564A (en) * 2013-11-15 2014-02-26 青岛尚慧信息技术有限公司 Mobile terminal and data copying and pasting method thereof
CN105302784A (en) * 2014-07-16 2016-02-03 腾讯科技(深圳)有限公司 Method and system for copying/ cutting and pasting data
CN106201746A (en) * 2016-07-21 2016-12-07 东莞酷派软件技术有限公司 A kind of data editing method based on shear plate and device
CN107992458A (en) * 2016-10-26 2018-05-04 腾讯科技(北京)有限公司 The generation method and device of form rule
CN106776078A (en) * 2016-12-28 2017-05-31 北京金山安全软件有限公司 Clipboard content processing method and device and terminal equipment
CN107463451A (en) * 2017-07-26 2017-12-12 深圳天珑无线科技有限公司 One kind replicates method of attaching, mobile terminal and computer-readable recording medium
CN107992371A (en) * 2017-11-30 2018-05-04 努比亚技术有限公司 Replicate method of attaching, device and computer-readable recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244885A (en) * 2019-05-08 2019-09-17 北京百度网讯科技有限公司 Input method, device, equipment and storage medium
CN110275786A (en) * 2019-05-31 2019-09-24 联想(北京)有限公司 A kind of information processing method and device
CN113255304A (en) * 2021-06-30 2021-08-13 徐州众星显示科技有限公司 Data processing method and device and readable storage medium

Also Published As

Publication number Publication date
CN109445958B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN109445958B (en) Data editing method, electronic device and storage medium
JP6147825B2 (en) Electronic apparatus and method
TW201537435A (en) Intent-based user experience
US20140258214A1 (en) Information processing system, information registration method, and conference apparatus
JP6740651B2 (en) Information processing apparatus, system, information processing method, and program
CN106598409B (en) Text copying method and device and intelligent terminal
CN106412360A (en) Apparatus and method for applying settings, and computer-readable storage medium for computer program
US20210090137A1 (en) Reduced Bias Submission Review System
US20220019783A1 (en) Method for processing a note page of a notebook, computer device and storage medium
WO2024169761A1 (en) Document creation method and apparatus, and electronic device and storage medium
GB2577989A (en) Information processing method and electronic device
JP7336542B2 (en) ONLINE COLLABORATION DOCUMENT PROCESSING METHOD AND APPARATUS
US9189149B2 (en) Equivalent gesture and soft button configuration for touch screen enabled device
CN112269476A (en) Formula display method and device and electronic equipment
CN106850815A (en) A kind of Office document sending methods, terminal and system
US20220147693A1 (en) Systems and Methods for Generating Documents from Video Content
US11328120B2 (en) Importing text into a draft email
CN115526186A (en) Translation method, electronic device and readable storage medium
CN101963892A (en) Method and device for printing table data
CN111639474A (en) Document style reconstruction method and device and electronic equipment
CN111399722A (en) Mail signature generation method, device, terminal and storage medium
CN112578965A (en) Processing method and device and electronic equipment
CN107783952B (en) Document template setting method and device
JP6102886B2 (en) Data input device and program
CN108459713B (en) Page selection method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant