CN112612400A - Text content processing method and electronic equipment - Google Patents

Text content processing method and electronic equipment Download PDF

Info

Publication number
CN112612400A
CN112612400A CN202011589585.7A CN202011589585A CN112612400A CN 112612400 A CN112612400 A CN 112612400A CN 202011589585 A CN202011589585 A CN 202011589585A CN 112612400 A CN112612400 A CN 112612400A
Authority
CN
China
Prior art keywords
text
preview interface
sliding
target length
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011589585.7A
Other languages
Chinese (zh)
Other versions
CN112612400B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011589585.7A priority Critical patent/CN112612400B/en
Publication of CN112612400A publication Critical patent/CN112612400A/en
Application granted granted Critical
Publication of CN112612400B publication Critical patent/CN112612400B/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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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

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 application discloses a text content processing method and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: displaying a preview interface under the condition of receiving a preset text operation instruction on a selected text, and displaying the selected text in the preview interface; receiving and responding to a text adjustment operation executed on the preview interface, and additionally displaying a related text of the selected text in the preview interface, or deleting a text specified by the text adjustment operation in the preview interface; and executing the preset text operation instruction on the text content displayed in the preview interface. According to the method and the device, the associated text corresponding to the selected text is directly additionally displayed or the text specified by the text adjusting operation is deleted in the preview interface in response to the text adjusting operation executed by the user in the preview interface, the user does not need to return to the initial display interface of the selected text to re-determine the selected text, the complexity of text operation is reduced, and the text processing efficiency is improved.

Description

