WO2021104160A1 - 编辑方法及电子设备 - Google Patents

编辑方法及电子设备 Download PDF

Info

Publication number
WO2021104160A1
WO2021104160A1 PCT/CN2020/130319 CN2020130319W WO2021104160A1 WO 2021104160 A1 WO2021104160 A1 WO 2021104160A1 CN 2020130319 W CN2020130319 W CN 2020130319W WO 2021104160 A1 WO2021104160 A1 WO 2021104160A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
interface
input
text
display
Prior art date
Application number
PCT/CN2020/130319
Other languages
English (en)
French (fr)
Inventor
张健钦
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021104160A1 publication Critical patent/WO2021104160A1/zh

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
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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
    • G06F3/04842Selection of displayed objects or displayed text elements

Definitions

  • the present invention relates to the field of communication technology, in particular to an editing method and electronic equipment.
  • the purpose of the present invention is to provide an editing method and electronic equipment to solve the problems of complicated operation and low copy efficiency in the text copy method in the related art.
  • the present invention is implemented as follows:
  • an embodiment of the present invention provides an editing method applied to an electronic device, including:
  • the candidate area includes the text selection area, and/or is located in an extended area of a preset range of the text selection area.
  • an embodiment of the present invention also provides an electronic device, including:
  • the first receiving module is configured to receive the first input for the text content displayed in the target interface
  • the first response module is configured to display a text selection area on the target interface in response to the first input, and increase the distance between the texts in the candidate area;
  • the second receiving module is configured to receive a second input for the target text in the text selection area
  • a second response module configured to determine a target display position of the target text in response to the second input, and display the target text at the target display position;
  • the candidate area includes the text selection area, and/or is located in an extended area of a preset range of the text selection area.
  • an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a program stored on the memory and capable of running on the processor.
  • a program stored on the memory and capable of running on the processor.
  • an embodiment of the present invention also provides a readable storage medium having a program stored on the readable storage medium, and when the program is executed by a processor, the steps of the above-mentioned editing method are implemented.
  • the above technical solution of the embodiment of the present invention increases the distance between the text in the candidate area, so that the user can easily select the text to be edited, and through the second input of the target text in the text selection box,
  • the target text can be displayed in the target display position conveniently and quickly, which simplifies the text editing process and improves the efficiency of text editing.
  • FIG. 1 is a schematic flowchart of an editing method according to an embodiment of the present invention
  • FIG. 2 is one of the schematic diagrams of text selection through a text selection area in an embodiment of the present invention
  • FIG. 3 is the second schematic diagram of text selection through a text selection area in an embodiment of the present invention.
  • Figure 5 is a schematic diagram of an editable interface in a target editable interface set according to an embodiment of the present invention.
  • Fig. 6 is a schematic diagram of a target application list page in an embodiment of the present invention.
  • FIG. 7 is one of schematic diagrams of modules of an electronic device provided by an embodiment of the present invention.
  • FIG. 8 is a second schematic diagram of modules of an electronic device provided by an embodiment of the present invention.
  • Fig. 9 is a structural block diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 1 it is a schematic flowchart of an editing method provided by an embodiment of the present invention. The following describes the implementation process of the method in detail with reference to the figure.
  • the editing method may include the following steps:
  • Step 101 Receive a first input for the text content displayed in the target interface.
  • the target interface may specifically be the current display interface.
  • the above-mentioned first input is specifically a long-press input of the text content by the user.
  • the aforementioned text content includes at least one of text, numbers, English letters, and punctuation marks.
  • Step 102 In response to the first input, display a text selection area on the target interface, and increase the distance between the texts in the candidate area.
  • the candidate area includes the text selection area, and/or is located in an extended area of a preset range of the text selection area.
  • the preset range may be a range before and/or after the text selection area, and the range may be set by character length or distance length.
  • the text selection area is a rectangle
  • the extended area is specifically an area located 10 characters before and 10 characters after the text selection area.
  • a text selection area is displayed in the target interface, and editing marks, such as a cursor, are displayed on both sides of the text selection area, and the size of the text selection area can be adjusted by the cursor. That is, the user selects the text content to be edited (copied) by sliding the edit mark.
  • the distance between the texts in the candidate area is automatically increased, thereby facilitating the user to select the text.
  • the display interval of the characters in the candidate region text can be increased in units of phrases. In other words, the display interval between two adjacent phrases in the text increases.
  • the characters in the text "Leaves with very high water flow, like a group of dancing girls in Tingting" and "In the middle, scattered with some white flowers” are added to the display interval in units of phrases, so that the user can edit the logo ( Cursor) for positioning selection.
  • Step 103 Receive a second input for the target text in the text selection area.
  • the second input may specifically be a sliding input of the user to the target text, that is, the user determines the target display position of the target text in the target interface by dragging the target text.
  • the second input may also be a user's pressing input on the target text, that is, the user determines the target display interface by pressing the target text, and then determines the target display position of the target text in the target display interface.
  • the target text is the text located in the text selection area.
  • Step 104 In response to the second input, determine a target display position of the target text, and display the target text at the target display position.
  • the target display position may be the display position in the target interface or the display position in the target display interface.
  • the target display position of the target text can be determined through the second input, and the operation is simple.
  • the editing method of the embodiment of the present invention increases the distance between the text in the candidate area, so that the user can easily select the text to be edited, and through the second input of the target text in the text selection box,
  • the target text is displayed on the target display position conveniently and quickly, which simplifies the text editing process and improves the efficiency of text editing.
  • the method further includes:
  • the third input mentioned above is specifically the user's sliding input to the edit marks on both sides of the text selection area.
  • the user adjusts the size of the text selection area by sliding the edit marks, and then determines the size of the text selection area according to the adjusted text selection area.
  • the target text to be edited is edited.
  • the distance between the texts in the candidate area is automatically increased, which is convenient for the user to select text.
  • the second input is a sliding input of the target text by the user in the target interface
  • the determining the target display position of the target text in response to the second input includes:
  • the sliding end position of the second input in the target interface is determined as the target display position of the target text.
  • the user determines the target display position by dragging the target text, and after the second input is completed, it is prompted that the target text has been copied.
  • a selection menu can also be displayed, through which the user can choose whether to automatically paste the target text. After the user selects the automatic paste target text, the target text is automatically pasted at the target display position.
  • the second input is a pressing input of the target text, for example, a long pressing input.
  • the determining the target display position of the target text in response to the second input includes:
  • the sliding end position of the fourth input in the target display interface is determined as the target display position of the target text.
  • the user wants to paste the target text to another interface other than the target interface, that is, the target display interface.
  • the target display interface does not require the user to switch pages manually, and the operation is simple.
  • After determining the target display interface update the current display interface to the target display interface. For example, make the current display interface transparent. After the current display interface is fully transparent, the target display interface is displayed, and the target text is displayed in the target display interface. , The user drags the target text through the fourth input to move in the target display interface to determine the target display position of the target text in the target display interface.
  • the determining the target display interface according to the target editable interface set in response to the second input includes:
  • the currently displayed editable interface is determined as the target display interface
  • the preset condition is that the end of the second input is detected within the first preset display duration of the currently displayed editable interface; or, within the first preset display duration of the currently displayed editable interface , The end of the second input is detected, and the fifth input for the target text is received.
  • the foregoing preset sequence may be in a descending order of the difference between the opening time and the opening time of the target interface.
  • the above-mentioned fifth input may specifically be a sliding input.
  • the long-press input for the target text is received, and in response to the long-press input, start to switch the editable interface in the recent application list (target editable interface) in the unit of page (Activity), and make it transparent first
  • the target interface shows the page with input function closest to the current page (each application in the system has a task stack, and each task is composed of several pages (Activity)).
  • the application in the current electronic device is shown in Figure 5
  • the switching sequence is A1->A3->B5->C4.
  • A1, A3, B5, and C4 in Figure 5 all represent pages with editing functions.
  • A1 is determined as the target display interface. Otherwise, continue to make A1 transparent and display A3, and so on.
  • the method further includes:
  • the target application list page is displayed, and the target display interface is determined according to the target application list page, and the target application list The page is the upper level application interface of the editable interface in the target editable interface set.
  • the target application list page is displayed for the user to determine the target display interface.
  • the target application list page can be displayed according to the open time of the editable interface corresponding to the target application list page. For example, the target application list page corresponding to the editable interface with the smallest difference between the open time and the target interface open time is displayed first.
  • the editable interface in the above set of target editable interfaces can be specifically the communication chat interface between the user of the electronic device and the contact, and the target application list page can be specifically the contact list page corresponding to the communication chat interface, which can be used to facilitate the contact list page.
  • the user quickly selects the target display interface.
  • the above-mentioned editable interface can also be a specific note editing interface in the note application, for example, the name is synchronized note editing interface.
  • the target application list page may specifically include multiple note names List of notes.
  • the target application list page includes at least one editable interface identifier, for example, the editable interface identifier may specifically be a contact name or a note name;
  • the determining the target display interface according to the target application list page includes:
  • the target application list page if a sixth input for the target editable interface identifier in the target application list page is received, then in response to the sixth input, display the available Edit the editable interface corresponding to the edit interface identifier, and determine the editable interface corresponding to the editable interface identifier as the target display interface;
  • the main interface of the electronic device is displayed, and according to The main interface determines a target display interface, and at least two application identifiers are displayed in the main interface.
  • the aforementioned target editable interface identifier can be specifically any editable interface identifier on the target application list page.
  • the aforementioned sixth input may specifically be a user's click input on the target contact in the target application list page, and within the second preset display time of the target application list page, if the user receives the input for the target application list page The click input of the target contact will display the editable interface corresponding to the target contact, and determine the editable interface corresponding to the target contact as the target display interface. If the sixth input is received within the second preset display duration of the target application list page corresponding to each editable interface, the main interface of the electronic device is displayed for the user to determine the target display interface according to the main interface .
  • the determining the target display interface according to the main interface includes:
  • the first application sub-interface is determined as the target display interface.
  • the above main interface is specifically the desktop of the electronic device.
  • the application sub-interface corresponding to the sticky note application is displayed.
  • the application sub-interface set corresponding to the target application identifier is displayed in the form of thumbnails.
  • the user selects the first application sub-interface that wants to copy text from the application sub-interface set. For the interface, if the first application sub-interface is selected from the set of application sub-interfaces by tapping input, the electronic device determines the first application sub-interface as the target display interface.
  • the method further includes:
  • the target interface is an editable interface
  • the edit menu includes a cut option
  • the ninth input can be a click input.
  • the edit menu also includes a copy option.
  • the target interface is an editable interface
  • the edit menu is displayed for the user to choose whether to copy or cut.
  • the cut option When the user selects the cut option, The target text is directly deleted from the target interface, and when the user selects the copy option, the above target text is retained in the target interface.
  • the target interface is a non-editing interface
  • the target text is directly copied to the target display position.
  • the editing method of the embodiment of the present invention can help the user to quickly locate the text to be edited, simplifies the text editing process, and improves the efficiency of text editing.
  • an embodiment of the present invention also provides an electronic device 700, including:
  • the first receiving module 701 is configured to receive the first input for the text content displayed in the target interface
  • the first response module 702 is configured to display a text selection area on the target interface in response to the first input, and increase the distance between the texts in the candidate area;
  • the second receiving module 703 is configured to receive a second input for the target text in the text selection area
  • the second response module 704 is configured to determine a target display position of the target text in response to the second input, and display the target text at the target display position;
  • the candidate area includes the text selection area, and/or is located in an extended area of a preset range of the text selection area.
  • the electronic device of the embodiment of the present invention further includes:
  • the third receiving module 705 is configured to receive a third input for the text selection area
  • the third response module 706 is configured to adjust the size of the text selection area in response to the third input, and increase the distance between the texts in the candidate area according to the adjusted text selection area ;
  • the determining module 707 is configured to determine the text content in the adjusted text selection area as the target text.
  • the second input is a sliding input of the target text by the user in the target interface
  • the second response module 704 is configured to determine the sliding end position of the second input in the target interface as the target display position of the target text.
  • the second input is a user's pressing input on the target text
  • the second response module 704 includes:
  • the first determination sub-module 7041 is configured to determine a target display interface according to the target editable interface set in response to the second input, the target editable interface set including the editable that the user has opened in the first preset time period interface;
  • the first receiving submodule 7042 is configured to receive the fourth input of sliding the text selection area in the target display interface
  • the second determining sub-module 7043 is configured to determine the sliding end position of the fourth input in the target display interface as the target display position of the target text.
  • the first determining submodule 7041 includes:
  • the response unit 70411 is configured to respond to the second input and start to display the editable interface in the target editable interface set in a preset order;
  • the first determining unit 70412 is configured to determine the currently displayed editable interface as the target display interface if a preset condition is met during the display of the editable interface;
  • the preset condition is that the end of the second input is detected within the first preset display duration of the currently displayed editable interface; or, within the first preset display duration of the currently displayed editable interface , The end of the second input is detected, and the fifth input for the target text is received.
  • the first determining submodule 7041 further includes:
  • the second determination unit 70413 is configured to respond to the second input and start displaying the editable interfaces in the target editable interface set according to a preset sequence, and then display the editable interfaces in the target editable interface set. After the editing interface is displayed, if the second input is not completed, the target application list page is displayed, and the target display interface is determined according to the target application list page.
  • the target application list page is the set of target editable interfaces available The upper-level application interface of the editing interface.
  • the target application list page includes at least one editable interface identifier
  • the second determining unit 70413 includes:
  • the first response subunit 704131 is configured to respond to the second preset display duration of the target application list page if the sixth input for the target editable interface identifier in the target application list page is received.
  • the sixth input is to display the editable interface corresponding to the editable interface identifier, and determine the editable interface corresponding to the editable interface identifier as the target display interface;
  • the second response subunit 704132 is configured to display if the user's sixth input to the target editable interface identification in the target application list page is not received within the second preset display duration of the target application list page.
  • the main interface of the electronic device determines a target display interface according to the main interface, and at least two application identifiers are displayed on the main interface.
  • the second response subunit 704132 includes:
  • the first receiving subunit 7041321 is configured to receive the seventh input of dragging the target text onto the target application identifier
  • the display subunit 7041322 is configured to display a set of application sub-interfaces corresponding to the target application identifier in response to the seventh input;
  • the second receiving subunit 7041323 is configured to receive the eighth input for the first application sub-interface in the set of application sub-interfaces;
  • the determining sub-unit 7041324 is configured to determine the first application sub-interface as a target display interface in response to the eighth input.
  • the display module 708 is configured to display an edit menu when the target interface is an editable interface after the second response module determines the target display position of the target text in response to the second input, the edit menu Including cutting options;
  • the fourth receiving module 709 is configured to receive the ninth input for the cut option
  • the fourth response module 710 is configured to delete the target text in the target interface in response to the ninth input.
  • the electronic device of the embodiment of the present invention increases the distance between the text in the candidate area, so that the user can easily select the text to be edited, and through the second input of the target text in the text selection box,
  • the target text is displayed on the target display position conveniently and quickly, which simplifies the text editing process and improves the efficiency of text editing.
  • 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, and a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911 and other components.
  • a radio frequency unit 901 for example, a radio frequency unit
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the processor 910 is configured to receive a first input for the text content displayed in the target interface through the user input unit 907; in response to the first input, display a text selection area on the target interface, and select the candidate area The distance between the text of the target text is increased; the second input for the target text in the text selection area is received through the user input unit 907; in response to the second input, the target display position of the target text is determined, and the target text is displayed in the The target display position displays the target text; wherein the candidate area includes the text selection area, and/or is located in an extended area of a preset range of the text selection area.
  • the processor can implement each process of the above-mentioned editing method embodiment, and can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
  • the above technical solution of the embodiment of the present invention increases the distance between the text in the candidate area, so that the user can easily select the text to be edited, and through the second input of the target text in the text selection box,
  • the target text can be displayed in the target display position conveniently and quickly, which simplifies the text editing process and improves the efficiency of text editing.
  • the radio frequency unit 901 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 910; Uplink data is sent to the base station.
  • the radio frequency unit 901 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.
  • the radio frequency unit 901 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 902, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 903 can convert the audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output it as sound. Moreover, the audio output unit 903 may also provide audio output related to a specific function performed by the electronic device 900 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 904 is used to receive audio or video signals.
  • the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042.
  • the graphics processor 9041 is used for the image of a still picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 906.
  • the image frames processed by the graphics processor 9041 may be stored in the memory 909 (or other storage medium) or sent via the radio frequency unit 901 or the network module 902.
  • the microphone 9042 can receive sound and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 901 for output in the case of a telephone call mode.
  • the electronic device 900 further includes at least one sensor 905, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 9061 according to the brightness of the ambient light.
  • the proximity sensor can turn off the display panel 9061 and the display panel 9061 when the electronic device 900 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify terminal posture (such as horizontal and vertical screen switching, related games, Magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 905 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared Sensors, etc., will not be repeated here.
  • the display unit 906 is used to display information input by the user or information provided to the user.
  • the display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 907 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 907 includes a touch panel 9071 and other input devices 9072.
  • the touch panel 9071 also known as the touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 9071 or near the touch panel 9071. operating).
  • the touch panel 9071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 910, the command sent by the processor 910 is received and executed.
  • the touch panel 9071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 907 may also include other input devices 9072.
  • other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 9071 can cover the display panel 9061.
  • the touch panel 9071 detects a touch operation on or near it, it is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 9061.
  • the touch panel 9071 and the display panel 9061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 9071 and the display panel 9061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 908 is an interface for connecting an external device and the electronic device 900.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 908 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 900 or can be used to connect the electronic device 900 to an external device. Transfer data between devices.
  • the memory 909 can be used to store software programs and various data.
  • the memory 909 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 909 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 910 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 909, and calls data stored in the memory 909 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 910.
  • the electronic device 900 may also include a power supply 911 (such as a battery) for supplying power to various components.
  • a power supply 911 (such as a battery) for supplying power to various components.
  • the power supply 911 may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 900 includes some functional modules that are not shown, which will not be repeated here.
  • an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a program stored in the memory and running on the processor.
  • the program is executed by the processor, the above-mentioned editing method embodiment is implemented.
  • Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
  • the embodiment of the present invention also provides a readable storage medium with a program stored on the readable storage medium.
  • the program When the program is executed by a processor, each process of the above-mentioned editing method embodiment is realized, and the same technical effect can be achieved. To avoid repetition , I won’t repeat it here.
  • the readable storage medium may include a computer readable storage medium, such as a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform, or by hardware, but in many cases the former is better.
  • Implementation mode the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
  • a terminal which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Abstract

