WO2020042815A1 - Text editing method and mobile terminal - Google Patents

Text editing method and mobile terminal Download PDF

Info

Publication number
WO2020042815A1
WO2020042815A1 PCT/CN2019/096501 CN2019096501W WO2020042815A1 WO 2020042815 A1 WO2020042815 A1 WO 2020042815A1 CN 2019096501 W CN2019096501 W CN 2019096501W WO 2020042815 A1 WO2020042815 A1 WO 2020042815A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
editing
text content
mobile terminal
operation area
Prior art date
Application number
PCT/CN2019/096501
Other languages
French (fr)
Chinese (zh)
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 WO2020042815A1 publication Critical patent/WO2020042815A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the present disclosure relates to the field of terminals, and in particular, to a text editing method and a mobile terminal.
  • mobile terminals such as mobile phones, smart wearable devices, etc.
  • mobile terminals such as mobile phones, smart wearable devices, etc.
  • users are accustomed to using mobile terminals to browse web pages or messages. Users often encounter content that users are interested in during this browsing process. When the user wants to copy the content of interest and save it to the mobile terminal or send it to other users.
  • the user wishes to modify the copied text content before saving it to the mobile terminal or sending it to other users.
  • it can only be modified after the user pastes the copied text content into the information input box. Because the information input box is relatively narrow and the content displayed in the input box is limited, when the text content with a large number of words is pasted into the information input box, if you need to modify some of the text, you need to turn to the place where you need to modify it. Modify the text, which will cause the text editing operation to take more time, which will reduce the efficiency of text editing.
  • Embodiments of the present disclosure provide a text editing method and a mobile terminal to solve the problem that the text editing operation takes a lot of time, thereby reducing the efficiency of text editing.
  • a text editing method is provided and applied to a mobile terminal, including:
  • a target text to be pasted is obtained according to the editing operation.
  • a mobile terminal including:
  • a determining module if a copy operation is detected, determining an operation area corresponding to the copy operation
  • a display module that displays text content in the operation area in full screen
  • the obtaining module if an editing operation on the text content is detected, obtains a target text to be pasted according to the editing operation.
  • a mobile terminal includes a processor, a memory, and a computer program stored on the memory and executable on the processor.
  • the computer program is executed by the processor, Implementing the steps of the method as described in the first aspect.
  • a computer-readable storage medium wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the steps of the method according to the first aspect.
  • an operation area corresponding to the copy operation is determined; the text content in the operation area is displayed in full screen; if an edit operation is performed on the text content, The editing operation is described to obtain the target text to be pasted.
  • the editing operation can be facilitated, thereby reducing the time consumption of the text editing operation and improving the efficiency of text editing.
  • FIG. 1 is a flowchart of a text editing method according to a first embodiment of the present disclosure.
  • FIG. 2A is a schematic diagram of an operation area corresponding to a copy operation according to an embodiment of the present disclosure.
  • FIG. 2B is a schematic diagram of an effect after the full-screen display of the text content in the operation area according to the embodiment of the present disclosure.
  • FIG. 3 is a flowchart of a text editing method according to a second embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of text content selected by a display selection box in an operation area according to an embodiment of the present disclosure.
  • FIG. 5 is a flowchart of a text editing method according to a third embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of an effect of generating an edit mark at a position of a click operation according to an embodiment of the present disclosure.
  • FIG. 7 shows a structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a hardware structure of a mobile terminal that implements some embodiments of the present disclosure.
  • the text editing method provided by the embodiment of the present disclosure may be executed by a mobile terminal.
  • the above mobile terminal may be any device having a storage medium, such as a computer, a mobile phone, a tablet computer, a laptop computer, and a personal digital assistant.
  • PDA mobile Internet electronic devices
  • MID Mobile Internet Device
  • WAUable Device wearable devices
  • FIG. 1 is a flowchart of a text editing method according to a first embodiment of the present disclosure.
  • a text editing method provided by an embodiment of the present disclosure includes:
  • step S110 if a copy operation is detected, an operation area corresponding to the copy operation is determined.
  • step S110 when the mobile terminal detects a copy operation, the mobile terminal may determine an operation area corresponding to the copy operation.
  • the operation area 210 is shown in FIG. 2A.
  • FIG. 2A may be a schematic diagram of an interface of a chat software (for example, WeChat).
  • the interface displays chat conversations between users.
  • multiple operation options can be displayed, such as copy, send to friends, favorite, delete and other options.
  • the area for example, area 210) defined by this dialog box can be determined as the operation area.
  • the operation area may include text content that needs to be copied and edited.
  • the text content may be text including multiple sentences or text including multiple lines, that is, the text content may include text with a large number of words.
  • the above copy operation may be input by the user through the touch screen, for example, the user may input by double-clicking the touch screen or the user may press and hold the touch screen for a preset time (for example, 2 seconds).
  • the above copy operation may also be input by a user via an input device (such as a stylus, keyboard, or mouse, etc.), the user may perform a double-click operation through the input device, or the user may perform a long-press operation through the input device for a preset time ( (For example, 2 seconds).
  • step S120 the text content in the operation area is displayed in full screen.
  • the mobile terminal may enlarge the operation area to display the full-screen text content in the operation area, as shown in FIG. 2B.
  • the text content in the operation area can also be acquired, and then the text content can be displayed in full screen without zooming in the operation area.
  • all the text of the text content can be displayed in a full screen, so that the user can edit the text of the text content while clearly seeing all the text. In this way, the tedious operation of the user in determining the text to be modified can be reduced, the efficiency of the user's editing text can be improved, and the user experience and the flexibility and convenience of the editing operation can be improved.
  • step S130 if an editing operation on the text content is detected, the target text to be pasted is obtained according to the editing operation.
  • step S130 when the mobile terminal detects an editing operation on all or part of the text in the text content, the mobile terminal may obtain the target text to be pasted according to the editing operation.
  • the above editing operations may include adding text operations, changing text operations, deleting text operations, and the like.
  • the editing operation may be input by a user through a touch screen, or may be input by a user by using an input device (such as a stylus, a keyboard, or a mouse).
  • the target text to be pasted may be all text in the operation area, or may be part of text in the operation area. That is, all the text in the operation area can be used as the target text to be pasted, or only a part of the text in the operation area can be selected as the target text to be pasted.
  • the text editing method of the embodiment of the present disclosure if a copy operation is detected, an operation area corresponding to the copy operation is determined; the text content in the operation area is displayed in full screen; if an edit operation on the text content is detected, according to the edit operation, the obtained
  • the target text to be pasted can reduce the tedious operation of the user in modifying the copied text, improve the efficiency of the user in editing the copied text, and further improve the user's copy experience, flexibility and convenience.
  • FIG. 3 is a flowchart of a text editing method according to a second embodiment of the present disclosure. As shown in FIG. 3, the text editing method provided in this embodiment may include:
  • step S310 if a copy operation is detected, an operation area corresponding to the copy operation is determined.
  • step S310 when the mobile terminal detects a copy operation, the mobile terminal may determine an operation area corresponding to the copy operation, such as the operation area 210 shown in FIG. 2A.
  • the operation area may include text content that needs to be copied and edited.
  • the text content may be text including multiple sentences or text including multiple lines, that is, the text content may include text with a large number of words.
  • the above copy operation may be input by the user through the touch screen, for example, the user may input by double-clicking the touch screen or the user may press and hold the touch screen for a preset time (for example, 2 seconds).
  • the above copy operation may also be input by a user via an input device (such as a stylus, keyboard, or mouse, etc.), the user may perform a double-click operation through the input device, or the user may perform a long-press operation through the input device for a preset time ( (For example, 2 seconds).
  • step S320 the text content in the operation area is displayed in full screen, and the text content is in an editable state.
  • the mobile terminal may enlarge the operation area to display the text content in the operation area in full screen and make the text content in an editable state, as shown in FIG. 2B.
  • the operation area by enlarging the operation area, all the text of the text content can be displayed in full screen in the enlarged operation area and the text content can be edited, so that the user can see all the text in the operation area.
  • editing the text of the text content directly.
  • Step S330 Display a selection box in the operation area, and obtain the text content corresponding to the selection box.
  • the mobile terminal may display a selection box 410 in the operation area, as shown in FIG. 4A, so that the user can select the text to be edited through the selection box 410 for subsequent editing operations and copy operations.
  • the text content corresponding to the selection box may be the content of the text selected by the selection box.
  • the user can further adjust the size of the selection box 410, for example, by dragging to adjust the size of the selection box 410, so that the box selects the text content that needs to be selected.
  • the text adjustment range for example, select all or part of the text in the frame to perform subsequent editing operations and copy operations.
  • the operation of adjusting the size of the selection box may be input by a user through a touch screen, or may be input by a user by using an input device (such as a stylus, a keyboard, or a mouse).
  • the mobile terminal can adjust the size of the selection box according to the received adjustment operation, and obtain the text content corresponding to the adjusted selection box.
  • Step S340 Edit the text content corresponding to the selection box according to the editing operation to obtain the target text to be pasted.
  • step S340 when the mobile terminal detects an editing operation on the text in the text content corresponding to the selection box, the mobile terminal can edit the selected text content according to the editing operation to obtain the target text to be pasted.
  • the above editing operations may include adding text operations, changing text operations, deleting text operations, and the like.
  • the editing operation may be input by a user through a touch screen, or may be input by a user by using an input device (such as a stylus, a keyboard, or a mouse).
  • the target text to be pasted may be the text selected in the selection box, or may be all the text in the operation area. That is, all the text in the operation area can be used as the target text to be pasted, or only a part of the text in the operation area can be selected, specifically the text selected in the selection box as the target text to be pasted. In either case, the content in the target text to be pasted is the content modified by the editing operation.
  • the editing operation is, for example, changing the text content corresponding to the selection box "Dinning home after dinner” to "Dinner home tonight", then wait
  • the target text that is pasted is the text corresponding to the selection box after the editing operation is modified to "go home to dinner", rather than the text corresponding to the selection box before the editing operation is modified to "go home after dinner”.
  • the text editing method of the embodiment of the present disclosure if a copy operation is detected, an operation area corresponding to the copy operation is determined; the text content in the operation area is displayed in full screen and the text content is in an editable state; a selection box is displayed in the operation area To obtain the text content corresponding to the selection box; according to the editing operation, edit the selected text content to obtain the target text to be pasted, which can reduce the tedious operation of the user in modifying and copying the text and improve the user's editing and copying The efficiency of text, which in turn improves the user's copy experience, flexibility and convenience.
  • FIG. 5 is a flowchart of a text editing method according to a third embodiment of the present disclosure. As shown in FIG. 5, the text editing method may include:
  • step S510 if a copy operation is detected, an operation area corresponding to the copy operation is determined.
  • step S510 when the mobile terminal detects a copy operation, the mobile terminal may determine an operation area corresponding to the copy operation, such as the operation area 210 shown in FIG. 2A.
  • the operation area may include text content that needs to be copied and edited.
  • the text content may be text including multiple sentences, or text including multiple lines, that is, the text information may include text with a large number of words.
  • the above copy operation may be input by the user through the touch screen, for example, the user may input by double-clicking the touch screen or the user may touch the touch screen for a preset time (for example, 2 seconds).
  • the above copy operation may also be input by a user by means of an input device (such as a stylus, keyboard, or mouse, etc.), the user may perform a double-click operation input through the input device, or the user may perform a long tap operation through the input device for a preset time ( (For example, 2 seconds).
  • step S520 the text content in the operation area is displayed in full screen.
  • the mobile terminal may enlarge the operation area to display the text content in the operation area in full screen and make the text content in an editable state, as shown in FIG. 2B.
  • the operation area by enlarging the operation area, all the text of the text content can be displayed in full screen in the enlarged operation area and the text content can be edited, so that the user can see all the text in the operation area. , Edit the text in the text content.
  • step S530 if a click operation on the operation area is detected, an edit logo is generated at the position of the click operation.
  • step S530 when the mobile terminal detects a click operation on the operation area, it indicates that the user needs to edit the text at the click position, and the mobile terminal can generate an edit logo 610 at the position of the click operation, as shown in FIG. 6, To facilitate subsequent editing and copying operations.
  • the editing mark 610 may be displayed in a flashing manner, or in a form of highlighting or coloring, to play a role of notification, prompt, or guidance, so that the user can clearly know where to perform text content. edit.
  • the click operation is not limited to a specific position on the operation area.
  • the user can perform a click operation at different positions in the operation area, and the mobile terminal generates an edit logo 610 at the corresponding position, so that the user can base the edit logo on the 610: Edit the corresponding text in the text content.
  • the click operation may be input by a user through a touch screen, or may be input by a user by using an input device (such as a stylus, a keyboard, or a mouse).
  • step S540 at the editing mark, according to the editing operation, the text content is edited to obtain the target text to be pasted.
  • step S540 when the mobile terminal detects an editing operation on the text in the text content at the editing mark, the mobile terminal may edit the text content at the editing mark according to the editing operation to obtain the target text to be pasted. .
  • the above editing operations may include adding text operations, changing text operations, deleting text operations, and the like.
  • the editing operation may be input by a user through a touch screen, or may be input by a user by using an input device (such as a stylus, a keyboard, or a mouse).
  • the target text to be pasted may be text selected based on the editing identifier, or may be all text in the operation area. That is, all the text in the operation area can be used as the target text to be pasted, or only a part of the text in the operation area can be selected, specifically, the text selected based on the editing identifier is used as the target text to be pasted. In either case, the content in the target text to be pasted is the content modified by the editing operation.
  • the editing operation is, for example, modifying the text content corresponding to the selection box "enter home after dinner” to "enter home tonight"
  • the target text to be pasted is the text selected based on the editing identifier "to go home for dinner” after the editing operation is modified, rather than the text selected based on the editing identifier "to go home to dinner” after the editing operation is modified.
  • this embodiment is different from the second embodiment described above, both the embodiment of the present disclosure and the second embodiment can achieve the same technical effect.
  • the operation area corresponding to the copy operation is determined; the text content in the operation area is displayed in full screen; if a click operation on the operation area is detected, the position of the click operation Editing logos are generated on the page; at the editing logos, the text content is edited according to the editing operation to obtain the target text to be pasted.
  • FIG. 1 The text editing method according to the embodiment of the present disclosure is described in detail in FIG. 1, FIG. 3, and FIG. 5 above.
  • the mobile terminal according to the embodiment of the present disclosure will be described in detail below with reference to FIG. 7.
  • FIG. 7 shows a structural diagram of a mobile terminal according to an embodiment of the present disclosure. As shown in FIG. 7, the mobile terminal 700 includes:
  • the determining module 710 determines an operation area corresponding to the copy operation
  • the display module 720 displays the text content in the operation area in full screen
  • the obtaining module 730 if an editing operation on the text content is detected, obtains the target text to be pasted according to the editing operation.
  • the display module 720 is specifically configured to:
  • the obtaining module 730 is specifically configured to:
  • the obtaining module 730 is specifically configured to:
  • the obtaining module 730 is specifically configured to:
  • the text content is edited to obtain the target text to be pasted.
  • the mobile terminal provided by the embodiment of the present disclosure can implement the processes implemented in the method embodiments of FIG. 1, FIG. 3, and FIG. 5. To avoid repetition, details are not described herein again.
  • FIG. 8 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present disclosure.
  • the mobile terminal 800 includes, but is not limited to, a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components.
  • a radio frequency unit 801 for example, a radio frequency unit 801
  • a network module 802 for example, a Wi-Fi Protected Access (WMA)
  • an audio output unit 803 an input unit 804
  • a sensor 805 a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components.
  • the mobile terminal may include more or less components than shown in the figure, or some components may be combined, or different components. Layout.
  • the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a car terminal,
  • the processor 810 is configured to detect a copy operation and determine an operation area corresponding to the copy operation; display the text content in the operation area in a full screen; if an edit operation is detected on the text content, according to the edit operation, the to-be-pasted The target text.
  • the mobile terminal if a copy operation is detected, an operation area corresponding to the copy operation is determined; the text content in the operation area is displayed on a full screen; if an edit operation on the text content is detected, according to the edit operation, a pending Pasted target text.
  • the editing operation can be facilitated, thereby reducing the time consumption of the text editing operation and improving the efficiency of text editing.
  • the radio frequency unit 801 may be used to receive and send signals during the process of transmitting and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 810; The uplink data is sent to the base station.
  • the radio frequency unit 801 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 801 can also communicate with a network and other devices through a wireless communication system.
  • the mobile terminal provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive email, browse web pages, and access streaming media.
  • the audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sound. Also, the audio output unit 803 may also provide audio output (for example, a call signal receiving sound, a message receiving sound, etc.) related to a specific function performed by the mobile terminal 800.
  • the audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 804 is used to receive audio or video signals.
  • the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042.
  • the graphics processor 8041 pairs images of still pictures or videos 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 frames may be displayed on a display unit 806.
  • the image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802.
  • the microphone 8042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 801 in the case of a telephone call mode.
  • the mobile terminal 800 further includes at least one sensor 805, 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 8061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 8061 and the mobile terminal 800 when the mobile terminal 800 moves to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, which can be used to identify mobile terminal attitudes (such as horizontal and vertical screen switching, related games , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc .; sensor 805 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensors, etc. are not repeated here.
  • the display unit 806 is configured to display information input by the user or information provided to the user.
  • the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 807 may be used to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the mobile terminal.
  • the user input unit 807 includes a touch panel 8071 and other input devices 8072.
  • Touch panel 8071 also known as touch screen, can collect user's touch operations on or near it (such as the user using a finger, stylus, etc. any suitable object or accessory on touch panel 8071 or near touch panel 8071 operating).
  • the touch panel 8071 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it
  • the processor 810 receives and executes a command sent by the processor 810.
  • various types of resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel 8071.
  • the user input unit 807 may further include other input devices 8072.
  • other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, and details are not described herein again.
  • the touch panel 8071 may be overlaid on the display panel 8061.
  • the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch panel 8071 transmits the touch operation to the processor 810 to determine the type of the touch event.
  • the type of event provides corresponding visual output on the display panel 8061.
  • the touch panel 8071 and the display panel 8061 are implemented as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
  • the interface unit 808 is an interface for connecting an external device with the mobile terminal 800.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, and audio input / output (I / O) port, video I / O port, headphone port, and more.
  • the interface unit 808 may be used to receive an input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more components within the mobile terminal 800 or may be used for the mobile terminal 800 and external Transfer data between devices.
  • the memory 809 may be used to store software programs and various data.
  • the memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may store data according to Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 809 may include a high-speed random access memory, and may further 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 810 is a control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal.
  • the processor 810 runs or executes software programs and / or modules stored in the memory 809, and calls data stored in the memory 809. , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
  • the processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, etc.
  • the tuning processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
  • the mobile terminal 800 may further include a power source 811 (such as a battery) for supplying power to various components.
  • a power source 811 such as a battery
  • the power source 811 may be logically connected to the processor 810 through a power management system, thereby implementing management of charging, discharging, and power consumption through the power management system. Management and other functions.
  • the mobile terminal 800 includes some functional modules that are not shown, and details are not described herein again.
  • an embodiment of the present disclosure further provides a mobile terminal including a processor 810, a memory 809, and a computer program stored on the memory 809 and executable on the processor 810, the computer program being executed by the processor 810.
  • An embodiment of the present disclosure further provides a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the processes of the foregoing text editing method embodiments are implemented, and the same technology can be achieved. Effect, in order to avoid repetition, it will not be repeated here.
  • the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
  • the methods in the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is better.
  • Implementation Based on this understanding, the technical solution of the present disclosure that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, and optical disk) ) Includes instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present disclosure.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Abstract

Disclosed in the embodiments of the present disclosure are a text editing method and a mobile terminal. The text editing method comprises: if a copy operation is detected, determining an operation area corresponding to the copy operation; implementing full screen display of the text content in the operation area; and, if an editing operation for the text content is detected, then obtaining target text to be pasted on the basis of the editing operation.

Description

文本编辑方法及移动终端Text editing method and mobile terminal
相关申请的交叉引用Cross-reference to related applications
本申请主张在2018年8月30日在中国提交的中国专利申请号No.201811006143.8的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201811006143.8 filed in China on August 30, 2018, the entire contents of which are hereby incorporated by reference.
技术领域Technical field
本公开涉及终端领域,尤其涉及一种文本编辑方法及移动终端。The present disclosure relates to the field of terminals, and in particular, to a text editing method and a mobile terminal.
背景技术Background technique
随着移动终端(例如手机、智能穿戴设备等)的普及,越来越多的用户习惯于利用移动终端来浏览网页或消息,用户在此浏览过程中常常会遇到用户感兴趣的内容,这时,用户希望对感兴趣的内容进行复制并将其保存到移动终端中或者发送给其他用户。With the popularity of mobile terminals (such as mobile phones, smart wearable devices, etc.), more and more users are accustomed to using mobile terminals to browse web pages or messages. Users often encounter content that users are interested in during this browsing process. When the user wants to copy the content of interest and save it to the mobile terminal or send it to other users.
在一些场景下,用户希望对复制的文本内容进行修改后再保存到移动终端中或者发送给其他用户。但是,目前只有在用户将复制的文本内容粘贴在信息输入框后才能进行修改。由于信息输入框比较狭长且输入框中所显示的内容有限,当字数较多的文本内容粘贴到信息输入框后,如果需要修改当中的一部分文字,需要先一行一行翻到需要修改的地方再对文字进行修改,这样会导致文本编辑操作耗时较多,从而降低文本编辑的效率。In some scenarios, the user wishes to modify the copied text content before saving it to the mobile terminal or sending it to other users. However, at present, it can only be modified after the user pastes the copied text content into the information input box. Because the information input box is relatively narrow and the content displayed in the input box is limited, when the text content with a large number of words is pasted into the information input box, if you need to modify some of the text, you need to turn to the place where you need to modify it. Modify the text, which will cause the text editing operation to take more time, which will reduce the efficiency of text editing.
发明内容Summary of the Invention
本公开实施例提供一种文本编辑方法及移动终端,以解决文本编辑操作耗时较多,从而降低文本编辑的效率的问题。Embodiments of the present disclosure provide a text editing method and a mobile terminal to solve the problem that the text editing operation takes a lot of time, thereby reducing the efficiency of text editing.
为了解决上述技术问题,本公开是这样实现的:In order to solve the above technical problems, the present disclosure is implemented as follows:
第一方面,提供了一种文本编辑方法,应用于移动终端,包括:In a first aspect, a text editing method is provided and applied to a mobile terminal, including:
若检测到复制操作,确定所述复制操作对应的操作区域;If a copy operation is detected, determining an operation area corresponding to the copy operation;
将所述操作区域中的文本内容进行全屏显示;Displaying the text content in the operation area in full screen;
若检测到对所述文本内容的编辑操作,根据所述编辑操作,得到待粘贴 的目标文本。If an editing operation on the text content is detected, a target text to be pasted is obtained according to the editing operation.
第二方面,提供了一种移动终端,包括:In a second aspect, a mobile terminal is provided, including:
确定模块,若检测到复制操作,确定所述复制操作对应的操作区域;A determining module, if a copy operation is detected, determining an operation area corresponding to the copy operation;
显示模块,将所述操作区域中的文本内容进行全屏显示;A display module that displays text content in the operation area in full screen;
获取模块,若检测到对所述文本内容的编辑操作,根据所述编辑操作,得到待粘贴的目标文本。The obtaining module, if an editing operation on the text content is detected, obtains a target text to be pasted according to the editing operation.
第三方面,提供了一种移动终端,该移动终端包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的方法的步骤。According to a third aspect, a mobile terminal is provided. The mobile terminal includes a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, Implementing the steps of the method as described in the first aspect.
第四方面,提供了一种计算机可读存储介质,其中,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的方法的步骤。According to a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the steps of the method according to the first aspect.
在本公开实施例中,若检测到复制操作,确定所述复制操作对应的操作区域;将所述操作区域中的文本内容进行全屏显示;若检测到对所述文本内容的编辑操作,根据所述编辑操作,得到待粘贴的目标文本。如此,通过先确定复制操作的操作区域,进而将操作区域内的文本内容进行全屏显示可以有利于编辑操作,从而可以减小文本编辑操作的耗时,提高文本编辑的效率In the embodiment of the present disclosure, if a copy operation is detected, an operation area corresponding to the copy operation is determined; the text content in the operation area is displayed in full screen; if an edit operation is performed on the text content, The editing operation is described to obtain the target text to be pasted. In this way, by first determining the operation area of the copy operation, and then displaying the text content in the operation area in full screen, the editing operation can be facilitated, thereby reducing the time consumption of the text editing operation and improving the efficiency of text editing.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本公开第一实施例的文本编辑方法的流程图。FIG. 1 is a flowchart of a text editing method according to a first embodiment of the present disclosure.
图2A是本公开实施例的复制操作对应的操作区域的示意图。FIG. 2A is a schematic diagram of an operation area corresponding to a copy operation according to an embodiment of the present disclosure.
图2B是本公开实施例的将操作区域中的文本内容进行全屏显示后的效果示意图。FIG. 2B is a schematic diagram of an effect after the full-screen display of the text content in the operation area according to the embodiment of the present disclosure.
图3是本公开第二实施例的文本编辑方法的流程图。FIG. 3 is a flowchart of a text editing method according to a second embodiment of the present disclosure.
图4是本公开实施例提供的由操作区域中显示选择框所框选的文本内容的示意图。FIG. 4 is a schematic diagram of text content selected by a display selection box in an operation area according to an embodiment of the present disclosure.
图5是本公开第三实施例的文本编辑方法的流程图。FIG. 5 is a flowchart of a text editing method according to a third embodiment of the present disclosure.
图6是本公开实施例的在点击操作的位置生成编辑标识的效果示意图。FIG. 6 is a schematic diagram of an effect of generating an edit mark at a position of a click operation according to an embodiment of the present disclosure.
图7示出了根据本公开一实施例的移动终端的结构图。FIG. 7 shows a structural diagram of a mobile terminal according to an embodiment of the present disclosure.
图8是实现本公开一些实施例的一种移动终端的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of a mobile terminal that implements some embodiments of the present disclosure.
具体实施方式detailed description
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, but not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present disclosure.
以下结合附图,详细说明本公开各实施例提供的技术方案。The technical solutions provided by the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
本公开实施例提供的文本编辑方法可由移动终端执行。The text editing method provided by the embodiment of the present disclosure may be executed by a mobile terminal.
在本实施例中,上述移动终端可以是任何具有存储媒介的设备,例如计算机(Computer)、手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(Personal Digital Assistant,PDA)、移动上网电子设备(Mobile Internet Device,MID)、可穿戴式设备(Wearable Device)等。In this embodiment, the above mobile terminal may be any device having a storage medium, such as a computer, a mobile phone, a tablet computer, a laptop computer, and a personal digital assistant. , PDA), mobile Internet electronic devices (Mobile Internet Device (MID), wearable devices (Wearable Device), etc.
图1是本公开的第一实施例的文本编辑方法的流程图。如图1所示,本公开实施例提供的文本编辑方法包括:FIG. 1 is a flowchart of a text editing method according to a first embodiment of the present disclosure. As shown in FIG. 1, a text editing method provided by an embodiment of the present disclosure includes:
步骤S110,若检测到复制操作,确定复制操作对应的操作区域。In step S110, if a copy operation is detected, an operation area corresponding to the copy operation is determined.
在步骤S110中,当移动终端检测到复制操作时,移动终端可以确定所述复制操作对应的操作区域。例如,如图2A所示的操作区域210。图2A可以是一种聊天软件(例如,微信)的界面的示意图。界面中显示了用户之间的聊天对话,当用户对界面中的一个对话框进行例如长按操作时,可以显示多个操作选项,例如复制、发送给朋友、收藏、删除等选项。在用户选择了复制选项时,即可以将这个对话框所界定的区域(例如,区域210)确定为操作区域。其中,操作区域中可以包括需要进行复制及编辑的文本内容。并且,文本内容可以是包括多个语句的文本,也可以是包括多行的文本,亦即文本内容可以包括字数较多的文本。In step S110, when the mobile terminal detects a copy operation, the mobile terminal may determine an operation area corresponding to the copy operation. For example, the operation area 210 is shown in FIG. 2A. FIG. 2A may be a schematic diagram of an interface of a chat software (for example, WeChat). The interface displays chat conversations between users. When a user performs a long-press operation on a dialog in the interface, for example, multiple operation options can be displayed, such as copy, send to friends, favorite, delete and other options. When the user selects the copy option, the area (for example, area 210) defined by this dialog box can be determined as the operation area. The operation area may include text content that needs to be copied and edited. In addition, the text content may be text including multiple sentences or text including multiple lines, that is, the text content may include text with a large number of words.
另外,上述复制操作可以是用户通过触摸屏输入的,例如用户通过双击触摸屏输入的或者用户长按触摸屏达预设时间(例如2秒)而输入的。并且,上述复制操作也可以是用户借助于输入设备(例如触控笔、键盘或鼠标等)输入的,用户通过输入设备进行双击操作输入的或者用户通过输入设备进行长按操作 达预设时间(例如2秒)而输入的。In addition, the above copy operation may be input by the user through the touch screen, for example, the user may input by double-clicking the touch screen or the user may press and hold the touch screen for a preset time (for example, 2 seconds). In addition, the above copy operation may also be input by a user via an input device (such as a stylus, keyboard, or mouse, etc.), the user may perform a double-click operation through the input device, or the user may perform a long-press operation through the input device for a preset time ( (For example, 2 seconds).
步骤S120,将操作区域中的文本内容进行全屏显示。In step S120, the text content in the operation area is displayed in full screen.
在步骤S120中,移动终端可以将操作区域放大,以将操作区域中的文本内容进行全屏显示,如图2B所示。当然,在本公开实施例中,还可以获取操作区域中的文本内容,然后将文本内容进行全屏显示,而无需对操作区域进行放大操作。在本实施例中,可以将文本内容的所有文字都以全屏显示,使得用户可以在清楚地看到所有文字的情况下,对文本内容的文字进行编辑。如此,可以减少用户在确定需要修改的文字的过程中的繁琐操作,提升用户编辑文本的效率,提高用户体验、编辑操作的灵活性和便捷性。In step S120, the mobile terminal may enlarge the operation area to display the full-screen text content in the operation area, as shown in FIG. 2B. Of course, in the embodiment of the present disclosure, the text content in the operation area can also be acquired, and then the text content can be displayed in full screen without zooming in the operation area. In this embodiment, all the text of the text content can be displayed in a full screen, so that the user can edit the text of the text content while clearly seeing all the text. In this way, the tedious operation of the user in determining the text to be modified can be reduced, the efficiency of the user's editing text can be improved, and the user experience and the flexibility and convenience of the editing operation can be improved.
步骤S130,若检测到对文本内容的编辑操作,根据编辑操作,得到待粘贴的目标文本。In step S130, if an editing operation on the text content is detected, the target text to be pasted is obtained according to the editing operation.
在步骤S130中,当移动终端检测到对文本内容中的全部文字或部分文字的编辑操作时,移动终端可以根据所述编辑操作,得到待粘贴的目标文本。In step S130, when the mobile terminal detects an editing operation on all or part of the text in the text content, the mobile terminal may obtain the target text to be pasted according to the editing operation.
在本实施例中,上述编辑操作可以包括增加文字操作、改变文字操作、删除文字操作等。其中,上述编辑操作可以是用户通过触摸屏输入的,也可以是用户借助于输入设备(例如触控笔、键盘或鼠标等)输入的。In this embodiment, the above editing operations may include adding text operations, changing text operations, deleting text operations, and the like. The editing operation may be input by a user through a touch screen, or may be input by a user by using an input device (such as a stylus, a keyboard, or a mouse).
在本公开实施例中,待粘贴的目标文本可以为操作区域中的全部文本,也可以为操作区域中的部分文本。也就是说,可以将操作区域中的全部文本作为待粘贴的目标文本,也可以只选取操作区域中的一部分文本作为待粘贴的目标文本。In the embodiment of the present disclosure, the target text to be pasted may be all text in the operation area, or may be part of text in the operation area. That is, all the text in the operation area can be used as the target text to be pasted, or only a part of the text in the operation area can be selected as the target text to be pasted.
根据本公开实施例的文本编辑方法,如果检测到复制操作,确定复制操作对应的操作区域;将操作区域中的文本内容进行全屏显示;若检测到对文本内容的编辑操作,根据编辑操作,得到待粘贴的目标文本,能够实现减少用户在修改复制文本过程中的繁琐操作,提升用户编辑复制文本的效率,进而提高用户复制体验、使用的灵活性和便捷性。According to the text editing method of the embodiment of the present disclosure, if a copy operation is detected, an operation area corresponding to the copy operation is determined; the text content in the operation area is displayed in full screen; if an edit operation on the text content is detected, according to the edit operation, the obtained The target text to be pasted can reduce the tedious operation of the user in modifying the copied text, improve the efficiency of the user in editing the copied text, and further improve the user's copy experience, flexibility and convenience.
图3是本公开的第二实施例的文本编辑方法的流程图。如图3所示,本实施例提供的文本编辑方法可包括:FIG. 3 is a flowchart of a text editing method according to a second embodiment of the present disclosure. As shown in FIG. 3, the text editing method provided in this embodiment may include:
步骤S310,若检测到复制操作,确定复制操作对应的操作区域。In step S310, if a copy operation is detected, an operation area corresponding to the copy operation is determined.
在步骤S310中,当移动终端检测到复制操作时,移动终端可以确定所述 复制操作对应的操作区域,例如如图2A所示的操作区域210。其中,操作区域中可以包括需要进行复制及编辑的文本内容。并且,文本内容可以是包括多个语句的文本,也可以是包括多行的文本,亦即文本内容可以包括字数较多的文本。In step S310, when the mobile terminal detects a copy operation, the mobile terminal may determine an operation area corresponding to the copy operation, such as the operation area 210 shown in FIG. 2A. The operation area may include text content that needs to be copied and edited. In addition, the text content may be text including multiple sentences or text including multiple lines, that is, the text content may include text with a large number of words.
另外,上述复制操作可以是用户通过触摸屏输入的,例如用户通过双击触摸屏输入的或者用户长按触摸屏达预设时间(例如2秒)而输入的。并且,上述复制操作也可以是用户借助于输入设备(例如触控笔、键盘或鼠标等)输入的,用户通过输入设备进行双击操作输入的或者用户通过输入设备进行长按操作达预设时间(例如2秒)而输入的。In addition, the above copy operation may be input by the user through the touch screen, for example, the user may input by double-clicking the touch screen or the user may press and hold the touch screen for a preset time (for example, 2 seconds). In addition, the above copy operation may also be input by a user via an input device (such as a stylus, keyboard, or mouse, etc.), the user may perform a double-click operation through the input device, or the user may perform a long-press operation through the input device for a preset time ( (For example, 2 seconds).
步骤S320,将操作区域中的文本内容进行全屏显示,并使文本内容处于可编辑状态。In step S320, the text content in the operation area is displayed in full screen, and the text content is in an editable state.
在步骤S320中,移动终端可以将操作区域放大,以将操作区域中的文本内容进行全屏显示并使文本内容处于可编辑状态,如图2B所示。在本实施例中,通过将操作区域放大,可以将文本内容的所有文字都在放大后的操作区域中进行全屏显示并使文本内容处于可编辑状态,使得用户可以在操作区域中看到所有文字的情况下,直接对文本内容的文字进行编辑。当然,在本公开实施例中,还可以先获取操作区域中的文本内容,然后将文本内容进行全屏显示,并使文本内容处于可编辑状态,而无需对操作区域执行放大操作。In step S320, the mobile terminal may enlarge the operation area to display the text content in the operation area in full screen and make the text content in an editable state, as shown in FIG. 2B. In this embodiment, by enlarging the operation area, all the text of the text content can be displayed in full screen in the enlarged operation area and the text content can be edited, so that the user can see all the text in the operation area. In the case of editing the text of the text content directly. Of course, in the embodiment of the present disclosure, it is also possible to first obtain the text content in the operation area, and then display the text content in full screen, and make the text content in an editable state without performing an enlargement operation on the operation area.
如此,可以减少用户在确定需要修改的文字的过程中的繁琐操作,提升用户编辑文本的效率,提高用户体验、编辑操作的灵活性和便捷性。In this way, the tedious operation of the user in determining the text to be modified can be reduced, the efficiency of the user's editing text can be improved, and the user experience and the flexibility and convenience of the editing operation can be improved.
步骤S330,在操作区域中显示选择框,获取选择框所对应的文本内容。Step S330: Display a selection box in the operation area, and obtain the text content corresponding to the selection box.
在步骤S330中,移动终端可以在操作区域中显示选择框410,如图4A所示,使得用户可以通过选择框410来框选所需要编辑的文字,以进行后续的编辑操作及复制操作。In step S330, the mobile terminal may display a selection box 410 in the operation area, as shown in FIG. 4A, so that the user can select the text to be edited through the selection box 410 for subsequent editing operations and copy operations.
其中,选择框所对应的文本内容可以为选择框所框选的文字的内容。The text content corresponding to the selection box may be the content of the text selected by the selection box.
当选择框初始框选的文字不是用户期望获取的文字时,用户可以进一步通过调整选择框410的大小,例如通过拖动的方式来调整选择框410的大小,以便框选出需要对文本内容的文字进行调整的范围,例如框选出文本内容的全部文字或部分文字,从而进行后续编辑操作及复制操作。其中,所述调整 选择框的大小的操作可以是用户通过触摸屏输入的,也可以是用户借助于输入设备(例如触控笔、键盘或鼠标等)输入的。移动终端在接收到对选择框的调整操作之后,即可根据接收到的调整操作调整所述选择框的大小,并获取调整后的选择框对应的文本内容。When the text selected in the initial selection box is not the text the user wants to obtain, the user can further adjust the size of the selection box 410, for example, by dragging to adjust the size of the selection box 410, so that the box selects the text content that needs to be selected. The text adjustment range, for example, select all or part of the text in the frame to perform subsequent editing operations and copy operations. The operation of adjusting the size of the selection box may be input by a user through a touch screen, or may be input by a user by using an input device (such as a stylus, a keyboard, or a mouse). After receiving the adjustment operation on the selection box, the mobile terminal can adjust the size of the selection box according to the received adjustment operation, and obtain the text content corresponding to the adjusted selection box.
步骤S340,根据编辑操作,对选择框对应的文本内容进行编辑,得到待粘贴的目标文本。Step S340: Edit the text content corresponding to the selection box according to the editing operation to obtain the target text to be pasted.
在步骤S340中,当移动终端检测到对选择框对应的文本内容中的文字的编辑操作时,移动终端可以根据所述编辑操作,对所选择的文本内容进行编辑,得到待粘贴的目标文本。In step S340, when the mobile terminal detects an editing operation on the text in the text content corresponding to the selection box, the mobile terminal can edit the selected text content according to the editing operation to obtain the target text to be pasted.
在本实施例中,上述编辑操作可以包括增加文字操作、改变文字操作、删除文字操作等。其中,上述编辑操作可以是用户通过触摸屏输入的,也可以是用户借助于输入设备(例如触控笔、键盘或鼠标等)输入的。In this embodiment, the above editing operations may include adding text operations, changing text operations, deleting text operations, and the like. The editing operation may be input by a user through a touch screen, or may be input by a user by using an input device (such as a stylus, a keyboard, or a mouse).
在本公开实施例中,待粘贴的目标文本可以为选择框中所框选的文本,也可以为操作区域中的全部文本。也就是说,可以将操作区域中的全部文本作为待粘贴的目标文本,也可以只选取操作区域中的一部分文本,具体为选择框中所框选的文本,作为待粘贴的目标文本。而无论在哪种情形下,待粘贴的目标文本中的内容为经过编辑操作修改后的内容。举例而言,如果选择框对应的文本内容为“进完回家吃饭”,编辑操作例如为将选择框对应的文本内容“进完回家吃饭”修改为“今晚回家吃饭”,则待粘贴的目标文本为编辑操作修改后选择框所对应的文本“今晚回家吃饭”,而非编辑操作修改之前选择框所对应的文本“进完回家吃饭”。In the embodiment of the present disclosure, the target text to be pasted may be the text selected in the selection box, or may be all the text in the operation area. That is, all the text in the operation area can be used as the target text to be pasted, or only a part of the text in the operation area can be selected, specifically the text selected in the selection box as the target text to be pasted. In either case, the content in the target text to be pasted is the content modified by the editing operation. For example, if the text content corresponding to the selection box is "Dinning home after dinner", the editing operation is, for example, changing the text content corresponding to the selection box "Dinning home after dinner" to "Dinner home tonight", then wait The target text that is pasted is the text corresponding to the selection box after the editing operation is modified to "go home to dinner", rather than the text corresponding to the selection box before the editing operation is modified to "go home after dinner".
根据本公开实施例的文本编辑方法,如果检测到复制操作,确定复制操作对应的操作区域;将操作区域中的文本内容进行全屏显示并使文本内容处于可编辑状态;在操作区域中显示选择框,获取选择框所对应的文本内容;根据所述编辑操作,对所选择的文本内容进行编辑,得到待粘贴的目标文本,能够实现减少用户在修改复制文本过程中的繁琐操作,提升用户编辑复制文本的效率,进而提高用户复制体验、使用的灵活性和便捷性。According to the text editing method of the embodiment of the present disclosure, if a copy operation is detected, an operation area corresponding to the copy operation is determined; the text content in the operation area is displayed in full screen and the text content is in an editable state; a selection box is displayed in the operation area To obtain the text content corresponding to the selection box; according to the editing operation, edit the selected text content to obtain the target text to be pasted, which can reduce the tedious operation of the user in modifying and copying the text and improve the user's editing and copying The efficiency of text, which in turn improves the user's copy experience, flexibility and convenience.
图5是本公开的第三实施例的文本编辑方法的流程图。如图5所示,文本编辑方法可包括:FIG. 5 is a flowchart of a text editing method according to a third embodiment of the present disclosure. As shown in FIG. 5, the text editing method may include:
步骤S510,若检测到复制操作,确定复制操作对应的操作区域。In step S510, if a copy operation is detected, an operation area corresponding to the copy operation is determined.
在步骤S510中,当移动终端检测到复制操作时,移动终端可以确定所述复制操作对应的操作区域,例如如图2A所示的操作区域210。其中,操作区域中可以包括需要进行复制及编辑的文本内容。并且,文本内容可以是包括多个语句的文本,也可以是包括多行的文本,亦即文本信息可以包括字数较多的文本。In step S510, when the mobile terminal detects a copy operation, the mobile terminal may determine an operation area corresponding to the copy operation, such as the operation area 210 shown in FIG. 2A. The operation area may include text content that needs to be copied and edited. In addition, the text content may be text including multiple sentences, or text including multiple lines, that is, the text information may include text with a large number of words.
另外,上述复制操作可以是用户通过触摸屏输入的,例如用户通过双击触摸屏输入的或者用户长摁触摸屏达预设时间(例如2秒)而输入的。并且,上述复制操作也可以是用户借助于输入设备(例如触控笔、键盘或鼠标等)输入的,用户通过输入设备进行双击操作输入的或者用户通过输入设备进行长摁操作达预设时间(例如2秒)而输入的。In addition, the above copy operation may be input by the user through the touch screen, for example, the user may input by double-clicking the touch screen or the user may touch the touch screen for a preset time (for example, 2 seconds). In addition, the above copy operation may also be input by a user by means of an input device (such as a stylus, keyboard, or mouse, etc.), the user may perform a double-click operation input through the input device, or the user may perform a long tap operation through the input device for a preset time ( (For example, 2 seconds).
步骤S520,将操作区域中的文本内容进行全屏显示。In step S520, the text content in the operation area is displayed in full screen.
在步骤S520中,移动终端可以将操作区域放大,以将操作区域中的文本内容进行全屏显示并使文本内容处于可编辑状态,如图2B所示。在本实施例中,通过将操作区域放大,可以将文本内容的所有文字都在放大后的操作区域中进行全屏显示并使文本内容处于可编辑状态,使得用户可以在操作区域中看到所有文字的情况下,对文本内容中的文字进行编辑。当然,在本公开实施例中,还可以先获取操作区域中的文本内容,然后将文本内容进行全屏显示,并使文本内容处于可编辑状态,而无需对操作区域执行放大操作。In step S520, the mobile terminal may enlarge the operation area to display the text content in the operation area in full screen and make the text content in an editable state, as shown in FIG. 2B. In this embodiment, by enlarging the operation area, all the text of the text content can be displayed in full screen in the enlarged operation area and the text content can be edited, so that the user can see all the text in the operation area. , Edit the text in the text content. Of course, in the embodiment of the present disclosure, it is also possible to first obtain the text content in the operation area, and then display the text content in full screen, and make the text content in an editable state without performing an enlargement operation on the operation area.
如此,可以减少用户在确定需要修改的文字的过程中的繁琐操作,提升用户编辑文本的效率,提高用户体验、编辑操作的灵活性和便捷性。In this way, the tedious operation of the user in determining the text to be modified can be reduced, the efficiency of the user's editing text can be improved, and the user experience and the flexibility and convenience of the editing operation can be improved.
步骤S530,若检测到对操作区域的点击操作,在点击操作的位置处生成编辑标识。In step S530, if a click operation on the operation area is detected, an edit logo is generated at the position of the click operation.
在步骤S530中,当移动终端检测到对操作区域的点击操作时,表示用户需要对点击位置处的文字进行编辑,移动终端可以在点击操作的位置处生成编辑标识610,如图6所示,以有助于后续进行的编辑操作及复制操作。其中,所述编辑标识610可以以闪烁方式呈现,也可以以高亮或彩色的形式呈现,以起到告知、提示或引导等作用,使得用户可以清楚地知道要对文本内容中的哪个地方进行编辑。并且,所述点击操作不限于在操作区域上的某一 特定位置,用户可以在操作区域的不同位置进行点击操作,且移动终端会在相应的位置上生成编辑标识610,使得用户可以基于编辑标识610,对文本内容的相应文字进行编辑操作。其中,所述点击操作可以是用户通过触摸屏输入的,也可以是用户借助于输入设备(例如触控笔、键盘或鼠标等)输入的。In step S530, when the mobile terminal detects a click operation on the operation area, it indicates that the user needs to edit the text at the click position, and the mobile terminal can generate an edit logo 610 at the position of the click operation, as shown in FIG. 6, To facilitate subsequent editing and copying operations. The editing mark 610 may be displayed in a flashing manner, or in a form of highlighting or coloring, to play a role of notification, prompt, or guidance, so that the user can clearly know where to perform text content. edit. In addition, the click operation is not limited to a specific position on the operation area. The user can perform a click operation at different positions in the operation area, and the mobile terminal generates an edit logo 610 at the corresponding position, so that the user can base the edit logo on the 610: Edit the corresponding text in the text content. The click operation may be input by a user through a touch screen, or may be input by a user by using an input device (such as a stylus, a keyboard, or a mouse).
在步骤S540,在编辑标识处,根据编辑操作,对文本内容进行编辑,得到待粘贴的目标文本。In step S540, at the editing mark, according to the editing operation, the text content is edited to obtain the target text to be pasted.
在步骤S540中,当移动终端检测到在编辑标识处对文本内容中的文字的编辑操作时,移动终端可以根据所述编辑操作,对编辑标识处的文本内容进行编辑,得到待粘贴的目标文本。In step S540, when the mobile terminal detects an editing operation on the text in the text content at the editing mark, the mobile terminal may edit the text content at the editing mark according to the editing operation to obtain the target text to be pasted. .
在本实施例中,上述编辑操作可以包括增加文字操作、改变文字操作、删除文字操作等。其中,上述编辑操作可以是用户通过触摸屏输入的,也可以是用户借助于输入设备(例如触控笔、键盘或鼠标等)输入的。In this embodiment, the above editing operations may include adding text operations, changing text operations, deleting text operations, and the like. The editing operation may be input by a user through a touch screen, or may be input by a user by using an input device (such as a stylus, a keyboard, or a mouse).
在本公开实施例中,待粘贴的目标文本可以为基于编辑标识所选择的文本,也可以为操作区域中的全部文本。也就是说,可以将操作区域中的全部文本作为待粘贴的目标文本,也可以只选取操作区域中的一部分文本,具体为基于编辑标识所选择的文本,作为待粘贴的目标文本。而无论在哪种情形下,待粘贴的目标文本中的内容为经过编辑操作修改后的内容。In the embodiment of the present disclosure, the target text to be pasted may be text selected based on the editing identifier, or may be all text in the operation area. That is, all the text in the operation area can be used as the target text to be pasted, or only a part of the text in the operation area can be selected, specifically, the text selected based on the editing identifier is used as the target text to be pasted. In either case, the content in the target text to be pasted is the content modified by the editing operation.
举例而言,如果基于编辑标识所选择的文本内容为“进完回家吃饭”,编辑操作例如为将选择框对应的文本内容“进完回家吃饭”修改为“今晚回家吃饭”,则待粘贴的目标文本为编辑操作修改后基于编辑标识所选择的文本“今晚回家吃饭”,而非编辑操作修改之前基于编辑标识所选择的文本“进完回家吃饭”。For example, if the text content selected based on the editing identifier is "enter home after dinner", the editing operation is, for example, modifying the text content corresponding to the selection box "enter home after dinner" to "enter home tonight", Then the target text to be pasted is the text selected based on the editing identifier "to go home for dinner" after the editing operation is modified, rather than the text selected based on the editing identifier "to go home to dinner" after the editing operation is modified.
本实施例与第二实施例的区别在于,本公开实施例是在检测到对操作区域的点击操作后,文本内容处于可编辑状态,并在点击操作的位置处生成编辑标识,而第二实施例是在将操作区域中的文本内容进行全屏显示的同时文本内容处于可编辑状态。虽然,本实施例与第二实施例有上述区别,但本公开实施例与第二实施例都可以达到相同的技术效果。The difference between this embodiment and the second embodiment is that, in the embodiment of the present disclosure, after a click operation on an operation area is detected, the text content is in an editable state, and an edit logo is generated at the position of the click operation. An example is when the text content in the operation area is displayed in full screen while the text content is in an editable state. Although this embodiment is different from the second embodiment described above, both the embodiment of the present disclosure and the second embodiment can achieve the same technical effect.
根据本公开实施例的文本编辑方法,如果检测到复制操作,确定复制操作对应的操作区域;将操作区域中的文本内容进行全屏显示;若检测到对操 作区域的点击操作,在点击操作的位置上生成编辑标识;在编辑标识处,根据编辑操作,对文本内容进行编辑,得到待粘贴的目标文本,能够实现减少用户在修改复制文本过程中的繁琐操作,提升用户编辑复制文本的效率,进而提高用户复制体验、使用的灵活性和便捷性。According to the text editing method of the embodiment of the present disclosure, if a copy operation is detected, the operation area corresponding to the copy operation is determined; the text content in the operation area is displayed in full screen; if a click operation on the operation area is detected, the position of the click operation Editing logos are generated on the page; at the editing logos, the text content is edited according to the editing operation to obtain the target text to be pasted. Improve user replication experience, flexibility and convenience.
以上图1、图3、图5详细描述了根据本公开实施例的文本编辑方法,下面将结合图7详细描述根据本公开实施例的移动终端。The text editing method according to the embodiment of the present disclosure is described in detail in FIG. 1, FIG. 3, and FIG. 5 above. The mobile terminal according to the embodiment of the present disclosure will be described in detail below with reference to FIG. 7.
图7示出了根据本公开一实施例的移动终端的结构图。如图7所示,移动终端700包括:FIG. 7 shows a structural diagram of a mobile terminal according to an embodiment of the present disclosure. As shown in FIG. 7, the mobile terminal 700 includes:
确定模块710,若检测到复制操作,确定复制操作对应的操作区域;The determining module 710, if a copy operation is detected, determines an operation area corresponding to the copy operation;
显示模块720,将操作区域中的文本内容进行全屏显示;The display module 720 displays the text content in the operation area in full screen;
获取模块730,若检测到对文本内容的编辑操作,根据编辑操作,得到待粘贴的目标文本。The obtaining module 730, if an editing operation on the text content is detected, obtains the target text to be pasted according to the editing operation.
可选地,作为一个实施例,所述显示模块720具体用于:Optionally, as an embodiment, the display module 720 is specifically configured to:
将操作区域中的文本内容进行全屏显示,并使文本内容处于可编辑状态。Display the text content in the operation area in full screen and make the text content editable.
可选地,作为一个实施例,所述获取模块730具体用于:Optionally, as an embodiment, the obtaining module 730 is specifically configured to:
在所述操作区域中显示选择框,获取所述选择框对应的文本内容;Displaying a selection box in the operation area, and acquiring text content corresponding to the selection box;
根据所述编辑操作,对所述选择框对应的文本内容进行编辑,得到待粘贴的目标文本。Edit the text content corresponding to the selection box according to the editing operation to obtain the target text to be pasted.
可选地,作为一个实施例,所述获取模块730具体用于:Optionally, as an embodiment, the obtaining module 730 is specifically configured to:
根据接收到的调整操作调整所述选择框的大小,并获取调整后的选择框对应的文本内容。Adjust the size of the selection box according to the received adjustment operation, and obtain the text content corresponding to the adjusted selection box.
可选地,作为一个实施例,所述获取模块730具体用于:Optionally, as an embodiment, the obtaining module 730 is specifically configured to:
若检测到对操作区域的点击操作,在点击操作的位置处生成编辑标识;If a click operation on the operation area is detected, an edit logo is generated at the position of the click operation;
在编辑标识处,根据编辑操作,对文本内容进行编辑,得到待粘贴的目标文本。At the editing mark, according to the editing operation, the text content is edited to obtain the target text to be pasted.
本公开实施例提供的移动终端能够实现图1、图3、图5的方法实施例中实现的各个过程,为避免重复,这里不再赘述。The mobile terminal provided by the embodiment of the present disclosure can implement the processes implemented in the method embodiments of FIG. 1, FIG. 3, and FIG. 5. To avoid repetition, details are not described herein again.
图8是实现本公开各个实施例的一种移动终端的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present disclosure.
该移动终端800包括但不限于:射频单元801、网络模块802、音频输出 单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 800 includes, but is not limited to, a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 8 does not constitute a limitation on the mobile terminal. The mobile terminal may include more or less components than shown in the figure, or some components may be combined, or different components. Layout. In the embodiment of the present disclosure, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a car terminal, a wearable device, and a pedometer.
其中,处理器810,用于检测到复制操作,确定复制操作对应的操作区域;将操作区域中的文本内容进行全屏显示;若检测到对文本内容的编辑操作,根据编辑操作,得到待粘贴的目标文本。Wherein, the processor 810 is configured to detect a copy operation and determine an operation area corresponding to the copy operation; display the text content in the operation area in a full screen; if an edit operation is detected on the text content, according to the edit operation, the to-be-pasted The target text.
根据本公开实施例的移动终端,如果检测到复制操作,确定复制操作对应的操作区域;将操作区域中的文本内容进行全屏显示;若检测到对文本内容的编辑操作,根据编辑操作,得到待粘贴的目标文本。如此,通过先确定复制操作的操作区域,进而将操作区域内的文本内容进行全屏显示可以有利于编辑操作,从而可以减小文本编辑操作的耗时,提高文本编辑的效率。According to the mobile terminal according to the embodiment of the present disclosure, if a copy operation is detected, an operation area corresponding to the copy operation is determined; the text content in the operation area is displayed on a full screen; if an edit operation on the text content is detected, according to the edit operation, a pending Pasted target text. In this way, by first determining the operation area of the copy operation, and then displaying the text content in the operation area in full screen, the editing operation can be facilitated, thereby reducing the time consumption of the text editing operation and improving the efficiency of text editing.
应理解的是,本公开实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present disclosure, the radio frequency unit 801 may be used to receive and send signals during the process of transmitting and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 810; The uplink data is sent to the base station. Generally, the radio frequency unit 801 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 801 can also communicate with a network and other devices through a wireless communication system.
移动终端通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive email, browse web pages, and access streaming media.
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与移动终端800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sound. Also, the audio output unit 803 may also provide audio output (for example, a call signal receiving sound, a message receiving sound, etc.) related to a specific function performed by the mobile terminal 800. The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静 态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。The input unit 804 is used to receive audio or video signals. The input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042. The graphics processor 8041 pairs images of still pictures or videos 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 frames may be displayed on a display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 801 in the case of a telephone call mode.
移动终端800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在移动终端800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 800 further includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light. The proximity sensor can close the display panel 8061 and the mobile terminal 800 when the mobile terminal 800 moves to the ear. / Or backlight. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, which can be used to identify mobile terminal attitudes (such as horizontal and vertical screen switching, related games , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc .; sensor 805 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensors, etc. are not repeated here.
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8061。The display unit 806 is configured to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
用户输入单元807可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电 阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 807 may be used to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. Touch panel 8071, also known as touch screen, can collect user's touch operations on or near it (such as the user using a finger, stylus, etc. any suitable object or accessory on touch panel 8071 or near touch panel 8071 operating). The touch panel 8071 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it The processor 810 receives and executes a command sent by the processor 810. In addition, various types of resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel 8071. In addition to the touch panel 8071, the user input unit 807 may further include other input devices 8072. Specifically, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, and details are not described herein again.
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图8中,触控面板8071与显示面板8061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 8071 may be overlaid on the display panel 8061. When the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch panel 8071 transmits the touch operation to the processor 810 to determine the type of the touch event. The type of event provides corresponding visual output on the display panel 8061. Although in FIG. 8, the touch panel 8071 and the display panel 8061 are implemented as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元808为外部装置与移动终端800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端800内的一个或多个组件或者可以用于在移动终端800和外部装置之间传输数据。The interface unit 808 is an interface for connecting an external device with the mobile terminal 800. For example, the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, and audio input / output (I / O) port, video I / O port, headphone port, and more. The interface unit 808 may be used to receive an input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more components within the mobile terminal 800 or may be used for the mobile terminal 800 and external Transfer data between devices.
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 809 may be used to store software programs and various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may store data according to Data (such as audio data, phone book, etc.) created by the use of mobile phones. In addition, the memory 809 may include a high-speed random access memory, and may further 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.
处理器810是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器810可包括一个或多个处理单元;可选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器 主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 is a control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal. The processor 810 runs or executes software programs and / or modules stored in the memory 809, and calls data stored in the memory 809. , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, etc. The tuning processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
移动终端800还可以包括给各个部件供电的电源811(比如电池),可选的,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 800 may further include a power source 811 (such as a battery) for supplying power to various components. Optionally, the power source 811 may be logically connected to the processor 810 through a power management system, thereby implementing management of charging, discharging, and power consumption through the power management system. Management and other functions.
另外,移动终端800包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 800 includes some functional modules that are not shown, and details are not described herein again.
可选的,本公开实施例还提供一种移动终端,包括处理器810,存储器809,存储在存储器809上并可在所述处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述文本编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present disclosure further provides a mobile terminal including a processor 810, a memory 809, and a computer program stored on the memory 809 and executable on the processor 810, the computer program being executed by the processor 810 The processes of the embodiments of the text editing method described above are implemented at the same time, and the same technical effects can be achieved. To avoid repetition, details are not described herein again.
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述文本编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁盘或者光盘等。An embodiment of the present disclosure further provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the processes of the foregoing text editing method embodiments are implemented, and the same technology can be achieved. Effect, in order to avoid repetition, it will not be repeated here. The computer-readable storage medium is, 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 article, the terms "including", "including" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, It also includes other elements not explicitly listed, or elements inherent to such a process, method, article, or device. Without more restrictions, an element limited by the sentence "including a ..." does not exclude that there are other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁盘、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is better. Implementation. Based on this understanding, the technical solution of the present disclosure that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, and optical disk) ) Includes instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present disclosure.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。The embodiments of the present disclosure have been described above with reference to the accompanying drawings, but the present disclosure is not limited to the specific implementations described above, and the specific implementations described above are only schematic and not restrictive. Those of ordinary skill in the art at Under the inspiration of this disclosure, many forms can be made without departing from the spirit of the present disclosure and the scope of protection of the claims, which all fall within the protection of this disclosure.

Claims (12)

  1. 一种文本编辑方法,应用于移动终端,包括:A text editing method applied to a mobile terminal includes:
    若检测到复制操作,确定所述复制操作对应的操作区域;If a copy operation is detected, determining an operation area corresponding to the copy operation;
    将所述操作区域中的文本内容进行全屏显示;Displaying the text content in the operation area in full screen;
    若检测到对所述文本内容的编辑操作,根据所述编辑操作,得到待粘贴的目标文本。If an editing operation on the text content is detected, a target text to be pasted is obtained according to the editing operation.
  2. 如权利要求1所述的文本编辑方法,其中,所述将所述操作区域中的文本内容进行全屏显示的步骤,包括:The text editing method according to claim 1, wherein the step of displaying the text content in the operation area in full screen comprises:
    将所述操作区域中的文本内容进行全屏显示,并使所述文本内容处于可编辑状态。Displaying the text content in the operation area in full screen, and making the text content in an editable state.
  3. 如权利要求2所述的文本编辑方法,其中,所述根据所述编辑操作,得到待粘贴的目标文本的步骤,包括:The text editing method according to claim 2, wherein the step of obtaining the target text to be pasted according to the editing operation comprises:
    在所述操作区域中显示选择框,获取所述选择框对应的文本内容;Displaying a selection box in the operation area, and acquiring text content corresponding to the selection box;
    根据所述编辑操作,对所述选择框对应的文本内容进行编辑,得到待粘贴的目标文本。Edit the text content corresponding to the selection box according to the editing operation to obtain the target text to be pasted.
  4. 如权利要求3所述的文本编辑方法,其中,所述获取所述选择框对应的文本内容的步骤,包括:The text editing method according to claim 3, wherein the step of obtaining text content corresponding to the selection box comprises:
    根据接收到的调整操作调整所述选择框的大小,并获取调整后的选择框对应的文本内容。Adjust the size of the selection box according to the received adjustment operation, and obtain the text content corresponding to the adjusted selection box.
  5. 如权利要求1所述的文本编辑方法,其中,所述若检测到对所述文本内容的编辑操作,根据所述编辑操作,得到待粘贴的目标文本的步骤,包括:The text editing method according to claim 1, wherein, if an editing operation on the text content is detected, the step of obtaining the target text to be pasted according to the editing operation comprises:
    若检测到对所述操作区域的点击操作,在所述点击操作的位置处生成编辑标识;If a click operation on the operation area is detected, generating an edit logo at a position of the click operation;
    在所述编辑标识处,根据所述编辑操作,对所述文本内容进行编辑,得到所述待粘贴的目标文本。At the editing mark, according to the editing operation, the text content is edited to obtain the target text to be pasted.
  6. 一种移动终端,包括:A mobile terminal includes:
    确定模块,若检测到复制操作,确定所述复制操作对应的操作区域;A determining module, if a copy operation is detected, determining an operation area corresponding to the copy operation;
    显示模块,将所述操作区域中的文本内容进行全屏显示;A display module that displays text content in the operation area in full screen;
    获取模块,若检测到对所述文本内容的编辑操作,根据所述编辑操作,得到待粘贴的目标文本。The obtaining module, if an editing operation on the text content is detected, obtains a target text to be pasted according to the editing operation.
  7. 如权利要求6所述的移动终端,其中,所述显示模块具体用于:The mobile terminal according to claim 6, wherein the display module is specifically configured to:
    将所述操作区域中的文本内容进行全屏显示,并使所述文本内容处于可编辑状态。Displaying the text content in the operation area in full screen, and making the text content in an editable state.
  8. 如权利要求7所述的移动终端,其中,所述获取模块具体用于:The mobile terminal according to claim 7, wherein the obtaining module is specifically configured to:
    在所述操作区域中显示选择框,获取所述选择框对应的文本内容;Displaying a selection box in the operation area, and acquiring text content corresponding to the selection box;
    根据所述编辑操作,对所述选择框对应的文本内容进行编辑,得到待粘贴的目标文本。Edit the text content corresponding to the selection box according to the editing operation to obtain the target text to be pasted.
  9. 如权利要求8所述的移动终端,其中,所述获取模块具体用于:The mobile terminal according to claim 8, wherein the obtaining module is specifically configured to:
    根据接收到的调整操作调整所述选择框的大小,并获取调整后的选择框对应的文本内容。Adjust the size of the selection box according to the received adjustment operation, and obtain the text content corresponding to the adjusted selection box.
  10. 如权利要求6所述的移动终端,其中,所述获取模块具体用于:The mobile terminal according to claim 6, wherein the obtaining module is specifically configured to:
    若检测到对所述操作区域的点击操作,在所述点击操作的位置处生成编辑标识;If a click operation on the operation area is detected, generating an edit logo at a position of the click operation;
    在所述编辑标识处,根据所述编辑操作,对所述文本内容进行编辑,得到所述待粘贴的目标文本。At the editing mark, according to the editing operation, the text content is edited to obtain the target text to be pasted.
  11. 一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的文本编辑方法的步骤。A mobile terminal includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. The computer program is implemented in claims 1 to 5 when executed by the processor. Steps of the text editing method according to any one.
  12. 一种计算机可读介质,其中,所述计算机可读介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述文本编辑方法的步骤。A computer-readable medium, wherein a computer program is stored on the computer-readable medium, and when the computer program is executed by a processor, the steps of the text editing method according to any one of claims 1 to 5 are implemented.
PCT/CN2019/096501 2018-08-30 2019-07-18 Text editing method and mobile terminal WO2020042815A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811006143.8 2018-08-30
CN201811006143.8A CN109189303B (en) 2018-08-30 2018-08-30 Text editing method and mobile terminal

Publications (1)

Publication Number Publication Date
WO2020042815A1 true WO2020042815A1 (en) 2020-03-05

Family

ID=64916864

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/096501 WO2020042815A1 (en) 2018-08-30 2019-07-18 Text editing method and mobile terminal

Country Status (2)

Country Link
CN (1) CN109189303B (en)
WO (1) WO2020042815A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189303B (en) * 2018-08-30 2021-02-09 维沃移动通信有限公司 Text editing method and mobile terminal
CN110471598A (en) * 2019-07-26 2019-11-19 天脉聚源(杭州)传媒科技有限公司 A kind of chat bubble display methods, system, device and storage medium
CN112434494A (en) * 2020-11-26 2021-03-02 北京沃东天骏信息技术有限公司 Text editing method, device, terminal and storage medium
CN115188013B (en) * 2022-09-14 2023-06-30 泰豪信息技术有限公司 Risk prevention and control method, system, storage medium and equipment for decision book

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101925894A (en) * 2008-01-24 2010-12-22 索尼爱立信移动通讯有限公司 Method, computer program product and device for text editing
CN103777866A (en) * 2014-02-24 2014-05-07 苏州浩辰软件股份有限公司 Data editing method and device for magnifying glass
CN104156164A (en) * 2013-05-14 2014-11-19 三星显示有限公司 Terminal
US20150378601A1 (en) * 2011-11-09 2015-12-31 Blackberry Limited Touch-Sensitive Display Method and Apparatus
CN109189303A (en) * 2018-08-30 2019-01-11 维沃移动通信有限公司 Method for editing text and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2053497A1 (en) * 2007-10-26 2009-04-29 Research In Motion Limited Text selection using a touch sensitive screen of a handheld mobile communication device
US9317196B2 (en) * 2011-08-10 2016-04-19 Microsoft Technology Licensing, Llc Automatic zooming for text selection/cursor placement
JP6097843B2 (en) * 2012-12-29 2017-03-15 アップル インコーポレイテッド Device, method and graphical user interface for determining whether to scroll or select content
US10990267B2 (en) * 2013-11-08 2021-04-27 Microsoft Technology Licensing, Llc Two step content selection
US9841881B2 (en) * 2013-11-08 2017-12-12 Microsoft Technology Licensing, Llc Two step content selection with auto content categorization
CN106896981A (en) * 2017-02-07 2017-06-27 惠州Tcl移动通信有限公司 One kind replicates implementation method and realizes system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101925894A (en) * 2008-01-24 2010-12-22 索尼爱立信移动通讯有限公司 Method, computer program product and device for text editing
US20150378601A1 (en) * 2011-11-09 2015-12-31 Blackberry Limited Touch-Sensitive Display Method and Apparatus
CN104156164A (en) * 2013-05-14 2014-11-19 三星显示有限公司 Terminal
CN103777866A (en) * 2014-02-24 2014-05-07 苏州浩辰软件股份有限公司 Data editing method and device for magnifying glass
CN109189303A (en) * 2018-08-30 2019-01-11 维沃移动通信有限公司 Method for editing text and mobile terminal

Also Published As

Publication number Publication date
CN109189303B (en) 2021-02-09
CN109189303A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
WO2019228294A1 (en) Object sharing method and mobile terminal
WO2021109907A1 (en) Application sharing method, first electronic device and computer-readable storage medium
WO2019223494A1 (en) Screenshot capturing method and mobile terminal
WO2020042815A1 (en) Text editing method and mobile terminal
WO2019196691A1 (en) Keyboard interface display method and mobile terminal
WO2019196929A1 (en) Video data processing method and mobile terminal
WO2021136159A1 (en) Screenshot method and electronic device
WO2020151513A1 (en) Information processing method and terminal device
WO2021082716A1 (en) Information processing method and electronic device
WO2021083087A1 (en) Screen capturing method and terminal device
WO2021004426A1 (en) Content selection method, and terminal
WO2019120192A1 (en) Method for editing text, and mobile device
WO2021098633A1 (en) Information display and transmission methods, and electronic device
WO2019223569A1 (en) Information processing method and mobile terminal
WO2021109961A1 (en) Method for generating shortcut icon, electronic apparatus, and medium
WO2020238536A1 (en) Information processing method and terminal device
CN109451141B (en) Operation control method and related terminal
WO2020215991A1 (en) Display control method and terminal device
WO2020211612A1 (en) Information display method and terminal device
WO2021104160A1 (en) Editing method and electronic device
CN108646960B (en) File processing method and flexible screen terminal
WO2020020213A1 (en) Information input method and terminal
WO2019228296A1 (en) Display processing method and terminal device
WO2019169991A1 (en) Display method and mobile terminal
WO2020063107A1 (en) Screenshot method and terminal

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: 19854039

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: 19854039

Country of ref document: EP

Kind code of ref document: A1