Text content processing method and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a text content processing method and electronic equipment.
Background
Currently, for a mobile terminal using a touch screen, a user may select text content by dragging a cursor on the touch screen, and perform operations such as copying and pasting on the selected text content.
However, since the touch screen of the mobile terminal has a small size and the touch precision of the finger is limited, it is difficult for the user to quickly and accurately control the display position of the cursor when selecting the text content, which results in that it is easy to select more or select less characters when selecting the text content. If the user finds that a plurality of characters are missed in the pasting interface when the user executes the copying and pasting operation on the selected text content, the user needs to return to the original text content display interface, reselect the text content and execute the copying and pasting operation again, the operation process is complicated, and the processing efficiency of the text content is reduced.
Content of application
The embodiment of the application aims to provide a text content processing method, which can solve the problem of low text processing efficiency in the prior art.
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 content processing method, where the method includes:
displaying a preview interface under the condition of receiving a preset text operation instruction on a selected text, and displaying the selected text in the preview interface;
receiving a text adjustment operation executed on the preview interface;
responding to the text adjustment operation, and adding and displaying the associated text of the selected text in the preview interface, or deleting the text specified by the text adjustment operation in the preview interface;
and executing the preset text operation instruction on the text content displayed in the preview interface.
In a second aspect, an embodiment of the present application provides a text content processing apparatus, including:
the preview interface display module is used for displaying a preview interface under the condition of receiving a preset text operation instruction for the selected text and displaying the selected text in the preview interface;
the interface operation receiving module is used for receiving the text adjustment operation executed on the preview interface;
an interface operation response module, configured to respond to the text adjustment operation, add and display a text associated with the selected text in the preview interface, or delete a text specified by the text adjustment operation in the preview interface;
and the text operation execution module is used for executing the preset text operation instruction on the text content displayed in the preview interface.
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, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the 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 method according to the first aspect.
In the embodiment of the application, the selected text is displayed in the preview interface under the condition that a preset text operation instruction for the selected text is received, and when the text adjustment operation of a user for the preview interface is received, the text adjustment operation executed by the user in the preview interface is responded, the associated text corresponding to the selected text is directly additionally displayed in the preview interface or the text appointed by the text adjustment operation is deleted, if the selected text needs to be changed, the user does not need to return to the initial display interface of the selected text to re-determine the selected text, the complexity of the text operation is reduced, and the text processing efficiency is improved.
Drawings
Fig. 1 is a flowchart illustrating specific steps of a text content processing method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating an operation of copying a selected text according to an embodiment of the present application;
FIG. 3 is a diagram illustrating an operation of pasting a selected text according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a display preview interface according to an embodiment of the present application;
fig. 5 is a flowchart illustrating specific steps of a text content processing method according to a second embodiment of the present application;
fig. 6 is a structural diagram of a text content processing apparatus according to a third embodiment of the present application;
fig. 7 is a block diagram of a text content processing apparatus according to a fourth embodiment of the present application;
fig. 8 is a structural diagram of an electronic device according to a fifth embodiment of the present application;
fig. 9 is a schematic hardware structure diagram of an electronic device according to a fifth 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 is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. 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 content processing method and the text content processing apparatus provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
Example one
Referring to fig. 1, specific steps of a text content processing method provided in a first embodiment of the present application are shown.
Step 101, displaying a preview interface under the condition that a preset text operation instruction for a selected text is received, and displaying the selected text in the preview interface.
After a user selects a text, text operations such as copying, pasting, searching and translating the selected text are generally required to be executed, if the user executes the text operations on the selected text, the selected text is found to be not in accordance with expectations, for example, a part of text content is missed, or a part of text content is selected in excess, or after the text operations are executed on the selected text, the user is required to return to an initial display interface of the selected text again, redetermine the selected text, jump to a target interface for executing the text operations, and execute the text operations on the redetermined selected text. Obviously, in the scheme in the prior art, the operation process is complicated, and the user needs to perform page jump for many times, which undoubtedly reduces the processing efficiency of text operation. Therefore, before executing a text operation on a selected text, when a first operation executed by a user on the selected text is received, a preview interface is displayed, and the selected text is displayed in the preview interface, so that the user can directly execute the text adding and deleting operation on the selected text in the preview interface, page skipping by the user is not needed, and the text processing efficiency is improved.
The preset text operation instruction may be a text operation instruction for executing a copy instruction, a paste instruction, a search instruction, a translation instruction, and the like after the user selects a text. In the embodiment of the application, when a preset text operation instruction of a user is received, a preview interface is displayed instead of directly executing text operation on a selected text, the selected text is displayed in the preview interface, and after the user confirms that the text content displayed in the preview interface is correct, the preset text operation instruction is executed on the text content displayed in the preview interface.
By taking a preset text operation instruction as an example of a paste instruction, referring to fig. 2, an operation diagram for copying a selected text in the embodiment of the present application is shown, where a user selects a part of texts in a section of text and copies the selected text. After the user copies the chosen text, the user wants to paste the copied chosen text in an input box of a chat interface with zhang san, and referring to fig. 3, an operation diagram for pasting the chosen text according to the embodiment of the application is shown. And the user clicks the paste button in the chat interface with Zhang III to send a paste instruction to the mobile terminal, and the mobile terminal is triggered to perform paste operation on the selected text. In the embodiment of the application, when a paste instruction of a user is received, a preview interface pops up on a chat interface with zhang san, and a copied selected text is displayed in the preview interface, and referring to fig. 4, a schematic diagram for displaying the preview interface in the embodiment of the application is shown. The user can further confirm the selected text to be pasted in the preview interface, if the text content displayed in the preview interface is not in accordance with the expectation, the user can directly execute addition and deletion operations on the displayed text content on the preview interface until the text content displayed in the preview interface is confirmed to be in accordance with the expectation, and then execute the pasting instruction on the text content in the preview interface.
And 102, receiving a text adjusting operation executed on the preview interface.
In the embodiment of the application, if the user finds that the selected text displayed in the preview interface is not in accordance with the expectation, for example, a part of text content is missed, or a part of text content is selected more, or after the text operation is performed on the selected text, the user wants to continue performing the text operation on the associated text before or after the selected text, the user can directly perform the text adjustment operation on the preview interface, so that the text content displayed in the preview interface is increased, deleted and replaced.
The text adjustment operation performed on the preview interface may be a sliding operation on the preview interface, or a triggering operation on a display component in the preview interface, for example, a clicking operation on a "delete" component in the preview interface shown in fig. 4.
Step 103, responding to the text adjustment operation, adding and displaying the associated text of the selected text in the preview interface, or deleting the text specified by the text adjustment operation in the preview interface.
And after receiving the text adjustment operation executed by the user on the preview interface, the mobile terminal responds to the text adjustment operation, and additionally displays the associated text of the selected text in the preview interface or deletes the text specified by the text adjustment operation.
For the additional display of the selected text in the preview interface, the corresponding relation between the text adjusting operation and the associated text of the selected text can be preset, so that when a user performs the text adjusting operation on the preview interface, the associated text to be additionally displayed can be determined according to the received text adjusting operation.
In an optional embodiment of the present application, the text adjustment operation includes a sliding operation, and the step 103 of adding, in response to the text adjustment operation, associated text for displaying the selected text in the preview interface includes:
and step S11, determining the sliding direction and the sliding distance of the sliding operation.
Step S12, if there is a sliding distance in the first sliding direction in the sliding operation, responding to the sliding operation, and adding the associated text with the target length corresponding to the sliding distance before the display position where the selected text is displayed in the preview interface.
Step S13, if there is a sliding distance in the second sliding direction in the sliding operation, responding to the sliding operation, and adding the associated text with the target length corresponding to the sliding distance after the display position of the selected text is displayed in the preview interface.
Taking the text adjustment operation as the sliding operation as an example, it may be preset that the first sliding direction corresponds to displaying the associated text before the selected text, and the second sliding direction corresponds to displaying the associated text after the selected text. When the sliding operation executed on the preview interface is received, firstly, the sliding direction and the sliding distance of the sliding operation are determined, whether the associated text before or after the selected text needs to be additionally displayed on the preview interface is determined according to the sliding direction, and the text length of the associated text needing to be additionally displayed on the selected text is determined according to the sliding distance. For example, assume that the sliding direction is to display the associated text after the selected text when sliding upward, and the sliding direction is to display the associated text before the selected text when sliding downward; the length of the displayed associated text is N characters when the sliding distance meets a first preset threshold, and the length of the displayed associated text is M characters when the sliding distance meets a second preset threshold. Therefore, the display position and the text content of the associated text of the selected text needing to be additionally displayed can be determined according to the corresponding relation between the preset sliding direction and sliding distance and the display position and the target length of the associated text.
For the text designated by the text adjustment operation to be deleted in the preview interface, the text adjustment operation may be a combination of a text selection operation and a deletion operation, for example, the user may further select the text content to be deleted in the preview interface, then execute a deletion trigger operation on the preview interface, and delete the text content to be deleted selected in the preview interface by the user when the mobile terminal receives the deletion trigger operation executed on the preview interface. Or, the user may default a character located before the display position of the cursor as a character to be deleted by moving the display position of the cursor in the preview interface, and delete the character located before the display position of the cursor when receiving a deletion trigger operation performed on the preview interface by the user. The deletion trigger operation performed on the preview interface may be a click operation on a "delete" component in the preview interface shown in fig. 4.
And 104, executing the preset text operation instruction on the text content displayed in the preview interface.
And when the text content displayed in the preview interface is determined to meet the expectation of the user, executing a preset text operation instruction on the text content displayed in the preview interface. Specifically, the text content displayed in the preview interface may be determined to be in accordance with the user expectation in the case of receiving a determination operation of the text content displayed in the preview interface by the user, for example, in the case of receiving a click operation of the "confirm" component in the preview interface shown in fig. 4 by the user, the text content displayed in the preview interface may be determined to be in accordance with the user expectation. Or if the text adjustment operation continuously executed by the user on the preview interface is not received within the preset time period, determining that the text content displayed in the preview interface meets the expectation of the user.
In summary, in the embodiment of the present application, when a preset text operation instruction for a selected text is received, the selected text is displayed in the preview interface, and when a text adjustment operation performed by a user on the preview interface is received, a text adjustment operation performed by the user in the preview interface is responded, an associated text corresponding to the selected text is directly additionally displayed in the preview interface or a text specified by the text adjustment operation is deleted, if the selected text needs to be changed, the user does not need to return to an initial display interface of the selected text to redetermine the selected text, so that complexity of text operation is reduced, and text processing efficiency is improved.
It should be noted that, in the text content processing method provided in the embodiment of the present application, the execution main body may be a text content processing apparatus, or a control module in the text content processing apparatus for executing the text content processing method. In the embodiment of the present application, a text content processing apparatus executes a text content processing method as an example, and the text content processing method provided in the embodiment of the present application is described.
Example two
Referring to fig. 5, specific steps of a text content processing method provided in the second embodiment of the present application are shown.
Step 201, displaying a preview interface under the condition that a preset text operation instruction for a selected text is received, and displaying the selected text in the preview interface.
The preset text operation instruction may be a text operation instruction for executing a copy instruction, a paste instruction, a search instruction, a translation instruction, and the like after the user selects a text. In the embodiment of the application, when a preset text operation instruction of a user is received, a preview interface is displayed instead of directly executing text operation on a selected text, the selected text is displayed in the preview interface, and after the user confirms that the text content displayed in the preview interface is correct, the preset text operation instruction is executed on the text content displayed in the preview interface.
This step may specifically refer to step 101, and further details of this embodiment of the present application are not described herein.
Step 202, receiving a text adjustment operation executed on the preview interface.
The text adjustment operation performed on the preview interface may be a sliding operation on the preview interface, or a triggering operation on a display component in the preview interface, for example, a clicking operation on a "delete" component in the preview interface shown in fig. 4.
Step 203, determining the target length of the associated text to be additionally displayed indicated by the text adjustment operation.
In the embodiment of the application, for the case that the associated text of the selected text is additionally displayed in the preview interface in response to the text adjustment operation, the target length of the associated text to be additionally displayed needs to be determined according to the text adjustment operation, and then the associated text meeting the target length is determined in the text content before or after the display position of the selected text. Further, the display position of the associated text to be additionally displayed can be determined according to the text adjustment operation, so that the text content of the associated text to be additionally displayed is determined by combining the target length of the associated text to be additionally displayed.
Step 204, determining the associated text with the target length in the text content before and/or after the display position of the selected text.
After the target length of the associated text to be additionally displayed, which is indicated by the text adjustment operation, is determined, the associated text with the target length may be determined in the text content before and/or after the display position of the selected text.
Specifically, for example, when the text adjustment operation is a sliding operation, a first sliding direction may be preset to correspondingly display the associated text before the selected text, and a second sliding direction may be preset to correspondingly display the associated text after the selected text. When the sliding operation executed on the preview interface is received, firstly, the sliding direction and the sliding distance of the sliding operation are determined, whether the associated text before or after the selected text needs to be additionally displayed on the preview interface is determined according to the sliding direction, and the target length of the associated text to be additionally displayed is determined according to the sliding distance. For example, assume that the sliding direction is to display the associated text after the selected text when sliding upward, and the sliding direction is to display the associated text before the selected text when sliding downward; the target length of the associated text to be additionally displayed is N characters when the sliding distance meets a first preset threshold, and the target length of the associated text to be additionally displayed is M characters when the sliding distance meets a second preset threshold. Therefore, the display position and the text content of the associated text of the selected text needing to be additionally displayed can be determined according to the corresponding relation between the preset sliding direction and sliding distance and the display position and the target length of the associated text.
For the associated texts with different target lengths, different acquisition modes are adopted in the embodiment of the application.
In an optional embodiment of the present application, before the receiving of the text adjustment operation performed on the preview interface in step 202, the method further includes steps S21 to S22:
step S21, determining a preset length of associated text in the text content before and/or after the display position of the selected text.
And step S22, storing the associated text with the preset length.
The determining of the associated text of the target length in the text content before and/or after the display position of the selected text comprises steps S23 to S25:
step S23, determining whether the target length is less than or equal to the preset length.
Step S24, if the target length is less than or equal to the preset length, obtaining the associated text with the target length from the stored associated text corresponding to the selected text.
Step S25, if the target length is greater than the preset length, acquiring the associated text of the target length from the text content before and/or after the display position of the selected text in the source page.
In the embodiment of the application, before the text adjustment operation executed on the preview interface is received, the associated text meeting the preset length before the display position and/or after the display position of the selected text is stored in advance, so that when the target length of the associated text to be additionally displayed, which is indicated by the text adjustment operation, is smaller than or equal to the preset length, the associated text meeting the target length is directly obtained from the associated text corresponding to the pre-stored selected text. And if the target length of the associated text to be additionally displayed of the text adjusting operation instruction is greater than the preset length, acquiring the associated text meeting the target length from the text content before and/or after the display position of the selected text in the source page corresponding to the selected text.
No matter the target length of the associated text to be additionally displayed, indicated by the text adjustment operation, is smaller than or equal to the preset length or is larger than the preset length, the selected text does not need to be re-determined in the source page of the selected text manually jumped by the user, and therefore the text processing efficiency is improved.
Step 205, on the basis of displaying the selected text in the preview interface, adding and displaying the associated text with the target length before and/or after the display position of the selected text.
And after determining the associated text meeting the target length, increasing the display of the associated text meeting the target length before and/or after the display position of the selected text. Specifically, reference may be made to step 103, where the display position of the associated text is determined according to the text adjustment operation, and further details are not described herein in this embodiment of the application.
And step 206, executing the preset text operation instruction on the text content displayed in the preview interface.
And when the text content displayed in the preview interface is determined to meet the expectation of the user, executing a preset text operation instruction on the text content displayed in the preview interface. Specifically, the text content displayed in the preview interface may be determined to be in accordance with the user expectation in the case of receiving a determination operation of the text content displayed in the preview interface by the user, for example, in the case of receiving a click operation of the "confirm" component in the preview interface shown in fig. 4 by the user, the text content displayed in the preview interface may be determined to be in accordance with the user expectation. Or if the text adjustment operation continuously executed by the user on the preview interface is not received within the preset time period, determining that the text content displayed in the preview interface meets the expectation of the user.
In an optional embodiment of the present application, the method further comprises: and if the display adjustment operation executed on the target area in the preview interface is received, amplifying the display scale of each character in the target area.
Due to the fact that the size of the display interface of the mobile terminal is limited, in order to facilitate a user to execute text operation on text content displayed in the preview interface, the display proportion of characters in the preview interface can be adjusted. Specifically, the user may perform a display adjustment operation on a target area that needs to be enlarged in the preview interface, for example, an enlargement operation on the target area, and after the mobile terminal receives the display adjustment operation performed on the target area in the preview interface, the display scale of each character in the target area is enlarged, so that the user can perform a text operation on the display content of the target area conveniently.
In summary, in the embodiment of the present application, when a preset text operation instruction for a selected text is received, the selected text is displayed in the preview interface, and when a text adjustment operation performed by a user on the preview interface is received, a text adjustment operation performed by the user in the preview interface is responded, an associated text corresponding to the selected text is directly additionally displayed in the preview interface or a text specified by the text adjustment operation is deleted, and if the selected text needs to be changed, the user does not need to return to an initial display interface of the selected text to redetermine the selected text, so that complexity of text operation is reduced, and text processing efficiency is improved.
It should be noted that, in the text content processing method provided in the embodiment of the present application, the execution main body may be a text content processing apparatus, or a control module in the text content processing apparatus for executing the text content processing method. In the embodiment of the present application, a text content processing apparatus executes a text content processing method as an example, and the text content processing method provided in the embodiment of the present application is described.
EXAMPLE III
Referring to fig. 6, which shows a structure diagram of a text content processing apparatus according to a third embodiment of the present invention, the structure diagram specifically includes:
the preview interface display module 301 is configured to display a preview interface and display the selected text in the preview interface when a preset text operation instruction for the selected text is received.
An interface operation receiving module 302, configured to receive a text adjustment operation performed on the preview interface.
An interface operation response module 303, configured to respond to the text adjustment operation, add and display an associated text of the selected text in the preview interface, or delete a text specified by the text adjustment operation in the preview interface.
A text operation executing module 304, configured to execute the preset text operation instruction on the text content displayed in the preview interface.
The text content 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 content processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an IOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The text content processing apparatus provided in the embodiment of the present application can implement each process implemented by the text content processing apparatus in the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition.
In the embodiment of the application, the selected text is displayed in the preview interface under the condition that a preset text operation instruction for the selected text is received, and when the text adjustment operation of a user for the preview interface is received, the text adjustment operation executed by the user in the preview interface is responded, the associated text corresponding to the selected text is directly additionally displayed in the preview interface or the text appointed by the text adjustment operation is deleted, if the selected text needs to be changed, the user does not need to return to the initial display interface of the selected text to re-determine the selected text, the complexity of the text operation is reduced, and the text processing efficiency is improved.
Example four
Referring to fig. 7, a structural diagram of a text content processing apparatus according to a fourth embodiment of the present invention is shown, which specifically includes:
the preview interface display module 401 is configured to display a preview interface and display the selected text in the preview interface when a preset text operation instruction for the selected text is received.
An interface operation receiving module 402, configured to receive a text adjustment operation performed on the preview interface.
An interface operation response module 403, configured to respond to the text adjustment operation, add and display a text associated with the selected text in the preview interface, or delete a text specified by the text adjustment operation in the preview interface.
A text operation executing module 404, configured to execute the preset text operation instruction on the text content displayed in the preview interface.
In an optional embodiment of the present application, the interface operation response module 403 includes:
a target length determination submodule 4031, configured to determine a target length of the associated text to be additionally displayed, where the target length is indicated by the text adjustment operation;
an associated text determining sub-module 4032, configured to determine an associated text of the target length in text content before and/or after the display position of the selected text;
and the associated text display sub-module 4033 is configured to, on the basis of displaying the selected text in the preview interface, add the associated text with the target length before and/or after the display position of the selected text.
In an optional embodiment of the present application, the apparatus further comprises:
an associated text determining module 405, configured to determine an associated text with a preset length in text content before and/or after the display position of the selected text;
an associated text saving module 406, configured to save the associated text with the preset length;
the associated text determination sub-module 4032 includes:
a length judging unit for judging whether the target length is less than or equal to the preset length;
and the first associated text acquisition unit is used for acquiring the associated text with the target length from the stored associated text corresponding to the selected text if the target length is less than or equal to the preset length.
In an optional embodiment of the present application, the associated text determination sub-module 4032 further includes:
and the second associated text acquisition unit is used for acquiring the associated text with the target length from the text content before and/or after the display position of the selected text in the source page if the target length is greater than the preset length.
In an optional embodiment of the present application, the text adjustment operation includes a sliding operation, and the interface operation response module 403 includes:
a sliding information determination submodule 4034 for determining a sliding direction and a sliding distance of the sliding operation;
a first sliding operation response sub-module 4035, configured to, if there is a sliding distance in a first sliding direction in the sliding operation, respond to the sliding operation, add, in the preview interface, an associated text of a target length corresponding to the sliding distance before a display position where the selected text is displayed;
a second sliding operation response sub-module 4036, configured to, if there is a sliding distance in the second sliding direction in the sliding operation, respond to the sliding operation, and add, in the preview interface, the associated text of the target length corresponding to the sliding distance after the display position where the selected text is displayed.
In an optional embodiment of the present application, the apparatus further comprises:
and the display scale amplifying module 407 is configured to, if a display adjustment operation performed on a target area in the preview interface is received, amplify the display scale of each character in the target area.
The text content 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 content processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an IOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The text content processing apparatus provided in the embodiment of the present application can implement each process implemented by the text content processing apparatus in the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition.
In the embodiment of the application, the selected text is displayed in the preview interface under the condition that a preset text operation instruction for the selected text is received, and when the text adjustment operation of a user for the preview interface is received, the text adjustment operation executed by the user in the preview interface is responded, the associated text corresponding to the selected text is directly additionally displayed in the preview interface or the text appointed by the text adjustment operation is deleted, if the selected text needs to be changed, the user does not need to return to the initial display interface of the selected text to re-determine the selected text, the complexity of the text operation is reduced, and the text processing efficiency is improved.
EXAMPLE five
Optionally, as shown in fig. 8, an electronic device 800 is further provided in this embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the text content 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 devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 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.
EXAMPLE six
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 content 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 the like.
EXAMPLE seven
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 content processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
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, an air conditioner, 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 invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for processing text content, the method comprising:
displaying a preview interface under the condition of receiving a preset text operation instruction on a selected text, and displaying the selected text in the preview interface;
receiving a text adjustment operation executed on the preview interface;
responding to the text adjustment operation, and adding and displaying the associated text of the selected text in the preview interface, or deleting the text specified by the text adjustment operation in the preview interface;
and executing the preset text operation instruction on the text content displayed in the preview interface.
2. The method of claim 1, wherein the adding, in response to the text adjustment operation, associated text that displays the selected text in the preview interface comprises:
determining the target length of the associated text to be additionally displayed indicated by the text adjusting operation;
determining the associated text of the target length in the text content before and/or after the display position of the selected text;
on the basis of displaying the selected text in the preview interface, increasing and displaying the associated text of the target length before and/or after the display position of the selected text.
3. The method of claim 2, wherein prior to receiving the text adjustment operation performed on the preview interface, the method further comprises:
determining a preset length of associated text in the text content before and/or after the display position of the selected text;
storing the associated text with the preset length;
the determining the associated text of the target length in the text content before and/or after the display position of the selected text comprises:
judging whether the target length is smaller than or equal to the preset length;
and if the target length is smaller than or equal to the preset length, acquiring the associated text with the target length from the stored associated text corresponding to the selected text.
4. The method of claim 3, wherein after determining whether the target length is less than or equal to the preset length, the method further comprises:
and if the target length is greater than the preset length, acquiring the associated text of the target length from the text content before and/or after the display position of the selected text in the source page.
5. The method according to any one of claims 1 to 4, wherein the text adjustment operation comprises a sliding operation, and the adding and displaying the associated text of the selected text in the preview interface in response to the text adjustment operation comprises:
determining a sliding direction and a sliding distance of the sliding operation;
if the sliding operation has a sliding distance in a first sliding direction, responding to the sliding operation, and adding a related text with the target length corresponding to the sliding distance before the display position of the selected text is displayed in the preview interface;
and if the sliding operation has a sliding distance in a second sliding direction, responding to the sliding operation, and adding the associated text with the target length corresponding to the sliding distance after the display position of the selected text is displayed in the preview interface.
6. A text content processing apparatus, characterized in that the apparatus comprises:
the preview interface display module is used for displaying a preview interface under the condition of receiving a preset text operation instruction for the selected text and displaying the selected text in the preview interface;
the interface operation receiving module is used for receiving the text adjustment operation executed on the preview interface;
an interface operation response module, configured to respond to the text adjustment operation, add and display a text associated with the selected text in the preview interface, or delete a text specified by the text adjustment operation in the preview interface;
and the text operation execution module is used for executing the preset text operation instruction on the text content displayed in the preview interface.
7. The apparatus of claim 6, wherein the interface operation response module comprises:
the target length determining submodule is used for determining the target length of the associated text to be additionally displayed and indicated by the text adjusting operation;
the associated text determining sub-module is used for determining the associated text with the target length in the text content before and/or after the display position of the selected text;
and the associated text display sub-module is used for increasing and displaying the associated text with the target length before and/or after the display position of the selected text on the basis of displaying the selected text in the preview interface.
8. The apparatus of claim 7, further comprising:
the associated text determining module is used for determining associated texts with preset lengths in the text contents before and/or after the display position of the selected text;
the associated text storage module is used for storing the associated text with the preset length;
the associated text determination sub-module includes:
a length judging unit for judging whether the target length is less than or equal to the preset length;
and the first associated text acquisition unit is used for acquiring the associated text with the target length from the stored associated text corresponding to the selected text if the target length is less than or equal to the preset length.
9. The apparatus of claim 8, wherein the associated text determination sub-module further comprises:
and the second associated text acquisition unit is used for acquiring the associated text with the target length from the text content before and/or after the display position of the selected text in the source page if the target length is greater than the preset length.
10. The apparatus of any of claims 6 to 9, wherein the text adjustment operation comprises a slide operation, and wherein the interface operation response module comprises:
the sliding information determination submodule is used for determining the sliding direction and the sliding distance of the sliding operation;
a first sliding operation response submodule, configured to respond to the sliding operation if there is a sliding distance in a first sliding direction in the sliding operation, and add, in the preview interface, an associated text of a target length corresponding to the sliding distance before a display position where the selected text is displayed;
and the second sliding operation response submodule is used for responding to the sliding operation and adding the associated text with the target length corresponding to the sliding distance after the display position of the selected text is displayed in the preview interface if the sliding operation has the sliding distance in the second sliding direction.
CN202011589585.7A 2020-12-28 2020-12-28 Text content processing method and electronic equipment Active CN112612400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011589585.7A CN112612400B (en) 2020-12-28 2020-12-28 Text content processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011589585.7A CN112612400B (en) 2020-12-28 2020-12-28 Text content processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN112612400A true CN112612400A (en) 2021-04-06
CN112612400B CN112612400B (en) 2022-05-24

