CN110543243A - Data processing method, device, equipment and storage medium - Google Patents
Data processing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110543243A CN110543243A CN201910838329.8A CN201910838329A CN110543243A CN 110543243 A CN110543243 A CN 110543243A CN 201910838329 A CN201910838329 A CN 201910838329A CN 110543243 A CN110543243 A CN 110543243A
- Authority
- CN
- China
- Prior art keywords
- parameter
- input
- preset
- data set
- position information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the disclosure discloses a data processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a first parameter input in a preset input frame at the current moment, and determining first position information corresponding to the first parameter; determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box insertion mode; the first position information and the first identification are used as element information and are sequentially stored in a first data set corresponding to the first parameter; and when an input ending instruction is detected, generating coded data corresponding to input contents formed by all parameters according to the data set corresponding to all parameters input in the preset input frame. According to the technical scheme of the embodiment of the disclosure, the keyboard input mode can be realized under the condition of solving the multi-identification conflict, so that the accuracy of coded data generation is ensured, and the user experience is improved.
Description
Technical Field
The embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a data processing method, apparatus, device, and storage medium.
background
With the rapid development of computer technology, more and more application functions are developed to meet the increasing demands of users. For example, data input by the user in the input box may be processed to generate required encoded data, so as to store the encoded data in the backend server.
generally, a plurality of input parameters with the same name but different types may exist in the input box at the same time, for example, an input parameter "beijing" in a "social security city" type and an input parameter "beijing" in an "employment city" type exist in the input box at the same time, and identifications corresponding to the same parameter are different in different types, so that the same parameter in the input box corresponds to a plurality of identifications, and there is a case of identification conflict, and further, encoded data cannot be accurately generated based on the identifications.
At present, the existing data processing method is as follows: the identification frame corresponding to each parameter is added in advance in the input interface, so that a user can click the identification frame corresponding to the required parameter through a mouse, the required parameter is inserted into the input frame, and input data is stored in a DOM (Document Object Model) tree mode in the click input process, so that the identification corresponding to each input parameter can be obtained, the problem of multi-identification conflict is solved, and encoded data can be accurately generated.
Therefore, although the problem of multi-identifier conflict is solved in the conventional data processing mode, the input can be performed only by clicking the identifier box with a mouse, the input cannot be performed randomly by using a keyboard, and the user experience is reduced.
disclosure of Invention
the embodiment of the disclosure provides a data processing method, a data processing device, a data processing apparatus and a storage medium, so as to implement a keyboard input mode under the condition of solving multiple identifier conflicts, thereby ensuring the generation accuracy of encoded data and improving user experience.
In a first aspect, an embodiment of the present disclosure provides a data processing method, where the method includes:
Acquiring a first parameter input in a preset input frame at the current moment, and determining first position information corresponding to the first parameter;
Determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box insertion mode;
taking the first position information and the first identifier as element information, and sequentially storing the element information and the first identifier into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameters in the preset input box;
and when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to the data set corresponding to the parameters input in the preset input frame.
in a second aspect, an embodiment of the present disclosure further provides a data processing apparatus, where the apparatus includes:
The first position information determining module is used for acquiring a first parameter input in a preset input box at the current moment and determining first position information corresponding to the first parameter;
the first identifier determining module is used for determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box inserting mode;
The element information storage module is used for sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameter, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameter in the preset input box;
and the coded data generating module is used for generating coded data corresponding to input contents formed by all the parameters according to the data set corresponding to all the parameters input in the preset input frame when an input ending instruction is detected.
In a third aspect, an embodiment of the present disclosure further provides an apparatus, where the apparatus includes:
One or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a data processing method as provided by any of the embodiments of the present disclosure.
in a fourth aspect, embodiments of the present disclosure also provide a storage medium containing computer-executable instructions for performing a data processing method as provided by any of the embodiments of the present disclosure when executed by a computer processor.
According to the technical scheme of the embodiment of the disclosure, the required parameters can be input in the preset input box in a keyboard input mode or a click identification box insertion mode, so that the keyboard input mode is realized, and the user experience is improved. And when the parameters are input, the position information and the identification of each input parameter need to be determined in real time, and the position information and the identification are sequentially stored into a data set corresponding to the parameters as element information. That is, if the first parameter is input in the preset identification frame at the current moment, the position information of the currently input first parameter is determined in real time, determining a first identifier corresponding to the first parameter according to a parameter input mode corresponding to the first parameter, sequentially storing the position information and the identifier of the first parameter as element information to corresponding positions in each data set corresponding to the first parameter, the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameter in the preset input box, so that the identification corresponding to each first parameter appearing in the preset input box can be determined based on the position information and the identification stored in the first data set, the problems that the identification conflicts are caused by corresponding a plurality of identifications to the same parameter, and the coded data cannot be accurately generated are solved, therefore, the technical effect of improving the user experience is achieved while the generation accuracy of the coded data is ensured.
Drawings
the above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flow chart of a data processing method according to a first embodiment of the disclosure;
Fig. 2 is a schematic flowchart of a data processing method according to a second embodiment of the disclosure;
fig. 3 is a schematic structural diagram of a data processing apparatus according to a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus provided in the fourth embodiment of the present disclosure.
Detailed Description
embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
it should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
it should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
example one
Fig. 1 is a flowchart illustrating a data processing method according to a first embodiment of the present disclosure, where the data processing method is applicable to a case where input content in a preset input box is processed to generate corresponding encoded data, and the method may be executed by a data processing apparatus, which may be implemented in a form of software and/or hardware and integrated in a device with an input function, such as a desktop computer, a notebook computer, and the like. As shown in fig. 1, the data processing method provided in the embodiment of the present disclosure specifically includes the following steps:
s110, a first parameter input in a preset input frame at the current moment is obtained, and first position information corresponding to the first parameter is determined.
The preset input box may be a preset area for editing information and displaying the edited information. The first parameter may refer to information input by a user in a preset input box at the current time. The first parameter may be, but is not limited to, information consisting of at least one of chinese characters, letters, numbers, and symbols. The first location information may refer to location information where the first parameter is located in the preset input box, and may include a parameter location start point and a parameter location end point corresponding to the first parameter. The parameter position starting point may refer to a position point where a first character in the first parameter is located; the parameter position end point refers to a position point where the last character in the first parameter is located. For example, the parameter position starting point corresponding to the first parameter may be represented as the position of the 1 st row and the 1 st column in the preset input box.
specifically, the user may input the required parameters in a preset input box by using a keyboard input mode or a click identification box insertion mode based on the user's own requirements. According to the embodiment of the disclosure, each parameter input by a user is obtained in real time in the process of inputting the parameter by the user, and the first position information corresponding to the first parameter input at the current moment is determined in real time.
Illustratively, S110 may include: acquiring a starting input position of a first parameter, and taking the starting input position as a parameter position starting point; and determining a parameter position end point corresponding to the first parameter according to the parameter position start point and the character length corresponding to the first parameter.
specifically, the embodiment of the present disclosure may acquire a mouse cursor position when the first parameter starts to be input, and determine the acquired mouse cursor position as a start input position corresponding to the first parameter, that is, a parameter position starting point of the first parameter. The character length of the input first parameter is obtained in real time, and the position obtained by adding the character length to the starting point of the parameter position is used as the end point of the parameter position corresponding to the first parameter, so that first position information corresponding to the first parameter degree can be obtained.
And S120, determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box insertion mode.
Each input parameter uniquely corresponds to one identification. The identification frame may be a clickable parameter identification that is preset outside the preset input frame based on a service requirement, and when the identification frame corresponding to a certain parameter is clicked, a parameter name corresponding to the identification frame may be input in the preset input frame, for example: if the mark box 'Beijing' under the type of 'social security city' is clicked, the parameter name 'Beijing' is input in the preset input box. It should be noted that, when the types of the parameters with the same name are different, the corresponding identifiers of the parameters are also different. Each parameter can be input in a keyboard input mode or a click identification box insertion mode, but when the same parameter is input in different parameter input modes, the corresponding identifications of the parameter are different.
specifically, the input modes of the parameters corresponding to the first parameter are different, and the mode of determining the first identifier corresponding to the first parameter is also different. When a first parameter is input, a first identifier corresponding to the first parameter needs to be determined in real time based on a parameter input mode.
exemplarily, S120 may include: when the parameter input mode corresponding to the first parameter is a keyboard input mode, directly determining the parameter name of the first parameter as a first identifier corresponding to the first parameter; and when the current input mode corresponding to the first parameter is a click identification frame insertion mode, determining a first identification corresponding to the currently clicked first parameter based on a preset mapping relation between each parameter and the identification.
Specifically, when the first parameter is input by using a keyboard input method, that is, when the parameter name corresponding to the first parameter is edited by using a keyboard, the currently input first parameter is indicated to be in a plain text format, and at this time, the parameter name of the first parameter may be directly used as the first identifier of the first parameter. When the first parameter is input by using the insertion manner of the clicked identifier frame, that is, when the parameter name corresponding to the first parameter is input by clicking the preset identifier frame corresponding to the first parameter, it indicates that the currently input first parameter is in the preset type, and at this time, the first identifier corresponding to the currently clicked first parameter may be determined based on the mapping relationship between each parameter and the identifier in the type corresponding to the currently clicked preset identifier frame. It should be noted that, when the parameter input mode of the first parameter is the click identification box insertion mode, the determined first identification may be composed of at least one of numbers, letters and symbols. Exemplarily, when the "beijing" identifier box in the "social security city" type is clicked, the first identifier corresponding to the "beijing" in the "social security city" type may be determined according to the correspondence between each parameter and the identifier in the "social security city" type, for example, the first identifier corresponding to the "beijing" is: 10-11.
And S130, taking the first position information and the first identifier as element information, and sequentially storing the element information and the first identifier into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameters appearing in the preset input box.
the data set may be used to store the location information and the identifier corresponding to the parameter input in the preset input box. Parameters with the same name correspond to the same data set. The first data set corresponding to the first parameter refers to a data set corresponding to a parameter name of the first parameter. The number of elements included in the first data set is equal to the number of times of the first parameter appearing in the preset input box in real time, for example, when the first parameter is input again in the preset input box, the number of elements included in the first data set is increased by 1. Each element position in the first data set stores element information consisting of first position information and a first identifier corresponding to a corresponding first parameter. The sequential storage may refer to that the first position information of the first parameter stored in each element position in the first data set is sequentially arranged from small to large, so that the element arrangement order is consistent with the appearance order of the first parameter in the preset input box.
Specifically, when the first position information and the first identifier corresponding to the currently input first parameter are determined, the first position information and the first identifier may be sequentially stored to the corresponding positions in the first data set as one element information in real time, so that the element arrangement order corresponding to each first parameter in the stored first data set is consistent with the appearance order of the first parameter in the preset input frame. It should be noted that, the user may input the first parameter at any position in the preset input box, which is not limited to the sequential input mode, so that the convenience of input is greatly improved, and the input efficiency is improved. According to the embodiment of the disclosure, the first position information corresponding to the input first parameters is stored and input in real time in sequence by using the first data set, so that when a plurality of first parameters with the same name exist in the preset input box, each input first parameter can be respectively positioned based on the first position information, positioning based on the identifier is not needed, the conflict problem of multiple identifiers can be solved, and a manual input mode is realized.
illustratively, S130 may include: if the first data set corresponding to the first parameter does not exist, creating the first data set, and storing the first position information and the first identifier as element information to the created first data set; if the first data set corresponding to the first parameter exists, determining a first element position corresponding to the first position information according to the existing position information and the first position information in each existing element in the first data set, and storing the first position information and the first identifier as one element information to the first element position in the first data set.
specifically, when the currently input first parameter is acquired, the parameter name of the first parameter may be matched with the set name of each created data set, so as to detect whether the first data set corresponding to the first parameter has been created in real time, so as to store the first parameters with the same name in the same first data set. If the parameter name of the first parameter fails to match the set name of any one data set, it indicates that the first data set corresponding to the first parameter has not been created currently, that is, the first parameter is first input in the preset input box, and at this time, an empty first data set needs to be created, and the first position information and the first identifier are stored to the first element position in the first data set. If the parameter name of the first parameter is successfully matched with the set name of a certain data set, it is indicated that the data set is the first data set, that is, the first data set is created, at this time, existing position information stored at each element position in the first data set may be compared with first position information corresponding to the currently input first parameter, a first element position corresponding to the first position information when the first data set is sequentially arranged is determined, and the first position information and the first identifier are stored to the first element position, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameter appearing in the preset input box.
Exemplarily, assuming that two "beijing" are input in the preset input box, for convenience of distinction, the two "beijing" are referred to as "beijing 1" and "beijing 2", and "beijing 1" is located in front of "beijing 2", that is, "beijing 1" appears first and "beijing 2" appears later in the preset input box, at this time, if a third "beijing" is input at a certain position between "beijing 1" and "beijing 2", that is, referred to as "beijing 3", in a first data set corresponding to a first parameter "beijing", an element position is added between elements corresponding to "beijing" 1 and "beijing 2", and the element position is determined as a first element position for storing element information corresponding to "beijing 3", so that the first data set includes three element information, which are sequentially element information corresponding to "beijing 3" and element information corresponding to "beijing 2",beijing 2 ", thereby implementing sequential storage.
it should be noted that, the embodiment of the present disclosure may determine and store the position information and the identifier corresponding to each parameter input in the preset input box in real time; the position information and the identification corresponding to each parameter in the preset mode input in the preset input box can be determined and stored in real time, so that the storage space is saved, and the processing efficiency is further improved. The preset mode may refer to a mode corresponding to a parameter having the same parameter name but different corresponding identifiers. The non-preset mode may refer to a mode corresponding to a parameter having the same parameter name but the same corresponding identifier, for example, when the first parameter is a logical operator "and", and the identifier corresponding to the logical operator is a unique identifier each time the logical operator is input, so that there is no conflict between multiple identifiers, that is, it is not necessary to determine and store the location information and the identifier corresponding to the logical operator. The embodiment of the disclosure may match a currently input first parameter with a preset parameter in a non-preset mode, and if the matching fails, it indicates that the first parameter is a parameter in the preset mode, and at this time, the operations of S110 to S130 may be continuously performed; if the matching is successful, it indicates that the first parameter is a parameter in a non-preset mode, and at this time, the operations of S110-S130 do not need to be executed, and the process continues to wait until the parameter in the preset mode is input. It should be noted that, for a parameter in the non-preset mode, the parameter may be directly input into the preset input box by using a keyboard input method, and it is not necessary to search the identification boxes corresponding to the parameter from a plurality of identification boxes in the input interface, so as to perform input by using a click identification box insertion method, thereby further improving the input efficiency and the user experience.
And S140, when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to the data set corresponding to the parameters input in the preset input frame.
the encoded data may refer to data generated by performing identification encoding on input content in a preset input box, so as to store the generated encoded data in the background server. For example, a user may input each parameter required by a certain formula in a preset input box, and encode the input each parameter to generate encoded data corresponding to the formula.
Specifically, when a user edits required input content in a preset input box based on business requirements, an input ending instruction can be generated by clicking a preset button, when the input ending instruction is detected, the user input is ended, and at this time, the input content in the input box can be encoded based on each created data parameter, so that corresponding encoded data can be accurately generated. It should be noted that the operations of S110 to S140 in the embodiment of the present disclosure may be performed in the web page side to implement online data processing, and the web page side may send the generated encoded data to the background data server for storage.
for example, the step S140 of generating the encoded data corresponding to the input content formed by the parameters according to the data set corresponding to the parameters input in the preset input box may include: determining an identifier corresponding to each parameter in the preset input frame according to the data set corresponding to each parameter input in the preset input frame; and replacing each parameter input in the preset input frame with a corresponding identifier to generate coded data corresponding to input content consisting of each parameter.
Specifically, the parameters at the corresponding positions in the preset input frame can be replaced by the corresponding identifiers according to the position information and the identifiers stored at the positions of each element in each created data set, so that the parameters can be replaced one by one, and the encoded data can be accurately generated. The embodiment of the disclosure may also sequentially replace the identifier stored in each element position in the data set directly based on the sequence of each parameter appearing in the preset input box, for example, if three "beijing" marks appear in the preset input box in sequence, the three "beijing" marks sequentially stored in the data set corresponding to the "beijing" are sequentially replaced one by one, and the replacement may not be needed for the case where the identifier is still "beijing", so as to further improve the data processing efficiency.
Illustratively, if the input content in the preset input box is a formula for calculating employee compensation, the formula is: ROUND (IF (AND (inner award-system |) 0, inner award-system <22)), working province ═ individual), (basic payroll standard/payroll day/working hours to attendance) × MIN (payroll day to attendance, working days to attendance/working hours to practice-inner award-system-working patch to meal compensation amount), IF (employee type [ employee type ] practice, (basic payroll standard/21.75) working days to attendance/working hours, IF (nationality | [ ] china continental, MIN (((basic payroll standard-foreign employee duty free reimbursement)/working days to attendance/working hours to practice), basic payroll standard), MIN (basic payroll standard/working hours to attendance/working hours to practice), basic payroll standard))), 2)
after the input content is processed based on each created data set, the generated coded data is: "$ {4-4}", "(", "$ {4-14}", "(", "$ {4-15}", "," $ {4-15} "," ",", "# {1}", "|", "# {0}", ",", "# {2}", "", "# {22}", "", "") ",", "", "," $ {3-40542} ",", "," - ",", "", "$ {3-40601},", ",", "," "," "," ",", "", "," - "," - ",", "-", ", "# {3}", "," $ {4-14} ",", "," "," $ {3-40548} ","/"," # {21.75} "," "," $ {3-40602} ",", "$ {4-14}", ",", "," $ {3-40526} "," "," $ {11-1} ",", "$ {4-19}", ",", "", ",", "$ {3-40548}", "," "," "$ {3-40661}", ",", "", "," ",", "", ", ")", "," $ {4-19} "," ("," $ {3-40548} ","/"," $ {3-40602} ",", "$ {3-40548}", ")", ")", ")", ")", ",", "# {2}", ")" ]
the package is an identifier corresponding to a parameter input by clicking an identifier box in an inserting mode, or an identifier corresponding to a parameter with the same name and only one unique identifier, for example, a unique identifier 4-4 corresponding to a ROUND rounding function; the package is wrapped by the numbers input by a keyboard input mode or a click identification box insertion mode; the package is the mark corresponding to the parameter input by the keyboard input mode, i.e. plain text.
It should be noted that, if only the data set corresponding to each parameter in the preset mode is created, the identifier corresponding to each input parameter may be determined according to the correspondence between each parameter and the identifier in the non-preset mode and each created data set, so as to implement identifier replacement and further improve the encoding processing efficiency.
According to the technical scheme of the embodiment of the disclosure, the required parameters can be input in the preset input box in a keyboard input mode or a click identification box insertion mode, so that the keyboard input mode is realized, and the user experience is improved. And when the parameters are input, the position information and the identification of each input parameter need to be determined in real time, and the position information and the identification are sequentially stored into a data set corresponding to the parameters as element information. That is, if the first parameter is input in the preset identification frame at the current moment, the position information of the currently input first parameter is determined in real time, determining a first identifier corresponding to the first parameter according to a parameter input mode corresponding to the first parameter, sequentially storing the position information and the identifier of the first parameter as element information to corresponding positions in each data set corresponding to the first parameter, the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameter in the preset input box, so that the identification corresponding to each first parameter appearing in the preset input box can be determined based on the position information and the identification stored in the first data set, the problems that the identification conflicts are caused by corresponding a plurality of identifications to the same parameter, and the coded data cannot be accurately generated are solved, therefore, the technical effect of improving the user experience is achieved while the generation accuracy of the coded data is ensured.
on the basis of the above technical solution, before S140, the method may further include: when detecting that the parameters in the preset input frame are deleted, determining second position information corresponding to the currently deleted second parameters; and determining a second element position where the second position information is located in a second data set corresponding to the second parameter, and deleting element information stored in the second element position to update the second data set.
The second parameter may be a parameter deleted by the user in the preset input box at the current time. The second position information includes a parameter position start point and a parameter position end point corresponding to the second parameter.
Specifically, the user may input a parameter at any position in the preset input box, or may delete any input parameter in real time by a keyboard deletion mode. When a user deletes a parameter in a preset input frame by using a deletion key in a keyboard, the deletion operation can be detected, the position of a mouse cursor at the current deletion is obtained as the parameter position end point of a second parameter, and the result obtained by subtracting the character length of the deleted second parameter from the parameter position end point is used as the parameter position start point of the second parameter, so that second position information corresponding to the second parameter is determined. And matching each piece of position information stored in a second data set corresponding to the second parameter with the second position information, and determining the element position where the successfully matched position information is located as a second element position. When the second parameter is deleted, the element information stored in the second element position in the second data set is also deleted at the same time, so that the second data set is always consistent with the content in the preset input box, subsequent encoding processing is conveniently and accurately performed, the situation that data can only be input again when part of data needs to be deleted in the prior art is avoided, the parameters in the preset input box are randomly deleted without being input again, the input content is convenient to delete and modify, and the processing efficiency and the user experience are further improved.
On the basis of the above technical solution, before S140, the method may further include: detecting whether a third parameter with a changed position exists when the first parameter is input in a preset input frame; if so, determining third position information of the third parameter before position change and fourth position information after position change; and determining a third element position where the third position information is located in a third data set corresponding to the third parameter, and updating the third position information stored in the third element position to fourth position information.
the third parameter may refer to another parameter, where a position of the parameter in the preset input box changes when the first parameter is input or the second parameter is deleted. For example, when a new parameter C is input between two parameters a and B located on the same row, the position of the parameter B changes, i.e., the parameter B is the third parameter. The number of the third parameters in the embodiments of the present disclosure may be one or more.
Specifically, when a first parameter is input or a second parameter is deleted, the embodiment of the present disclosure may compare in real time whether a position of each parameter after the input operation or after the deletion operation changes, if yes, for each changed third parameter, according to a character length of the first parameter or the second parameter and a third position information of the third parameter before the position change, determine a fourth position information after the position change, for example, for the insertion operation, it indicates that a position of the third parameter is moved backward by a character length of the first parameter, at this time, the third position information before the position change may be added to the character length, so as to obtain a fourth position information after the position change. For the deletion operation, it is indicated that the position of the third parameter is moved forward by the character length of the first parameter, and at this time, the third position information before the position change may be subtracted from the character length to obtain the fourth position information after the position change. And matching the third position information corresponding to the third parameter with each position information in a third data set corresponding to the third parameter, determining the element position where the position information successfully matched is located as a third element position, and updating the third position information stored in the third element position into fourth position information so as to realize real-time updating of the third data set and ensure the accuracy of the generation of subsequent coded data.
On the basis of the above technical solution, when the first parameter is input in the preset input box, the method further includes: when the parameter input mode corresponding to the first parameter is a keyboard input mode, displaying the first parameter in a first display mode in a preset input frame; and when the parameter input mode corresponding to the first parameter is a click identification box insertion mode, displaying the first parameter in a second display mode in the preset input box.
the first display mode and the second display mode are two different display modes, for example, the difference may include at least one of different display colors, different display sizes, different display fonts, and whether to highlight. Illustratively, the first display mode is highlight display; the second display mode is non-highlighted display.
Specifically, when the first parameter is input in the preset input box, the input first parameter can be displayed in different display modes based on different parameter input modes, so that the user can distinguish the first parameter more intuitively and clearly, and the watching experience of the user is further improved.
Example two
Fig. 2 is a flowchart illustrating a data processing method according to a second embodiment of the present disclosure, where on the basis of the second embodiment of the present disclosure, a detailed description is given to a manner of copying input contents in a preset input box, and on this basis, a detailed description is also given to a manner of pasting copied contents. Wherein explanations of the same or corresponding terms as those of the above-described embodiments are omitted.
referring to fig. 2, the data processing method provided in the embodiment of the present disclosure specifically includes the following steps:
S210, a first parameter input in a preset input box at the current moment is obtained, and first position information corresponding to the first parameter is determined.
S220, determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box insertion mode.
and S230, taking the first position information and the first identifier as element information, and sequentially storing the element information and the first identifier into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameters appearing in the preset input box.
S240, if the fact that the copying operation is carried out on at least one fourth parameter in the preset input frame is detected, determining fifth position information corresponding to each fourth parameter.
The fourth parameter may refer to any parameter that has been input in the preset input box. The fifth position information may include a parameter position start point and a parameter position end point corresponding to the fourth parameter.
specifically, if the user wants to copy or re-input one or more parameters already input in the preset input box, the user does not need to re-input the parameters, and only needs to copy the parameters. For example, the user may perform a selection operation on one or more fourth parameters that need to be copied in the preset input box, and perform a preset copy operation, such as Ctrl + C operation. When the copy operation is detected, the fifth position information corresponding to each copied fourth parameter may be determined according to the copy position, for example, when there is one fourth parameter, the position of the mouse cursor at the time of the start of the copy is obtained as the starting point of the parameter position of the fourth parameter, and a result obtained by adding the character length of the fourth parameter to the starting point of the parameter position is used as the ending point of the parameter position of the fourth parameter, so as to determine the fifth position information corresponding to the fourth parameter. When a plurality of fourth parameters exist, the position of the mouse cursor at the beginning of copying can be used as the starting point of the parameter position of the first fourth parameter, and the result obtained by adding the character length of the first fourth parameter to the starting point of the parameter position is used as the end point of the parameter position of the first fourth parameter, so that fifth position information corresponding to the first fourth parameter is determined; and taking the next character position of the parameter position end point of the first fourth parameter as the parameter position starting point of the second fourth parameter, and taking the result obtained by adding the character length of the second fourth parameter to the parameter position starting point as the parameter position end point of the second fourth parameter, so as to obtain fifth position information corresponding to the second fourth parameter, and further sequentially determining the fifth position information corresponding to each fourth parameter.
And S250, determining a fourth element position where each fifth position information is located in a fourth parameter set corresponding to each fourth parameter, and determining prefix information corresponding to the fourth parameter according to element information stored in the fourth element position.
The prefix information may refer to information identifying each parameter. The prefix information may refer to an identifier corresponding to the parameter, or may be a unique identifier clearly reflecting other self-defined meanings, for example, the prefix information corresponding to the "work city" is: an item; the prefix information corresponding to the Beijing is as follows: a city. For example, the prefix information corresponding to the parameter identified as the parameter name may be null information, so that the prefix information is directly characterized by the parameter name.
specifically, when the parameter identifier is directly used as the prefix information, the identifier corresponding to each fourth parameter may be directly determined according to each created data set and the fifth location information corresponding to each fourth parameter, and the identifier is determined as the corresponding prefix information, so as to improve the processing efficiency. When the meaning information is used as the prefix information, when the position information and the identifier are stored in the data set, the prefix information corresponding to the parameter can be stored in the data set at the same time, so that when the copying is performed, the prefix information corresponding to each fourth parameter can be determined based on each data set, so that a user can know the meaning of each copied parameter more clearly.
and S260, adding corresponding prefix information at the front end position of each fourth parameter, and taking the fourth parameter carrying the prefix information as the copied fourth parameter.
The front position of the fourth parameter may refer to a position corresponding to a previous character of the fourth parameter.
specifically, the corresponding prefix information is added in a preset format at the front position of each fourth parameter. For example: the format of the copied fourth parameter is: prefix information fourth parameter.
Illustratively, assume that the copied content is: IF (work city, beijing, 1000,2000), determining that the prefix information corresponding to the "work city" is: "item"; the prefix information corresponding to the Beijing is as follows: "city", the prefix information corresponding to the remaining fourth parameters is null information, and the copied content is: IF ([ project ] work city ═ city ] beijing, 1000,2000). If the user pastes the content into other text boxes, the obtained content is still: IF ([ item ] work city [ city ] beijing, 1000,2000) so that the user can more clearly understand the meaning of each parameter based on such prefix information having meaning, meeting the personalized demand.
and S270, if the pasting operation of at least one fourth parameter in the preset input box is detected, acquiring prefix information corresponding to each fourth parameter.
Specifically, if the user wants to input each copied fourth parameter in the preset input box, a paste operation, such as Ctrl + V operation, may be performed on each copied fourth parameter at the input position. When the paste operation is detected, the corresponding prefix information may be acquired from the front end position of each fourth parameter.
And S280, determining a fourth identifier corresponding to each fourth parameter according to each prefix information, and determining sixth position information corresponding to each pasted fourth parameter.
Specifically, the fourth identifier corresponding to each fourth parameter may be determined according to a preset correspondence between each prefix information and identifier and the prefix information corresponding to each fourth parameter. And determining sixth position information corresponding to each pasted fourth parameter according to the pasting position, for example, when one fourth parameter exists, obtaining the position of a mouse cursor at the beginning of pasting as the parameter position starting point of the fourth parameter, and taking the result obtained by adding the character length of the fourth parameter to the parameter position starting point as the parameter position end point of the fourth parameter, thereby determining the sixth position information corresponding to the fourth parameter. When a plurality of fourth parameters exist, the position of the mouse cursor at the beginning of pasting can be used as the starting point of the parameter position of the first fourth parameter, and the result obtained by adding the character length of the first fourth parameter to the starting point of the parameter position is used as the end point of the parameter position of the first fourth parameter, so that the sixth position information corresponding to the first fourth parameter is determined; and taking the next character position of the parameter position end point of the first fourth parameter as the parameter position starting point of the second sixth parameter, and taking the result obtained by adding the character length of the second fourth parameter to the parameter position starting point as the parameter position end point of the second fourth parameter, so as to obtain sixth position information corresponding to the second fourth parameter, and further sequentially determining the sixth position information corresponding to each fourth parameter.
For example, the embodiment of the present disclosure may determine the position information and the identifier corresponding to each fourth parameter in the paste content; or determining the fourth parameter in the paste content in the preset mode, and determining and storing only the position information and the identifier corresponding to the fourth parameter in the preset mode, so as to save the storage space.
And S290, sequentially storing the fourth identifier and the sixth position information as element information into a fourth data set corresponding to the fourth parameter.
Specifically, the fourth identifier and the sixth location information corresponding to each fourth parameter are stored based on the same sequential storage manner. For each fourth parameter, an element position where sixth position information corresponding to the fourth parameter is located may be determined in a fourth data set corresponding to the fourth parameter, and a fourth identifier and the sixth position information corresponding to the fourth parameter are stored at the element position, so that an element arrangement order of each fourth parameter stored in the fourth data set is consistent with a sequence order appearing in the preset input box.
It should be noted that, when the pasting operation is detected, the prefix information corresponding to each copied fourth parameter may be deleted, and the fourth parameter after the prefix information is deleted is automatically input to the pasting position in the preset input box, so as to implement the parameter pasting operation, solve the problem that the copying and pasting cannot be performed in the prior art, make the user input more convenient, and further improve the input efficiency. Illustratively, if the copied content is: IF ([ item ] work city ═ city ] beijing, 1000,2000), the paste content pasted to the preset input box is: IF (work city, beijing, 1000,2000) to ensure consistency of copied content and pasted content.
and S291, when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to the data set corresponding to the parameters input in the preset input frame.
According to the technical scheme of the embodiment of the disclosure, the corresponding prefix information is added at the front end position of each fourth parameter to be copied, and the identifier corresponding to each pasted fourth parameter is determined according to the prefix information, so that the copying and pasting functions of the parameters can be realized, the problem that the copying and pasting cannot be performed in the prior art is solved, the user input is more convenient, and the input efficiency and the data processing efficiency are further improved.
on the basis of the above technical solution, the method may further include: if the formatting instruction is detected, replacing each fifth parameter in the preset input frame with a sixth parameter based on a preset replacement rule, acquiring data to be formatted, and storing the corresponding relation between the fifth parameter and the sixth parameter; formatting data to be formatted to obtain first target data in a preset data format; and replacing each sixth parameter in the first target data with a corresponding fifth parameter based on the corresponding relation, obtaining second target data in a preset data format, and displaying the second target data in a preset input frame.
The preset replacement rule can be determined based on a preset formatting script, so that the formatting script can be used for formatting the data to be formatted. Illustratively, the preset replacement rule may be: when the fifth parameter is a Chinese character or a letter, the fifth parameter may be replaced by: WORD; when the fifth parameter is a number, the fifth parameter can be replaced without the need of replacing the fifth parameter; when the fifth parameter is a DATE, the fifth parameter may be replaced with DATE.
specifically, since the name of each parameter in the preset input box has diversity, the existing formatting script cannot be directly used, and therefore, each fifth parameter in the preset input box needs to be replaced according to the preset replacement rule so as to be adapted. If the user wants to format the input content in the preset input box, the user can click a preset formatting button to generate a formatting instruction. When a formatting command is detected, each fifth parameter can be replaced by a corresponding sixth parameter based on a preset replacement rule, so that adaptive data to be formatted are obtained, and the corresponding relation between each fifth parameter and the corresponding sixth parameter is sequentially stored, so that the accuracy of restoration after formatting is ensured. And formatting the data to be formatted by using the existing formatting script to generate first target data in a preset data format. For example, the data to be formatted may be such that all parameters are written in the same row. The formatted first target data may be that all parameters are displayed dispersedly based on the preset data format, so that the user can more conveniently view and read, for example, ROUND single line. After formatting, each sixth parameter in the first target data needs to be restored to a corresponding fifth parameter based on the stored corresponding relationship, so as to obtain second target data, and thus the second target data can be displayed in a preset input frame in a preset data format, thereby realizing a formatting function and improving readability of the data.
EXAMPLE III
Fig. 3 is a data processing apparatus according to a third embodiment of the present disclosure, where the apparatus includes: a first location information determining module 310, a first identity determining module 320, an element information storing module 330, and an encoded data generating module 340.
the first position information determining module 310 is configured to obtain a first parameter input in a preset input box at a current moment, and determine first position information corresponding to the first parameter; the first identifier determining module 320 is configured to determine a first identifier corresponding to a first parameter based on a parameter input mode corresponding to the first parameter, where the parameter input mode is a keyboard input mode or a click identifier box insertion mode; the element information storage module 330 is configured to store the first position information and the first identifier as element information in a first data set corresponding to the first parameter in sequence, so that an element arrangement sequence corresponding to each first parameter in the first data set is consistent with a sequence of the first parameter appearing in the preset input box; the encoded data generating module 340 is configured to, when an input end instruction is detected, generate encoded data corresponding to input content formed by each parameter according to a data set corresponding to each parameter input in a preset input box.
optionally, the first location information includes a parameter location starting point and a parameter location ending point corresponding to the first parameter;
accordingly, the first location information determining module 310 is specifically configured to: acquiring a starting input position of a first parameter, and taking the starting input position as a parameter position starting point; and determining a parameter position end point corresponding to the first parameter according to the parameter position start point and the character length corresponding to the first parameter.
Optionally, the first identifier determining module 320 is specifically configured to: when the parameter input mode corresponding to the first parameter is a keyboard input mode, directly determining the parameter name of the first parameter as a first identifier corresponding to the first parameter; and when the current input mode corresponding to the first parameter is a click identification frame insertion mode, determining a first identification corresponding to the currently clicked first parameter based on a preset mapping relation between each parameter and the identification.
optionally, the element information storage module 330 is specifically configured to:
if the first data set corresponding to the first parameter does not exist, creating the first data set, and storing the first position information and the first identifier as element information to the created first data set; if the first data set corresponding to the first parameter exists, determining a first element position corresponding to the first position information according to the existing position information and the first position information in each existing element in the first data set, and storing the first position information and the first identifier as one element information to the first element position in the first data set.
optionally, the encoded data generating module 340 is specifically configured to:
determining an identifier corresponding to each parameter in the preset input frame according to the data set corresponding to each parameter input in the preset input frame; and replacing each parameter input in the preset input frame with a corresponding identifier to generate coded data corresponding to input content consisting of each parameter.
optionally, the apparatus further comprises:
The deleting processing module is used for determining second position information corresponding to a currently deleted second parameter when detecting that the deleting operation is performed on the parameter in the preset input frame before detecting that the input ending instruction is input; and determining a second element position where the second position information is located in a second data set corresponding to the second parameter, and deleting element information stored in the second element position to update the second data set.
Optionally, the apparatus further comprises:
the position updating module is used for detecting whether a third parameter with a changed position exists when the first parameter is input in the preset input frame before the input ending instruction is detected;
If so, determining third position information of the third parameter before position change and fourth position information after position change;
And determining a third element position where the third position information is located in a third data set corresponding to the third parameter, and updating the third position information stored in the third element position to fourth position information.
Optionally, the apparatus further comprises:
The display module is used for displaying the first parameter in a first display mode in the preset input frame when the first parameter is input in the preset input frame and the parameter input mode corresponding to the first parameter is a keyboard input mode; and when the parameter input mode corresponding to the first parameter is a click identification box insertion mode, displaying the first parameter in a second display mode in the preset input box.
Optionally, the apparatus further comprises:
the copying processing module is used for determining fifth position information corresponding to each fourth parameter if the copying operation of at least one fourth parameter in the preset input frame is detected; determining a fourth element position where each fifth position information is located in a fourth parameter set corresponding to each fourth parameter, and determining prefix information corresponding to the fourth parameter according to element information stored in the fourth element position; and adding corresponding prefix information at the front position of each fourth parameter, and taking the fourth parameter carrying the prefix information as the copied fourth parameter.
Optionally, the apparatus further comprises:
The copying processing module is used for acquiring prefix information corresponding to each fourth parameter if the fact that pasting operation is carried out on at least one fourth parameter in the preset input frame is detected; according to each prefix information, determining a fourth identification corresponding to each fourth parameter, and determining sixth position information corresponding to each pasted fourth parameter; and taking the fourth identification and the sixth position information as element information, and sequentially storing the element information into a fourth data set corresponding to the fourth parameter.
optionally, the apparatus further comprises:
the data formatting module is used for replacing each fifth parameter in the preset input frame with a sixth parameter based on a preset replacement rule if a formatting instruction is detected, acquiring data to be formatted, and storing a corresponding relation between the fifth parameter and the sixth parameter; formatting data to be formatted to obtain first target data in a preset data format; and replacing each sixth parameter in the first target data with a corresponding fifth parameter based on the corresponding relation, obtaining second target data in a preset data format, and displaying the second target data in a preset input frame.
The data processing device provided by the embodiment of the disclosure can execute the data processing method provided by any embodiment of the disclosure, and has the corresponding functional module and the beneficial effect of executing the data processing method.
it should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present disclosure. The devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The device shown in fig. 4 is only an example and should not bring any limitation to the function and use range of the embodiments of the present disclosure.
as shown in fig. 4, device 400 may include a processing means (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read-Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the device 400 to communicate with other devices, either wirelessly or by wire, to exchange data. While fig. 4 illustrates an apparatus 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
the device proposed by the embodiment of the present disclosure and the data processing method proposed by the above embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment of the present disclosure may be referred to the above embodiment, and the embodiment of the present disclosure has the same beneficial effects as the data processing method.
EXAMPLE five
The disclosed embodiments provide a computer storage medium on which a computer program is stored, which when executed by a processor implements the data processing method provided by the above-described embodiments.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the apparatus; or may be separate and not incorporated into the device.
the computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to:
Acquiring a first parameter input in a preset input frame at the current moment, and determining first position information corresponding to the first parameter; determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box insertion mode; taking the first position information and the first identifier as element information, and sequentially storing the element information and the first identifier into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameters in the preset input box; and when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to the data set corresponding to the parameters input in the preset input frame.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
the units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a cell does not in some cases constitute a limitation on the cell itself, for example, an editable content display cell may also be described as an "editing cell".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
in the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
according to one or more embodiments of the present disclosure, [ example one ] there is provided a data processing method, the method comprising:
acquiring a first parameter input in a preset input frame at the current moment, and determining first position information corresponding to the first parameter;
Determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box insertion mode;
Taking the first position information and the first identifier as element information, and sequentially storing the element information and the first identifier into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameters in the preset input box;
And when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to the data set corresponding to the parameters input in the preset input frame.
According to one or more embodiments of the present disclosure, [ example two ] there is provided a data processing method, further comprising:
optionally, the first location information includes a parameter location starting point and a parameter location ending point corresponding to the first parameter;
Correspondingly, determining the first position information corresponding to the first parameter includes:
Acquiring a starting input position of the first parameter, and taking the starting input position as a starting point of the parameter position;
and determining a parameter position end point corresponding to the first parameter according to the parameter position start point and the character length corresponding to the first parameter.
according to one or more embodiments of the present disclosure, [ example three ] there is provided a data processing method, further comprising:
Optionally, determining the first identifier corresponding to the first parameter based on the parameter input mode corresponding to the first parameter includes:
When the parameter input mode corresponding to the first parameter is a keyboard input mode, directly determining the parameter name of the first parameter as a first identifier corresponding to the first parameter;
and when the current input mode corresponding to the first parameter is a click identification frame insertion mode, determining a first identification corresponding to the currently clicked first parameter based on a preset mapping relation between each parameter and the identification.
According to one or more embodiments of the present disclosure, [ example four ] there is provided a data processing method, further comprising:
Optionally, the step of sequentially storing the first position information and the first identifier as one piece of element information into a first data set corresponding to the first parameter, so that an element arrangement order corresponding to each first parameter in the first data set is consistent with a sequence of appearance of the first parameter in the preset input box, includes:
If the first data set corresponding to the first parameter does not exist, creating the first data set, and storing the first position information and the first identifier as element information to the created first data set;
if the first data set corresponding to the first parameter exists, determining a first element position corresponding to the first position information according to the existing position information and the first position information in each existing element in the first data set, and storing the first position information and the first identifier as one element information to the first element position in the first data set.
According to one or more embodiments of the present disclosure, [ example five ] there is provided a data processing method, further comprising:
optionally, generating, according to the data set corresponding to each parameter input in the preset input box, encoded data corresponding to input content formed by each parameter, including:
Determining an identifier corresponding to each parameter in the preset input frame according to the data set corresponding to each parameter input in the preset input frame;
And replacing each parameter input in the preset input frame with a corresponding identifier to generate coded data corresponding to the input content formed by each parameter.
According to one or more embodiments of the present disclosure, [ example six ] there is provided a data processing method, further comprising:
optionally, before detecting that the instruction is ended, the method further includes:
when detecting that the parameters in the preset input frame are deleted, determining second position information corresponding to the currently deleted second parameters;
And determining a second element position where the second position information is located in a second data set corresponding to the second parameter, and deleting element information stored in the second element position to update the second data set.
According to one or more embodiments of the present disclosure, [ example seven ] there is provided a data processing method, further comprising:
Optionally, before detecting that the instruction is ended, the method further includes:
Detecting whether a third parameter with a changed position exists when the first parameter is input in a preset input frame;
If so, determining third position information of the third parameter before position change and fourth position information after position change;
And determining a third element position where the third position information is located in a third data set corresponding to the third parameter, and updating the third position information stored in the third element position to fourth position information.
according to one or more embodiments of the present disclosure, [ example eight ] there is provided a data processing method, further comprising:
Optionally, when the first parameter is input in the preset input box, the method further includes:
When the parameter input mode corresponding to the first parameter is a keyboard input mode, displaying the first parameter in a first display mode in the preset input frame;
and when the parameter input mode corresponding to the first parameter is a click identification box insertion mode, displaying the first parameter in a second display mode in the preset input box.
According to one or more embodiments of the present disclosure, [ example nine ] there is provided a data processing method, further comprising:
optionally, the method further includes:
if the fact that the copying operation of at least one fourth parameter in the preset input frame is detected, determining fifth position information corresponding to each fourth parameter;
Determining a fourth element position where each fifth position information is located in a fourth parameter set corresponding to each fourth parameter, and determining prefix information corresponding to the fourth parameter according to element information stored in the fourth element position;
And adding corresponding prefix information at the front position of each fourth parameter, and taking the fourth parameter carrying the prefix information as the copied fourth parameter.
According to one or more embodiments of the present disclosure, [ example ten ] there is provided a data processing method, further comprising:
Optionally, the method further includes:
If the fact that pasting operation is carried out on at least one fourth parameter in a preset input frame is detected, prefix information corresponding to each fourth parameter is obtained;
According to each prefix information, determining a fourth identifier corresponding to each fourth parameter, and determining sixth position information corresponding to each pasted fourth parameter;
And sequentially storing the fourth identifier and the sixth position information as element information into a fourth data set corresponding to the fourth parameter.
according to one or more embodiments of the present disclosure, [ example eleven ] there is provided a data processing method, further comprising:
Optionally, the method further includes:
If a formatting instruction is detected, replacing each fifth parameter in a preset input frame with a sixth parameter based on a preset replacement rule, obtaining data to be formatted, and storing a corresponding relation between the fifth parameter and the sixth parameter;
Formatting the data to be formatted to obtain first target data in a preset data format;
And replacing each sixth parameter in the first target data with a corresponding fifth parameter based on the corresponding relationship, obtaining second target data in the preset data format, and displaying the second target data in the preset input box.
according to one or more embodiments of the present disclosure, [ example twelve ] there is provided a data processing apparatus comprising:
The first position information determining module is used for acquiring a first parameter input in a preset input box at the current moment and determining first position information corresponding to the first parameter;
The first identifier determining module is used for determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box inserting mode;
The element information storage module is used for sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameter, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameter in the preset input box;
and the coded data generating module is used for generating coded data corresponding to input contents formed by all the parameters according to the data set corresponding to all the parameters input in the preset input frame when an input ending instruction is detected.
the foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims (14)
1. a data processing method, comprising:
Acquiring a first parameter input in a preset input frame at the current moment, and determining first position information corresponding to the first parameter;
determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box insertion mode;
Taking the first position information and the first identifier as element information, and sequentially storing the element information and the first identifier into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameters in the preset input box;
And when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to the data set corresponding to the parameters input in the preset input frame.
2. the method of claim 1, wherein the first location information comprises a parameter location start point and a parameter location end point corresponding to the first parameter;
Correspondingly, determining the first position information corresponding to the first parameter includes:
Acquiring a starting input position of the first parameter, and taking the starting input position as a starting point of the parameter position;
and determining a parameter position end point corresponding to the first parameter according to the parameter position start point and the character length corresponding to the first parameter.
3. The method of claim 1, wherein determining the first identifier corresponding to the first parameter based on the parameter input mode corresponding to the first parameter comprises:
When the parameter input mode corresponding to the first parameter is a keyboard input mode, directly determining the parameter name of the first parameter as a first identifier corresponding to the first parameter;
and when the current input mode corresponding to the first parameter is a click identification frame insertion mode, determining a first identification corresponding to the currently clicked first parameter based on a preset mapping relation between each parameter and the identification.
4. The method according to claim 1, wherein the step of sequentially storing the first position information and the first identifier as one piece of element information into a first data set corresponding to the first parameter, so that an element arrangement order corresponding to each first parameter in the first data set is consistent with an appearance order of the first parameter in the preset input box, includes:
if the first data set corresponding to the first parameter does not exist, creating the first data set, and storing the first position information and the first identifier as element information to the created first data set;
if the first data set corresponding to the first parameter exists, determining a first element position corresponding to the first position information according to the existing position information and the first position information in each existing element in the first data set, and storing the first position information and the first identifier as one element information to the first element position in the first data set.
5. The method according to claim 1, wherein generating encoded data corresponding to input content constituted by each parameter according to a data set corresponding to each parameter input in the preset input box comprises:
Determining an identifier corresponding to each parameter in the preset input frame according to the data set corresponding to each parameter input in the preset input frame;
And replacing each parameter input in the preset input frame with a corresponding identifier to generate coded data corresponding to the input content formed by each parameter.
6. the method of claim 1, prior to detecting the input of the end instruction, further comprising:
When detecting that the parameters in the preset input frame are deleted, determining second position information corresponding to the currently deleted second parameters;
and determining a second element position where the second position information is located in a second data set corresponding to the second parameter, and deleting element information stored in the second element position to update the second data set.
7. The method of claim 1, prior to detecting the input of the end instruction, further comprising:
Detecting whether a third parameter with a changed position exists when the first parameter is input in a preset input frame;
if so, determining third position information of the third parameter before position change and fourth position information after position change;
and determining a third element position where the third position information is located in a third data set corresponding to the third parameter, and updating the third position information stored in the third element position to fourth position information.
8. The method of claim 1, wherein when the first parameter is input in the preset input box, the method further comprises:
when the parameter input mode corresponding to the first parameter is a keyboard input mode, displaying the first parameter in a first display mode in the preset input frame;
And when the parameter input mode corresponding to the first parameter is a click identification box insertion mode, displaying the first parameter in a second display mode in the preset input box.
9. the method of claim 1, further comprising:
if the fact that the copying operation of at least one fourth parameter in the preset input frame is detected, determining fifth position information corresponding to each fourth parameter;
Determining a fourth element position where each fifth position information is located in a fourth parameter set corresponding to each fourth parameter, and determining prefix information corresponding to the fourth parameter according to element information stored in the fourth element position;
and adding corresponding prefix information at the front position of each fourth parameter, and taking the fourth parameter carrying the prefix information as the copied fourth parameter.
10. The method of claim 9, further comprising:
If the fact that pasting operation is carried out on at least one fourth parameter in a preset input frame is detected, prefix information corresponding to each fourth parameter is obtained;
According to each prefix information, determining a fourth identifier corresponding to each fourth parameter, and determining sixth position information corresponding to each pasted fourth parameter;
and sequentially storing the fourth identifier and the sixth position information as element information into a fourth data set corresponding to the fourth parameter.
11. The method according to any one of claims 1-10, further comprising:
if a formatting instruction is detected, replacing each fifth parameter in a preset input frame with a sixth parameter based on a preset replacement rule, obtaining data to be formatted, and storing a corresponding relation between the fifth parameter and the sixth parameter;
Formatting the data to be formatted to obtain first target data in a preset data format;
And replacing each sixth parameter in the first target data with a corresponding fifth parameter based on the corresponding relationship, obtaining second target data in the preset data format, and displaying the second target data in the preset input box.
12. a data processing apparatus, comprising:
the first position information determining module is used for acquiring a first parameter input in a preset input box at the current moment and determining first position information corresponding to the first parameter;
The first identifier determining module is used for determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box inserting mode;
the element information storage module is used for sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameter, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameter in the preset input box;
And the coded data generating module is used for generating coded data corresponding to input contents formed by all the parameters according to the data set corresponding to all the parameters input in the preset input frame when an input ending instruction is detected.
13. an apparatus, characterized in that the apparatus comprises:
one or more processors;
A storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a data processing method as claimed in any one of claims 1-11.
14. a storage medium containing computer-executable instructions for performing the data processing method of any one of claims 1-11 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910838329.8A CN110543243B (en) | 2019-09-05 | 2019-09-05 | Data processing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910838329.8A CN110543243B (en) | 2019-09-05 | 2019-09-05 | Data processing method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110543243A true CN110543243A (en) | 2019-12-06 |
CN110543243B CN110543243B (en) | 2023-05-02 |
Family
ID=68712586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910838329.8A Active CN110543243B (en) | 2019-09-05 | 2019-09-05 | Data processing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110543243B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112965722A (en) * | 2021-03-03 | 2021-06-15 | 深圳华大九天科技有限公司 | Verilog-A model optimization method, electronic device and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5182709A (en) * | 1986-03-31 | 1993-01-26 | Wang Laboratories, Inc. | System for parsing multidimensional and multidirectional text into encoded units and storing each encoded unit as a separate data structure |
CN103336583A (en) * | 2013-06-18 | 2013-10-02 | 中国联合网络通信集团有限公司 | Projection keyboard and character code determining method of projection keyboard |
CN106575166A (en) * | 2014-08-11 | 2017-04-19 | 张锐 | Methods for processing handwritten inputted characters, splitting and merging data and encoding and decoding processing |
-
2019
- 2019-09-05 CN CN201910838329.8A patent/CN110543243B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5182709A (en) * | 1986-03-31 | 1993-01-26 | Wang Laboratories, Inc. | System for parsing multidimensional and multidirectional text into encoded units and storing each encoded unit as a separate data structure |
CN103336583A (en) * | 2013-06-18 | 2013-10-02 | 中国联合网络通信集团有限公司 | Projection keyboard and character code determining method of projection keyboard |
CN106575166A (en) * | 2014-08-11 | 2017-04-19 | 张锐 | Methods for processing handwritten inputted characters, splitting and merging data and encoding and decoding processing |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112965722A (en) * | 2021-03-03 | 2021-06-15 | 深圳华大九天科技有限公司 | Verilog-A model optimization method, electronic device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110543243B (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109491742B (en) | Page table rendering method and device | |
CN111104479A (en) | Data labeling method and device | |
CN112395253B (en) | Index file generation method, terminal device, electronic device and medium | |
CN112328927B (en) | Document processing method and device, readable medium and electronic equipment | |
CN110781658B (en) | Resume analysis method, resume analysis device, electronic equipment and storage medium | |
CN112487331A (en) | Page generation method and device, storage medium and electronic equipment | |
CN111368519A (en) | Method, device, equipment and storage medium for editing online table | |
US12056440B2 (en) | Document update method and apparatus, device, and medium | |
CN111552640A (en) | Code detection method, device, equipment and storage medium | |
CN111597107A (en) | Information output method and device and electronic equipment | |
CN111708680A (en) | Error reporting information analysis method and device, electronic equipment and storage medium | |
CN111124541A (en) | Configuration file generation method, device, equipment and medium | |
CN111641690B (en) | Session message processing method and device and electronic equipment | |
CN110543243B (en) | Data processing method, device, equipment and storage medium | |
CN110941401A (en) | Printing method and device | |
CN112256370A (en) | Information display method and device and electronic equipment | |
CN112507670A (en) | Text editing method and device, electronic equipment and storage medium | |
CN111753238A (en) | Data mapping method and device and electronic equipment | |
CN109614592B (en) | Text processing method and device, storage medium and electronic equipment | |
CN108196921B (en) | Document development method and device, computer equipment and storage medium | |
CN113779952B (en) | Text processing method and device and electronic equipment | |
CN114239501A (en) | Contract generation method, apparatus, device and medium | |
CN111737040A (en) | Program code repairing method and device | |
CN110780898A (en) | Page data upgrading method and device and electronic equipment | |
CN111708597A (en) | Information processing method and device and electronic equipment |
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 |