WO2019201109A1 - Word processing method and apparatus, and mobile terminal and storage medium - Google Patents

Word processing method and apparatus, and mobile terminal and storage medium Download PDF

Info

Publication number
WO2019201109A1
WO2019201109A1 PCT/CN2019/081774 CN2019081774W WO2019201109A1 WO 2019201109 A1 WO2019201109 A1 WO 2019201109A1 CN 2019081774 W CN2019081774 W CN 2019081774W WO 2019201109 A1 WO2019201109 A1 WO 2019201109A1
Authority
WO
WIPO (PCT)
Prior art keywords
word segmentation
word
sliding track
text
sliding
Prior art date
Application number
PCT/CN2019/081774
Other languages
French (fr)
Chinese (zh)
Inventor
黄千洋
段丽霞
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019201109A1 publication Critical patent/WO2019201109A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates
    • 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 application relates to the field of mobile terminal technologies, and in particular, to a word processing method, apparatus, mobile terminal, and storage medium.
  • Mobile terminals such as mobile phones, have become one of the most popular consumer electronics products in people's daily lives. At present, people receive a large amount of text information on mobile terminals every day, such as text messages, timely communication software, and text messages pushed by major applications such as web browsers.
  • the present application proposes a word processing method, apparatus, mobile terminal, and storage medium.
  • an embodiment of the present application provides a word processing method, where the method includes: identifying a text in a current page content and performing word segmentation; displaying a word segmentation result card, where the word segmentation result card is included in the text a word segmentation control corresponding to the word segmentation; detecting an operation of the word segmentation control by the user; when the operation is a sliding operation, acquiring a first sliding track corresponding to the sliding operation, and all word segmentation controls located in the first sliding track The corresponding participle is used as the selected text.
  • the embodiment of the present application provides a word processing apparatus, where the apparatus includes: a word segmentation execution module, a word segmentation display module, an operation detection module, and a text selection module, wherein the word segmentation execution module is used for the current page content.
  • the text in the text is identified and segmented;
  • the word segmentation display module is configured to display a word segmentation result card, the word segmentation result card includes a word segmentation control corresponding to the word segmentation in the text; and
  • the operation detection module is configured to detect the user The operation of the word segmentation control;
  • the text selection module is configured to acquire a first sliding track corresponding to the sliding operation when the operation is a sliding operation, and use a word segment corresponding to all the word segmentation controls of the first sliding track as The selected text.
  • an embodiment of the present application provides a mobile terminal, including a touch screen, a memory, and a processor, the touch screen and the memory being coupled to the processor, where the memory stores an instruction when the instruction is The processor executes the word processing method provided by the above first aspect when the processor is executed.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores program code, and the program code can be invoked by a processor to execute the text provided by the first aspect. Approach.
  • FIG. 1 is a flowchart of a word processing method according to an embodiment of the present application
  • FIG. 2 is a flowchart of a word processing method according to another embodiment of the present application.
  • FIG. 3 is a schematic diagram showing a display of a mobile terminal provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram showing another display of the mobile terminal provided by the embodiment of the present application.
  • FIG. 5 is a schematic diagram showing still another display of the mobile terminal provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram showing still another display of the mobile terminal provided by the embodiment of the present application.
  • FIG. 7 is a structural block diagram of a word processing apparatus according to still another embodiment of the present application.
  • FIG. 8 is a structural block diagram of a character selection module in a word processing apparatus according to still another embodiment of the present application.
  • FIG. 9 is a structural block diagram of a mobile terminal according to an embodiment of the present application.
  • FIG. 10 is a block diagram of a mobile terminal for performing a word processing method according to an embodiment of the present application.
  • FIG. 11 shows a storage unit for saving or carrying program code implementing the word processing method according to an embodiment of the present application.
  • the inventors have made a long-term research and proposed a word processing method, device, mobile terminal and storage medium provided by the embodiments of the present application, and only need to select a sliding operation of the text to be selected after the word segmentation, It can realize the user's selection of the text to be selected, which takes a short time and is convenient for the user to operate.
  • the specific word processing method is described in detail in the following embodiments.
  • FIG. 1 is a schematic flowchart diagram of a word processing method according to an embodiment of the present application. Said.
  • the word processing method is applied to the word processing device 200 shown in FIG. 7 and the mobile terminal (FIG. 9) in which the word processing device 200 is disposed.
  • the specific process of this embodiment will be described by taking a mobile terminal as an example.
  • the mobile terminal used in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc., and no specific limited.
  • the flow process shown in FIG. 1 will be described in detail below.
  • the above word processing method may specifically include the following steps:
  • Step S110 Identify and perform word segmentation on the text in the current page content.
  • the text in the current page can be operated to trigger the word segmentation operation of the text in the current page content by the mobile terminal.
  • the mobile terminal can trigger the word segmentation operation on the text in the current page content by long pressing the page. It can be understood that, when the user presses a long press operation on the current page, the text in the current page content can be identified and segmented in response to the long press operation made by the user.
  • Word segmentation refers to the division of a sequence of words into individual words, words or named entities.
  • the process of word segmentation is to reassemble successive sequences of words into separate words, words or named entity sequences according to the mobile specification. .
  • the word segmentation is performed, and the word segmentation result including all the word segments in the current page content is obtained.
  • the text in the current page content can be identified and segmented.
  • the text of a certain area in the current page content can be identified and segmented.
  • the location information of the long press operation is obtained, and the preset area corresponding to the location information in the current page content is obtained according to the location information, and then the preset area is The text is identified and segmented.
  • the entire page is divided into four areas, the upper part is a first preset area and a second preset area, and the lower part is a third preset area and a fourth preset area, when the user is long on the current page.
  • the text of the third preset area is identified and segmented to obtain a word segmentation result.
  • the text of the specific area of the current page can be identified and segmented, which is more convenient for the user to select the text in the text of the area of interest, which is more time-saving.
  • Step S120 Display a word segmentation result card, and the word segmentation result card includes a word segmentation control corresponding to the word segmentation in the text.
  • the word segmentation result card can be generated according to the word segmentation result obtained by the above participle.
  • the word segmentation result card may include a word segmentation control corresponding to the word segmentation of the text in the current page content. It can be understood that the word segmentation of the text obtained by the above word segmentation can be displayed in the word segmentation card in the form of a word segmentation control, so that the user can subsequently operate the word segmentation control in the word segmentation card.
  • the word segmentation result includes all the word segments of the text having the content of the current page.
  • each word segment corresponds to a word segment control. It can be understood that each word segment control represents a word segmentation, and the user operates on one of the word segmentation controls to represent the word segmentation performed on the word segmentation control.
  • the word segmentation result card After the word segmentation result card is generated, the word segmentation result card can be displayed so that the user can view the word segmentation result and operate the word segmentation control.
  • Step S130 Detecting the operation of the user on the word segmentation control.
  • the user's operation on the word segmentation control such as a sliding operation, a pressing operation, a single point or a multi-touch, etc., can be detected.
  • Step S140 When the operation is a sliding operation, acquiring a first sliding track corresponding to the sliding operation, and using a word segment corresponding to all the word segmentation controls of the first sliding track as the selected character.
  • the selection of the word segmentation control when detecting that the operation of the word segmentation control by the user is a sliding operation, the selection of the word segmentation control may be triggered, that is, triggering the selection of the word segmentation of the text in the current page content.
  • the word segmentation is used as the selected text.
  • the word processing method provided by the embodiment of the present application only needs the user to select the sliding operation of the word segmentation control in the word segmentation result card obtained by the word segmentation, so that the user can select the text of interest in the page content, and the operation is convenient and economical. User time, convenient for users to select text.
  • FIG. 2 is a schematic flowchart diagram of a word processing method according to another embodiment of the present application. The following is a detailed description of the process shown in FIG. 2, where the word processing method may specifically include the following steps:
  • Step S210 Identify and perform word segmentation on the text in the current page content.
  • Step S220 Display a word segmentation result card, and the word segmentation result card includes a word segmentation control corresponding to the word segmentation in the text.
  • the word segmentation result may include all the word segments of the text of the current page content, and each word segment corresponds to a word segmentation control.
  • the word segmentation result card can be displayed in the form of a mask.
  • displaying the word segmentation result card may include: generating a word segmentation result card and a mask page corresponding to the current page; superimposing the mask page on the current page, and displaying the word segmentation result card Displayed on the mask page.
  • the displayed page when the word segmentation result is displayed, the displayed page includes a word segmentation result card 301 and a mask page 302 corresponding to the current page, wherein the word segmentation result card 301 is a frame corresponding to the word segmentation result in the figure, and each The word segmentation control is a plurality of small boxes under the "word segmentation result", and the mask page 302 is an area other than the word segmentation result card in the display interface. Therefore, when the word segmentation result card is displayed, the original page is displayed as a mask, and the user's misoperation with the original page can be avoided.
  • the related basic information of the word segmentation may also be displayed on the display page of the word segmentation result card.
  • displaying the word segmentation result card may include:
  • the basic information card 303 corresponding to the basic information of the word segmentation is displayed together on the mask page 302, wherein the basic information card 303 corresponds to the "basic information" in FIG.
  • the box allows the user to view basic information about the word segmentation.
  • the basic information card may include basic information related to the word segmentation, so that the user does not need to subsequently search and consult the relevant basic information of the word segmentation, thereby saving the user's time.
  • Step S230 Detect the user's operation on the word segmentation control.
  • Step S240 When the operation is a sliding operation, acquire a first sliding track corresponding to the sliding operation, and determine a word segmentation control that the first sliding track passes in the word segmentation control.
  • the black bold line represents the first sliding track 304
  • the direction indicated by the arrow is the sliding direction of the first sliding track 304. Therefore, it can be determined that the word segmentation control that the first sliding track 304 passes is the third word segment control and the fourth word segment control in the first row of the word segmentation result card 301, the third word segment control in the second row, and the third row The second participle control.
  • Step S250 Acquire a word segment corresponding to the word segmentation control through which the first sliding track passes.
  • Step S260 Sort the word segments corresponding to the word segmentation control according to the order in which the first sliding track passes, to obtain the selected characters.
  • the user may perform the sliding selection according to the preference degree of the favorite participle or the importance degree of the selected word segmentation, so the selected text should also follow the sliding track. Sort by order.
  • the word segmentation corresponding to the word segmentation control through which the first sliding track passes is sorted according to the order in which the first sliding track passes, so that the selected character, ie, the user, can be obtained. Selected text.
  • the word processing method may further include: highlighting the selected text in the word segmentation result card. display.
  • the highlighted text in the word segmentation result card represents the text selected by the user corresponding to the first sliding track 304 in FIG. 5, thereby facilitating the user to view the selected text.
  • the first word processing method may further include:
  • the second sliding track of the sliding operation is acquired.
  • the word segment corresponding to all the word segmentation controls located in the first sliding track and the second sliding track is used as the currently selected text, the word segment corresponding to all the word segment controls in the first sliding track, and all the word segments located in the second sliding track.
  • the word segmentation corresponding to the control is superimposed, and the new selected word segment is obtained as the latest selected word. It should be noted that when the word segment corresponding to the first sliding track is superimposed with the word segment corresponding to the second sliding track, the word segment corresponding to the word segment control located in the first sliding track corresponds to the word segmentation control located in the second sliding track.
  • the overlapping participles are retained. Therefore, it is only required that the user selects a participle to perform a sliding operation on the basis of the first sliding trajectory in addition to the first selected participle, so that the user can completely select the participle that needs to be selected, and It is not to cancel the first-selected participle and re-slide the selection, so it is more convenient for the user to operate and save the user's time.
  • the word processing method may also be used after the word segment corresponding to all the word segment controls located in the first sliding track is used as the selected word.
  • the third sliding track of the sliding operation is acquired.
  • the third sliding track and the first sliding track have an overlapping portion, and the sliding direction of the overlapping portion in the third sliding track is opposite to the sliding direction of the overlapping portion in the first sliding track, the coincidence is removed from the first sliding track
  • a fourth sliding track is obtained, and then the word segment corresponding to all the word segmentation controls located in the obtained fourth sliding track is used as the currently selected character, that is, the latest selected character. Therefore, when the user needs to delete the selected text from the first selected text, only the first sliding track on the first selection is required to be mis-selected along the sliding direction opposite to the first sliding track.
  • the word segmentation control can be selected by sliding, so that the selected text can be deleted from the first selected text, and the latest selected text can be obtained, instead of canceling the first selected word segmentation, and the sliding selection is performed again, so that the user operates very much. Convenience, saving users' operating time.
  • the word processing method may further include:
  • the fifth sliding track of the sliding operation is acquired.
  • the fifth sliding track and the first sliding track have an overlapping portion, and the sliding direction of the overlapping portion in the fifth sliding track is opposite to the sliding direction of the overlapping portion in the first sliding track, the coincidence is removed from the first sliding track
  • the overlapping portion is removed from the fifth sliding track.
  • the first sliding track is removed from the trajectory of the coincident portion, and integrated with the trajectory of the fifth sliding track except the overlapping portion to obtain a sixth sliding track.
  • all the word segmentation controls located in the sixth sliding track will be determined, and the word segment corresponding to all the word segmentation controls located in the sixth sliding track will be taken as the currently selected text, that is, the latest selected text. Therefore, when the user needs to delete the selected text from the first selected text and select other unselected words, it only needs to be on the first sliding track at the time of the first selection, along the opposite of the first sliding track.
  • the sliding direction selects the sliding selection of the mis-selected word segmentation control, and the sliding selection of the unselected word segmentation control, that is, the selection of the unselected word segmentation and the deletion of the mis-selected word segmentation can be realized, instead of canceling the first selection.
  • the word segmentation, re-sliding selection so that the user is very convenient to operate, saving users time.
  • the word segmentation result card may further include at least one editing control for editing the selected text.
  • the word processing method may further include:
  • the selected operation may be performed in response to the selection operation.
  • the edit control can include a copy control, a translation control, or a search control.
  • the copy control is used to copy the selected text.
  • the translation control is used to translate the selected text, for example, to translate the selected text into English.
  • the search control is used to search for the selected text, such as searching for basic information of the selected text. Therefore, in response to the user's selection operation of the edit control, the selected text may be copied, translated, or searched, and the specific editing process is determined according to the edit control selected by the user.
  • the user after the user selects the word segmentation, the user only needs to select the editing control, and the editing process related to the selected text can be completed, instead of the user inputting the selected text to other software and then performing related processing, It is more convenient for users to operate and saves users' operation time.
  • the text processing method provided by the embodiment of the present application obtains the first part of the sliding operation by displaying the word segmentation result card after identifying and segmenting the text in the current page content, and then detecting the sliding operation of the word segmentation control by the user.
  • the sliding track is determined, and the word segmentation corresponding to the word segmentation control passed by the first sliding track is determined, and then the word segmentation corresponding to the word segmentation control is sorted according to the order of the first sliding track to obtain the selected character. And providing the user to select the sliding operation after the selection of the sliding operation to improve the user's selected text on the basis of the first selection.
  • the method only needs the user to perform a simple sliding operation on the word segmentation control in the word segmentation result card, thereby completing the selection of the text that the user needs to select, which is very convenient for the user to operate, saves the user's time and improves the user experience.
  • FIG. 7 is a structural block diagram of a word processing apparatus 200 according to another embodiment of the present application. The following is a description of the block diagram shown in FIG. 7.
  • the word processing apparatus 200 includes a word segmentation execution module 210, a word segmentation display module 220, an operation detection module 230, and a text selection module 240.
  • the word segmentation execution module 210 is configured to identify and segment the text in the current page content;
  • the word segmentation display module 220 is configured to display a word segmentation result card, and the word segmentation result card includes a word segmentation corresponding to the text segmentation
  • the word segmentation control module 230 is configured to detect a user's operation on the word segmentation control;
  • the text selection module 240 is configured to acquire a first sliding track corresponding to the sliding operation when the operation is a sliding operation The word segment corresponding to all the word segmentation controls located in the first sliding track is taken as the selected word.
  • the text selection module 240 may include a control determining unit 241 , a word segmentation acquiring unit 242 , and a word segmentation unit 243 .
  • the control determining unit 241 is configured to determine a word segmentation control that the first sliding track passes in the word segmentation control;
  • the word segmentation acquiring unit 242 is configured to acquire a word segmentation corresponding to the word segmentation control through which the first sliding track passes;
  • the word segmentation sorting unit 243 is configured to: The word segments corresponding to the word segmentation control are sorted according to the order in which the first sliding track passes, to obtain the selected characters.
  • the word processing apparatus 200 may further include a result display module.
  • the result display module is configured to highlight the selected text in the word segmentation result card.
  • the word processing apparatus 200 may further include: a first re-detection module, a first trajectory determination module, and a first character acquisition module.
  • the first re-detection module is configured to: the first trajectory determining module is configured to be used by the first character acquiring module.
  • the word processing apparatus 200 may further include: a second re-detection module, a second trajectory determination module, a first trajectory integration module, and a second character acquisition module.
  • the second re-detection module is configured to detect the operation of the segmentation control by the user again;
  • the second trajectory determination module is configured to acquire a third sliding corresponding to the sliding operation when the operation is a sliding operation a trajectory;
  • the first trajectory integration module is configured to have a merging portion of the third sliding trajectory and the first sliding trajectory, and a sliding direction of the overlapping portion and the first sliding in the third sliding trajectory Obtaining a fourth sliding track in the first sliding track except the overlapping portion when the sliding direction of the overlapping portion in the track is opposite;
  • the second character acquiring module is configured to be located in the fourth sliding track
  • the word segmentation corresponding to all the word segmentation controls is used as the currently selected word.
  • the word processing apparatus 200 may further include: a third re-detection module, a third trajectory determination module, a second trajectory integration module, and a third character acquisition module.
  • the third re-detection module is configured to detect the operation of the segmentation control by the user again;
  • the third trajectory determination module is configured to acquire a fifth slip corresponding to the sliding operation when the operation is a sliding operation a trajectory;
  • the second trajectory integration module is configured to have a merging portion of the fifth sliding trajectory and the first sliding trajectory, and a sliding direction of the overlapping portion and the first sliding in the fifth sliding trajectory Obtaining a sliding direction of the overlapping portion in the trajectory, acquiring a sixth sliding trajectory in the first sliding trajectory and removing the overlapping portion in the fifth sliding trajectory;
  • the third character acquiring module is configured to The word segment corresponding to all the word segmentation controls of the sixth sliding track is used as the currently selected word.
  • the word processing apparatus may further include: an operation acquiring module and an editing processing module.
  • the operation obtaining module is configured to obtain a selection operation of the editing control by the user; and the editing processing module is configured to perform corresponding editing processing on the selected text in response to the selecting operation.
  • the word processing method, device, mobile terminal and storage medium provided by the present application identify and segment the text in the current page content, display the word segmentation result card, and then detect the user. For the sliding operation of the word segmentation control corresponding to the word segmentation in the word segmentation result card, the sliding track corresponding to the sliding operation is finally obtained, and the word segment corresponding to all the word segmentation control of the sliding track is used as the selected text, so that the user only needs the selected text. By selecting the sliding operation, the user can select the text to be selected, which is convenient for the user to operate.
  • the embodiment of the present application further provides a mobile terminal 100 including an electronic body portion 10, the electronic body portion 10 including a housing 12 and the shell
  • the housing 12 may be made of metal such as steel or aluminum alloy.
  • the main display screen 120 generally includes a display panel 111, and may also include a circuit or the like for responding to the touch operation on the display panel 111.
  • the display panel 111 can be a liquid crystal display (LCD). In some embodiments, the display panel 111 is simultaneously a touch screen 109.
  • the mobile terminal 100 can be used as a smart phone terminal.
  • the electronic body portion 10 usually further includes one or more (only shown in the figure).
  • a processor 102 a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122.
  • the structure shown in FIG. 10 is merely illustrative and does not limit the structure of the electronic body portion 10.
  • the electronic body portion 10 may further include more or less components than those shown in FIG. 10, or have a different configuration than that shown in FIG.
  • peripheral interface 124 can be implemented based on the following standards: Universal Asynchronous Receiver/Transmitter (UART), General Purpose Input Output (GPIO), Serial Peripheral Interface (Serial Peripheral Interface) , SPI), Inter-Integrated Circuit (I2C), but not limited to the above standards.
  • UART Universal Asynchronous Receiver/Transmitter
  • GPIO General Purpose Input Output
  • SPI Serial Peripheral Interface
  • I2C Inter-Integrated Circuit
  • the peripheral interface 124 can include only a bus; in other examples, the peripheral interface 124 can also include other components, such as one or more controllers, such as for connecting the display panel A display controller of 111 or a memory controller for connecting to a memory. In addition, these controllers can also be detached from the peripheral interface 124 and integrated into the processor 102 or within a corresponding peripheral.
  • the memory 104 can be used to store software programs and modules that execute various functional applications and data processing by running software programs and modules stored within the memory 104.
  • the memory 104 can include high speed random access memory and can also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • the memory 104 can further include memory remotely disposed relative to the processor 102, which can be connected to the electronic body portion 10 or the primary display screen 120 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the RF module 106 is configured to receive and transmit electromagnetic waves, and realize mutual conversion between electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices.
  • the RF module 106 can include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memories, and the like.
  • SIM subscriber identity module
  • the RF module 106 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices over a wireless network.
  • the wireless network described above may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), and wideband code.
  • GSM Global System for Mobile Communication
  • EDGE Enhanced Data GSM Environment
  • W-CDMA Wideband code division multiple access
  • CDMA Code division access
  • TDMA time division multiple access
  • WiFi wireless fidelity
  • IEEE802.10A Institute of Electrical and Electronics Engineers Standards IEEE802.10A, IEEE 802.11b, IEEE802.11g and / or IEEE 802.11n
  • VoIP Voice over internet protocal
  • Wi-Max Worldwide Interoperability (Worldwide Interoperability) For Microwave Access
  • Wi-Max other protocols for mail, instant messaging and short messages, and any other suitable communication protocols, even those that are not currently being developed.
  • the audio circuit 110, the earpiece 101, the sound jack 103, and the microphone 105 collectively provide an audio interface between the user and the electronic body portion 10 or the main display screen 120.
  • the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the earpiece 101.
  • the earpiece 101 converts an electrical signal into a sound wave that can be heard by the human ear.
  • the audio circuit 110 also receives an electrical signal from the microphone 105, converts the electrical signal into sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be obtained from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted by the RF module 106.
  • the sensor 114 is disposed within the electronic body portion 10 or within the main display screen 120.
  • Examples of the sensor 114 include, but are not limited to, a light sensor, an operation sensor, a pressure sensor, a gravity acceleration sensor, and other sensors. .
  • the light sensor may include a light sensor 114F and a pressure sensor 114G.
  • the pressure sensor 114G can detect a sensor that is pressed by the pressure generated at the mobile terminal 100. That is, the pressure sensor 114G detects a pressure generated by contact or pressing between the user and the mobile terminal, such as a pressure generated by contact or pressing between the user's ear and the mobile terminal. Therefore, the pressure sensor 114G can be used to determine whether contact or pressing has occurred between the user and the mobile terminal 100, as well as the magnitude of the pressure.
  • the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111.
  • the light sensor 114F can turn off the display output when an object approaches the main display screen 120, for example, when the electronic body portion 10 moves to the ear.
  • the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal 100 (such as horizontal and vertical). Screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
  • the electronic body unit 10 can also be equipped with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and the like, and details are not described herein again.
  • the input module 118 may include the touch screen 109 disposed on the main display screen 120, and the touch screen 109 may collect a touch operation on or near a user (such as a user using a finger or a stylus) The operation of any suitable object or accessory on or adjacent to the touch screen 109, and driving the corresponding connection device in accordance with a predetermined program.
  • the touch screen 109 may include a touch detection device and a touch controller.
  • the touch detection device detects a touch orientation of the user and detects a signal brought by the touch operation to transmit a signal to the touch controller; the touch controller receives touch information from the touch detection device, and The touch information is converted into contact coordinates, sent to the processor 102, and can receive commands from the processor 102 and execute them.
  • the touch detection function of the touch screen 109 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input module 118 may also include other input devices, such as buttons 107.
  • the button 107 may include, for example, a character button for inputting a character, and a control button for triggering a control function. Examples of the control buttons include a "return to home screen" button, a power on/off button, and the like.
  • the main display screen 120 is used for displaying information input by a user, information provided to the user, and various graphical user interfaces of the electronic body portion 10, which can be composed of graphics, text, icons, numbers, videos, and It is configured in any combination, and in one example, the touch screen 109 can be disposed on the display panel 111 to be integrated with the display panel 111.
  • the power module 122 is configured to provide power supply to the processor 102 and other components.
  • the power module 122 may include a power management system, one or more power sources (such as a battery or an alternating current), a charging circuit, a power failure detecting circuit, an inverter, a power status indicator, and any other electronic body.
  • the mobile terminal 100 also includes a locator 119 for determining the actual location at which the mobile terminal 100 is located.
  • the locator 119 uses a positioning service to implement positioning of the mobile terminal 100.
  • the positioning service should be understood as acquiring location information (such as latitude and longitude coordinates) of the mobile terminal 100 by using a specific positioning technology. ), the technology or service that marks the location of the object being located on the electronic map.
  • the mobile terminal 100 described above is not limited to a smartphone terminal, which should refer to a computer device that can be used in mobile.
  • the mobile terminal 100 refers to a mobile computer device equipped with a smart operating system, and the mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet, and the like.
  • FIG. 11 is a structural block diagram of a computer readable storage medium according to an embodiment of the present application.
  • Program code is stored in the computer readable storage medium 300, and the program code can be invoked by a processor to perform the method described in the above method embodiments.
  • the computer readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer readable storage medium 300 includes a non-transitory computer-readable storage medium. Computer readable storage medium 300 has a storage space for program code 310 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 310 can be compressed, for example, in a suitable form.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
  • the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (mobile terminals) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the application can be implemented in hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.