Family

ID=75248778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011589585.7A Active CN112612400B (en) 2020-12-28 2020-12-28 Text content processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN112612400B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120033241A1 (en) * 2010-08-09 2012-02-09 Samsung Electronics Co., Ltd. Image forming apparatus and method of producing e-book thereof
CN103500070A (en) * 2013-10-23 2014-01-08 北京三星通信技术研究有限公司 Touch operation method and device and terminal unit
CN105183310A (en) * 2015-08-26 2015-12-23 深圳市金立通信设备有限公司 Information editing method and terminal
CN106354337A (en) * 2016-10-21 2017-01-25 珠海市魅族科技有限公司 Character deletion method and character deletion device
CN106951165A (en) * 2017-03-30 2017-07-14 维沃移动通信有限公司 A kind of word editing method and mobile terminal
CN107967093A (en) * 2017-12-21 2018-04-27 维沃移动通信有限公司 A kind of multistage text clone method and mobile terminal
CN108021317A (en) * 2017-12-05 2018-05-11 北京元心科技有限公司 Method and device for screen editing
CN108153720A (en) * 2014-02-19 2018-06-12 华为技术有限公司 A kind of information processing method and terminal device
CN108829319A (en) * 2018-06-15 2018-11-16 驭势科技(北京)有限公司 A kind of exchange method of touch screen, device, electronic equipment and storage medium
CN109710902A (en) * 2018-08-17 2019-05-03 深圳壹账通智能科技有限公司 Generation method, device, equipment and the computer readable storage medium of PDF document
CN110018762A (en) * 2019-03-15 2019-07-16 维沃移动通信有限公司 A kind of text clone method and mobile terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120033241A1 (en) * 2010-08-09 2012-02-09 Samsung Electronics Co., Ltd. Image forming apparatus and method of producing e-book thereof
CN103500070A (en) * 2013-10-23 2014-01-08 北京三星通信技术研究有限公司 Touch operation method and device and terminal unit
CN108153720A (en) * 2014-02-19 2018-06-12 华为技术有限公司 A kind of information processing method and terminal device
CN105183310A (en) * 2015-08-26 2015-12-23 深圳市金立通信设备有限公司 Information editing method and terminal
CN106354337A (en) * 2016-10-21 2017-01-25 珠海市魅族科技有限公司 Character deletion method and character deletion device
CN106951165A (en) * 2017-03-30 2017-07-14 维沃移动通信有限公司 A kind of word editing method and mobile terminal
CN108021317A (en) * 2017-12-05 2018-05-11 北京元心科技有限公司 Method and device for screen editing
CN107967093A (en) * 2017-12-21 2018-04-27 维沃移动通信有限公司 A kind of multistage text clone method and mobile terminal
CN108829319A (en) * 2018-06-15 2018-11-16 驭势科技(北京)有限公司 A kind of exchange method of touch screen, device, electronic equipment and storage medium
CN109710902A (en) * 2018-08-17 2019-05-03 深圳壹账通智能科技有限公司 Generation method, device, equipment and the computer readable storage medium of PDF document
CN110018762A (en) * 2019-03-15 2019-07-16 维沃移动通信有限公司 A kind of text clone method and mobile terminal