本发明提供一种编辑方法及电子设备。该方法包括:接收针对目标界面中显示的文本内容的第一输入;响应于第一输入,在目标界面显示文本选择区域,将候选区域关联中的文本之间的距离增大;接收针对文本选择区域中目标文本的第二输入;响应于第二输入,确定目标文本的目标显示位置,在目标显示位置显示目标文本。

Description

编辑方法及电子设备
相关申请的交叉引用
本申请主张在2019年11月27日在中国提交的中国专利申请号No.201911181100.8的优先权,其全部内容通过引用包含于此。
技术领域
本发明涉及通信技术领域,尤其涉及一种编辑方法及电子设备。
背景技术
随着科学技术的迅猛发展,用户使用电子设备进行文字编辑的场景越来越多。移动办公的需求也越来越多,对文本处理的效率要求也越来越高。而其中文字操作频率最高的就是复制和粘贴。
相关技术中文字复制操作流程太过繁琐,要选中、点击复制、切换页面、长按、选择粘贴。特别是选中操作,很多时候要拖动好几次才能将光标放到想要的位置。而在选中文字,点击复制后,还需要按菜单menu键,在近期打开列表里来回划动寻找要粘贴的应用。操作步骤非常多,效率非常低下。
发明内容
本发明的目的在于提供一种编辑方法及电子设备,以解决相关技术中文字复制方法操作繁琐,复制效率较低的问题。
为了解决上述技术问题,本发明是这样实现的:
第一方面,本发明实施例提供了一种编辑方法,应用于电子设备,包括:
接收针对目标界面中显示的文本内容的第一输入;
响应于所述第一输入,在所述目标界面显示文本选择区域,并将候选区域中的文本之间的距离增大;
接收针对所述文本选择区域中目标文本的第二输入;
响应于所述第二输入,确定所述目标文本的目标显示位置,并在所述目标显示位置显示所述目标文本;
其中,所述候选区域包括所述文本选择区域,和/或,位于所述文本选择区域预设范围的扩展区域。
第二方面,本发明实施例还提供了一种电子设备,包括:
第一接收模块,用于接收针对目标界面中显示的文本内容的第一输入;
第一响应模块,用于响应于所述第一输入,在所述目标界面显示文本选择区域,并将候选区域中的文本之间的距离增大;
第二接收模块,用于接收针对所述文本选择区域中目标文本的第二输入;
第二响应模块,用于响应于所述第二输入,确定所述目标文本的目标显示位置,并在所述目标显示位置显示所述目标文本;
其中,所述候选区域包括所述文本选择区域,和/或,位于所述文本选择区域预设范围的扩展区域。
第三方面,本发明实施例还提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如上所述编辑方法的步骤。
第四方面,本发明实施例还提供了一种可读存储介质,所述可读存储介质上存储有程序,所述程序被处理器执行时实现如上所述编辑方法的步骤。
本发明实施例具有以下有益效果:
本发明实施例的上述技术方案,将候选区域中的文本之间的距离增大,使得用户能够非常容易地选中所要编辑的文本,且通过针对文本选择框中的目标文本的第二输入,便可方便快捷地将目标文本显示在目标显示位置,简化了文本编辑流程,提高了文本编辑效率。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例的编辑方法的流程示意图;
图2为本发明实施例中通过文本选择区域进行文本选择的示意图之一;
图3为本发明实施例中通过文本选择区域进行文本选择的示意图之二;
图4为本发明实施例中对目标文本进行复制的示意图;
图5为本发明实施例目标可编辑界面集合中可编辑界面的示意图;
图6为本发明实施例中目标应用列表页的示意图;
图7为本发明实施例提供的电子设备的模块示意图之一;
图8为本发明实施例提供的电子设备的模块示意图之二。
图9为本发明实施例提供的电子设备的结构框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
如图1所示,为本发明实施例提供的编辑方法的流程示意图。下面就该图具体说明该方法的实施过程。
该编辑方法可以包括以下步骤:
步骤101:接收针对目标界面中显示的文本内容的第一输入。
这里,目标界面可具体为当前显示界面。上述第一输入具体为用户对文本内容的长按输入。上述文本内容包括文字、数字、英文字母和标点符号中的至少一项。
步骤102:响应于所述第一输入,在所述目标界面显示文本选择区域,并将候选区域中的文本之间的距离增大。
其中,所述候选区域包括所述文本选择区域,和/或,位于所述文本选择区域预设范围的扩展区域。这里,预设范围可以是该文本选择区域之前和/或之后的一范围,该范围可以通过字符长度或者距离长度来设置。例如,该文本选择区域为一矩形,扩展区域具体为位于文本选择区域之前10个字符和之后10个字符的区域。
这里,在上述目标界面中显示文本选择区域,上述文本选择区域的两侧显示有编辑标识,如光标,通过该光标可调整该文本选择区域的大小。即用 户通过滑动编辑标识来选择所要编辑(复制)的文本内容。
本发明实施例在显示文本选择区域之后,自动将候选区域的文本之间的距离增大,进而方便用户进行文本选择。具体的,可将该候选区域文本中的字符以词组为单位增加显示间隔。也就是说,该文本中相邻两个词组之间的显示间隔增加。如图2所示,将文本“叶子出水很高,像亭亭的舞女的群”以及“中间,零星地点缀着些白花”中的字符以词组为单位增加显示间隔,以便于用户通过编辑标识(光标)进行定位选择。
步骤103:接收针对所述文本选择区域中目标文本的第二输入。
该第二输入可具体为用户对目标文本的滑动输入,即用户通过拖动目标文本来确定目标文本在目标界面中的目标显示位置。该第二输入也可以为用户对目标文本的按压输入,即用户通过按压目标文本来确定目标显示界面,进而确定目标文本在目标显示界面中的目标显示位置。其中,目标文本是位于该文本选择区域中的文本。
步骤104:响应于所述第二输入,确定所述目标文本的目标显示位置,并在所述目标显示位置显示所述目标文本。
该目标显示位置可以是目标界面中的显示位置,也可以是目标显示界面中的显示位置,本发明实施例中,通过第二输入便可确定目标文本的目标显示位置,操作简单。
本发明实施例的编辑方法,将候选区域中的文本之间的距离增大,使得用户能够非常容易地选中所要编辑的文本,且通过针对文本选择框中的目标文本的第二输入,便可方便快捷地将目标文本显示在目标显示位置,简化了文本编辑流程,提高了文本编辑效率。
进一步地,考虑到文本选择区域的可调性,可选地,步骤103之前还包括:
接收针对所述文本选择区域的第三输入;
响应于所述第三输入,对所述文本选择区域的大小进行调整,并根据调整后的文本选择区域,将所述候选区域中的文本之间的距离增大;
将位于调整后的文本选择区域中的文本内容确定为目标文本。
上述第三输入具体为用户对文本选择区域两侧的编辑标识的滑动输入, 如图3所示,用户通过滑动编辑标识来对文本选择区域的大小进行调整,进而根据调整后的文本选择区域确定所要编辑的目标文本。另,根据调整后的文本选择区域,自动将候选区域的文本之间的距离增大,方便用户进行文本选择。
作为第一种可选的实现方式,所述第二输入为用户在所述目标界面中对所述目标文本的滑动输入;
所述响应于所述第二输入,确定所述目标文本的目标显示位置,包括:
将所述第二输入在目标界面中的滑动结束位置,确定为所述目标文本的目标显示位置。
该实现方式中,如图4所示,用户通过拖动目标文本来确定目标显示位置,在第二输入结束后,提示已对目标文本完成复制。另外,在第二输入结束后,还可显示选择菜单,通过该选择菜单用户可以选择是否自动粘贴目标文本,在用户选择自动粘贴目标文本后,将目标文本自动粘贴在目标显示位置。
作为第二种可选的实现方式,所述第二输入为对所述目标文本的按压输入,例如,长按输入。
所述响应于所述第二输入,确定所述目标文本的目标显示位置,包括:
响应于所述第二输入,根据目标可编辑界面集合,确定目标显示界面,所述目标可编辑界面集合包括第一预设时间段内用户开启过的可编辑界面;
接收在所述目标显示界面中滑动所述文本选择区域的第四输入;
将所述第四输入在所述目标显示界面中的滑动结束位置,确定为所述目标文本的目标显示位置。
在该实现方式中,用户想要将目标文本粘贴到除目标界面之外的其他界面,即目标显示界面,此时,通过第二输入,在近期开启过的可编辑界面中帮助用户快到找到目标显示界面,而无需用户去手动切换页面,操作简单。
在确定目标显示界面后,将当前显示界面更新为目标显示界面,如将当前显示界面透明化,当前显示界面全透明后显示出目标显示界面,并将目标文本显示在目标显示界面中,此时,用户通过第四输入拖动目标文本在目标显示界面中移动,以确定目标文本在目标显示界面中的目标显示位置。
进一步地,上述第二种可选的实现方式中,所述响应于所述第二输入,根据目标可编辑界面集合,确定目标显示界面,包括:
响应于所述第二输入,按照预设顺序,开始显示所述目标可编辑界面集合中的可编辑界面;
在所述可编辑界面的显示过程中,若满足预设条件,则将当前显示的可编辑界面确定为目标显示界面;
其中,所述预设条件为在当前显示的可编辑界面的第一预设显示时长内,检测到所述第二输入结束;或者,在当前显示的可编辑界面的第一预设显示时长内,检测到所述第二输入结束,且接收到针对目标文本的第五输入。
上述预设顺序可以是按照开启时间与目标界面的开启时间的差值由小到大的顺序。上述第五输入可具体为滑动输入。
本发明实施例中,接收针对目标文本的长按输入,响应于该长按输入,以页面(Activity)为单位,开始切换近期应用列表(目标可编辑界面)中的可编辑界面,先透明化目标界面,显示出距离当前页面最近的有输入功能的页面(系统中每个应用有一个任务task栈,每个task由若干页面(Activity)组成),例如,当前电子设备中的应用如图5所示,则切换顺序为A1->A3->B5->C4。图5中的A1、A3、B5和C4均代表具有编辑功能的页面,在A1的第一预设显示时长内,若检测到用户针对目标文本的滑动输入,或者检测到用户松手,即长按输入结束,则将A1确定为目标显示界面。否则,继续透明化A1,并显示出A3,以此类推。
进一步地,响应于所述第二输入,按照预设顺序,开始显示所述目标可编辑界面集合中的可编辑界面之后,还包括:
在所述目标可编辑界面集合中的可编辑界面显示完成之后,若所述第二输入未结束,则显示目标应用列表页,并根据目标应用列表页,确定目标显示界面,所述目标应用列表页为所述目标可编辑界面集合中可编辑界面的上一级应用界面。
在本发明的具体实施例中,若未在目标可编辑界面集合中找到目标显示界面,则显示目标应用列表页,以供用户确定目标显示界面。在显示目标应用列表页时可按照目标应用列表页对应的可编辑界面的开启时间进行显示, 例如,先显示开启时间与目标界面开启时间差值最小的可编辑界面对应的目标应用列表页。
上述目标可编辑界面集合中的可编辑界面可具体为电子设备用户与联系人的通讯聊天界面,目标应用列表页可具体为通讯聊天界面对应的联系人列表页,通过该联系人列表页可方便用户快速选择目标显示界面。上述可编辑界面也可以具体为便签应用中的某一个具体的便签编辑界面,如名称为同步的便签编辑界面,此时,如图6所示,目标应用列表页可具体为包括多个便签名称的便签列表。
进一步地,所述目标应用列表页为包括至少一个可编辑界面标识,例如,可编辑界面标识可具体为联系人名称或者便签名称;
所述根据目标应用列表页,确定目标显示界面,包括:
在所述目标应用列表页的第二预设显示时长内,若接收到针对所述目标应用列表页中目标可编辑界面标识的第六输入,则响应于所述第六输入,显示所述可编辑界面标识对应的可编辑界面,并将所述可编辑界面标识对应的可编辑界面确定为所述目标显示界面;
在所述目标应用列表页的第二预设显示时长内,若未接收到针对所述目标应用列表页中目标可编辑界面标识的第六输入,则显示所述电子设备的主界面,并根据所述主界面,确定目标显示界面,所述主界面中显示有至少两个应用标识。
上述目标可编辑界面标识可具体为目标应用列表页中的任一可编辑界面标识。例如,上述第六输入可具体为用户对目标应用列表页中目标联系人的点击输入,在上述目标应用列表页的第二预设显示时长内,若接收到用户针对所述目标应用列表页中目标联系人的点击输入,则显示该目标联系人对应的可编辑界面,并将所述目标联系人对应的可编辑界面确定为所述目标显示界面。若在上述每个可编辑界面对应的目标应用列表页的第二预设显示时长内,均为接收到上述第六输入,则显示电子设备的主界面,以供用户根据主界面确定目标显示界面。
进一步地,所述根据所述主界面,确定目标显示界面,包括:
接收将目标文本拖动至目标应用标识上的第七输入;
响应于所述第七输入,显示所述目标应用标识对应的应用子界面集合;
接收针对所述应用子界面集合中第一应用子界面的第八输入;
响应于所述第八输入,将所述第一应用子界面确定为目标显示界面。
上述主界面具体为电子设备的桌面,主界面中显示有多个应用标识,并将目标文本显示在主界面上,用户将目标文本拖动至目标应用标识上后,如拖动至便签应用标识上后,则显示便签应用对应的应用子界面,具体的,以缩略图的方式显示目标应用标识对应的应用子界面集合,用户在应用子界面集合中选择想要进行文本复制的第一应用子界面,如通过点击输入在应用子界面集合中选择第一应用子界面,电子设备将该第一应用子界面确定为目标显示界面。
进一步地,所述响应于所述第二输入,确定所述目标文本的目标显示位置之后,还包括:
在所述目标界面为可编辑界面的情况下,显示编辑菜单,所述编辑菜单包括剪切选项;
接收针对所述剪切选项的第九输入;
响应于所述第九输入,在所述目标界面中删除所述目标文本。
上述第九输入可具体为点击输入,上述编辑菜单还包括复制选项,在目标界面为可编辑界面的情况下,显示编辑菜单供用户选择是进行复制还是剪切,当用户选择剪切选项时,直接将目标文本从目标界面中删除,当用户选择复制选项时,则在目标界面中保留上述目标文本。在目标界面为非编辑界面的情况下,则直接将目标文本复制至目标显示位置。
本发明实施例的编辑方法,能够帮助用户快速定位所要编辑的文本,简化了文本编辑过程,提高了文本编辑效率。
如图7所示,本发明实施例还提供了一种电子设备700,包括:
第一接收模块701,用于接收针对目标界面中显示的文本内容的第一输入;
第一响应模块702,用于响应于所述第一输入,在所述目标界面显示文本选择区域,并将候选区域中的文本之间的距离增大;
第二接收模块703,用于接收针对所述文本选择区域中目标文本的第二 输入;
第二响应模块704,用于响应于所述第二输入,确定所述目标文本的目标显示位置,并在所述目标显示位置显示所述目标文本;
其中,所述候选区域包括所述文本选择区域,和/或,位于所述文本选择区域预设范围的扩展区域。
如图8所示,本发明实施例的电子设备,还包括:
第三接收模块705,用于接收针对所述文本选择区域的第三输入;
第三响应模块706,用于响应于所述第三输入,对所述文本选择区域的大小进行调整,并根据调整后的文本选择区域,将所述候选区域中的文本之间的距离增大;
确定模块707,用于将位于调整后的文本选择区域中的文本内容确定为目标文本。
本发明实施例的电子设备,所述第二输入为用户在目标界面中对所述目标文本的滑动输入;
所述第二响应模块704用于将所述第二输入在目标界面中的滑动结束位置,确定为所述目标文本的目标显示位置。
本发明实施例的电子设备,所述第二输入为用户对所述目标文本的按压输入;
所述第二响应模块704包括:
第一确定子模块7041,用于响应于所述第二输入,根据目标可编辑界面集合,确定目标显示界面,所述目标可编辑界面集合包括第一预设时间段内用户开启过的可编辑界面;
第一接收子模块7042,用于接收在所述目标显示界面中滑动所述文本选择区域的第四输入;
第二确定子模块7043,用于将所述第四输入在所述目标显示界面中的滑动结束位置,确定为所述目标文本的目标显示位置。
本发明实施例的电子设备,所述第一确定子模块7041包括:
响应单元70411,用于响应于所述第二输入,按照预设顺序,开始显示所述目标可编辑界面集合中的可编辑界面;
第一确定单元70412,用于在所述可编辑界面的显示过程中,若满足预设条件,则将当前显示的可编辑界面确定为目标显示界面;
其中,所述预设条件为在当前显示的可编辑界面的第一预设显示时长内,检测到所述第二输入结束;或者,在当前显示的可编辑界面的第一预设显示时长内,检测到所述第二输入结束,且接收到针对目标文本的第五输入。
本发明实施例的电子设备,所述第一确定子模块7041还包括:
第二确定单元70413,用于响应单元响应于所述第二输入,按照预设顺序,开始显示所述目标可编辑界面集合中的可编辑界面之后,在所述目标可编辑界面集合中的可编辑界面显示完成之后,若所述第二输入未结束,则显示目标应用列表页,并根据目标应用列表页,确定目标显示界面,所述目标应用列表页为所述目标可编辑界面集合中可编辑界面的上一级应用界面。
本发明实施例的电子设备,所述目标应用列表页为包括至少一个可编辑界面标识;
所述第二确定单元70413包括:
第一响应子单元704131,用于在所述目标应用列表页的第二预设显示时长内,若接收到针对所述目标应用列表页中目标可编辑界面标识的第六输入,则响应于所述第六输入,显示所述可编辑界面标识对应的可编辑界面,并将所述可编辑界面标识对应的可编辑界面确定为所述目标显示界面;
第二响应子单元704132,用于在所述目标应用列表页的第二预设显示时长内,若未接收到用户对所述目标应用列表页中目标可编辑界面标识的第六输入,则显示所述电子设备的主界面,并根据所述主界面,确定目标显示界面,所述主界面中显示有至少两个应用标识。
本发明实施例的电子设备,所述第二响应子单元704132包括:
第一接收子单元7041321,用于接收将目标文本拖动至目标应用标识上的第七输入;
显示子单元7041322,用于响应于所述第七输入,显示所述目标应用标识对应的应用子界面集合;
第二接收子单元7041323,用于接收针对所述应用子界面集合中第一应用子界面的第八输入;
确定子单元7041324,用于响应于所述第八输入,将所述第一应用子界面确定为目标显示界面。
本发明实施例的电子设备,还包括:
显示模块708,用于第二响应模块响应于所述第二输入,确定所述目标文本的目标显示位置之后,在所述目标界面为可编辑界面的情况下,显示编辑菜单,所述编辑菜单包括剪切选项;
第四接收模块709,用于接收针对所述剪切选项的第九输入;
第四响应模块710,用于响应于所述第九输入,在所述目标界面中删除所述目标文本。
本发明实施例的电子设备,将候选区域中的文本之间的距离增大,使得用户能够非常容易地选中所要编辑的文本,且通过针对文本选择框中的目标文本的第二输入,便可方便快捷地将目标文本显示在目标显示位置,简化了文本编辑流程,提高了文本编辑效率。
图9为实现本发明各个实施例的一种电子设备的硬件结构示意图,该电子设备900包括但不限于:射频单元901、网络模块902、音频输出单元903、输入单元904、传感器905、显示单元906、用户输入单元907、接口单元908、存储器909、处理器910、以及电源911等部件。本领域技术人员可以理解,图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器910,用于通过用户输入单元907接收针对目标界面中显示的文本内容的第一输入;响应于所述第一输入,在所述目标界面显示文本选择区域,并将候选区域中的文本之间的距离增大;通过用户输入单元907接收针对所述文本选择区域中目标文本的第二输入;响应于所述第二输入,确定所述目标文本的目标显示位置,并在所述目标显示位置显示所述目标文本;其中,所述候选区域包括所述文本选择区域,和/或,位于所述文本选择区域预设范围的扩展区域。
该处理器能够实现上述编辑方法实施例的各个过程,且能达到相同的技 术效果,为避免重复,这里不再赘述。
本发明实施例的上述技术方案,将候选区域中的文本之间的距离增大,使得用户能够非常容易地选中所要编辑的文本,且通过针对文本选择框中的目标文本的第二输入,便可方便快捷地将目标文本显示在目标显示位置,简化了文本编辑流程,提高了文本编辑效率。
应理解的是,本发明实施例中,射频单元901可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器910处理;另外,将上行的数据发送给基站。通常,射频单元901包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元901还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块902为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元903可以将射频单元901或网络模块902接收的或者在存储器909中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元903还可以提供与电子设备900执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元903包括扬声器、蜂鸣器以及受话器等。
输入单元904用于接收音频或视频信号。输入单元904可以包括图形处理器(Graphics Processing Unit,GPU)9041和麦克风9042,图形处理器9041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元906上。经图形处理器9041处理后的图像帧可以存储在存储器909(或其它存储介质)中或者经由射频单元901或网络模块902进行发送。麦克风9042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元901发送到移动通信基站的格式输出。
电子设备900还包括至少一种传感器905,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板9061的亮度,接近传感 器可在电子设备900移动到耳边时,关闭显示面板9061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器905还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元906用于显示由用户输入的信息或提供给用户的信息。显示单元906可包括显示面板9061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板9061。
用户输入单元907可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元907包括触控面板9071以及其他输入设备9072。触控面板9071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板9071上或在触控面板9071附近的操作)。触控面板9071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器910,接收处理器910发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板9071。除了触控面板9071,用户输入单元907还可以包括其他输入设备9072。具体地,其他输入设备9072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板9071可覆盖在显示面板9061上,当触控面板9071检测到在其上或附近的触摸操作后,传送给处理器910以确定触摸事件的类型,随后处理器910根据触摸事件的类型在显示面板9061上提供相应的视觉输出。虽然在图9中,触控面板9071与显示面板9061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面 板9071与显示面板9061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元908为外部装置与电子设备900连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元908可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备900内的一个或多个元件或者可以用于在电子设备900和外部装置之间传输数据。
存储器909可用于存储软件程序以及各种数据。存储器909可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器909可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器910是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器909内的软件程序和/或模块,以及调用存储在存储器909内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器910可包括一个或多个处理单元;优选的,处理器910可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器910中。
电子设备900还可以包括给各个部件供电的电源911(比如电池),优选的,电源911可以通过电源管理系统与处理器910逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备900包括一些未示出的功能模块,在此不再赘述。
优选的,本发明实施例还提供一种电子设备,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的程序,该程序被处理器执行时实现上述编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复, 这里不再赘述。
本发明实施例还提供一种可读存储介质,可读存储介质上存储有程序,该程序被处理器执行时实现上述编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的可读存储介质可包括计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (18)

  1. 一种编辑方法,应用于电子设备,其特征在于,包括:
    接收针对目标界面中显示的文本内容的第一输入;
    响应于所述第一输入,在所述目标界面显示文本选择区域,并将候选区域中的文本之间的距离增大;
    接收针对所述文本选择区域中目标文本的第二输入;
    响应于所述第二输入,确定所述目标文本的目标显示位置,并在所述目标显示位置显示所述目标文本;
    其中,所述候选区域包括所述文本选择区域,和/或,位于所述文本选择区域预设范围的扩展区域。
  2. 根据权利要求1所述的编辑方法,其特征在于,在所述接收对所述文本选择区域中目标文本的第二输入之前,还包括:
    接收针对所述文本选择区域的第三输入;
    响应于所述第三输入,对所述文本选择区域的大小进行调整,并根据调整后的文本选择区域,将所述候选区域中的文本之间的距离增大;
    将位于调整后的文本选择区域中的文本内容确定为目标文本。
  3. 根据权利要求1所述的编辑方法,其特征在于,所述第二输入为用户在所述目标界面中对所述目标文本的滑动输入;
    所述响应于所述第二输入,确定所述目标文本的目标显示位置,包括:
    将所述第二输入在目标界面中的滑动结束位置,确定为所述目标文本的目标显示位置。
  4. 根据权利要求1所述的编辑方法,其特征在于,所述第二输入为对所述目标文本的按压输入;
    所述响应于所述第二输入,确定所述目标文本的目标显示位置,包括:
    响应于所述第二输入,根据目标可编辑界面集合,确定目标显示界面,所述目标可编辑界面集合包括第一预设时间段内用户开启过的可编辑界面;
    接收在所述目标显示界面中滑动所述文本选择区域的第四输入;
    将所述第四输入在所述目标显示界面中的滑动结束位置,确定为所述目 标文本的目标显示位置。
  5. 根据权利要求4所述的编辑方法,其特征在于,所述响应于所述第二输入,根据目标可编辑界面集合,确定目标显示界面,包括:
    响应于所述第二输入,按照预设顺序,开始显示所述目标可编辑界面集合中的可编辑界面;
    在所述可编辑界面的显示过程中,若满足预设条件,则将当前显示的可编辑界面确定为目标显示界面;
    其中,所述预设条件为在当前显示的可编辑界面的第一预设显示时长内,检测到所述第二输入结束;或者,在当前显示的可编辑界面的第一预设显示时长内,检测到所述第二输入结束,且接收到针对目标文本的第五输入。
  6. 根据权利要求5所述的编辑方法,其特征在于,响应于所述第二输入,按照预设顺序,开始显示所述目标可编辑界面集合中的可编辑界面之后,还包括:
    在所述目标可编辑界面集合中的可编辑界面显示完成之后,若所述第二输入未结束,则显示目标应用列表页,并根据目标应用列表页,确定目标显示界面,所述目标应用列表页为所述目标可编辑界面集合中可编辑界面的上一级应用界面。
  7. 根据权利要求6所述的编辑方法,其特征在于,所述目标应用列表页为包括至少一个可编辑界面标识;
    所述根据目标应用列表页,确定目标显示界面,包括:
    在所述目标应用列表页的第二预设显示时长内,若接收到针对所述目标应用列表页中目标可编辑界面标识的第六输入,则响应于所述第六输入,显示所述可编辑界面标识对应的可编辑界面,并将所述可编辑界面标识对应的可编辑界面确定为所述目标显示界面;
    在所述目标应用列表页的第二预设显示时长内,若未接收到针对所述目标应用列表页中目标可编辑界面标识的第六输入,则显示所述电子设备的主界面,并根据所述主界面,确定目标显示界面,所述主界面中显示有至少两个应用标识。
  8. 根据权利要求7所述的编辑方法,其特征在于,所述根据所述主界面, 确定目标显示界面,包括:
    接收将目标文本拖动至目标应用标识上的第七输入;
    响应于所述第七输入,显示所述目标应用标识对应的应用子界面集合;
    接收针对所述应用子界面集合中第一应用子界面的第八输入;
    响应于所述第八输入,将所述第一应用子界面确定为目标显示界面。
  9. 一种电子设备,其特征在于,包括:
    第一接收模块,用于接收针对目标界面中显示的文本内容的第一输入;
    第一响应模块,用于响应于所述第一输入,在所述目标界面显示文本选择区域,并将候选区域中的文本之间的距离增大;
    第二接收模块,用于接收针对所述文本选择区域中目标文本的第二输入;
    第二响应模块,用于响应于所述第二输入,确定所述目标文本的目标显示位置,并在所述目标显示位置显示所述目标文本;
    其中,所述候选区域包括所述文本选择区域,和/或,位于所述文本选择区域预设范围的扩展区域。
  10. 根据权利要求9所述的电子设备,其特征在于,还包括:
    第三接收模块,用于接收针对所述文本选择区域的第三输入;
    第三响应模块,用于响应于所述第三输入,对所述文本选择区域的大小进行调整,并根据调整后的文本选择区域,将所述候选区域中的文本之间的距离增大;
    确定模块,用于将位于调整后的文本选择区域中的文本内容确定为目标文本。
  11. 根据权利要求9所述的电子设备,其特征在于,所述第二输入为用户在所述目标界面中对所述目标文本的滑动输入;
    所述第二响应模块用于将所述第二输入在目标界面中的滑动结束位置,确定为所述目标文本的目标显示位置。
  12. 根据权利要求9所述的电子设备,其特征在于,所述第二输入为用户对所述目标文本的按压输入;
    所述第二响应模块包括:
    第一确定子模块,用于响应于所述第二输入,根据目标可编辑界面集合, 确定目标显示界面,所述目标可编辑界面集合包括第一预设时间段内用户开启过的可编辑界面;
    第一接收子模块,用于接收在所述目标显示界面中滑动所述文本选择区域的第四输入;
    第二确定子模块,用于将所述第四输入在所述目标显示界面中的滑动结束位置,确定为所述目标文本的目标显示位置。
  13. 根据权利要求12所述的电子设备,其特征在于,所述第一确定子模块包括:
    响应单元,用于响应于所述第二输入,按照预设顺序,开始显示所述目标可编辑界面集合中的可编辑界面;
    第一确定单元,用于在所述可编辑界面的显示过程中,若满足预设条件,则将当前显示的可编辑界面确定为目标显示界面;
    其中,所述预设条件为在当前显示的可编辑界面的第一预设显示时长内,检测到所述第二输入结束;或者,在当前显示的可编辑界面的第一预设显示时长内,检测到所述第二输入结束,且接收到针对目标文本的第五输入。
  14. 根据权利要求13所述的电子设备,其特征在于,所述第一确定子模块还包括:
    第二确定单元,用于响应单元响应于所述第二输入,按照预设顺序,开始显示所述目标可编辑界面集合中的可编辑界面之后,在所述目标可编辑界面集合中的可编辑界面显示完成之后,若所述第二输入未结束,则显示目标应用列表页,并根据目标应用列表页,确定目标显示界面,所述目标应用列表页为所述目标可编辑界面集合中可编辑界面的上一级应用界面。
  15. 根据权利要求14所述的电子设备,其特征在于,所述目标应用列表页为包括至少一个可编辑界面标识;
    所述第二确定单元包括:
    第一响应子单元,用于在所述目标应用列表页的第二预设显示时长内,若接收到针对所述目标应用列表页中目标可编辑界面标识的第六输入,则响应于所述第六输入,显示所述可编辑界面标识对应的可编辑界面,并将所述可编辑界面标识对应的可编辑界面确定为所述目标显示界面;
    第二响应子单元,用于在所述目标应用列表页的第二预设显示时长内,若未接收到用户对所述目标应用列表页中目标可编辑界面标识的第六输入,则显示所述电子设备的主界面,并根据所述主界面,确定目标显示界面,所述主界面中显示有至少两个应用标识。
  16. 根据权利要求15所述的电子设备,其特征在于,所述第二响应子单元包括:
    第一接收子单元,用于接收将目标文本拖动至目标应用标识上的第七输入;
    显示子单元,用于响应于所述第七输入,显示所述目标应用标识对应的应用子界面集合;
    第二接收子单元,用于接收针对所述应用子界面集合中第一应用子界面的第八输入;
    确定子单元,用于响应于所述第八输入,将所述第一应用子界面确定为目标显示界面。
  17. 一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求1至8中任一项所述编辑方法的步骤。
  18. 一种可读存储介质,其特征在于,所述可读存储介质上存储有程序,所述程序被处理器执行时实现如权利要求1至8中任一项所述编辑方法的步骤。