Landscapes

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

Abstract

A word processing method and apparatus, and a mobile terminal and a storage medium. The method comprises: identifying text in current page content and performing word segmentation (S110); displaying a word segmentation result card, the word segmentation result card comprising a word segmentation widget corresponding to segmented words in the text (120); detecting an operation of a user on the word segmentation widget (130); and when the operation is a sliding operation, obtaining a first sliding trajectory corresponding to the sliding operation, and using all segmented words corresponding to the word segmentation widget in the first sliding trajectory as selected words (S140). According to the method, a user can select desired words just by performing a sliding operation on the desired words in page content. It is convenient for the user to operate.

Description

文字处理方法、装置、移动终端及存储介质Word processing method, device, mobile terminal and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年4月18日提交的申请号为201810350862.5的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。The present application claims priority to Chinese Application No. 20110135086, filed on Apr.
技术领域Technical field
本申请涉及移动终端技术领域,更具体地,涉及一种文字处理方法、装置、移动终端及存储介质。The present application relates to the field of mobile terminal technologies, and in particular, to a word processing method, apparatus, mobile terminal, and storage medium.
背景技术Background technique
移动终端,例如手机,已经成为人们日常生活中最常用的消费型电子产品之一。目前,人们每天都会在移动终端上收到大量的文字信息,例如短信,及时通讯类软件,及网页浏览器等各大应用推送的文字信息。Mobile terminals, such as mobile phones, have become one of the most popular consumer electronics products in people's daily lives. At present, people receive a large amount of text information on mobile terminals every day, such as text messages, timely communication software, and text messages pushed by major applications such as web browsers.
发明内容Summary of the invention
鉴于上述问题,本申请提出了一种文字处理方法、装置、移动终端及存储介质。In view of the above problems, the present application proposes a word processing method, apparatus, mobile terminal, and storage medium.
第一方面,本申请实施例提供了一种文字处理方法,所述方法包括:对当前页面内容中的文本进行识别并进行分词;显示分词结果卡片,所述分词结果卡片包括与所述文本中的分词对应的分词控件;检测用户对所述分词控件的操作;当所述操作为滑动操作时,获取所述滑动操作对应的第一滑动轨迹,将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字。In a first aspect, an embodiment of the present application provides a word processing method, where the method includes: identifying a text in a current page content and performing word segmentation; displaying a word segmentation result card, where the word segmentation result card is included in the text a word segmentation control corresponding to the word segmentation; detecting an operation of the word segmentation control by the user; when the operation is a sliding operation, acquiring a first sliding track corresponding to the sliding operation, and all word segmentation controls located in the first sliding track The corresponding participle is used as the selected text.
第二方面,本申请实施例提供了一种文字处理装置,所述装置包括:分词执行模块、分词显示模块、操作检测模块以及文字选取模块,其中,所述分词执行模块用于对当前页面内容中的文本进行识别并进行分词;所述分词显示模块用于显示分词结果卡片,所述分词结果卡片包括与所述文本中的分词对应的分词控件;所述操作检测模块用于检测用户对所述分词控件的操作;所述文字选取模块用于当所述操作为滑动操作时,获取所述滑动操作对应的第一滑动轨迹,将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字。In a second aspect, the embodiment of the present application provides a word processing apparatus, where the apparatus includes: a word segmentation execution module, a word segmentation display module, an operation detection module, and a text selection module, wherein the word segmentation execution module is used for the current page content. The text in the text is identified and segmented; the word segmentation display module is configured to display a word segmentation result card, the word segmentation result card includes a word segmentation control corresponding to the word segmentation in the text; and the operation detection module is configured to detect the user The operation of the word segmentation control; the text selection module is configured to acquire a first sliding track corresponding to the sliding operation when the operation is a sliding operation, and use a word segment corresponding to all the word segmentation controls of the first sliding track as The selected text.
第三方面,本申请实施例提供了一种移动终端,包括触摸屏、存储器以及处理器,所述触摸屏与所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述第一方面提供的文字处理方法。In a third aspect, an embodiment of the present application provides a mobile terminal, including a touch screen, a memory, and a processor, the touch screen and the memory being coupled to the processor, where the memory stores an instruction when the instruction is The processor executes the word processing method provided by the above first aspect when the processor is executed.
第四方面,本申请实施例还提供了一种计算机可读取存储介质,所述计算机可读取存储介质存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的文字处理方法。In a fourth aspect, the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores program code, and the program code can be invoked by a processor to execute the text provided by the first aspect. Approach.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings can also be obtained from those skilled in the art based on these drawings without paying any creative effort.
图1示出了本申请一个实施例提出的文字处理方法的流程图;FIG. 1 is a flowchart of a word processing method according to an embodiment of the present application;
图2示出了本申请另一个实施例提出的文字处理方法的流程图;FIG. 2 is a flowchart of a word processing method according to another embodiment of the present application;
图3示出了本申请实施例提供的移动终端的一种显示示意图;FIG. 3 is a schematic diagram showing a display of a mobile terminal provided by an embodiment of the present application;
图4示出了本申请实施例提供的移动终端的另一种显示示意图;FIG. 4 is a schematic diagram showing another display of the mobile terminal provided by the embodiment of the present application;
图5示出了本申请实施例提供的移动终端的又一种显示示意图;FIG. 5 is a schematic diagram showing still another display of the mobile terminal provided by the embodiment of the present application;
图6示出了本申请实施例提供的移动终端的再一种显示示意图;FIG. 6 is a schematic diagram showing still another display of the mobile terminal provided by the embodiment of the present application;
图7示出了本申请又一个实施例提出的文字处理装置的结构框图;FIG. 7 is a structural block diagram of a word processing apparatus according to still another embodiment of the present application;
图8示出了本申请又一个实施例提出的文字处理装置中文字选取模块的结构框图;FIG. 8 is a structural block diagram of a character selection module in a word processing apparatus according to still another embodiment of the present application;
图9示出了本申请实施例提供的一种移动终端的结构框图;FIG. 9 is a structural block diagram of a mobile terminal according to an embodiment of the present application;
图10示出了本申请实施例的用于执行根据本申请实施例的文字处理方法的移动终端的框图;FIG. 10 is a block diagram of a mobile terminal for performing a word processing method according to an embodiment of the present application;
图11示出了本申请实施例的用于保存或者携带实现根据本申请实施例的文字处理方法的程序代码的存储单元。FIG. 11 shows a storage unit for saving or carrying program code implementing the word processing method according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
在目前,人们每天都会在移动终端上收到大量的文字信息,例如短信,及时通讯类软件,及网页浏览器等各大应用推送的文字信息。通常,人们在对移动终端上的文字信息中感兴趣的文字进行选取以进一步操作时,是用户于进一步操作的界面进行手动输入。例如,在网页页面中,需要对感兴趣的文字进行搜索时,通常是用户将感兴趣的文字进行记录后,再在搜索引擎进行手动的输入,以进行后续的搜索。又例如,在社交软件的显示界面显示的聊天记录,用户需要对感兴趣的文字进行翻译时,通常是用户将感兴趣的文字进行记录后,再在翻译软件中手动输入,以进行后续翻译。At present, people receive a large amount of text information on mobile terminals every day, such as text messages, timely communication software, and text messages pushed by major applications such as web browsers. Generally, when a person selects a text of interest in the text information on the mobile terminal for further operation, the user manually inputs the interface for further operation. For example, in a web page, when a search for a text of interest is required, the user usually records the text of interest and then manually inputs it in the search engine for subsequent search. For example, in the chat record displayed on the display interface of the social software, when the user needs to translate the text of interest, the user usually records the text of interest and then manually inputs it in the translation software for subsequent translation.
当然,也有部分技术可以实现将移动终端上显示的文字进行分词后,使用户可以从分词结果中感兴趣的文字,但是其选取方式大多是通过用户对文字单个的选取,对于有大量文字时的选取较为不便。Of course, some technologies can realize the words that are interested in the word segmentation after the words displayed on the mobile terminal are segmented, but the selection method is mostly by the user's single selection of the text, when there is a large amount of text. The selection is inconvenient.
针对上述问题,发明人经过长时间的研究并提出了本申请实施例提供的文字处理方法、装置、移动终端以及存储介质,只需要在分词后用户对需要选取的文字进行滑动操作的选取,就能实现用户对需要选取的文字的选取,耗时较短,方便用户操作。其中,具体的文字处理方法在后续的实施例中进行详细的说明。In view of the above problems, the inventors have made a long-term research and proposed a word processing method, device, mobile terminal and storage medium provided by the embodiments of the present application, and only need to select a sliding operation of the text to be selected after the word segmentation, It can realize the user's selection of the text to be selected, which takes a short time and is convenient for the user to operate. The specific word processing method is described in detail in the following embodiments.
请参阅图1,图1示出了本申请一个实施例提供的文字处理方法的流程示意图。所述。在具体的实施例中,所述文字处理方法应用于如图7所示的文字处理装置200以及配置有所述文字处理装置200的移动终端(图9)。下面将以移动终端为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的移动终端可以为智能手机、平板电脑、穿戴式电子设备等,在此不做具体的限定。下面将针对图1所示的流程进行详细的阐述,上述的文字处理方法具体地可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart diagram of a word processing method according to an embodiment of the present application. Said. In a specific embodiment, the word processing method is applied to the word processing device 200 shown in FIG. 7 and the mobile terminal (FIG. 9) in which the word processing device 200 is disposed. The specific process of this embodiment will be described by taking a mobile terminal as an example. Of course, it can be understood that the mobile terminal used in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc., and no specific limited. The flow process shown in FIG. 1 will be described in detail below. The above word processing method may specifically include the following steps:
步骤S110:对当前页面内容中的文本进行识别并进行分词。Step S110: Identify and perform word segmentation on the text in the current page content.
人们每天在使用移动终端时,均会接收到各种文字信息。在人们需要对感兴趣的文字进行提取和选择,以便后续进行相关文字处理时,可以对当前页面中的文本进行操作,触发移动终端对当前页面内容中的文本的分词操作。People use the mobile terminal every day to receive various text messages. When people need to extract and select the text of interest, in order to subsequently perform related word processing, the text in the current page can be operated to trigger the word segmentation operation of the text in the current page content by the mobile terminal.
作为一种实施方式,可以通过长按页面的方式触发移动终端对当前页面内容中文本的分词操作。可以理解的是,在检测到用户对于当前页面的长按操作时,可以响应用户做出的该长按操作,对当前页面内容中的文本进行识别并进行分词。As an implementation manner, the mobile terminal can trigger the word segmentation operation on the text in the current page content by long pressing the page. It can be understood that, when the user presses a long press operation on the current page, the text in the current page content can be identified and segmented in response to the long press operation made by the user.
其中,文字识别是利用电子设备自动识别字符的技术,电子设备能自动的将页面中的文本字符识别成文字。分词,指的是将一个文字序列切分为一个个单独的字、词或命名实体等,分词过程就是按照移动的规范,将连续的文字序列重新组合成单独的字、词或命名实体序列等。Among them, text recognition is a technology for automatically recognizing characters by using an electronic device, and the electronic device can automatically recognize text characters in the page as characters. Word segmentation refers to the division of a sequence of words into individual words, words or named entities. The process of word segmentation is to reassemble successive sequences of words into separate words, words or named entity sequences according to the mobile specification. .
从而,可以在对当前页面内容中的文本识别得到文字序列之后,再进行分词,得到包括上述当前页面内容中的所有分词的分词结果。Therefore, after the text sequence in the current page content is recognized, the word segmentation is performed, and the word segmentation result including all the word segments in the current page content is obtained.
当然,在对当前页面内容中的文本进行识别并进行分词也可以是,对当前页面内容 中某一区域的文本进行识别并进行分词。Of course, the text in the current page content can be identified and segmented. The text of a certain area in the current page content can be identified and segmented.
作为一种实施方式,响应用户于当前页面的长按操作时,获取长按操作的位置信息,根据该位置信息获取当前页面内容中该位置信息对应的预设区域,然后对该预设区域的文本进行识别并进行分词。例如,整个页面均分为四块区域,上半部分为第一预设区域和第二预设区域,下半部分为第三预设区域和第四预设区域,当用户于当前页面的长按操作是于页面中的下半部分靠左的位置进行时,响应该长按操作,对第三预设区域的文本进行识别并进行分词,得到分词结果。从而,可以实现对当前页面的特定区域的文本进行识别和分词,更加方便用户对感兴趣的区域的文本中的文字进行选取,更加的省时。As an implementation manner, when the user presses a long press operation on the current page, the location information of the long press operation is obtained, and the preset area corresponding to the location information in the current page content is obtained according to the location information, and then the preset area is The text is identified and segmented. For example, the entire page is divided into four areas, the upper part is a first preset area and a second preset area, and the lower part is a third preset area and a fourth preset area, when the user is long on the current page. When the operation is performed on the left position of the lower half of the page, in response to the long press operation, the text of the third preset area is identified and segmented to obtain a word segmentation result. Thereby, the text of the specific area of the current page can be identified and segmented, which is more convenient for the user to select the text in the text of the area of interest, which is more time-saving.
步骤S120:显示分词结果卡片,所述分词结果卡片包括与所述文本中的分词对应的分词控件。Step S120: Display a word segmentation result card, and the word segmentation result card includes a word segmentation control corresponding to the word segmentation in the text.
在本申请实施例中,可以根据上述分词得到的分词结果生成分词结果卡片。其中,分词结果卡片中可以包括与上述当前页面内容中文本的分词对应的分词控件。可以理解的是,上述进行分词得到的文本的分词可以以分词控件的形式展示于分词卡片中,以便用户后续对分词卡片中的分词控件进行操作。In the embodiment of the present application, the word segmentation result card can be generated according to the word segmentation result obtained by the above participle. The word segmentation result card may include a word segmentation control corresponding to the word segmentation of the text in the current page content. It can be understood that the word segmentation of the text obtained by the above word segmentation can be displayed in the word segmentation card in the form of a word segmentation control, so that the user can subsequently operate the word segmentation control in the word segmentation card.
进一步的,分词结果包括有上述当前页面内容的文本的所有分词。另外,每个分词对应一个分词控件,可以理解的是,每个分词控件代表一个分词,用户对其中一个分词控件进行操作即代表对该分词控件进行的分词进行操作。Further, the word segmentation result includes all the word segments of the text having the content of the current page. In addition, each word segment corresponds to a word segment control. It can be understood that each word segment control represents a word segmentation, and the user operates on one of the word segmentation controls to represent the word segmentation performed on the word segmentation control.
在生成得到分词结果卡片之后,可以将分词结果卡片进行显示,以便用户可以查看到分词结果,以及对分词控件进行操作。After the word segmentation result card is generated, the word segmentation result card can be displayed so that the user can view the word segmentation result and operate the word segmentation control.
步骤S130:检测用户对所述分词控件的操作。Step S130: Detecting the operation of the user on the word segmentation control.
在显示分词结果卡片之后,可以检测用户对分词控件的操作,例如滑动操作、按压操作、单点或多点触摸等。After displaying the word segmentation result card, the user's operation on the word segmentation control, such as a sliding operation, a pressing operation, a single point or a multi-touch, etc., can be detected.
步骤S140:当所述操作为滑动操作时,获取所述滑动操作对应的第一滑动轨迹,将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字。Step S140: When the operation is a sliding operation, acquiring a first sliding track corresponding to the sliding operation, and using a word segment corresponding to all the word segmentation controls of the first sliding track as the selected character.
在本申请实施例中,在检测到上述用户对分词控件的操作为滑动操作时,可以触发对分词控件的选取,即触发对上述当前页面内容中的文本的分词进行的选取。In the embodiment of the present application, when detecting that the operation of the word segmentation control by the user is a sliding operation, the selection of the word segmentation control may be triggered, that is, triggering the selection of the word segmentation of the text in the current page content.
进一步的,在触发对分词控件的选取后,获取上述滑动操作对应的第一滑动轨迹,然后确定出位于该第一滑动轨迹的所有分词控件,将位于该第一滑动轨迹的所有分词控件对应的分词作为被选取的文字。Further, after triggering the selection of the word segmentation control, acquiring the first sliding track corresponding to the sliding operation, and then determining all the word segmentation controls located in the first sliding track, corresponding to all the word segmentation controls of the first sliding track The word segmentation is used as the selected text.
从而,本申请实施例提供的文字处理方法仅需要用户对分词得到的分词结果卡片中的分词控件进行滑动操作的选取,就可以实现用户对于页面内容中感兴趣的文字的选取,操作便捷,节约用户时间,方便用户对文字进行选取。Therefore, the word processing method provided by the embodiment of the present application only needs the user to select the sliding operation of the word segmentation control in the word segmentation result card obtained by the word segmentation, so that the user can select the text of interest in the page content, and the operation is convenient and economical. User time, convenient for users to select text.
请参阅图2,图2示出了本申请另一个实施例提供的文字处理方法的流程示意图。下面将针对图2所示的流程进行详细的阐述,所述文字处理方法具体可以包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a word processing method according to another embodiment of the present application. The following is a detailed description of the process shown in FIG. 2, where the word processing method may specifically include the following steps:
步骤S210:对当前页面内容中的文本进行识别并进行分词。Step S210: Identify and perform word segmentation on the text in the current page content.
步骤S220:显示分词结果卡片,所述分词结果卡片包括与所述文本中的分词对应的分词控件。Step S220: Display a word segmentation result card, and the word segmentation result card includes a word segmentation control corresponding to the word segmentation in the text.
在本申请实施例中,分词结果可以包括上述当前页面内容的文本的所有分词,每个分词对应一个分词控件。在显示分词结果卡片时,可以将分词结果卡片以蒙版的形式进行显示。作为一种实施方式,显示分词结果卡片,可以包括:生成分词结果卡片以及所述当前页面对应的蒙版页面;将所述蒙版页面叠加显示于所述当前页面,并将所述分词结果卡片显示于所述蒙版页面。请参见图3,显示的分词结果时,显示的页面中包括有分词结果卡片301以及上述当前页面对应的蒙版页面302,其中,分词结果卡片301为图中“分词结果”对应的框,各个分词控件为“分词结果”下方的多个小框,蒙版页面302为显示界面中除分词结果卡片之外的区域。从而,在显示分词结果卡片时,将原始的页面以蒙版进行显示,可以避免用户对于原始页面的误操作。In the embodiment of the present application, the word segmentation result may include all the word segments of the text of the current page content, and each word segment corresponds to a word segmentation control. When the word segmentation result card is displayed, the word segmentation result card can be displayed in the form of a mask. As an embodiment, displaying the word segmentation result card may include: generating a word segmentation result card and a mask page corresponding to the current page; superimposing the mask page on the current page, and displaying the word segmentation result card Displayed on the mask page. Referring to FIG. 3, when the word segmentation result is displayed, the displayed page includes a word segmentation result card 301 and a mask page 302 corresponding to the current page, wherein the word segmentation result card 301 is a frame corresponding to the word segmentation result in the figure, and each The word segmentation control is a plurality of small boxes under the "word segmentation result", and the mask page 302 is an area other than the word segmentation result card in the display interface. Therefore, when the word segmentation result card is displayed, the original page is displayed as a mask, and the user's misoperation with the original page can be avoided.
另外,在本申请实施例中,还可以在分词结果卡片的显示页面中显示分词的相关基本信息。作为另一种实施方式,显示分词结果卡片,可以包括:In addition, in the embodiment of the present application, the related basic information of the word segmentation may also be displayed on the display page of the word segmentation result card. As another implementation manner, displaying the word segmentation result card may include:
生成分词结果卡片、所述分词对应的基本信息卡片以及所述当前页面对应的蒙版页面;将所述蒙版页面叠加显示于所述当前页面,将所述分词结果卡片显示于所述蒙版页面,将所述基本信息卡片显示于所述蒙版页面。Generating a word segmentation result card, a basic information card corresponding to the word segment, and a mask page corresponding to the current page; superimposing the mask page on the current page, and displaying the word segmentation result card on the mask A page displays the basic information card on the mask page.
请参见图4,在显示分词结果卡片301时,将分词的相关基本信息对应的基本信息卡片303一同显示于蒙版页面302,其中,基本信息卡片303为图4中的“基本信息”对应的框,可以方便用户查看分词的相关基本信息。基本信息卡片中可以包括与分词相关的基本信息,从而使用户不需要后续对分词的相关基本信息再进行搜索和查阅,更加节省用户的时间。Referring to FIG. 4, when the word segmentation result card 301 is displayed, the basic information card 303 corresponding to the basic information of the word segmentation is displayed together on the mask page 302, wherein the basic information card 303 corresponds to the "basic information" in FIG. The box allows the user to view basic information about the word segmentation. The basic information card may include basic information related to the word segmentation, so that the user does not need to subsequently search and consult the relevant basic information of the word segmentation, thereby saving the user's time.
步骤S230:检测用户对所述分词控件的操作。Step S230: Detect the user's operation on the word segmentation control.
步骤S240:当所述操作为滑动操作时,获取所述滑动操作对应的第一滑动轨迹,确定分词控件中所述第一滑动轨迹经过的分词控件。Step S240: When the operation is a sliding operation, acquire a first sliding track corresponding to the sliding operation, and determine a word segmentation control that the first sliding track passes in the word segmentation control.
例如,请参见图5,图中的分词结果卡片301中,黑色加粗线代表上述第一滑动轨迹304,箭头所指的方向为第一滑动轨迹304的滑动方向。从而可以确定出,第一滑动轨迹304经过的分词控件为分词结果卡片301中第一排的第三个分词控件和第四个分词控件,第二排的第三个分词控件,以及第三排的第二个分词控件。For example, referring to FIG. 5, in the word segmentation result card 301, the black bold line represents the first sliding track 304, and the direction indicated by the arrow is the sliding direction of the first sliding track 304. Therefore, it can be determined that the word segmentation control that the first sliding track 304 passes is the third word segment control and the fourth word segment control in the first row of the word segmentation result card 301, the third word segment control in the second row, and the third row The second participle control.
步骤S250:获取所述第一滑动轨迹经过的分词控件对应的分词。Step S250: Acquire a word segment corresponding to the word segmentation control through which the first sliding track passes.
步骤S260:将所述分词控件对应的分词按照第一滑动轨迹经过的顺序进行排序,得到被选取的文字。Step S260: Sort the word segments corresponding to the word segmentation control according to the order in which the first sliding track passes, to obtain the selected characters.
用户在分词控件进行滑动的选取时,用户可能是根据自己的喜欢的分词的喜好程度,或者需要进行选取的分词的重要程度等进行滑动选取的,因此被选取的文字也应该按照滑动轨迹经过的顺序来进行排序。When the user selects the sliding of the word segmentation control, the user may perform the sliding selection according to the preference degree of the favorite participle or the importance degree of the selected word segmentation, so the selected text should also follow the sliding track. Sort by order.
从而,在得到第一滑动轨迹经过的分词控件对应的分词之后,将第一滑动轨迹经过的分词控件对应的分词按照第一滑动轨迹经过的顺序进行排序,可以的得到被选取的文字,即用户选取的文字。Therefore, after obtaining the word segmentation corresponding to the word segmentation control through which the first sliding track passes, the word segmentation corresponding to the word segmentation control through which the first sliding track passes is sorted according to the order in which the first sliding track passes, so that the selected character, ie, the user, can be obtained. Selected text.
在本申请实施例中,在得到被用户选取的文字之后,可以在显示页面中呈现出来,便于用户获知自己选取了哪些分词。因此,可以将被选取的文字于上述的分词结果卡片中进行突出显示。作为一种实施方式,在将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字之后,该文字处理方法还可以包括:将被选取的文字于分词结果卡片中进行高亮显示。例如,请参见图6,分词结果卡片中高亮显示的文字代表图5中的第一滑动轨迹304对应的被用户选取的文字,从而便于用户查看被选取的文字。In the embodiment of the present application, after the text selected by the user is obtained, it may be presented in the display page, so that the user can know which word segments are selected by the user. Therefore, the selected text can be highlighted in the above-mentioned word segmentation result card. As an embodiment, after the word segment corresponding to all the word segmentation controls of the first sliding track is used as the selected text, the word processing method may further include: highlighting the selected text in the word segmentation result card. display. For example, referring to FIG. 6, the highlighted text in the word segmentation result card represents the text selected by the user corresponding to the first sliding track 304 in FIG. 5, thereby facilitating the user to view the selected text.
在实际的操作中,可能存在着用户第一次对分词结果卡片中的分词的选取没有选取完全的情况,即用户可能除了第一次滑动选取的分词之外,还有其他需要选取的分词,因此用户还会进行第二次的选取。为方便用户于第一次选取的基础上进行选取,在位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字之后,第一该文字处理方法还可以包括:In the actual operation, there may be a case where the user does not select the complete word segmentation in the word segmentation result card for the first time, that is, the user may have other word segments to be selected in addition to the first-time sliding selected word segmentation. Therefore, the user will also make a second selection. In order to facilitate the user to select on the basis of the first selection, after the word segmentation corresponding to all the word segmentation controls of the first sliding track is used as the selected text, the first word processing method may further include:
再次检测用户对所述分词控件的操作;当所述操作为滑动操作时,获取所述滑动操作对应的第二滑动轨迹;将位于所述第一滑动轨迹以及所述第二滑动轨迹的所有分词控件对应的分词作为当前被选取的文字。And detecting, by the user, the operation of the word segmentation control; when the operation is a sliding operation, acquiring a second sliding track corresponding to the sliding operation; and all word segments located in the first sliding track and the second sliding track The word segmentation corresponding to the control is used as the currently selected text.
可以理解的是,检测到用户再次对分词控件做出的滑动操作时,获取该滑动操作的第二滑动轨迹。然后,将位于第一滑动轨迹以及第二滑动轨迹的所有分词控件对应的分词作为当前被选取的文字,即将位于第一滑动轨迹的所有分词控件对应的分词,以及位于第二滑动轨迹的所有分词控件对应的分词进行叠加,得到新的被选取的分词作为最新被选取的文字。应当注意的是,在对第一滑动轨迹对应的分词与第二滑动轨迹对应的分词进行叠加时,当位于第一滑动轨迹的分词控件对应的分词,与位于第二滑动轨迹的分 词控件对应的分词存在重合的分词时,将重合的分词进行保留。从而,仅需要用户在第一滑动轨迹的基础上,对除第一次选取的分词之外还需要进行选取的分词进行滑动操作的选取,就可以实现用户对需要选取的分词的完全选取,而不是取消第一次选取的分词,重新进行滑动选取,因此更加的方便用户操作,节省用户的时间。It can be understood that when the sliding operation performed by the user on the word segmentation control is detected again, the second sliding track of the sliding operation is acquired. Then, the word segment corresponding to all the word segmentation controls located in the first sliding track and the second sliding track is used as the currently selected text, the word segment corresponding to all the word segment controls in the first sliding track, and all the word segments located in the second sliding track. The word segmentation corresponding to the control is superimposed, and the new selected word segment is obtained as the latest selected word. It should be noted that when the word segment corresponding to the first sliding track is superimposed with the word segment corresponding to the second sliding track, the word segment corresponding to the word segment control located in the first sliding track corresponds to the word segmentation control located in the second sliding track. When there are overlapping words in the participle, the overlapping participles are retained. Therefore, it is only required that the user selects a participle to perform a sliding operation on the basis of the first sliding trajectory in addition to the first selected participle, so that the user can completely select the participle that needs to be selected, and It is not to cancel the first-selected participle and re-slide the selection, so it is more convenient for the user to operate and save the user's time.
在实际的操作中,可能存在着用户第一次对分词结果卡片中的分词的选取有误的情况,即用户可能第一次选取的分词中有用户不想要选取的分词,因此用户可以进行第二次的滑动选取,以在第一次选取的分词中删除之前选错的分词。为便于用户在第一次选取的分词基础上,对误选的分词进行删除,在将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字之后,该文字处理方法还可以包括:In the actual operation, there may be a case where the user selects the word segmentation in the word segmentation result card for the first time, that is, the user may select the segmentation word that the user does not want to select, so the user can perform the first The second sliding selection is to delete the previously selected word segmentation in the first selected participle. In order to facilitate the user to delete the misclassified participle based on the first selected word segmentation, the word processing method may also be used after the word segment corresponding to all the word segment controls located in the first sliding track is used as the selected word. include:
再次检测用户对所述分词控件的操作;当所述操作为滑动操作时,获取所述滑动操作对应的第三滑动轨迹;当所述第三滑动轨迹与所述第一滑动轨迹存在重合部分,且所述第三滑动轨迹中所述重合部分的滑动方向与所述第一滑动轨迹中所述重合部分的滑动方向相反时,获取所述第一滑动轨迹中除去所述重合部分之外的第四滑动轨迹;将位于所述第四滑动轨迹的所有分词控件对应的分词作为当前被选取的文字。And detecting, by the user, the operation of the word segmentation control; when the operation is a sliding operation, acquiring a third sliding track corresponding to the sliding operation; when the third sliding track and the first sliding track have overlapping portions, And acquiring a direction other than the overlapping portion in the first sliding track when a sliding direction of the overlapping portion in the third sliding track is opposite to a sliding direction of the overlapping portion in the first sliding track Four sliding tracks; the word segment corresponding to all the word segmentation controls located in the fourth sliding track is used as the currently selected text.
可以理解的是,检测到用户再次对分词控件做出的滑动操作时,获取该滑动操作的第三滑动轨迹。在第三滑动轨迹与第一滑动轨迹存在着重合部分,且第三滑动轨迹中重合部分的滑动方向,与第一滑动轨迹中重合部分的滑动方向相反时,从第一滑动轨迹中除去该重合部分,得到第四滑动轨迹,然后将位于得到的第四滑动轨迹的所有分词控件对应的分词作为当前被选取的文字,即最新的被选取的文字。从而,在用户需要从第一次选取的文字中删去选错的文字时,仅需要在第一次选取时的第一滑动轨迹上,沿与第一滑动轨迹相反的滑动方向对误选的分词控件进行滑动选取,即可实现从第一次选取的文字中删除选取的文字,得到最新的被选取的文字,而不是取消第一次选取的分词,重新进行滑动选取,因此使用户操作非常的方便,节省用户的操作时间。It can be understood that when the sliding operation performed by the user on the word segmentation control is detected again, the third sliding track of the sliding operation is acquired. When the third sliding track and the first sliding track have an overlapping portion, and the sliding direction of the overlapping portion in the third sliding track is opposite to the sliding direction of the overlapping portion in the first sliding track, the coincidence is removed from the first sliding track In part, a fourth sliding track is obtained, and then the word segment corresponding to all the word segmentation controls located in the obtained fourth sliding track is used as the currently selected character, that is, the latest selected character. Therefore, when the user needs to delete the selected text from the first selected text, only the first sliding track on the first selection is required to be mis-selected along the sliding direction opposite to the first sliding track. The word segmentation control can be selected by sliding, so that the selected text can be deleted from the first selected text, and the latest selected text can be obtained, instead of canceling the first selected word segmentation, and the sliding selection is performed again, so that the user operates very much. Convenience, saving users' operating time.
在实际操作中,还存在着用第一次对分词结果卡片中的分词的选取既没有选取完全也选取有误的情况,即第一次选取的分词中有误选的分词,另外也不完全包括用户想要选取的分词。为便于用户在第一次选取的基础上对未选取的分词进行选取以及对误选的分词进行删除,在将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字之后,该文字处理方法还可以包括:In the actual operation, there is also a case where the selection of the word segmentation in the first word segmentation result card is neither selected nor selected correctly, that is, the word segmentation of the first selected participle has a mis-selected participle, and the other is not completely included. The participle that the user wants to select. In order to facilitate the user to select the unselected participles on the basis of the first selection and delete the misclassified participles, after the word segment corresponding to all the word segmentation controls located in the first sliding track is taken as the selected text, The word processing method may further include:
再次检测用户对所述分词控件的操作;当所述操作为滑动操作时,获取所述滑动操作对应的第五滑动轨迹;当所述第五滑动轨迹与所述第一滑动轨迹存在重合部分,且所述第五滑动轨迹中所述重合部分的滑动方向与所述第一滑动轨迹中所述重合部分的滑动方向相反,获取所述第一滑动轨迹中以及所述第五滑动轨迹中除去所述重合部分之外的第六滑动轨迹;将位于所述第六滑动轨迹的所有分词控件对应的分词作为当前被选取的文字。And detecting, by the user, the operation of the word segmentation control; when the operation is a sliding operation, acquiring a fifth sliding track corresponding to the sliding operation; when the fifth sliding track and the first sliding track have overlapping portions, And a sliding direction of the overlapping portion in the fifth sliding track is opposite to a sliding direction of the overlapping portion in the first sliding track, and acquiring the first sliding track and the fifth sliding track are removed a sixth sliding trajectory other than the overlapping portion; a word segment corresponding to all the word segmentation controls located in the sixth sliding track is used as the currently selected character.
可以理解的是,检测到用户再次对分词控件做出的滑动操作时,获取该滑动操作的第五滑动轨迹。在第五滑动轨迹与第一滑动轨迹存在着重合部分,且第五滑动轨迹中重合部分的滑动方向,与第一滑动轨迹中重合部分的滑动方向相反时,从第一滑动轨迹中除去该重合部分,从第五滑动轨迹中除去该重合部分。然后将第一滑动轨迹除去重合部分的轨迹,与第五滑动轨迹中除去重合部分的轨迹进行整合,得到第六滑动轨迹。最后,将确定位于第六滑动轨迹的所有分词控件,将位于第六滑动轨迹的所有分词控件对应的分词作为当前被选取的文字,即最新的被选取的文字。从而,在用户需要从第一次选取的文字中删去选错的文字以及选取其他未选取的分词时,仅需要在第一次选取时的第一滑动轨迹上,沿与第一滑动轨迹相反的滑动方向对误选的分词控件进行滑动选取,以及对未选取的分词控件进行滑动选取,即可以实现对未选取的分词进行选取以及对误选的分词进行删除,而不是取消第一次选取的分词,重新进行滑动选取,因此使用户操作起来十分的方便,节省用户的时间。It can be understood that when the sliding operation performed by the user on the word segmentation control is detected again, the fifth sliding track of the sliding operation is acquired. When the fifth sliding track and the first sliding track have an overlapping portion, and the sliding direction of the overlapping portion in the fifth sliding track is opposite to the sliding direction of the overlapping portion in the first sliding track, the coincidence is removed from the first sliding track In part, the overlapping portion is removed from the fifth sliding track. Then, the first sliding track is removed from the trajectory of the coincident portion, and integrated with the trajectory of the fifth sliding track except the overlapping portion to obtain a sixth sliding track. Finally, all the word segmentation controls located in the sixth sliding track will be determined, and the word segment corresponding to all the word segmentation controls located in the sixth sliding track will be taken as the currently selected text, that is, the latest selected text. Therefore, when the user needs to delete the selected text from the first selected text and select other unselected words, it only needs to be on the first sliding track at the time of the first selection, along the opposite of the first sliding track. The sliding direction selects the sliding selection of the mis-selected word segmentation control, and the sliding selection of the unselected word segmentation control, that is, the selection of the unselected word segmentation and the deletion of the mis-selected word segmentation can be realized, instead of canceling the first selection. The word segmentation, re-sliding selection, so that the user is very convenient to operate, saving users time.
用户对移动终端显示的文字信息进行选取的目的大多是用户需要对感兴趣的文字进行进一步的操作。因此,在本申请实施例中,分词结果卡片还可以包括至少一个用于对被选取的文字进行编辑的编辑控件,在得到被选取的文字之后,该文字处理方法还可以包括:The purpose of the user to select the text information displayed by the mobile terminal is that the user needs to perform further operations on the text of interest. Therefore, in the embodiment of the present application, the word segmentation result card may further include at least one editing control for editing the selected text. After the selected text is obtained, the word processing method may further include:
获取所述用户对所述编辑控件的选取操作;响应所述选取操作,对所述被选取的文字进行相应的编辑处理。Obtaining a selection operation of the edit control by the user; and responding to the selecting operation, performing corresponding editing processing on the selected text.
可以理解的是,在检测到用户对上述编辑控件的选取操作,例如,用户对编辑控件的按压选取时,可以响应该选取操作,对被选取的文字进行相应的编辑处理。It can be understood that, when the user selects the selection operation of the edit control, for example, when the user selects the edit control, the selected operation may be performed in response to the selection operation.
进一步的,编辑控件可以包括复制控件、翻译控件或搜索控件。其中,复制控件用于对被选取的文字进行复制。翻译控件用于对被选取的文字进行翻译,例如将被选取的文字翻译为英文。搜索控件用于对被选取的文字进行搜索,例如搜索被选取的文字的基本信息等。因此,响应上述用户对编辑控件的选取操作时,可以对被选取的文字进行复制、翻译或者搜索,具体进行的编辑处理根据用户选取的编辑控件而定。从而,可以实现用户在对分词进行选取之后,用户仅需要选取编辑控件,就可以完成对被选取的文字相关编辑处理,而不是用户再将被选取的文字输入至其他软件再进行相关处理,因此更加的方便用户操作,节省用户的操作时间。Further, the edit control can include a copy control, a translation control, or a search control. The copy control is used to copy the selected text. The translation control is used to translate the selected text, for example, to translate the selected text into English. The search control is used to search for the selected text, such as searching for basic information of the selected text. Therefore, in response to the user's selection operation of the edit control, the selected text may be copied, translated, or searched, and the specific editing process is determined according to the edit control selected by the user. Therefore, after the user selects the word segmentation, the user only needs to select the editing control, and the editing process related to the selected text can be completed, instead of the user inputting the selected text to other software and then performing related processing, It is more convenient for users to operate and saves users' operation time.
本申请实施例提供的文字处理方法,通过在对当前页面内容中的文本进行识别并进行分词之后,显示分词结果卡片,然后检测到用户对分词控件的滑动操作时,获取该滑动操作的第一滑动轨迹,再确定出第一滑动轨迹经过的分词控件对应的分词,然后将分词控件对应的分词按照第一滑动轨迹经过的顺序进行排序,得到被选取的文字。并且提供了用户在上述滑动操作的选取之后,再进行第二次的滑动操作的选取,以在第一次选取的基础上完善用户的选取文字的方案。本方法均只需要用户对分词结果卡片中的分词控件进行简单的滑动操作,即可完成对于用户需要选取的文字的选取,非常的方便用户进行操作,节省用户的时间,提升用户体验。The text processing method provided by the embodiment of the present application obtains the first part of the sliding operation by displaying the word segmentation result card after identifying and segmenting the text in the current page content, and then detecting the sliding operation of the word segmentation control by the user. The sliding track is determined, and the word segmentation corresponding to the word segmentation control passed by the first sliding track is determined, and then the word segmentation corresponding to the word segmentation control is sorted according to the order of the first sliding track to obtain the selected character. And providing the user to select the sliding operation after the selection of the sliding operation to improve the user's selected text on the basis of the first selection. The method only needs the user to perform a simple sliding operation on the word segmentation control in the word segmentation result card, thereby completing the selection of the text that the user needs to select, which is very convenient for the user to operate, saves the user's time and improves the user experience.
请参阅图7,图7示出了本申请又一个实施例提供的文字处理装置200的结构框图。下面将针对图7所示的框图进行阐述,所述文字处理装置200包括:分词执行模块210、分词显示模块220、操作检测模块230以及文字选取模块240。其中:所述分词执行模块210用于对当前页面内容中的文本进行识别并进行分词;所述分词显示模块220用于显示分词结果卡片,所述分词结果卡片包括与所述文本中的分词对应的分词控件;所述操作检测模块230用于检测用户对所述分词控件的操作;所述文字选取模块240用于当所述操作为滑动操作时,获取所述滑动操作对应的第一滑动轨迹,将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字。Please refer to FIG. 7. FIG. 7 is a structural block diagram of a word processing apparatus 200 according to another embodiment of the present application. The following is a description of the block diagram shown in FIG. 7. The word processing apparatus 200 includes a word segmentation execution module 210, a word segmentation display module 220, an operation detection module 230, and a text selection module 240. Wherein: the word segmentation execution module 210 is configured to identify and segment the text in the current page content; the word segmentation display module 220 is configured to display a word segmentation result card, and the word segmentation result card includes a word segmentation corresponding to the text segmentation The word segmentation control module 230 is configured to detect a user's operation on the word segmentation control; the text selection module 240 is configured to acquire a first sliding track corresponding to the sliding operation when the operation is a sliding operation The word segment corresponding to all the word segmentation controls located in the first sliding track is taken as the selected word.
在本申请实施例中,请参见图8,文字选取模块240可以包括控件确定单元241、分词获取单元242以及分词排序单元243。其中,控件确定单元241用于确定分词控件中所述第一滑动轨迹经过的分词控件;分词获取单元242用于获取所述第一滑动轨迹经过的分词控件对应的分词;分词排序单元243用于将所述分词控件对应的分词按照第一滑动轨迹经过的顺序进行排序,得到被选取的文字。In the embodiment of the present application, referring to FIG. 8 , the text selection module 240 may include a control determining unit 241 , a word segmentation acquiring unit 242 , and a word segmentation unit 243 . The control determining unit 241 is configured to determine a word segmentation control that the first sliding track passes in the word segmentation control; the word segmentation acquiring unit 242 is configured to acquire a word segmentation corresponding to the word segmentation control through which the first sliding track passes; the word segmentation sorting unit 243 is configured to: The word segments corresponding to the word segmentation control are sorted according to the order in which the first sliding track passes, to obtain the selected characters.
在本申请实施例中,该文字处理装置200还可以包括结果显示模块。该结果显示模块用于将所述被选取的文字于所述分词结果卡片中进行高亮显示。In the embodiment of the present application, the word processing apparatus 200 may further include a result display module. The result display module is configured to highlight the selected text in the word segmentation result card.
在本申请实施例中,该文字处理装置200还可以包括:第一再检测模块、第一轨迹确定模块以及第一文字获取模块。其中,所述第一再检测模块用于;所述第一轨迹确定模块用于;所述第一文字获取模块用于。In the embodiment of the present application, the word processing apparatus 200 may further include: a first re-detection module, a first trajectory determination module, and a first character acquisition module. The first re-detection module is configured to: the first trajectory determining module is configured to be used by the first character acquiring module.
在本申请实施例中,该文字处理装置200还可以包括:第二再检测模块、第二轨迹确定模块、第一轨迹整合模块以及第二文字获取模块。其中,所述第二再检测模块用于再次检测用户对所述分词控件的操作;所述第二轨迹确定模块用于当所述操作为滑动操作时,获取所述滑动操作对应的第三滑动轨迹;所述第一轨迹整合模块用于当所述第三滑动轨 迹与所述第一滑动轨迹存在重合部分,且所述第三滑动轨迹中所述重合部分的滑动方向与所述第一滑动轨迹中所述重合部分的滑动方向相反时,获取所述第一滑动轨迹中除去所述重合部分之外的第四滑动轨迹;所述第二文字获取模块用于将位于所述第四滑动轨迹的所有分词控件对应的分词作为当前被选取的文字。In the embodiment of the present application, the word processing apparatus 200 may further include: a second re-detection module, a second trajectory determination module, a first trajectory integration module, and a second character acquisition module. The second re-detection module is configured to detect the operation of the segmentation control by the user again; the second trajectory determination module is configured to acquire a third sliding corresponding to the sliding operation when the operation is a sliding operation a trajectory; the first trajectory integration module is configured to have a merging portion of the third sliding trajectory and the first sliding trajectory, and a sliding direction of the overlapping portion and the first sliding in the third sliding trajectory Obtaining a fourth sliding track in the first sliding track except the overlapping portion when the sliding direction of the overlapping portion in the track is opposite; the second character acquiring module is configured to be located in the fourth sliding track The word segmentation corresponding to all the word segmentation controls is used as the currently selected word.
在本申请实施例中,该文字处理装置200还可以包括:第三再检测模块、第三轨迹确定模块、第二轨迹整合模块以及第三文字获取模块。其中,所述第三再检测模块用于再次检测用户对所述分词控件的操作;所述第三轨迹确定模块用于当所述操作为滑动操作时,获取所述滑动操作对应的第五滑动轨迹;所述第二轨迹整合模块用于当所述第五滑动轨迹与所述第一滑动轨迹存在重合部分,且所述第五滑动轨迹中所述重合部分的滑动方向与所述第一滑动轨迹中所述重合部分的滑动方向相反,获取所述第一滑动轨迹中以及所述第五滑动轨迹中除去所述重合部分之外的第六滑动轨迹;所述第三文字获取模块用于将位于所述第六滑动轨迹的所有分词控件对应的分词作为当前被选取的文字。In the embodiment of the present application, the word processing apparatus 200 may further include: a third re-detection module, a third trajectory determination module, a second trajectory integration module, and a third character acquisition module. The third re-detection module is configured to detect the operation of the segmentation control by the user again; the third trajectory determination module is configured to acquire a fifth slip corresponding to the sliding operation when the operation is a sliding operation a trajectory; the second trajectory integration module is configured to have a merging portion of the fifth sliding trajectory and the first sliding trajectory, and a sliding direction of the overlapping portion and the first sliding in the fifth sliding trajectory Obtaining a sliding direction of the overlapping portion in the trajectory, acquiring a sixth sliding trajectory in the first sliding trajectory and removing the overlapping portion in the fifth sliding trajectory; the third character acquiring module is configured to The word segment corresponding to all the word segmentation controls of the sixth sliding track is used as the currently selected word.
在本申请实施例中,该文字处理装置还可以包括:操作获取模块以及编辑处理模块。其中,所述操作获取模块用于获取所述用户对所述编辑控件的选取操作;所述编辑处理模块用于响应所述选取操作,对所述被选取的文字进行相应的编辑处理。In the embodiment of the present application, the word processing apparatus may further include: an operation acquiring module and an editing processing module. The operation obtaining module is configured to obtain a selection operation of the editing control by the user; and the editing processing module is configured to perform corresponding editing processing on the selected text in response to the selecting operation.
综上所述,相对于现有技术,本申请提供的文字处理方法、装置、移动终端及存储介质,通过对当前页面内容中的文本进行识别并进行分词,再显示分词结果卡片,然后检测用户对分词结果卡片中分词对应的分词控件的滑动操作,最后获取该滑动操作对应的滑动轨迹,将位于滑动轨迹的所有分词控件对应的分词作为选取的文字,从而使用户仅需要对需要选取的文字进行滑动操作的选取,就能实现用户对需要选取的文字的选取,方便用户操作。In summary, with respect to the prior art, the word processing method, device, mobile terminal and storage medium provided by the present application identify and segment the text in the current page content, display the word segmentation result card, and then detect the user. For the sliding operation of the word segmentation control corresponding to the word segmentation in the word segmentation result card, the sliding track corresponding to the sliding operation is finally obtained, and the word segment corresponding to all the word segmentation control of the sliding track is used as the selected text, so that the user only needs the selected text. By selecting the sliding operation, the user can select the text to be selected, which is convenient for the user to operate.
请再次参阅图9,基于上述的文字处理方法、装置,本申请实施例还提供一种移动终端100,其包括电子本体部10,所述电子本体部10包括壳体12及设置在所述壳体12上的主显示屏120。所述壳体12可采用金属、如钢材、铝合金制成。本实施例中,所述主显示屏120通常包括显示面板111,也可包括用于响应对所述显示面板111进行触控操作的电路等。所述显示面板111可以为一个液晶显示面板(Liquid Crystal Display,LCD),在一些实施例中,所述显示面板111同时为一个触摸屏109。Referring to FIG. 9 again, based on the word processing method and device, the embodiment of the present application further provides a mobile terminal 100 including an electronic body portion 10, the electronic body portion 10 including a housing 12 and the shell The main display 120 on the body 12. The housing 12 may be made of metal such as steel or aluminum alloy. In this embodiment, the main display screen 120 generally includes a display panel 111, and may also include a circuit or the like for responding to the touch operation on the display panel 111. The display panel 111 can be a liquid crystal display (LCD). In some embodiments, the display panel 111 is simultaneously a touch screen 109.
请同时参阅图10,在实际的应用场景中,所述移动终端100可作为智能手机终端进行使用,在这种情况下所述电子本体部10通常还包括一个或多个(图中仅示出一个)处理器102、存储器104、RF(Radio Frequency,射频)模块106、音频电路110、传感器114、输入模块118、电源模块122。本领域普通技术人员可以理解,图10所示的结构仅为示意,其并不对所述电子本体部10的结构造成限定。例如,所述电子本体部10还可包括比图10中所示更多或者更少的组件,或者具有与图9所示不同的配置。Referring to FIG. 10, in the actual application scenario, the mobile terminal 100 can be used as a smart phone terminal. In this case, the electronic body portion 10 usually further includes one or more (only shown in the figure). A processor 102, a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. It will be understood by those skilled in the art that the structure shown in FIG. 10 is merely illustrative and does not limit the structure of the electronic body portion 10. For example, the electronic body portion 10 may further include more or less components than those shown in FIG. 10, or have a different configuration than that shown in FIG.
本领域普通技术人员可以理解,相对于所述处理器102来说,所有其他的组件均属于外设,所述处理器102与这些外设之间通过多个外设接口124相耦合。所述外设接口124可基于以下标准实现:通用异步接收/发送装置(Universal Asynchronous Receiver/Transmitter,UART)、通用输入/输出(General Purpose Input Output,GPIO)、串行外设接口(Serial Peripheral Interface,SPI)、内部集成电路(Inter-Integrated Circuit,I2C),但不并限于上述标准。在一些实例中,所述外设接口124可仅包括总线;在另一些实例中,所述外设接口124还可包括其他元件,如一个或者多个控制器,例如用于连接所述显示面板111的显示控制器或者用于连接存储器的存储控制器。此外,这些控制器还可以从所述外设接口124中脱离出来,而集成于所述处理器102内或者相应的外设内。One of ordinary skill in the art will appreciate that all other components are peripherals relative to the processor 102, and the processor 102 is coupled to the peripherals via a plurality of peripheral interfaces 124. The peripheral interface 124 can be implemented based on the following standards: Universal Asynchronous Receiver/Transmitter (UART), General Purpose Input Output (GPIO), Serial Peripheral Interface (Serial Peripheral Interface) , SPI), Inter-Integrated Circuit (I2C), but not limited to the above standards. In some examples, the peripheral interface 124 can include only a bus; in other examples, the peripheral interface 124 can also include other components, such as one or more controllers, such as for connecting the display panel A display controller of 111 or a memory controller for connecting to a memory. In addition, these controllers can also be detached from the peripheral interface 124 and integrated into the processor 102 or within a corresponding peripheral.
所述存储器104可用于存储软件程序以及模块,所述处理器102通过运行存储在所述存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理。所述存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装 置、闪存、或者其他非易失性固态存储器。在一些实例中,所述存储器104可进一步包括相对于所述处理器102远程设置的存储器,这些远程存储器可以通过网络连接至所述电子本体部10或所述主显示屏120。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules that execute various functional applications and data processing by running software programs and modules stored within the memory 104. The memory 104 can include high speed random access memory and can also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 can further include memory remotely disposed relative to the processor 102, which can be connected to the electronic body portion 10 or the primary display screen 120 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
所述RF模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。所述RF模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述RF模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(wideband code division multiple access,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(time division multiple access,TDMA),无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE802.10A,IEEE 802.11b,IEEE802.11g和/或IEEE 802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF module 106 is configured to receive and transmit electromagnetic waves, and realize mutual conversion between electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. The RF module 106 can include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memories, and the like. . The RF module 106 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices over a wireless network. The wireless network described above may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), and wideband code. Wideband code division multiple access (W-CDMA), Code division access (CDMA), time division multiple access (TDMA), wireless fidelity (Wireless, Fidelity) , WiFi) (such as the Institute of Electrical and Electronics Engineers Standards IEEE802.10A, IEEE 802.11b, IEEE802.11g and / or IEEE 802.11n), Voice over internet protocal (VoIP), Worldwide Interoperability (Worldwide Interoperability) For Microwave Access, Wi-Max, other protocols for mail, instant messaging and short messages, and any other suitable communication protocols, even those that are not currently being developed.
音频电路110、听筒101、声音插孔103、麦克风105共同提供用户与所述电子本体部10或所述主显示屏120之间的音频接口。具体地,所述音频电路110从所述处理器102处接收声音数据,将声音数据转换为电信号,将电信号传输至所述听筒101。所述听筒101将电信号转换为人耳能听到的声波。所述音频电路110还从所述麦克风105处接收电信号,将电信号转换为声音数据,并将声音数据传输给所述处理器102以进行进一步的处理。音频数据可以从所述存储器104处或者通过所述RF模块106获取。此外,音频数据也可以存储至所述存储器104中或者通过所述RF模块106进行发送。The audio circuit 110, the earpiece 101, the sound jack 103, and the microphone 105 collectively provide an audio interface between the user and the electronic body portion 10 or the main display screen 120. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the earpiece 101. The earpiece 101 converts an electrical signal into a sound wave that can be heard by the human ear. The audio circuit 110 also receives an electrical signal from the microphone 105, converts the electrical signal into sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be obtained from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted by the RF module 106.
所述传感器114设置在所述电子本体部10内或所述主显示屏120内,所述传感器114的实例包括但并不限于:光传感器、运行传感器、压力传感器、重力加速度传感器、以及其他传感器。The sensor 114 is disposed within the electronic body portion 10 or within the main display screen 120. Examples of the sensor 114 include, but are not limited to, a light sensor, an operation sensor, a pressure sensor, a gravity acceleration sensor, and other sensors. .
具体地,所述光传感器可包括光线传感器114F、压力传感器114G。其中,压力传感器114G可以检测由按压在移动终端100产生的压力的传感器。即,压力传感器114G检测由用户和移动终端之间的接触或按压产生的压力,例如由用户的耳朵与移动终端之间的接触或按压产生的压力。因此,压力传感器114G可以用来确定在用户与移动终端100之间是否发生了接触或者按压,以及压力的大小。Specifically, the light sensor may include a light sensor 114F and a pressure sensor 114G. Among them, the pressure sensor 114G can detect a sensor that is pressed by the pressure generated at the mobile terminal 100. That is, the pressure sensor 114G detects a pressure generated by contact or pressing between the user and the mobile terminal, such as a pressure generated by contact or pressing between the user's ear and the mobile terminal. Therefore, the pressure sensor 114G can be used to determine whether contact or pressing has occurred between the user and the mobile terminal 100, as well as the magnitude of the pressure.
请再次参阅图10,具体地在图10所示的实施例中,所述光线传感器114F及所述压力传感器114G邻近所述显示面板111设置。所述光线传感器114F可在有物体靠近所述主显示屏120时,例如所述电子本体部10移动到耳边时,所述处理器102关闭显示输出。Referring to FIG. 10 again, in particular, in the embodiment shown in FIG. 10, the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111. The light sensor 114F can turn off the display output when an object approaches the main display screen 120, for example, when the electronic body portion 10 moves to the ear.
作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别所述移动终端100姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,所述电子本体部10还可配置陀螺仪、气压计、湿度计、温度计等其他传感器,在此不再赘述,As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal 100 (such as horizontal and vertical). Screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping). In addition, the electronic body unit 10 can also be equipped with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and the like, and details are not described herein again.
本实施例中,所述输入模块118可包括设置在所述主显示屏120上的所述触摸屏109,所述触摸屏109可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸屏109上或在所述触摸屏109附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,所述触摸屏109可包括触摸检测装置和触摸 控制器。其中,所述触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给所述触摸控制器;所述触摸控制器从所述触摸检测装置上接收触摸信息,并将该触摸信息转换成触点坐标,再送给所述处理器102,并能接收所述处理器102发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触摸屏109的触摸检测功能。除了所述触摸屏109,在其它变更实施方式中,所述输入模块118还可以包括其他输入设备,如按键107。所述按键107例如可包括用于输入字符的字符按键,以及用于触发控制功能的控制按键。所述控制按键的实例包括“返回主屏”按键、开机/关机按键等等。In this embodiment, the input module 118 may include the touch screen 109 disposed on the main display screen 120, and the touch screen 109 may collect a touch operation on or near a user (such as a user using a finger or a stylus) The operation of any suitable object or accessory on or adjacent to the touch screen 109, and driving the corresponding connection device in accordance with a predetermined program. Alternatively, the touch screen 109 may include a touch detection device and a touch controller. Wherein the touch detection device detects a touch orientation of the user and detects a signal brought by the touch operation to transmit a signal to the touch controller; the touch controller receives touch information from the touch detection device, and The touch information is converted into contact coordinates, sent to the processor 102, and can receive commands from the processor 102 and execute them. In addition, the touch detection function of the touch screen 109 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch screen 109, in other variant embodiments, the input module 118 may also include other input devices, such as buttons 107. The button 107 may include, for example, a character button for inputting a character, and a control button for triggering a control function. Examples of the control buttons include a "return to home screen" button, a power on/off button, and the like.
所述主显示屏120用于显示由用户输入的信息、提供给用户的信息以及所述电子本体部10的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,所述触摸屏109可设置于所述显示面板111上从而与所述显示面板111构成一个整体。The main display screen 120 is used for displaying information input by a user, information provided to the user, and various graphical user interfaces of the electronic body portion 10, which can be composed of graphics, text, icons, numbers, videos, and It is configured in any combination, and in one example, the touch screen 109 can be disposed on the display panel 111 to be integrated with the display panel 111.
所述电源模块122用于向所述处理器102以及其他各组件提供电力供应。具体地,所述电源模块122可包括电源管理系统、一个或多个电源(如电池或者交流电)、充电电路、电源失效检测电路、逆变器、电源状态指示灯以及其他任意与所述电子本体部10或所述主显示屏120内电力的生成、管理及分布相关的组件。The power module 122 is configured to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (such as a battery or an alternating current), a charging circuit, a power failure detecting circuit, an inverter, a power status indicator, and any other electronic body. The component 10 or the components related to the generation, management, and distribution of power in the main display screen 120.
所述移动终端100还包括定位器119,所述定位器119用于确定所述移动终端100所处的实际位置。本实施例中,所述定位器119采用定位服务来实现所述移动终端100的定位,所述定位服务,应当理解为通过特定的定位技术来获取所述移动终端100的位置信息(如经纬度坐标),在电子地图上标出被定位对象的位置的技术或服务。The mobile terminal 100 also includes a locator 119 for determining the actual location at which the mobile terminal 100 is located. In this embodiment, the locator 119 uses a positioning service to implement positioning of the mobile terminal 100. The positioning service should be understood as acquiring location information (such as latitude and longitude coordinates) of the mobile terminal 100 by using a specific positioning technology. ), the technology or service that marks the location of the object being located on the electronic map.
应当理解的是,上述的移动终端100并不局限于智能手机终端,其应当指可以在移动中使用的计算机设备。具体而言,移动终端100,是指搭载了智能操作系统的移动计算机设备,移动终端100包括但不限于智能手机、智能手表、平板电脑,等等。It should be understood that the mobile terminal 100 described above is not limited to a smartphone terminal, which should refer to a computer device that can be used in mobile. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with a smart operating system, and the mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet, and the like.
请参阅图11,图11示出了本申请实施例提供的一种计算机可读存储介质的结构框图。计算机可读存储介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 11. FIG. 11 is a structural block diagram of a computer readable storage medium according to an embodiment of the present application. Program code is stored in the computer readable storage medium 300, and the program code can be invoked by a processor to perform the method described in the above method embodiments.
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。The computer readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer readable storage medium 300 includes a non-transitory computer-readable storage medium. Computer readable storage medium 300 has a storage space for program code 310 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 310 can be compressed, for example, in a suitable form.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the application. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Moreover, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In the description of the present application, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根 据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the present application includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in the reverse order depending on the functions involved, in accordance with the illustrated or discussed order. It will be understood by those skilled in the art to which the embodiments of the present application pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(移动终端),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (mobile terminals) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the application can be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included. In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。It should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art understand that they can still The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not drive the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种文字处理方法,其特征在于,所述方法包括:A word processing method, characterized in that the method comprises:
    对当前页面内容中的文本进行识别并进行分词;Identify and segment the text in the current page content;
    显示分词结果卡片,所述分词结果卡片包括与所述文本中的分词对应的分词控件;Displaying a word segmentation result card, the word segmentation result card including a word segmentation control corresponding to the word segmentation in the text;
    检测用户对所述分词控件的操作;Detecting user operations on the word segmentation control;
    当所述操作为滑动操作时,获取所述滑动操作对应的第一滑动轨迹,将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字。When the operation is a sliding operation, the first sliding track corresponding to the sliding operation is acquired, and the word segment corresponding to all the word segmentation controls of the first sliding track is used as the selected character.
  2. 根据权利要求1所述的方法,其特征在于,所述分词结果包括所述文本的所有分词,每个分词对应一个分词控件,将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字,包括:The method according to claim 1, wherein the word segmentation result includes all word segments of the text, each word segment corresponding to a word segmentation control, and the word segmentation corresponding to all word segmentation controls located in the first sliding track is Selected text, including:
    确定分词控件中所述第一滑动轨迹经过的分词控件;Determining a word segmentation control that the first sliding track passes in the word segmentation control;
    获取所述第一滑动轨迹经过的分词控件对应的分词;Obtaining a word segment corresponding to the word segmentation control through which the first sliding track passes;
    将所述分词控件对应的分词按照第一滑动轨迹经过的顺序进行排序,得到被选取的文字。The word segments corresponding to the word segmentation control are sorted according to the order in which the first sliding track passes, to obtain the selected characters.
  3. 根据权利要求1所述的方法,其特征在于,所述将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字之后,所述方法还包括:The method according to claim 1, wherein after the word segment corresponding to all the word segmentation controls of the first sliding track is used as the selected word, the method further comprises:
    将所述被选取的文字于所述分词结果卡片中进行高亮显示。The selected text is highlighted in the word segmentation result card.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述对当前页面内容中的文本进行识别并进行分词,包括:The method according to any one of claims 1 to 3, wherein the recognizing and segmenting text in the current page content comprises:
    在检测到对当前页面的长按操作时,对当前页面内容中的文本字符进行识别,得到文字序列;When a long press operation on the current page is detected, the text characters in the current page content are identified to obtain a text sequence;
    对所述文字序列进行分词,得到包括所述当前页面内容对应的分词结果。The word sequence is segmented to obtain a word segmentation result corresponding to the current page content.
  5. 根据权利要求4所述的方法,其特征在于,所述在检测到对当前页面的长按操作时,对当前页面内容中的文本字符进行识别,得到文字序列,包括:The method according to claim 4, wherein when the long press operation on the current page is detected, the text characters in the current page content are identified to obtain a text sequence, including:
    在检测到对当前页面的长按操作时,获取所述长按操作对应的位置信息;Obtaining location information corresponding to the long press operation when detecting a long press operation on the current page;
    获取所述当前页面内容中所述位置信息对应的预设区域;Obtaining a preset area corresponding to the location information in the current page content;
    对所述预设区域中的文本字符进行识别,得到文字序列。Identifying text characters in the preset area to obtain a sequence of characters.
  6. 根据权利要求5所述的方法,其特征在于,所述当前页面内容均分为多个区域,所述预设区域为所述多个区域中所述位置信息对应的其中一个区域。The method according to claim 5, wherein the current page content is divided into a plurality of regions, and the preset region is one of the plurality of regions corresponding to the location information.
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述显示分词结果卡片,包括:The method according to any one of claims 1 to 6, wherein the displaying the word segmentation result card comprises:
    将分词结果卡片以蒙版的形式进行显示。The word segmentation result card is displayed in the form of a mask.
  8. 根据权利要求7所述的方法,其特征在于,所述将分词结果卡片以蒙版的形式进行显示,包括:The method according to claim 7, wherein said displaying the word segmentation result card in the form of a mask comprises:
    生成分词结果卡片以及所述当前页面对应的蒙版页面;Generating a word segmentation result card and a mask page corresponding to the current page;
    将所述蒙版页面叠加显示于所述当前页面,并将所述分词结果卡片显示于所述蒙版页面。The mask page is superimposed and displayed on the current page, and the word segmentation result card is displayed on the mask page.
  9. [根据细则26改正14.05.2019]
    根据权利要求7所述的方法,其特征在于,所述将分词结果卡片以蒙版的形式进行显示,包括:
    生成分词结果卡片、所述分词对应的基本信息卡片以及所述当前页面对应的蒙版页面;
    将所述蒙版页面叠加显示于所述当前页面,将所述分词结果卡片显示于所述蒙版页面,将所述基本信息卡片显示于所述蒙版页面。
    [Correct according to Rule 26 14.05.2019]
    The method according to claim 7, wherein said displaying the word segmentation result card in the form of a mask comprises:
    Generating a word segmentation result card, a basic information card corresponding to the word segment, and a mask page corresponding to the current page;
    The mask page is superimposed and displayed on the current page, and the word segmentation card is displayed on the mask page, and the basic information card is displayed on the mask page.
  10. [根据细则26改正14.05.2019]
    根据权利要求9所述的方法,其特征在于,所述基本信息卡片包括与所述分词相关的基本信息。
    [Correct according to Rule 26 14.05.2019]
    The method of claim 9 wherein said basic information card includes basic information associated with said word segmentation.
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,所述将位于所述第一滑动 轨迹的所有分词控件对应的分词作为被选取的文字之后,所述方法还包括:The method according to any one of claims 1 to 10, wherein after the word segmentation corresponding to all the word segmentation controls of the first sliding track is taken as the selected text, the method further comprises:
    再次检测用户对所述分词控件的操作;Re-detecting the user's operation on the word segmentation control;
    当所述操作为滑动操作时,获取所述滑动操作对应的第二滑动轨迹;When the operation is a sliding operation, acquiring a second sliding track corresponding to the sliding operation;
    将位于所述第一滑动轨迹以及所述第二滑动轨迹的所有分词控件对应的分词作为当前被选取的文字。The word segment corresponding to all the word segmentation controls located in the first sliding track and the second sliding track is taken as the currently selected word.
  12. 根据权利要求11所述的方法,其特征在于,所述将位于所述第一滑动轨迹以及所述第二滑动轨迹的所有分词控件对应的分词作为当前被选取的文字,包括:The method according to claim 11, wherein the word segment corresponding to all the word segmentation controls located in the first sliding track and the second sliding track is used as the currently selected word, and includes:
    将位于所述第一滑动轨迹的所有分词控件对应的分词,以及位于所述第二滑动轨迹的所有分词控件对应的分词进行叠加,得到当前被选取的文字。The word segment corresponding to all the word segmentation control of the first sliding track and the word segment corresponding to all the word segmentation control of the second sliding track are superimposed to obtain the currently selected character.
  13. 根据权利要求1-10中任一项所述的方法,其特征在于,所述将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字之后,所述方法还包括:The method according to any one of claims 1 to 10, wherein after the word segmentation corresponding to all the word segmentation controls of the first sliding track is taken as the selected text, the method further comprises:
    再次检测用户对所述分词控件的操作;Re-detecting the user's operation on the word segmentation control;
    当所述操作为滑动操作时,获取所述滑动操作对应的第三滑动轨迹;Obtaining a third sliding track corresponding to the sliding operation when the operation is a sliding operation;
    当所述第三滑动轨迹与所述第一滑动轨迹存在重合部分,且所述第三滑动轨迹中所述重合部分的滑动方向与所述第一滑动轨迹中所述重合部分的滑动方向相反时,获取所述第一滑动轨迹中除去所述重合部分之外的第四滑动轨迹;When the third sliding track has a coincident portion with the first sliding track, and the sliding direction of the overlapping portion in the third sliding track is opposite to the sliding direction of the overlapping portion in the first sliding track Obtaining, in the first sliding track, a fourth sliding track except the overlapping portion;
    将位于所述第四滑动轨迹的所有分词控件对应的分词作为当前被选取的文字。The word segment corresponding to all the word segmentation controls located in the fourth sliding track is taken as the currently selected word.
  14. 根据权利要求1-10中任一项所述的方法,其特征在于,所述将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字之后,所述方法还包括:The method according to any one of claims 1 to 10, wherein after the word segmentation corresponding to all the word segmentation controls of the first sliding track is taken as the selected text, the method further comprises:
    再次检测用户对所述分词控件的操作;Re-detecting the user's operation on the word segmentation control;
    当所述操作为滑动操作时,获取所述滑动操作对应的第五滑动轨迹;Obtaining a fifth sliding track corresponding to the sliding operation when the operation is a sliding operation;
    当所述第五滑动轨迹与所述第一滑动轨迹存在重合部分,且所述第五滑动轨迹中所述重合部分的滑动方向与所述第一滑动轨迹中所述重合部分的滑动方向相反,获取所述第一滑动轨迹中以及所述第五滑动轨迹中除去所述重合部分之外的第六滑动轨迹;When the fifth sliding track has a coincident portion with the first sliding track, and a sliding direction of the overlapping portion in the fifth sliding track is opposite to a sliding direction of the overlapping portion in the first sliding track, Obtaining a sixth sliding track in the first sliding track and in the fifth sliding track except the overlapping portion;
    将位于所述第六滑动轨迹的所有分词控件对应的分词作为当前被选取的文字。The word segment corresponding to all the word segmentation controls located in the sixth sliding track is taken as the currently selected word.
  15. 根据权利要求1-14中任一项所述的方法,其特征在于,所述分词结果卡片还包括至少一个用于对所述被选取的文字进行编辑的编辑控件,所述方法还包括:The method according to any one of claims 1 to 14, wherein the word segmentation card further comprises at least one editing control for editing the selected text, the method further comprising:
    获取所述用户对所述编辑控件的选取操作;Obtaining a selection operation of the edit control by the user;
    响应所述选取操作,对所述被选取的文字进行相应的编辑处理。In response to the selecting operation, the selected text is subjected to corresponding editing processing.
  16. 根据权利要求15所述的方法,其特征在于,所述编辑控件包括复制控件、翻译控件以及搜索控件中的至少一种,所述复制控件用于对所述被选取的文字进行复制操作,所述翻译控件用于对所述被选取的文字进行翻译操作,所述搜索控件用于对所述被选取的文字进行信息搜索。The method according to claim 15, wherein the editing control comprises at least one of a copy control, a translation control, and a search control, wherein the copy control is configured to perform a copy operation on the selected text. The translation control is configured to perform a translation operation on the selected text, and the search control is configured to perform information search on the selected text.
  17. 一种文字处理装置,其特征在于,所述装置包括:分词执行模块、分词显示模块、操作检测模块以及文字选取模块,其中,A word processing device, comprising: a word segmentation execution module, a word segmentation display module, an operation detection module, and a text selection module, wherein
    所述分词执行模块用于对当前页面内容中的文本进行识别并进行分词;The word segmentation execution module is configured to identify and segment the text in the current page content;
    所述分词显示模块用于显示分词结果卡片,所述分词结果卡片包括与所述文本中的分词对应的分词控件;The word segmentation display module is configured to display a word segmentation result card, and the word segmentation result card includes a word segmentation control corresponding to the word segmentation in the text;
    所述操作检测模块用于检测用户对所述分词控件的操作;The operation detecting module is configured to detect a user operation on the word segmentation control;
    所述文字选取模块用于当所述操作为滑动操作时,获取所述滑动操作对应的第一滑动轨迹,将位于所述第一滑动轨迹的所有分词控件对应的分词作为被选取的文字。The text selection module is configured to acquire a first sliding track corresponding to the sliding operation when the operation is a sliding operation, and use a word segment corresponding to all the word segmentation controls of the first sliding track as the selected character.
  18. 根据权利要求17所述的装置,其特征在于,所述分词结果包括所述文本的所有分词,每个分词对应一个分词控件,所述文字选取模块包括:控件确定单元、分词获取单元以及分词排序单元,其中,The device according to claim 17, wherein the word segmentation result includes all word segments of the text, each word segment corresponds to a word segmentation control, and the word selection module comprises: a control determining unit, a word segmentation acquiring unit, and a word segmentation Unit, where
    所述控件确定单元用于确定分词控件中所述第一滑动轨迹经过的分词控件;The control determining unit is configured to determine a word segmentation control that the first sliding track passes through in the word segmentation control;
    所述分词获取单元用于获取所述第一滑动轨迹经过的分词控件对应的分词;The word segmentation unit is configured to acquire a word segment corresponding to the word segmentation control through which the first sliding track passes;
    所述分词排序单元用于将所述分词控件对应的分词按照第一滑动轨迹经过的顺序进行排序,得到被选取的文字。The word segmentation unit is configured to sort the word segments corresponding to the word segmentation control according to the order in which the first sliding track passes, to obtain the selected characters.
  19. 一种移动终端,其特征在于,包括触摸屏、存储器以及处理器,所述触摸屏与所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-16任一项所述的方法。A mobile terminal, comprising: a touch screen, a memory, and a processor, the touch screen and the memory being coupled to the processor, the memory storing instructions when the instructions are executed by the processor The processor performs the method of any of claims 1-16.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-16任一项所述的方法。A computer readable storage medium, characterized in that the computer readable storage medium stores program code, the program code being operative by a processor to perform the method of any one of claims 1-16 .