Also Published As

Publication number Publication date
CN112612400B (en) 2022-05-24

Similar Documents

Publication Publication Date Title
CN113114845B (en) Notification message display method and device
CN113467660A (en) Information sharing method and electronic equipment
CN112269523B (en) Object editing processing method and device and electronic equipment
CN113849092A (en) Content sharing method and device and electronic equipment
CN111831181A (en) Application switching display method and device and electronic equipment
CN112748842A (en) Text selection method and device
CN113311968A (en) Application program correlation method and device
CN113253883A (en) Application interface display method and device and electronic equipment
CN111813305A (en) Application program starting method and device
CN112269506A (en) Screen splitting method and device and electronic equipment
CN112486366A (en) Control display method and device and electronic equipment
CN114116098B (en) Application icon management method and device, electronic equipment and storage medium
CN111638839A (en) Screen capturing method and device and electronic equipment
CN111954079A (en) Image processing method, image processing apparatus, electronic device, and medium
CN112399010B (en) Page display method and device and electronic equipment
CN114063841A (en) Text selection method, text selection device and electronic equipment
CN113485853A (en) Information interaction method and device and electronic equipment
CN111641551A (en) Voice playing method, voice playing device and electronic equipment
WO2022161243A1 (en) Information display method and apparatus, and electronic device
CN112612400B (en) Text content processing method and electronic equipment
CN112486369B (en) Information display method and device, electronic equipment and readable storage medium
CN112099715B (en) Information processing method and device
CN112637411B (en) Image searching method and device, electronic equipment and readable storage medium
CN114518821A (en) Application icon management method and device and electronic equipment
CN112328141A (en) Copying 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