PCT/CN2020/130319 2019-11-27 2020-11-20 编辑方法及电子设备 WO2021104160A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911181100.8A CN110909524B (zh) 2019-11-27 2019-11-27 一种编辑方法及电子设备
CN201911181100.8 2019-11-27

Publications (1)

Publication Number Publication Date
WO2021104160A1 true WO2021104160A1 (zh) 2021-06-03

Family

ID=69819871

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/130319 WO2021104160A1 (zh) 2019-11-27 2020-11-20 编辑方法及电子设备

Country Status (2)

Country Link
CN (1) CN110909524B (zh)
WO (1) WO2021104160A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110909524B (zh) * 2019-11-27 2023-12-26 维沃移动通信有限公司 一种编辑方法及电子设备
CN111488104B (zh) * 2020-04-16 2021-10-12 维沃移动通信有限公司 一种字形编辑方法及电子设备
CN112765942A (zh) * 2021-01-22 2021-05-07 维沃移动通信有限公司 文本处理方法、装置、电子设备及可读存储介质
CN114063841A (zh) * 2021-11-10 2022-02-18 维沃移动通信有限公司 文本选择方法、文本选择装置和电子设备
CN114690997B (zh) * 2022-04-15 2023-07-25 北京百度网讯科技有限公司 文本显示方法及装置、设备、介质和产品

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937864A (zh) * 2012-10-31 2013-02-20 百度在线网络技术(北京)有限公司 一种用于在触摸终端上确定所选文本的方法与设备
KR20140127080A (ko) * 2013-04-24 2014-11-03 엘지전자 주식회사 영상표시장치 및 이의 제어방법
CN106896981A (zh) * 2017-02-07 2017-06-27 惠州Tcl移动通信有限公司 一种复制实现方法及实现系统
CN110909524A (zh) * 2019-11-27 2020-03-24 维沃移动通信有限公司 一种编辑方法及电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055227A (zh) * 2016-05-20 2016-10-26 维沃移动通信有限公司 文本编辑的方法及移动设备
CN106648371A (zh) * 2016-12-29 2017-05-10 北京小米移动软件有限公司 基于文本文件的文本移动方法及装置
CN108182267A (zh) * 2018-01-15 2018-06-19 维沃移动通信有限公司 一种文件分享方法及移动终端
CN110471609B (zh) * 2019-08-15 2023-02-07 Oppo广东移动通信有限公司 文本信息编辑方法、装置、计算机设备和存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937864A (zh) * 2012-10-31 2013-02-20 百度在线网络技术(北京)有限公司 一种用于在触摸终端上确定所选文本的方法与设备
KR20140127080A (ko) * 2013-04-24 2014-11-03 엘지전자 주식회사 영상표시장치 및 이의 제어방법
CN106896981A (zh) * 2017-02-07 2017-06-27 惠州Tcl移动通信有限公司 一种复制实现方法及实现系统
CN110909524A (zh) * 2019-11-27 2020-03-24 维沃移动通信有限公司 一种编辑方法及电子设备