PCT/CN2019/081774 2018-04-18 2019-04-08 Word processing method and apparatus, and mobile terminal and storage medium WO2019201109A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810350862.5A CN108763193A (en) 2018-04-18 2018-04-18 Literal processing method, device, mobile terminal and storage medium
CN201810350862.5 2018-04-18

Publications (1)

Publication Number Publication Date
WO2019201109A1 true WO2019201109A1 (en) 2019-10-24

Family

ID=64011107

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/081774 WO2019201109A1 (en) 2018-04-18 2019-04-08 Word processing method and apparatus, and mobile terminal and storage medium

Country Status (2)

Country Link
CN (1) CN108763193A (en)
WO (1) WO2019201109A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763193A (en) * 2018-04-18 2018-11-06 Oppo广东移动通信有限公司 Literal processing method, device, mobile terminal and storage medium
CN110536018A (en) * 2019-09-02 2019-12-03 深圳市万普拉斯科技有限公司 Information extracting method, device, electronic equipment and storage medium
CN110691028B (en) * 2019-09-16 2022-07-08 腾讯科技(深圳)有限公司 Message processing method, device, terminal and storage medium
CN114063854A (en) * 2021-11-24 2022-02-18 维沃移动通信有限公司 File editing processing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281394A (en) * 2013-07-05 2015-01-14 腾讯科技(深圳)有限公司 Method and device for intelligently selecting words
CN105653160A (en) * 2016-02-25 2016-06-08 努比亚技术有限公司 Text determining method and terminal
CN106325688A (en) * 2016-08-17 2017-01-11 北京锤子数码科技有限公司 Text processing method and device
CN106484266A (en) * 2016-10-18 2017-03-08 北京锤子数码科技有限公司 A kind of text handling method and device
CN108763193A (en) * 2018-04-18 2018-11-06 Oppo广东移动通信有限公司 Literal processing method, device, mobile terminal and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440096A (en) * 2013-07-29 2013-12-11 宇龙计算机通信科技(深圳)有限公司 Batch operation method and communication terminal
CN106201294A (en) * 2015-04-29 2016-12-07 中兴通讯股份有限公司 Text selection method and apparatus, text handling method and device
CN106648436A (en) * 2016-12-30 2017-05-10 维沃移动通信有限公司 Text message processing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281394A (en) * 2013-07-05 2015-01-14 腾讯科技(深圳)有限公司 Method and device for intelligently selecting words
CN105653160A (en) * 2016-02-25 2016-06-08 努比亚技术有限公司 Text determining method and terminal
CN106325688A (en) * 2016-08-17 2017-01-11 北京锤子数码科技有限公司 Text processing method and device
CN106484266A (en) * 2016-10-18 2017-03-08 北京锤子数码科技有限公司 A kind of text handling method and device
CN108763193A (en) * 2018-04-18 2018-11-06 Oppo广东移动通信有限公司 Literal processing method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN108763193A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
WO2019233212A1 (en) Text identification method and device, mobile terminal, and storage medium
US11237703B2 (en) Method for user-operation mode selection and terminals
US20200159392A1 (en) Method of processing content and electronic device thereof
WO2019201109A1 (en) Word processing method and apparatus, and mobile terminal and storage medium
AU2014201716B2 (en) Apparatus and method for providing additional information by using caller phone number
CN108494947B (en) Image sharing method and mobile terminal
CN109101498B (en) Translation method and device and mobile terminal
CN108958576B (en) Content identification method and device and mobile terminal
CN108932102B (en) Data processing method and device and mobile terminal
CN104423581A (en) Mobile terminal and controlling method thereof
CN108646994B (en) Information processing method and device, mobile terminal and storage medium
CN108762859B (en) Wallpaper display method and device, mobile terminal and storage medium
KR20140127031A (en) Method for wireless connection using out-of-band channel, machine-readable storage medium and electronic device
CN108388671B (en) Information sharing method and device, mobile terminal and computer readable medium
WO2019218843A1 (en) Key configuration method and device, and mobile terminal and storage medium
CN109032491B (en) Data processing method and device and mobile terminal
CN109085982B (en) Content identification method and device and mobile terminal
KR20140136349A (en) Apparatus saving conversation and method thereof
WO2019223484A1 (en) Information display method and apparatus, and mobile terminal and storage medium
US10963121B2 (en) Information display method, apparatus and mobile terminal
WO2019228370A1 (en) Data processing method and device, mobile terminal and storage medium
CN109062648B (en) Information processing method and device, mobile terminal and storage medium
CN108803961B (en) Data processing method and device and mobile terminal
CN110932964A (en) Information processing method and device
KR20150007723A (en) Mobile apparutus and control method thereof

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

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

Country of ref document: EP

Kind code of ref document: A1