CN112256179B - Text processing method and device - Google Patents

Text processing method and device Download PDF

Info

Publication number
CN112256179B
CN112256179B CN202011149158.7A CN202011149158A CN112256179B CN 112256179 B CN112256179 B CN 112256179B CN 202011149158 A CN202011149158 A CN 202011149158A CN 112256179 B CN112256179 B CN 112256179B
Authority
CN
China
Prior art keywords
text
input
box
user
editing
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.)
Active
Application number
CN202011149158.7A
Other languages
Chinese (zh)
Other versions
CN112256179A (en
Inventor
许世明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ioco Communication Software Co ltd
Original Assignee
Shenzhen Ioco Communication Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ioco Communication Software Co ltd filed Critical Shenzhen Ioco Communication Software Co ltd
Priority to CN202011149158.7A priority Critical patent/CN112256179B/en
Publication of CN112256179A publication Critical patent/CN112256179A/en
Application granted granted Critical
Publication of CN112256179B publication Critical patent/CN112256179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a text processing method and device, and belongs to the technical field of communication. The method comprises the following steps: receiving a first input of a user to a text editing box, wherein the text editing box comprises a text to be processed; in response to the first input, determining a text to be edited in the text to be processed according to the input parameters of the first input; and under the condition that a second input is received, executing target editing operation corresponding to the second input on the text to be edited. The method and the device can reduce the operation of the user and save the text editing time of the user.

Description

Text processing method and device
Technical Field
The application belongs to the technical field of communication, and particularly relates to a text processing method and device.
Background
The touch screen is a most convenient and natural man-machine interaction mode as a latest terminal input device, and the touch screen gradually replaces the traditional keyboard input mode at present.
In the process of editing the text by using the touch screen, when a user needs to cancel input, the user is usually required to continuously click a 'delete key' of an input method for multiple times to delete the input characters, and when the user wants to recover the deleted characters after deleting the characters by mistake, no convenient method is available. And when the user needs to delete all or part of the characters, the user can only click the 'delete key' for multiple times, or select the characters to be deleted and then click the 'delete key'. The operation mode is complicated, operation steps of a user are increased, and time of the user is wasted.
Disclosure of Invention
The embodiment of the application aims to provide a text processing method and a text processing device, and the problems that in the prior art, a text editing mode is complex to operate, operation steps of a user are increased, and time of the user is wasted can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a text processing method, where the method includes:
receiving a first input of a user to a text editing box, wherein the text editing box comprises a text to be processed;
in response to the first input, determining a text to be edited in the text to be processed according to the input parameters of the first input;
and under the condition that a second input is received, executing target editing operation corresponding to the second input on the text to be edited.
In a second aspect, an embodiment of the present application provides a text processing apparatus, including:
the first input receiving module is used for receiving first input of a user to a text editing box, wherein the text editing box comprises a text to be processed;
the edit text determining module is used for responding to the first input and determining a text to be edited in the text to be processed according to the input parameters of the first input;
and the editing operation execution module is used for executing target editing operation corresponding to second input on the text to be edited under the condition of receiving the second input.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the text processing method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the text processing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the text processing method according to the first aspect.
In the embodiment of the application, the first input of a user to the text editing box is received, the text editing box comprises the text to be processed, the first input is responded, the text to be edited in the text to be processed is determined according to the input parameter of the first input, and the target editing operation corresponding to the second input is executed on the text to be edited under the condition that the second input is received.
Drawings
Fig. 1 is a flowchart illustrating steps of a text processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a text editing box according to an embodiment of the present application;
fig. 3 is a schematic diagram of a text saving location according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another text saving location provided in an embodiment of the present application;
FIG. 5 is a diagram illustrating another text saving location according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a gesture operation according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of deleting a text according to an embodiment of the present application;
FIG. 8 is a schematic diagram of another gesture operation provided in the embodiments of the present application;
fig. 9 is a schematic diagram of recovering deleted text according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a text processing apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The text processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of a text processing method provided in an embodiment of the present application is shown, and as shown in fig. 1, the text processing method may specifically include the following steps:
step 101: receiving a first input of a user to a text edit box, wherein the text edit box comprises a text to be processed.
The embodiment of the application can be applied to scenes of positioning and editing (such as deleting, recovering, modifying and the like) texts according to the input of the user.
The text edit box refers to a box that can edit text and is displayed in the text input interface, and in this embodiment, the text edit box may be a list that is displayed in the text editing page after entering the text input page, such as the text edit box shown in fig. 3.
After obtaining the text input by the user in the text input box, the text may be displayed in the text edit box, and a specific display process of the input text may be described in detail in conjunction with the following specific implementation manner.
In a specific implementation manner of the present application, before the step 101, the method may further include:
step A1: after entering a text entry page, displaying the text edit box.
In this embodiment, the text input page refers to an instruction that the user needs to input text, and in this example, the text input page may be a page displayed by an operation of opening a text document of text to be input by the user, or the like.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After entering the text entry page, a text edit box may be displayed, as shown in fig. 2, when entering the text entry page and starting text entry, an empty text edit box may be created for buffering text entered by the user, and at this time, the current text edit position may be recorded as p ═ 0.
After the text edit box is displayed, step a2 is performed.
Step A2: and acquiring a first text input by the user in the text input box in the process of inputting the text by the user.
The first text refers to text entered by the user within the text entry box.
After the text edit box is displayed, the user may enter text, at which time the text input box may be monitored for changes in the text content within the text input box, e.g., as shown in FIG. 2, after the text edit box is displayed, the user may be monitored for text entered within the text input box, such as "this" entered by the user, etc.
In the process of inputting text by the user, after the first text input by the user in the text input box is acquired, step a3 is executed.
Step A3: displaying the first text at a first position of the text edit box.
After the first text input by the user in the text input box is acquired, the first text may be displayed at a first position of the text editing box, as shown in fig. 3, where the first text input by the user in the text input box is "this", and at this time, the first text "this" is displayed at a first position of the text editing box, that is, p is 1, and the position corresponds to the first text.
After the first text is displayed in the first position of the text edit box, step a4 is performed.
Step A4: and acquiring a second text input by the user in the text input box.
After the first text is displayed at the first position of the text editing box, the text content on the text input box is continuously monitored, at this time, the second text input by the user in the text input box can be acquired, as shown in fig. 3, after the first text "this" is displayed at the first position, in the subsequent monitoring process, the second text input by the user in the text input box is monitored to be "yes", and the like.
After the second text entered by the user in the text entry box is obtained, step a5 is performed.
Step A5: displaying the first text and the second text at a second location of the text edit box.
After the second text input by the user in the text input box is acquired, the first text and the second text may be displayed at the second position of the text editing box, as shown in fig. 4, after the second text "yes" is acquired, the first text "this" and the second text "yes" are displayed at the second position, at this time, the text displayed at the position where P is 1 is "yes", and the text displayed at the position where P is 2 is "yes".
It will be appreciated that the first text and the second text form the text to be processed.
Of course, without limitation, if the user has another text input in the subsequent process, such as a third text input by the user, at this time, the third text, the second text and the first text may be displayed at a third position, as shown in fig. 4, and the third text input by the user in the text input box is "example", that is, the first text, the second text and the third text may be displayed at the third position of the text editing box, as shown in fig. 5, and "this is example" is displayed at a position where p is 3.
The first input refers to an input performed by a user for determining a text to be edited in the text to be processed.
In some examples, the first input may be an input formed by a click operation performed by the user on the text editing box, for example, as shown in fig. 5, after the to-be-processed text is displayed in the text editing box in positions, when the user needs to edit the text at the p-3 position, the position where p-3 is located may be clicked by the user, and the click operation forms the first input.
In some examples, the first input may be an input formed by a user sliding a cursor, for example, in the process of inputting a text by the user, a cursor is displayed after the last word input, the user may slide the cursor to perform text positioning, at this time, the operation of the user sliding the cursor may be regarded as the first input, and the like.
After receiving a first input to the text edit box by the user, step 102 is performed.
Step 102: and responding to the first input, and determining a text to be edited in the text to be processed according to the input parameters of the first input.
The text to be edited refers to a text to be edited in the text to be processed displayed in the text editing box, for example, as shown in fig. 5, the text to be processed displayed in the text editing box is "this", "this is" and "this is an example", and when the first input performed by the user is positioned to the position where "this is an example", the "this is an example" is regarded as the text to be edited.
After receiving a first input of the user to the text editing box, determining a text to be edited in the text to be processed according to an input parameter of the first input, and then executing step 103.
Step 103: and under the condition that a second input is received, executing target editing operation corresponding to the second input on the text to be edited.
The second input refers to an input performed by the user for determining a text editing operation.
In some examples, the second input may be an input formed by a gesture operation performed by the user, for example, a corresponding relationship between the gesture operation and a text editing operation may be saved in the electronic device system in advance, when the user needs to perform a target editing operation on a text to be edited, the target editing operation may be performed by the user, at this time, the input performed by the user to perform the target gesture operation may be regarded as the second input, and so on.
Of course, without being limited thereto, in a specific implementation, the second input may also be other types of inputs, and in particular, may be determined according to business requirements, and this embodiment is not limited thereto.
The target editing operation refers to an operation for editing the text to be edited corresponding to the second input performed by the user, and in this example, the target editing operation may include any one of a deletion operation, a deleted text recovery operation, a copy operation, a text selection operation, a list text condition operation, and the like.
After determining the text to be edited in the text to be processed, a second input executed by the user may be received, and then a target editing operation corresponding to the second input may be obtained, so as to execute the target editing operation on the text to be edited, which may be described in detail in combination with the following specific implementation manner.
In a specific implementation manner of the present application, the step 103 may include:
substep B1: and receiving target gesture operation executed by the user.
In this embodiment, the target gesture operation refers to a gesture operation performed by the user to determine an editing operation on a text to be edited.
After the text to be edited is obtained, a target gesture operation performed by the user may be received, and then, sub-step B2 is performed.
Substep B2: and acquiring target editing operation corresponding to the target gesture operation according to the corresponding relation between the prestored gesture operation and the editing operation.
In this embodiment, a correspondence between a gesture operation and an editing operation is stored in advance in the electronic device, for example, the last content entered is deleted when the gesture is slid from right to left; restoring the last deleted content when the gesture is slid from left to right; the current content can be selected fully when a circle gesture is drawn in the edit box; when drawing a C-letter gesture in the edit box, the current content can be copied to a system clipboard; when a V-letter-shaped gesture is drawn in the edit box, the content of the system clipboard can be pasted to the position of a cursor of the current text box; drawing "/" or "\\" within the edit box may clear the current content, etc.
After the target gesture operation performed by the user is obtained, a target editing operation corresponding to the target gesture operation may be obtained according to the corresponding relationship.
After the target editing operation corresponding to the target gesture operation is obtained, the sub-step B2 is executed.
Substep B2: and executing the target editing operation on the text to be edited.
After the target editing operation is acquired, the target editing operation may be performed on the text to be edited, for example, as shown in fig. 6, when the gesture operation performed by the user is a leftward sliding operation, at this time, the newly input text "example" may be deleted. The text in the text edit box after the target editing operation has been performed may be as shown in fig. 7, where the text remaining in the text edit box is only "this is".
Of course, in this embodiment, recovery may also be performed on the deleted text, for example, as shown in fig. 8, after the user performs a gesture of sliding left to delete "example", a gesture of sliding right may be performed by the user, at this time, the text "example" just deleted may be recovered, and the text editing box after recovery may be as shown in fig. 9, at this time, the text displayed in the text editing text box is "this is an example".
It should be understood that the above examples are only examples listed for better deteriorating the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
In this embodiment, according to the input performed by the user on the text edit box, the text in the text edit box may be cleared, and the display of the text edit box may be cancelled, which may be described in detail in conjunction with the following specific implementation manner.
In a specific implementation manner of the present application, after the step 103, the method may further include:
step C1: receiving a third input to the text edit box by the user.
In the present embodiment, the third input is input for clearing the text in the text edit box and canceling the display of the text edit box.
In some examples, the third input may be an input formed by a user double-clicking a text edit box, for example, when the user needs to clear text in the text edit box, the user double-clicking any position of the text edit box, and the double-clicking forms the third input.
In some examples, the third input may be an input formed by a user clicking a delete button at a corner of the text editing box, for example, an "x" button is provided at a top left corner of the text editing box, and the "x" button may be clicked when the user needs to cancel displaying the text editing box, and the click operation performed by the user forms the third input.
Step C2: in response to the third input, clearing text in the text edit box and canceling display of the text edit box.
After receiving a third input performed by the user to the text edit box, the third input may be responded to clear the text in the text edit box and cancel the display of the text edit box.
According to the text processing method provided by the embodiment of the application, the first input of a user to the text editing box is received, the text to be edited in the text editing box comprises the text to be processed, the first input is responded, the text to be edited in the text to be processed is determined according to the input parameter of the first input, and the target editing operation corresponding to the second input is executed on the text to be edited under the condition that the second input is received.
It should be noted that, in the text processing method provided in the embodiment of the present application, the execution main body may be a text processing apparatus, or a control module in the text processing apparatus for executing the text processing method. In the embodiment of the present application, a text processing apparatus executes a text processing method as an example, and the text processing apparatus provided in the embodiment of the present application is described.
Referring to fig. 10, a schematic structural diagram of a text processing apparatus provided in an embodiment of the present application is shown, and as shown in fig. 10, the text processing apparatus 1000 may include:
a first input receiving module 1010, configured to receive a first input of a text edit box by a user, where the text edit box includes a text to be processed;
an edited text determining module 1020, configured to determine, in response to the first input, a text to be edited in the text to be processed according to an input parameter of the first input;
and an editing operation executing module 1030, configured to, in a case that a second input is received, execute a target editing operation corresponding to the second input on the text to be edited.
Optionally, the method further comprises:
the edit box display module is used for displaying the text edit box after entering a text input page;
the first text display module is used for acquiring a first text input by the user in a text input box in the process of inputting the text by the user;
the first position display module is used for displaying the first text at a first position of the text edit box;
the second text acquisition module is used for acquiring a second text input by the user in the text input box;
the second position display module is used for displaying the first text and the second text at a second position of the text edit box;
wherein the first text and the second text form the text to be processed.
Optionally, the editing operation executing module 1030 includes:
a gesture operation receiving unit for receiving a target gesture operation performed by the user;
the editing operation acquisition unit is used for acquiring target editing operation corresponding to the target gesture operation according to the corresponding relation between the prestored gesture operation and the editing operation;
and the editing operation execution unit is used for executing the target editing operation on the text to be edited.
Optionally, the method further comprises:
the third input receiving module is used for receiving a third input of the user to the text editing box;
and the edit box canceling display module is used for responding to the third input, clearing the text in the text edit box and canceling the display of the text edit box.
Optionally, the target editing operation includes any one of a delete operation, a delete text restore operation, a copy operation, a text select operation, and a list text clear operation.
The text processing device provided by the embodiment of the application receives the first input of a user to the text editing box, the text editing box comprises a text to be processed, the first input is responded, the text to be edited in the text to be processed is determined according to the input parameter of the first input, and the target editing operation corresponding to the second input is executed on the text to be edited under the condition that the second input is received.
The text processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The text processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
The text processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 1100 is further provided in an embodiment of the present application, and includes a processor 1101, a memory 1102, and a program or an instruction stored in the memory 1102 and executable on the processor 1101, where the program or the instruction is executed by the processor 1101 to implement each process of the text processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1200 includes, but is not limited to: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensors 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, and processor 1210.
Those skilled in the art will appreciate that the electronic device 1200 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The radio frequency unit 1201 is configured to receive a first input of a user to the text edit box;
the processor 2110 is used for responding to the first input, and determining texts to be edited in the texts to be processed according to input parameters of the first input; and under the condition that a second input is received, executing target editing operation corresponding to the second input on the text to be edited.
According to the embodiment of the application, the operation of the user can be reduced, the text editing time of the user is saved, and the use experience of the user is improved.
Optionally, the display unit 1206 is further configured to display the text editing box after entering the text input page;
the radio frequency unit 1201 is further configured to acquire a first text input by the user in the text input box in the process of inputting the text by the user;
the display unit 1206 is further used for displaying the first text at a first position of the text edit box;
the radio frequency unit 1201 is further configured to acquire a second text input by the user in the text input box;
the display unit 1206 is further used for displaying the first text and the second text at a second position of the text edit box;
wherein the first text and the second text form the text to be processed.
Optionally, the radio frequency unit 1201 is further configured to receive a target gesture operation performed by the user;
the processor 1210 is further configured to obtain a target editing operation corresponding to the target gesture operation according to a correspondence between a pre-stored gesture operation and an editing operation; and executing the target editing operation on the text to be edited.
Optionally, the radio frequency unit 1201 is further configured to receive a third input to the text edit box by the user;
the processor 1210 is further configured to clear text in the text edit box and cancel displaying the text edit box in response to the third input.
According to the method and the device, the text in the text editing box can be cleared in time according to the user operation after the text editing is finished, the text editing box is cancelled and displayed, and the subsequent operation of the user is not influenced while the memory occupation is saved.
It should be understood that, in the embodiment of the present application, the input Unit 1204 may include a Graphics Processing Unit (GPU) 12041 and a microphone 12042, and the Graphics Processing Unit 12041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1207 includes a touch panel 12071 and other input devices 12072. A touch panel 12071, also referred to as a touch screen. The touch panel 12071 may include two parts of a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1209 may be used to store software programs as well as various data, including but not limited to application programs and an operating system. Processor 1210 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1210.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the text processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the text processing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (10)

1. A method of text processing, comprising:
receiving a first input of a user to a text edit box, wherein the text edit box comprises texts to be processed, the texts to be processed are respectively displayed in different preset areas of the text edit box according to a text input sequence, and the preset areas displayed by the texts to be input later comprise: text that has been entered prior to the post-entered text;
responding to the first input, and determining a text to be edited in the text to be processed according to the input parameters of the first input, wherein the first input is executed in the preset area;
under the condition that a second input is received, executing target editing operation corresponding to the second input on the text to be edited;
wherein the method further comprises:
after the text editing box is displayed, determining the text input by each text input operation in the text input box;
when the target editing operation comprises a deleting operation, executing the target editing operation corresponding to the second input on the text to be edited comprises:
and deleting all texts input by the last text input operation of the text to be edited.
2. The method of claim 1, prior to said receiving a first user input to a text edit box, further comprising:
after entering a text entry page, displaying the text edit box;
in the process of inputting the text by the user, acquiring a first text input by the user in a text input box;
displaying the first text at a first position of the text edit box;
acquiring a second text input by the user in the text input box;
displaying the first text and the second text at a second location of the text edit box;
wherein the first text and the second text form the text to be processed.
3. The method according to claim 1, wherein the performing, in a case where a second input is received, a target editing operation corresponding to the second input on the text to be edited includes:
receiving a target gesture operation executed by the user;
acquiring target editing operation corresponding to the target gesture operation according to a corresponding relation between prestored gesture operation and editing operation;
and executing the target editing operation on the text to be edited.
4. The method according to claim 1, further comprising, after the performing the target editing operation corresponding to the second input on the text to be edited:
receiving a third input of the text edit box by the user;
in response to the third input, clearing text in the text edit box and canceling display of the text edit box.
5. The method of claim 1, wherein the target editing operation comprises any one of a delete operation, a delete text restore operation, a copy operation, a text select operation, and a list text clear operation.
6. A text processing apparatus, comprising:
the first input receiving module is used for receiving first input of a user to a text editing box, the text editing box comprises texts to be processed, the texts to be processed are respectively displayed in different preset areas of the text editing box according to a text input sequence, and the preset areas displayed by the texts to be input later comprise: text that has been entered prior to the post-entered text;
the edit text determining module is used for responding to the first input, determining a text to be edited in the text to be processed according to the input parameter of the first input, wherein the first input is executed in the preset area;
the editing operation execution module is used for executing target editing operation corresponding to second input on the text to be edited under the condition of receiving the second input;
wherein the apparatus further comprises:
after the text editing box is displayed, determining the text input by each text input operation in the text input box;
when the target editing operation comprises a deleting operation, executing the target editing operation corresponding to the second input on the text to be edited comprises:
and deleting all texts input by the last text input operation of the text to be edited.
7. The apparatus of claim 6, further comprising:
the edit box display module is used for displaying the text edit box after entering a text input page;
the first text display module is used for acquiring a first text input by the user in a text input box in the process of inputting the text by the user;
the first position display module is used for displaying the first text at a first position of the text edit box;
the second text acquisition module is used for acquiring a second text input by the user in the text input box;
the second position display module is used for displaying the first text and the second text at a second position of the text edit box;
wherein the first text and the second text form the text to be processed.
8. The apparatus of claim 6, wherein the editing operation performing module comprises:
a gesture operation receiving unit for receiving a target gesture operation performed by the user;
the editing operation acquisition unit is used for acquiring target editing operation corresponding to the target gesture operation according to the corresponding relation between the prestored gesture operation and the editing operation;
and the editing operation execution unit is used for executing the target editing operation on the text to be edited.
9. The apparatus of claim 6, further comprising:
the third input receiving module is used for receiving a third input of the user to the text editing box;
and the edit box canceling display module is used for responding to the third input, clearing the text in the text edit box and canceling the display of the text edit box.
10. The apparatus of claim 6, wherein the target editing operation comprises any one of a delete operation, a delete text restore operation, a copy operation, a text select operation, and a list text clear operation.
CN202011149158.7A 2020-10-23 2020-10-23 Text processing method and device Active CN112256179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011149158.7A CN112256179B (en) 2020-10-23 2020-10-23 Text processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011149158.7A CN112256179B (en) 2020-10-23 2020-10-23 Text processing method and device

Publications (2)

Publication Number Publication Date
CN112256179A CN112256179A (en) 2021-01-22
CN112256179B true CN112256179B (en) 2022-08-05

Family

ID=74261879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011149158.7A Active CN112256179B (en) 2020-10-23 2020-10-23 Text processing method and device

Country Status (1)

Country Link
CN (1) CN112256179B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818637A (en) * 2021-02-05 2021-05-18 深圳市世强元件网络有限公司 Method and system for editing upper and lower labels of text input box

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140139702A (en) * 2013-05-28 2014-12-08 삼성전자주식회사 Method and apparatus for correcting text
CN110275651B (en) * 2018-03-16 2024-02-20 厦门歌乐电子企业有限公司 Vehicle-mounted display equipment and text editing method
CN110471600A (en) * 2019-08-22 2019-11-19 浙江诺诺网络科技有限公司 A kind of method for editing text, device and text editor
CN111638838A (en) * 2020-05-19 2020-09-08 维沃移动通信有限公司 Text editing method and device and electronic equipment

Also Published As

Publication number Publication date
CN112256179A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN113703624A (en) Screen splitting method and device and electronic equipment
CN111984130A (en) Shortcut operation method and device and electronic equipment
CN113518026A (en) Message processing method and device and electronic equipment
CN113467660A (en) Information sharing method and electronic equipment
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN112083854A (en) Application program running method and device
CN112817676A (en) Information processing method and electronic device
CN114518926A (en) Notification message display method and device, electronic equipment and medium
CN114116098B (en) Application icon management method and device, electronic equipment and storage medium
CN112099714A (en) Screenshot method and device, electronic equipment and readable storage medium
CN112698762B (en) Icon display method and device and electronic equipment
CN112256179B (en) Text processing method and device
CN113849092A (en) Content sharing method and device and electronic equipment
CN113485853A (en) Information interaction method and device and electronic equipment
CN112835859A (en) Information sharing method and device and electronic equipment
CN112269523A (en) Object editing processing method and device and electronic equipment
CN114385562A (en) Text information deleting method and device and electronic equipment
CN111813303B (en) Text processing method and device, electronic equipment and readable storage medium
CN111796733B (en) Image display method, image display device and electronic equipment
CN113536745A (en) Character processing method and character processing device
CN111796736B (en) Application sharing method and device and electronic equipment
CN112288835A (en) Image text extraction method and device and electronic equipment
CN115167721A (en) Display method and device of functional interface
CN114995713A (en) Display control method and device, electronic equipment and readable storage medium
CN114416264A (en) Message display method and device

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