Also Published As

Publication number Publication date
CN110909524B (zh) 2023-12-26
CN110909524A (zh) 2020-03-24

Similar Documents

Publication Publication Date Title
WO2021104160A1 (zh) 编辑方法及电子设备
WO2019228294A1 (zh) 对象分享方法及移动终端
WO2020156111A1 (zh) 界面显示方法及终端
WO2019120191A1 (zh) 多段文本复制方法及移动终端
WO2020238938A1 (zh) 信息输入方法及移动终端
WO2021012931A1 (zh) 图标管理方法及终端
WO2021147779A1 (zh) 配置信息分享方法、终端设备及计算机可读存储介质
WO2021077897A1 (zh) 文件发送方法、装置和电子设备
US11340777B2 (en) Method for editing text and mobile terminal
WO2021004426A1 (zh) 内容选择方法及终端
WO2021136159A1 (zh) 截屏方法及电子设备
WO2020259024A1 (zh) 图标分类方法、移动终端及计算机可读存储介质
WO2020156118A1 (zh) 管理方法及终端设备
WO2019196691A1 (zh) 一种键盘界面显示方法和移动终端
WO2020182035A1 (zh) 图像处理方法及终端设备
WO2020151513A1 (zh) 信息处理方法及终端设备
WO2021129529A1 (zh) 设备切换方法及相关设备
WO2021036553A1 (zh) 图标显示方法及电子设备
WO2020199988A1 (zh) 内容复制方法及终端
WO2021077908A1 (zh) 参数调节方法和电子设备
WO2021238719A1 (zh) 信息显示方法及电子设备
WO2020215969A1 (zh) 内容输入方法及终端设备
WO2021057301A1 (zh) 文件控制方法及电子设备
WO2021169954A1 (zh) 搜索方法及电子设备
WO2020020213A1 (zh) 信息输入方法及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20891979

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20891979

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 220223)

122 Ep: pct application non-entry in european phase

Ref document number: 20891979

Country of ref document: EP

Kind code of ref document: A1