CN111158544A - Content adding method and electronic equipment - Google Patents

Content adding method and electronic equipment Download PDF

Info

Publication number
CN111158544A
CN111158544A CN201911355938.4A CN201911355938A CN111158544A CN 111158544 A CN111158544 A CN 111158544A CN 201911355938 A CN201911355938 A CN 201911355938A CN 111158544 A CN111158544 A CN 111158544A
Authority
CN
China
Prior art keywords
content
sub
input
target
user
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.)
Pending
Application number
CN201911355938.4A
Other languages
Chinese (zh)
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 CN201911355938.4A priority Critical patent/CN111158544A/en
Publication of CN111158544A publication Critical patent/CN111158544A/en
Pending legal-status Critical Current

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
    • 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/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Abstract

The embodiment of the invention discloses a content adding method and electronic equipment, relates to the technical field of communication, and can solve the problem that the content adding processing efficiency of the electronic equipment is low. The method comprises the following steps: receiving a first input of a user in a first interface, wherein the first interface comprises first content, and the first input is input of the user on second content in the first content; responding to the first input, marking the second content in a preset mode, and displaying a first window, wherein the first window comprises at least one addable content; receiving a second input of the user, wherein the second input is input of the target content in the at least one addable content by the user; and responding to the second input, and adding the target content at the target position, wherein the target position is a position corresponding to the area where the second content is located in the first interface. The embodiment of the invention is applied to the process that the user adds the target content in the input content.

Description

Content adding method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a content adding method and electronic equipment.
Background
Generally, when a user inputs characters in an input box through a soft keyboard of an electronic device, some punctuations (such as brackets, quotation marks, book title numbers, and the like) in the soft keyboard are needed, when the user adds a certain punctuation (such as brackets) in the input characters, the user can input a moving cursor in the input box so that the moving cursor moves to a certain position in the input characters, add a first half part symbol of the punctuations at the position, and then continue inputting the moving cursor so that the moving cursor moves to another position in the input characters, and add a second half part symbol of the punctuations at the position.
However, in the above method, since the user needs to input the moving cursor for multiple times to be able to add a certain punctuation mark to a corresponding position in the text, the operation of the user is cumbersome and time-consuming, which results in a low efficiency of the content adding process by the electronic device.
Disclosure of Invention
The embodiment of the invention provides a content adding method and electronic equipment, which can solve the problem that the content adding processing efficiency of the electronic equipment is low.
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
in a first aspect of the embodiments of the present invention, a content adding method is provided, which is applied to an electronic device, and the content adding method includes: receiving a first input of a user in a first interface, wherein the first interface comprises first content, and the first input is input of the user on second content in the first content; responding to the first input, marking the second content in a preset mode, and displaying a first window, wherein the first window comprises at least one addable content; receiving a second input of the user, wherein the second input is input of the target content in the at least one addable content by the user; and responding to the second input, and adding the target content at the target position, wherein the target position is a position corresponding to the area where the second content is located in the first interface.
In a second aspect of the embodiments of the present invention, there is provided an electronic device, including: the device comprises a receiving module, a marking module, a display module and an adding module. The receiving module is used for receiving a first input of a user on a first interface, the first interface comprises first content, and the first input is input of the user on second content in the first content. And the marking module is used for responding to the first input received by the receiving module and marking the second content in a preset mode. A display module for displaying a first window in response to the first input received by the receiving module, the first window including at least one addable content. The receiving module is further used for receiving a second input of the user, wherein the second input is input of the user to the target content in the at least one addable content. And the adding module is used for responding to the second input received by the receiving module and adding the target content at the target position, wherein the target position is a position corresponding to the area where the second content is located in the first interface.
In a third aspect of the embodiments of the present invention, an electronic device is provided, where the electronic device includes a processor, a memory, and a computer program stored in the memory and being executable on the processor, and the computer program, when executed by the processor, implements the steps of the content adding method according to the first aspect.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the content addition method according to the first aspect.
In an embodiment of the present invention, the electronic device may mark the second content and display the first window including at least one addable content according to a first input of a user to the second content among the first content, and add a target content among the at least one addable content at a target position according to a second input of the user to the target content. The user can directly perform second input on the target content in the at least one addable content according to the use requirement, so that the electronic equipment can add the target content at the corresponding position quickly and accurately without performing multiple inputs on the mobile cursor to add the target content to the corresponding position, the operation of the user can be simplified, the operation time can be saved, and the efficiency of content adding processing by the electronic equipment can be improved.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a content adding method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 4 is a second schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 5 is a second schematic diagram of a content adding method according to an embodiment of the present invention;
fig. 6 is a third schematic diagram of an example of an interface of a mobile phone according to the embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 8 is a second schematic structural diagram of an electronic device according to a second embodiment of the present invention;
fig. 9 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
The terms "first" and "second," and the like, in the description and in the claims of embodiments of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first content, the second content, and the like are for distinguishing different contents, and are not for describing a specific order of contents.
In the description of the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of elements refers to two elements or more.
The term "and/or" herein is an association relationship describing an associated object, and means that there may be three relationships, for example, a display panel and/or a backlight, which may mean: there are three cases of a display panel alone, a display panel and a backlight at the same time, and a backlight alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, input/output denotes input or output.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the invention provides a content adding method and electronic equipment, wherein a user can display at least one addable content through a first input, so that the user can directly perform a second input on a target content in the at least one addable content according to a use requirement, the electronic equipment can rapidly and accurately add the target content at a corresponding position, and the user does not need to perform multiple inputs on a moving cursor to add the target content to the corresponding position, so that the operation of the user can be simplified, the operation time can be saved, and the content adding efficiency of the electronic equipment can be improved.
The content adding method and the electronic device provided by the embodiment of the invention can be applied to the process of adding the target content in the input content by the user.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the content adding method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the content adding method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the content adding method may operate based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the content adding method provided by the embodiment of the present invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. For 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 Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
A content adding method and an electronic device provided in the embodiments of the present invention are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In the embodiment of the present invention, when a user edits a text through an application program of an electronic device, if the user needs to add a new content (for example, a content composed of two parts of sub-content, specifically, a punctuation mark such as a double quotation mark or a bracket) to an already input content (for example, a text content in an input box) in an interface of the application program, the user does not need to input a moving cursor in the input box multiple times in a conventional manner to add the new content to a corresponding position (that is, one sub-content corresponds to one position), but directly input a part of or all of the already input content (for example, a content that needs to be referenced by a double quotation mark) so that the electronic device displays (for example, displays in a floating window form) a plurality of addable contents (for example, a plurality of punctuation marks) on the interface, and the user can select a certain addable content (for example, a double quotation mark) that needs to be added from the plurality of addable contents, so that the electronic device adds the two parts of sub-content of the certain addable content to the two positions corresponding to the content marked by the electronic device respectively, so that the content marked by the electronic device is located between the two parts of sub-content (for example, the content marked by the electronic device is referred by double quotation marks) to realize text editing of the content input in the application program; therefore, through the scheme provided by the embodiment of the invention, the input of the mobile cursor when the user adds new content in the input content can be simplified, so that the efficiency of adding the content by the electronic equipment can be improved.
Optionally, in the embodiment of the present invention, the application program may be any one of the following: chat-type applications, memo applications, office-type applications, browser-type applications, and the like. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Fig. 2 shows a flowchart of a content adding method provided in an embodiment of the present invention, and the method may be applied to an electronic device having an android operating system shown in fig. 1. As shown in fig. 2, the content adding method provided by the embodiment of the present invention may include steps 201 to 204 described below.
Step 201, the electronic device receives a first input of a user on a first interface.
In an embodiment of the present invention, the first interface includes first content, and the first input is an input of a second content in the first content by a user.
Optionally, in this embodiment of the present invention, the first interface may be an interface capable of editing content, for example, the first interface may be a text editing interface, a chat conversation interface, or a search interface in an application program.
Optionally, in the embodiment of the present invention, the first content is a content that has been input by the user in the first interface; alternatively, the first content may be content that has been generated by the electronic device.
Optionally, in this embodiment of the present invention, the second content may be a part of or all of the first content.
Optionally, in an embodiment of the present invention, the first content specifically may include at least one of the following: text, letters, images (e.g., emoticons), symbols, numbers, links, and the like; the second content may specifically include at least one of the following: words, letters, images, symbols, numbers, links, and the like.
Optionally, in the embodiment of the present invention, the symbols may include punctuation marks, special symbols, and the like.
It should be noted that the characters, letters, images, symbols, numbers and links may be referred to as characters.
Optionally, in this embodiment of the present invention, the first input may be a selection input of a user for a second content in the first content. For example, the first input may specifically be a long-press input of the second content by the user, or a selection input of the second content through an input device (e.g., a keyboard, a mouse, etc.), or the like. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the first interface may further include a moving cursor, a soft keyboard, and other function options (for example, a delete option, a save option, and the like); the user can make a selection input for the second content by moving the cursor.
Step 202, the electronic device responds to the first input, marks the second content in a preset mode, and displays the first window.
In an embodiment of the present invention, the first window includes at least one addable content.
Optionally, in this embodiment of the present invention, each addable content in the at least one addable content includes a plurality of sub-contents, respectively (i.e., each addable content is composed of a plurality of sub-contents, respectively).
Optionally, in this embodiment of the present invention, the at least one addable content is a content that can be added/inserted in the content already displayed in the first interface by the electronic device.
Optionally, in this embodiment of the present invention, the electronic device may determine and mark the second content according to the position (e.g., the start position and the end position) of the first input; alternatively, the electronic device may determine and mark the second content according to semantic information, syntax information, and the like of the content corresponding to the position of the first input (e.g., the content displayed at the position and the content adjacent to the content).
Optionally, in this embodiment of the present invention, the electronic device may filter out at least one addable content (for example, an addable content composed of a plurality of content parts) from the plurality of contents according to the feature information of the plurality of contents stored in the electronic device, so as to display the at least one addable content.
Optionally, in this embodiment of the present invention, a user may set a content editing rule in the electronic device in advance (for example, turn on an addable content quick display function), so that the user may trigger the electronic device to display at least one addable content through the first input, where the at least one addable content may be selected by the user from a plurality of contents in the electronic device in advance.
Optionally, in an embodiment of the present invention, the at least one addable content includes at least one of: words, letters, images, symbols, numbers, and the like.
Optionally, in this embodiment of the present invention, the symbol may be a punctuation symbol or a combination symbol, where the punctuation symbol specifically includes at least one of the following: double quotation marks, single quotation marks, title numbers, and parentheses (e.g., small, medium, large, etc.) and the like. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, each addable content in the at least one addable content may include a plurality of sub-contents, that is, one addable content is composed of a plurality of sub-contents.
Optionally, in an embodiment of the present invention, the preset manner may be any one of the following manners: a color marking content mode, a content flashing marking mode, a color marking background mode, a content amplifying display mode and the like; the electronic device may display the first window in a floating form; alternatively, the electronic device may display the first window in the first interface.
Illustratively, taking an electronic device as a mobile phone as an example for illustration, as shown in fig. 3 (a), the mobile phone displays a first interface (e.g., a text editing interface 10), the text editing interface 10 displays first content (e.g., the first content includes a plurality of letters, words, numbers, etc.) that a user has input, a soft keyboard 11, and a mobile cursor 12, and the user can perform a first input on a second content (e.g., today's weather is good) in the first content; as shown in fig. 3 (B), after the user makes the first input, the mobile phone may mark the second content in a color mark background manner (illustrated in a filled manner in fig. 3 (B)) and display a first window 13, which includes at least one addable content (e.g., a double quotation mark, a single quotation mark, a book title number, and various brackets, etc.) in the first window 13.
Optionally, in this embodiment of the present invention, the first window further includes at least one control, where each control is used to indicate an editing processing mode, and each editing processing mode is used to edit the first content.
It can be understood that different controls correspond to different editing processing modes, and the different editing processing modes are used for performing different editing processing on the first content.
Optionally, in an embodiment of the present invention, the at least one control may include at least one of: a full selection control, a copy control, a cutting control, a content parameter adjusting control and the like; the at least one editing processing mode corresponding to the at least one control may include at least one of: a full selection processing mode, a copy processing mode, a cut processing mode, a content parameter adjustment mode (for example, a character size adjustment mode, a character color adjustment mode, a character format adjustment mode, etc.), and the like. The full selection processing mode is used for the electronic equipment to perform full selection processing on the first content, the copy processing mode is used for the electronic equipment to perform copy processing on the first content, and the cutting processing mode is used for the electronic equipment to perform cutting processing on the first content.
Optionally, in the embodiment of the present invention, a user may input any control of the at least one control to trigger the electronic device to edit the first content in an editing processing manner corresponding to the any control.
Illustratively, in conjunction with fig. 3 (B), as shown in fig. 4, the first window 13 in the first interface 10 further includes at least one control, for example, a full selection control 14, a copy control 15, and a cut control 16, the user may make a selection input on the full selection control 14 so that the first content may be selected by the mobile phone in full according to the second content, the user may make a selection input on the copy control 15 so that the second content may be copied into the clipboard by the mobile phone, and the user may make a selection input on the cut control 16 so that the second content may be cut into the clipboard by the mobile phone.
Optionally, in this embodiment of the present invention, the step 202 may be specifically implemented by the following step 202 a.
Step 202a, the electronic device responds to the first input, marks the second content in a preset mode, and displays the first window under the condition that the first interface is detected to be a text editing interface.
It is understood that the text editing interface can be understood as follows: an interface that allows a user to perform text editing, such as content addition, content deletion, content movement, content input, and the like.
In the embodiment of the invention, the electronic equipment can acquire the authority information of the first content in the first interface and determine whether the first interface is a text editing interface or not according to the authority information.
Optionally, in this embodiment of the present invention, in a case that the first interface is detected as another interface (i.e., a non-text editing interface, such as a reading interface, a browsing interface, and the like), the electronic device may not display at least one addable content, for example, display at least one control.
In the embodiment of the invention, the electronic equipment can determine whether the user can add content in the first interface according to whether the first interface is a text editing interface or not, so as to determine whether the first window comprising at least one addable content is displayed or not, and therefore, the flexibility of the electronic equipment in displaying the addable content is higher.
Optionally, in this embodiment of the present invention, the step 202 may be specifically implemented by the following step 202 b.
Step 202b, the electronic device responds to the first input, marks the second content in a preset mode, and displays the first window under the condition that a third input is not detected within a preset time length.
In an embodiment of the present invention, the third input is a target editing input of a user on content in the electronic device; wherein the target editing input comprises at least one of: copy input and cut input.
In the embodiment of the present invention, the electronic device may start to detect after the first input is ended (i.e., the ending time of the first input), so as to determine whether the third input exists within a preset time period from the ending time to the previous time.
Optionally, in this embodiment of the present invention, the third input may be an input of content in the first interface by a user, or an input of content in another interface (for example, an interface other than the first interface (for example, an interface in another application)).
Optionally, in this embodiment of the present invention, the electronic device may detect whether to add content to be processed (for example, copied content or cut content) in the target storage area (for example, the clipboard) within a preset time period, and display the first window when it is determined that the content to be processed is added in the target storage area.
Optionally, in this embodiment of the present invention, in a case that the third input is detected within the preset time period, the electronic device may not display at least one addable content, for example, display at least one control.
In the embodiment of the present invention, the electronic device may determine whether the user needs the electronic device to perform other processing on the content in the first interface according to whether the third input is detected within the preset time period, so as to determine whether to display the first window including at least one addable content, so that the flexibility of displaying the addable content by the electronic device is higher.
Step 203, the electronic device receives a second input of the user.
In an embodiment of the present invention, the second input is an input (e.g., a selection input) of a user to a target content in the at least one addable content.
Optionally, in this embodiment of the present invention, the target content may include one addable content or multiple addable contents.
In step 204, the electronic device adds the target content at the target location in response to the second input.
In an embodiment of the present invention, the target position is a position in the first interface corresponding to an area where the second content is located.
The position corresponding to the area where the second content is located may be understood as: a position before the second content (i.e., a position where the display of the second content is started) and/or a position after the second content (i.e., a position where the display of the second content is ended).
Optionally, in this embodiment of the present invention, the first content may include N characters (N is a positive integer), and the second content includes M characters (M is a positive integer less than or equal to N) of the N characters, where a first character of the M characters is an ith character (i is a positive integer) of the N characters, and a last character of the M characters is an i + M-1 th character of the N characters; the target position is a position between the (i-1) th character and the ith character, and/or a position between the (i + M-1) th character and the (i + M) th character.
It is to be appreciated that the electronic device can display the target content at the target location by adding the target content at the target location.
Optionally, in this embodiment of the present invention, the target content includes a first sub-content and a second sub-content, and the target location includes a first sub-location and a second sub-location. Referring to fig. 2, as shown in fig. 5, the step 204 can be specifically realized by the following step 204 a.
Step 204a, the electronic device adds the first sub-content at the first sub-position and adds the second sub-content at the second sub-position in response to the second input.
In this embodiment of the present invention, the second content is located between the first sub-content and the second sub-content.
It is understood that after adding the first sub-content and the second sub-content, the second content is located between the first sub-content and the second sub-content.
Optionally, in this embodiment of the present invention, the first sub-position may be a position between the i-1 th character and the i-th character, and the second sub-position may be a position between the i + M-1 th character and the i + M-th character.
Optionally, in this embodiment of the present invention, the first sub-content may be a first half content of the target content, and the second sub-content may be a second half content of the target content.
Optionally, in this embodiment of the present invention, the first sub-content may be a leading quotation mark in a double quotation mark, and the second sub-content may be a trailing quotation mark in the double quotation mark; the first sub-content may be a front parenthesis among parenthesis, and the second sub-content may be a rear parenthesis among parenthesis; the first sub-content may be a front book name number in the book name number, and the second sub-content may be a back book name number in the book name number.
It is to be understood that the electronic device may display the first sub-content at a first sub-location by adding the first sub-content at the first sub-location, and display the second sub-content at a second sub-location by adding the second sub-content at the second sub-location.
Illustratively, in conjunction with (B) in fig. 3, as shown in fig. 6, after the user makes a second input on the target content (e.g., double quotation marks) in the first window 13, the mobile phone may add a first sub-content (e.g., a leading quotation mark of the double quotation mark) in the target content at a first sub-position (e.g., position m) in the text editing interface 10, and add a second sub-content (e.g., a trailing quotation mark of the double quotation mark) in the target content at a second sub-position (e.g., position n) in the text editing interface 10, so that the second content (i.e., today's weather is good) is located between the first sub-content and the second sub-content.
Optionally, in the embodiment of the present invention, before the step 204a, the content adding method provided in the embodiment of the present invention further includes the following step 301, and the step 204a may be specifically realized by the following step 204a 1.
Step 301, the electronic device obtains first characteristic information of the first sub-content and second characteristic information of the second sub-content.
Optionally, in this embodiment of the present invention, the first characteristic information may include a content format and attribute information of the first sub-content, and the second characteristic information may include a content format and attribute information of the second sub-content, where the content formats of the first sub-content and the second sub-content are the same.
Optionally, in an embodiment of the present invention, the content format may include at least one of the following: a text form, a letter form, a number form, an image form, a symbol form (e.g., a double quotation mark form, a title number form, etc.).
Step 204a1, the electronic device responds to the second input, and adds the first sub-content at the first sub-position and the second sub-content at the second sub-position according to the first characteristic information and the second characteristic information.
In the embodiment of the invention, the user can make the electronic device display at least one addable content through the first input, so that the user can directly perform the second input on the target content in the at least one addable content, so that the electronic device can rapidly and respectively add different word contents (namely, the first sub-content and the second sub-content) in the target content at different positions (namely, the first sub-position and the second sub-position), and the user does not need to perform multiple inputs on the moving cursor to add the target content to the corresponding positions, so that the operation of the user can be simplified, the operation time can be saved, and the efficiency of content adding processing by the electronic device can be improved.
The embodiment of the invention provides a content adding method, wherein an electronic device can mark second content and display a first window comprising at least one addable content according to first input of a user to the second content in first content, and add a target content in the at least one addable content at a target position according to second input of the user to the target content. The user can directly perform second input on the target content in the at least one addable content according to the use requirement, so that the electronic equipment can add the target content at the corresponding position quickly and accurately without performing multiple inputs on the mobile cursor to add the target content to the corresponding position, the operation of the user can be simplified, the operation time can be saved, and the efficiency of content adding processing by the electronic equipment can be improved.
Fig. 7 shows a schematic diagram of a possible structure of an electronic device involved in the embodiment of the present invention. As shown in fig. 7, the electronic device 70 may include: a receiving module 71, a marking module 72, a display module 73 and an adding module 74.
The receiving module 71 is configured to receive a first input of a user in a first interface, where the first interface includes first content, and the first input is an input of a second content in the first content by the user. A marking module 72 for marking the second content in a preset manner in response to the first input received by the receiving module 71. A display module 73, configured to display a first window including at least one addable content in response to the first input received by the receiving module 71. The receiving module 71 is further configured to receive a second input of the user, where the second input is an input of the user to the target content in the at least one addable content. And an adding module 74, configured to add, in response to the second input received by the receiving module 71, the target content at a target position, where the target position is a position in the first interface corresponding to the area where the second content is located.
In one possible implementation, the at least one addable content includes at least one of: text content, symbol content, and image content; the first window further comprises at least one control, each control is used for indicating an editing processing mode, and each editing processing mode is used for editing and processing the first content.
In a possible implementation manner, the target content includes a first sub-content and a second sub-content, and the target location includes a first sub-location and a second sub-location. The adding module 74 is specifically configured to add a first sub-content at a first sub-position, and add a second sub-content at a second sub-position; wherein the second content is located between the first sub-content and the second sub-content.
In a possible implementation manner, with reference to fig. 7 and as shown in fig. 8, an electronic device provided in an embodiment of the present invention further includes: an acquisition module 75. Wherein, the obtaining module 75 is configured to obtain the first characteristic information of the first sub-content and the second characteristic information of the second sub-content before the adding module 74 adds the first sub-content at the first sub-position. The adding module 74 is specifically configured to add the first sub-content at the first sub-position and add the second sub-content at the second sub-position according to the first characteristic information and the second characteristic information.
In a possible implementation manner, the display module 73 is specifically configured to display the first window when it is detected that the first interface is a text editing interface.
In a possible implementation manner, the display module 73 is specifically configured to display the first window under the condition that a third input is not detected, where the third input is a target editing input of a user on content in the electronic device within a preset time duration; wherein the target editing input comprises at least one of: copy input and cut input.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and for avoiding repetition, detailed descriptions are not repeated here.
The embodiment of the invention provides electronic equipment, and a user can directly perform second input on target content in at least one addable content according to use requirements so that the electronic equipment can quickly and accurately add the target content at a corresponding position without inputting a moving cursor for multiple times so as to simplify the operation of the user and save the operation time, thereby improving the efficiency of content adding processing of the electronic equipment.
Fig. 9 is a hardware schematic diagram of an electronic device implementing various embodiments of the invention. As shown in fig. 9, electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111.
It should be noted that 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 in fig. 9, or combine some components, or arrange different components, as will be understood by those skilled in the art. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The user input unit 107 is configured to receive a first input of a user in a first interface, where the first interface includes first content, and the first input is an input of a second content in the first content by the user.
A processor 110 for tagging the second content in a preset manner in response to the first input.
A display unit 106 for displaying a first window including at least one addable content in response to a first input.
The user input unit 107 is further configured to receive a second input from the user, where the second input is input from the user to the target content in the at least one addable content.
The processor 110 is further configured to add, in response to the second input, the target content at the target position, where the target position is a position in the first interface corresponding to the area where the second content is located.
The embodiment of the invention provides electronic equipment, and a user can directly perform second input on target content in at least one addable content according to use requirements so that the electronic equipment can quickly and accurately add the target content at a corresponding position without inputting a moving cursor for multiple times so as to simplify the operation of the user and save the operation time, thereby improving the efficiency of content adding processing of the electronic equipment.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 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.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 9, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when executed by the processor, the computer program implements each process of the foregoing content addition method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned content addition method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be, for example, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 invention 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 an electronic device (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 invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (13)

1. A content adding method is applied to electronic equipment, and is characterized by comprising the following steps:
receiving a first input of a user in a first interface, wherein the first interface comprises first content, and the first input is input of the user on second content in the first content;
in response to the first input, marking the second content in a preset mode and displaying a first window, wherein the first window comprises at least one addable content;
receiving a second input of the user, wherein the second input is input of the target content in the at least one addable content by the user;
and responding to the second input, and adding the target content at a target position, wherein the target position is a position corresponding to the area where the second content is located in the first interface.
2. The method of claim 1, wherein the first window further comprises at least one control, each control for indicating an editing process, each editing process for editing the first content.
3. The method of claim 1 or 2, wherein the target content comprises a first sub-content and a second sub-content, and wherein the target location comprises a first sub-location and a second sub-location;
the adding the target content at the target location comprises:
adding the first sub-content at the first sub-location and adding the second sub-content at the second sub-location;
wherein the second content is located between the first sub-content and the second sub-content.
4. The method of claim 3, wherein prior to adding the first sub-content at the first sub-location, the method further comprises:
acquiring first characteristic information of the first sub-content and second characteristic information of the second sub-content;
the adding the first sub-content at the first sub-location and the second sub-content at the second sub-location, comprising:
adding the first sub-content at the first sub-position and adding the second sub-content at the second sub-position according to the first characteristic information and the second characteristic information.
5. The method of claim 1, wherein displaying the first window comprises:
and displaying the first window under the condition that the first interface is detected to be a content editing interface.
6. The method of claim 1, wherein displaying the first window comprises:
displaying the first window under the condition that a third input is not detected within a preset time length, wherein the third input is a target editing input of a user on the content in the electronic equipment;
wherein the target editing input comprises at least one of: copy input and cut input.
7. An electronic device, characterized in that the electronic device comprises: the device comprises a receiving module, a marking module, a display module and an adding module;
the receiving module is used for receiving a first input of a user in a first interface, wherein the first interface comprises first content, and the first input is input of the user on second content in the first content;
the marking module is used for responding to the first input received by the receiving module and marking the second content in a preset mode;
the display module is used for responding to the first input received by the receiving module and displaying a first window, and the first window comprises at least one addable content;
the receiving module is further configured to receive a second input of the user, where the second input is an input of the user on target content in the at least one addable content;
the adding module is used for responding to the second input received by the receiving module, and adding the target content at a target position, wherein the target position is a position corresponding to an area where the second content is located in the first interface.
8. The electronic device of claim 7, wherein the first window further comprises at least one control, each control for indicating an editing process, each editing process for editing the first content.
9. The electronic device of claim 7 or 8, wherein the target content comprises a first sub-content and a second sub-content, and wherein the target location comprises a first sub-location and a second sub-location;
the adding module is specifically configured to add the first sub-content at the first sub-position, and add the second sub-content at the second sub-position;
wherein the second content is located between the first sub-content and the second sub-content.
10. The electronic device of claim 9, further comprising: an acquisition module;
the obtaining module is configured to obtain first feature information of the first sub-content and second feature information of the second sub-content before the adding module adds the first sub-content at the first sub-position;
the adding module is specifically configured to add the first sub-content at the first sub-position and add the second sub-content at the second sub-position according to the first feature information and the second feature information.
11. The electronic device according to claim 7, wherein the display module is specifically configured to display the first window when it is detected that the first interface is a text editing interface.
12. The electronic device according to claim 7, wherein the display module is specifically configured to display the first window when a third input is not detected, where the third input is a target editing input of a user on content in the electronic device within a preset time duration;
wherein the target editing input comprises at least one of: copy input and cut input.
13. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the content addition method according to any one of claims 1 to 6.
CN201911355938.4A 2019-12-25 2019-12-25 Content adding method and electronic equipment Pending CN111158544A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911355938.4A CN111158544A (en) 2019-12-25 2019-12-25 Content adding method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911355938.4A CN111158544A (en) 2019-12-25 2019-12-25 Content adding method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111158544A true CN111158544A (en) 2020-05-15

Family

ID=70557979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911355938.4A Pending CN111158544A (en) 2019-12-25 2019-12-25 Content adding method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111158544A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867581A (en) * 2021-09-13 2021-12-31 维沃移动通信有限公司 Content editing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100235729A1 (en) * 2009-03-16 2010-09-16 Kocienda Kenneth L Methods and Graphical User Interfaces for Editing on a Multifunction Device with a Touch Screen Display
CN103425395A (en) * 2013-08-29 2013-12-04 宇龙计算机通信科技(深圳)有限公司 Text copying method and mobile terminal
CN105659194A (en) * 2013-09-24 2016-06-08 微软技术许可有限责任公司 Quick tasks for on-screen keyboards
CN106201017A (en) * 2016-07-19 2016-12-07 深圳市金立通信设备有限公司 A kind of input method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100235729A1 (en) * 2009-03-16 2010-09-16 Kocienda Kenneth L Methods and Graphical User Interfaces for Editing on a Multifunction Device with a Touch Screen Display
CN103425395A (en) * 2013-08-29 2013-12-04 宇龙计算机通信科技(深圳)有限公司 Text copying method and mobile terminal
CN105659194A (en) * 2013-09-24 2016-06-08 微软技术许可有限责任公司 Quick tasks for on-screen keyboards
CN106201017A (en) * 2016-07-19 2016-12-07 深圳市金立通信设备有限公司 A kind of input method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867581A (en) * 2021-09-13 2021-12-31 维沃移动通信有限公司 Content editing method and device and electronic equipment
CN113867581B (en) * 2021-09-13 2023-06-20 维沃移动通信有限公司 Content editing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN107943390B (en) Character copying method and mobile terminal
CN111142991A (en) Application function page display method and electronic equipment
CN111142723B (en) Icon moving method and electronic equipment
EP3916529A1 (en) Message sending method, and terminal device
CN111638837B (en) Message processing method and electronic equipment
CN110109593B (en) Screen capturing method and terminal equipment
CN110196668B (en) Information processing method and terminal equipment
US11861158B2 (en) Message processing method and electronic device
CN110750188A (en) Message display method and electronic equipment
CN110908554B (en) Long screenshot method and terminal device
CN109189303B (en) Text editing method and mobile terminal
CN109271262B (en) Display method and terminal
CN111124709A (en) Text processing method and electronic equipment
CN111124231B (en) Picture generation method and electronic equipment
CN110908750B (en) Screen capturing method and electronic equipment
CN111061446A (en) Display method and electronic equipment
CN111399715B (en) Interface display method and electronic equipment
CN110909180B (en) Media file processing method and electronic equipment
CN111163347B (en) Bullet screen information processing method and electronic equipment
CN110647506B (en) Picture deleting method and terminal equipment
CN111596819A (en) Unread message processing method and electronic equipment
CN110888854A (en) Content sharing method and electronic equipment
CN111026454A (en) Function starting method and terminal equipment
CN111158544A (en) Content adding method and electronic equipment
CN111427496B (en) Parameter adjusting method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200515