CN107391017B - Word processing method, device, mobile terminal and storage medium - Google Patents

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

Info

Publication number
CN107391017B
CN107391017B CN201710596079.2A CN201710596079A CN107391017B CN 107391017 B CN107391017 B CN 107391017B CN 201710596079 A CN201710596079 A CN 201710596079A CN 107391017 B CN107391017 B CN 107391017B
Authority
CN
China
Prior art keywords
preset graph
preset
characters
area
graph
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710596079.2A
Other languages
Chinese (zh)
Other versions
CN107391017A (en
Inventor
张伟超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710596079.2A priority Critical patent/CN107391017B/en
Publication of CN107391017A publication Critical patent/CN107391017A/en
Application granted granted Critical
Publication of CN107391017B publication Critical patent/CN107391017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a word processing method, a word processing device, a mobile terminal and a storage medium, wherein the method comprises the steps of calling a view control to display a preset graph in a movable window interface displayed by a touch screen after monitoring that a target application program is started, wherein the target application program comprises an application program which is used for displaying words and exists in the interface; after the preset graph is selected, controlling the preset graph to move according to the detected sliding operation, and acquiring characters in the area where the preset graph is located when the preset graph is moved; and inquiring the acquired characters. The scheme improves the word processing efficiency and reduces the power consumption of the mobile terminal.

Description

Word processing method, device, mobile terminal and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a word processing method, a word processing device, a mobile terminal and a storage medium.
Background
With the increasing popularity of mobile terminals, more and more users use mobile terminals to perform various functions to meet their own needs, such as reading text, watching video, listening to music, playing games, etc. In the prior art, when a user reads characters, an effective character processing means is lacked, and the character processing means has defects.
Disclosure of Invention
The invention provides a word processing method, a word processing device, a mobile terminal and a storage medium, which improve the word processing efficiency and reduce the power consumption of the mobile terminal.
In a first aspect, an embodiment of the present invention provides a word processing method, including:
after the target application program is monitored to be started, calling a view control to display a preset graph in a movable window interface displayed by a touch screen, wherein the target application program comprises an application program which displays characters in the interface;
after the preset graph is selected, controlling the preset graph to move according to the detected sliding operation, and acquiring characters in the area where the preset graph is located when the preset graph is moved;
and inquiring the acquired characters.
In a second aspect, an embodiment of the present invention further provides a word processing apparatus, including:
the image display module is used for calling the view control to display a preset image in an active window interface displayed by the touch screen after monitoring that a target application program is started, wherein the target application program comprises an application program which displays characters in the interface;
the processing module is used for controlling the preset graph to move according to the detected sliding operation after the preset graph is selected, and acquiring characters in the area where the preset graph is located when the preset graph is moved;
and the query module is used for querying the acquired characters.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing a word processing method according to an embodiment of the invention when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a storage medium containing mobile terminal executable instructions, where the mobile terminal executable instructions are used to execute the word processing method according to the embodiment of the present invention when executed by a mobile terminal processor.
According to the technical scheme provided by the embodiment of the invention, after the target application program is monitored to be started, the view control is called to display a preset graph in the active window interface displayed by the touch screen, when the preset graph is selected, the preset graph is controlled to move according to the detected sliding operation, when the preset graph is moved, the characters in the area where the preset graph is located are obtained, the obtained characters are inquired, the character processing efficiency is improved, and the power consumption of the mobile terminal is reduced.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1A is a flow chart of a method for word processing according to an embodiment of the present invention;
fig. 1B is a schematic diagram illustrating a preset graph displayed after it is detected that a target application is started according to an embodiment of the present invention;
fig. 1C is a schematic diagram illustrating a determination of an area where a preset pattern is located according to an embodiment of the present invention;
FIG. 2 is a flow chart of another word processing method provided by an embodiment of the present invention;
FIG. 3 is a flow chart of another word processing method provided by an embodiment of the present invention;
FIG. 4 is a block diagram of a word processing device according to an embodiment of the present invention;
fig. 5A is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5B is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1A is a flowchart of a word processing method according to an embodiment of the present invention, where this embodiment is applicable to a case where a mobile terminal displays words, and the method may be executed by the mobile terminal according to the embodiment of the present invention, and a word processing device of the mobile terminal may be implemented in a software and/or hardware manner, as shown in fig. 1A, a specific scheme provided in this embodiment is as follows:
s101, after the target application program is monitored to be started, calling a view control to display a preset graph in a movable window interface displayed by a touch screen.
In one embodiment, the target application includes: an application program for displaying characters, an application program added to a setting list or an application program with the category of an electronic book or a news category exists in the interface. For example, the application program for displaying the text in the interface can be a microblog client program or a foreign language bar client program, and when the application program is started, the scheme can be correspondingly and automatically started to process the content needing the text processing. The application program added to the setting list may be an application program which is manually added by the user and needs to be subjected to word processing after being started, for example, if the user adds the notepad application program recorded with english to the setting list, the application program in the setting list automatically starts the word processing function provided by the scheme after being started. The application program of which the category is an electronic book or a news category can be an internet news client program, a BBC broadcast client program and an english magazine client program. In the embodiment, the word processing function and the target application program are bound, and the word processing function and the target application program are automatically opened along with the opening of the target application program, so that a user does not need to additionally perform the opening operation of the function.
In one embodiment, after the target application program is monitored to be started, the view control is called to display a preset graph in an active window interface displayed by the touch screen. It should be noted that, in the present solution, a preset graphic may also be displayed on the active window interface of the display screen with the projection function. As shown in fig. 1B, fig. 1B is a schematic diagram illustrating that a preset graph is displayed after a target application is monitored to be started according to an embodiment of the present invention, where 1011 is the displayed preset graph, and the preset graph is a self-defined arrow control, and may also be a square matrix control, a small hand control, or the like. Specifically, the process of generating the preset graph may be: calling a Layout control in an android system, creating a control class to realize a self-defined preset graph, dynamically adding the preset graph in a linear Layout control of an active window, and initializing a linear Layout list so as to display the preset graph in the active window in a suspended manner. In another embodiment, the preset pattern is in a hidden state, and the preset pattern is displayed at a click position after the screen is detected to be clicked.
In one embodiment, the initial size of the preset graph is automatically adjusted according to the size of the characters displayed in the active window interface. When the characters displayed in the active window interface are large, the initial size of the corresponding preset graph is also large, and when the characters displayed in the active window interface are small, the characters to be processed are selected more accurately, the characters which do not need to be processed are prevented from being selected and processed, and the initial size of the corresponding preset graph is reduced.
In one embodiment, the shape of the preset graph is stretched or shrunk according to the received two-finger control command. For example, when the text to be processed is a whole line or a whole segment of text, the operation of the two fingers of the user may be detected, and when a stretching instruction or a shrinking instruction is detected, the shape of the preset graph is correspondingly changed to cover the whole line or the whole segment of text, so as to process the covered text.
In one embodiment, the invoking the view control to display a preset graphic in an active window interface displayed on a touch screen includes: calling a view control to display a preset graph at a corner position in an active window interface displayed by a touch screen; correspondingly, after the obtained characters are queried, the method further comprises the following steps: and controlling the preset graph to return to the corner position. For example, the corner position may be any one of four corners (upper left corner, lower left corner, upper right corner and lower right corner) of the display interface on the touch screen display screen, that is, the initial position of the preset graphic is displayed at the corner to avoid covering the text portion, and after the text processing is completed, the corresponding preset graphic feeds back the initial corner position.
S102, after the preset graph is selected, the preset graph is controlled to move according to the detected sliding operation, and when the preset graph is moved, characters in the area where the preset graph is located are obtained.
In one embodiment, the touch of the screen is monitored, and when the area where the preset graph is located is detected to be clicked, the preset graph is set to be in a selected state and can move correspondingly along with the detected sliding operation on the screen. Exemplarily, event monitoring is performed through a setOnTouchListener monitor in an Android system, and a sliding direction is determined by judging the positions of KeyDown and KeyUp so as to control a preset graph to perform corresponding displacement; the gesture detector may also be constructed, for example, a GestureDetector mygegesture-new geturedetector (this), and the position and distance are determined according to the pressing and sliding parameters in the MotionEvent by calling an onFling method to determine the sliding direction, speed, and the like, so as to correspondingly control the preset graph to perform corresponding displacement.
In one embodiment, when the movement of the preset graph is finished, the text of the area where the preset graph is located is acquired, wherein the condition for judging the movement of the preset graph is as follows: and (4) presetting the graph to be out of the selected state, or presetting the graph to stay for a preset time. The preset time period may be 1 second. Specifically, whether the preset graph is out of the selected state or not is judged, and the click state of the preset graph can be monitored through the ontouchEvent in the activity component.
In one embodiment, when the preset graph is detected to be out of the selected state, optical character recognition is carried out on the area where the preset graph is located, the recognized characters are obtained, wherein the optical character recognition is that bright and dark detection is carried out on the part where the area is located to determine the shape of the characters, and then the determined shape of the characters is converted into the computer characters according to a character recognition method. In another embodiment, when the retention time of the preset graph is detected to meet the preset time length, image recognition is performed on the area where the preset graph is located, and recognized characters are obtained. The determination of the area where the preset pattern is located may be to detect whether the preset pattern is covered with characters (through optical character or image recognition), and if the preset pattern is covered with characters, determine the area occupied by the complete character as the area where the preset pattern is located, as shown in fig. 1C, where fig. 1C is a schematic diagram of determining the area where the preset pattern is located according to the embodiment of the present invention, and a rectangular area indicated by 1021 in the diagram is an area that needs to be recognized. In another embodiment, the whole line or a plurality of lines of the position of the preset graph can be determined as the area needing to be identified so as to identify the whole sentence or the whole text.
S103, inquiring the acquired characters.
The step of inquiring the obtained characters comprises the step of calling software through a preset interface to translate or explain the obtained characters.
In one embodiment, when translating the acquired text, the corresponding invoked software may be translation software, which may be a translation software client installed in the mobile terminal, such as a lexicon, a hectic translation, and the like, or a translation software service provided in a network, such as google network translation. And displaying the translation result in a newly popped text box on the current interface of the mobile terminal. The translation result may be translated into the text contents with different lengths according to the different recognition areas provided in S102, that is, the translation may be performed for a single character (chinese character), a character string (english), or may be performed for the whole sentence.
According to the above content, the word processing method provided by the scheme can automatically start a preset graph after the target application program is started, and can correspondingly translate or interpret the words in the area by dragging the preset graph, so that the word processing efficiency is improved, a large amount of time is saved for a user, and the power consumption of the terminal equipment is correspondingly saved.
In another embodiment, instead of selecting a word processing region by a drag of a user by displaying a preset graphic, the selected region may be word processed according to a preset operation manner, which may be a double-click operation, a lateral sliding selection operation, or the like.
Fig. 2 is a flowchart of another word processing method according to an embodiment of the present invention, where on the basis of the above embodiment, optionally, when the word processing mode is translation processing, before invoking translation software through a preset interface to translate the obtained word, the method further includes:
acquiring a language type used in a current system through a system interface;
correspondingly, the calling translation software through the preset interface to translate the acquired characters comprises the following steps:
and calling translation software through a preset interface to translate the acquired characters into characters corresponding to the language type used by the current system.
Based on the above optimization, as shown in fig. 2, the technical solution provided in this embodiment is specifically as follows:
s201, after the target application program is monitored to be started, calling a view control to display a preset graph in a movable window interface displayed by a touch screen.
S202, after the preset graph is selected, the preset graph is controlled to move according to the detected sliding operation, and when the preset graph is moved, the characters in the area where the preset graph is located are obtained.
S203, the language type used in the current system is obtained through the system interface, the translation software is called through the preset interface to translate the obtained characters into characters corresponding to the language type used by the current system, and the translation result is displayed.
In one embodiment, the language type used by the current system of the mobile terminal is the native language of the user, i.e. the translation process is to translate foreign language into the native language of the user to meet the translation requirement of the user. In the embodiment, the characters which are not understood by the user and need to be translated can be automatically converted into the language type used by the system, if the current language type of the mobile terminal is Chinese (simplified), the region where the preset graph is located is identified to obtain the character characters, and then the character characters are automatically translated into Chinese (simplified) through the translation software, so that the operation steps of the user are reduced, and the character processing efficiency is further improved. Specifically, the process of determining the current language type of the mobile terminal is as follows: the method comprises the steps of obtaining a language type used in the current system through a getLanguage method in an android system locale class, wherein the language type comprises at least one of simplified Chinese, traditional Chinese, English, Japanese, Korean or Russian.
The embodiment provides a word processing method, which can automatically recognize the word content of a display interface in the process of executing word translation, and translate the recognized word content into the language type used by the mobile terminal after acquiring the recognized word content, so that a user does not need to manually click the language type to be translated in advance, and the translation efficiency is further improved.
Fig. 3 is a flowchart of another word processing method according to an embodiment of the present invention, where on the basis of the above embodiment, optionally, invoking translation software through a preset interface to translate an acquired word into a word corresponding to a language type used by a current system includes:
creating an HttpGet object, wherein parameters of the HttpGet object comprise a webpage address corresponding to translation software, and sending an http get request by using an execute method to call the translation software;
and sending the obtained characters and the type of the translation text to translation software, and receiving the translation text sent by the translation software through a translation interface.
Based on the above optimization, as shown in fig. 3, the technical solution provided by this embodiment is specifically as follows:
s301, after the target application program is monitored to be started, calling a view control to display a preset graph in a movable window interface displayed by a touch screen.
S302, after the preset graph is selected, the preset graph is controlled to move according to the detected sliding operation, and when the preset graph is moved, the characters in the area where the preset graph is located are obtained.
S303, creating an HttpGet object, wherein parameters of the HttpGet object comprise a webpage address corresponding to translation software, sending an http get request by using an execute method to call the translation software, sending the obtained characters and the type of the translation text to the translation software, receiving the translation text sent by the translation software through a translation interface, and displaying a translation result.
In one embodiment, the translation service is obtained over a network. Specifically, the data interface of the obtained translation result is:
Figure BDA0001355932810000071
Figure BDA0001355932810000081
the embodiment provides a word processing method, which is characterized in that no translation software is required to be installed on equipment, no translation content is required to be input and translated by opening a browser, a preset graph is displayed in a movable window interface displayed by a touch screen by calling a view control after a target application program is monitored to be started, and the word characters in the area are identified according to the position of the preset graph and then automatically translated, so that the translation step is simplified, and no translation software is required to be installed.
Fig. 4 is a block diagram of a word processing device according to an embodiment of the present invention, where the word processing device is configured to execute the word processing method according to the embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 4, the apparatus specifically includes: a graphical display module 401, a processing module 402, and a query module 403.
The graphic display module 401 is configured to call a view control to display a preset graphic in an active window interface displayed by a touch screen after it is monitored that a target application program is started, where the target application program includes an application program that displays text in the interface;
a processing module 402, configured to control the preset graph to move according to the detected sliding operation after the preset graph is selected, and obtain a text in an area where the preset graph is located when the preset graph is moved;
and an inquiry module 403, configured to inquire the obtained text.
According to the technical scheme, after the target application program is monitored to be started, the view control is called to display a preset graph in the active window interface displayed by the touch screen, when the preset graph is selected, the preset graph is controlled to move according to detected sliding operation, when the preset graph is moved, characters in the area where the preset graph is located are obtained, the obtained characters are inquired, the character processing efficiency is improved, and the power consumption of the mobile terminal is reduced.
Optionally, the processing module 402 is specifically configured to:
when the preset graph is detected to be out of the selected state, carrying out optical character recognition on the area where the preset graph is located, and obtaining recognized characters; or
And when the preset graph retention time is detected to meet the preset time length, carrying out image recognition on the area where the preset graph is located, and acquiring recognized characters.
Optionally, the query module 403 is specifically configured to: and calling software through a preset interface to translate or interpret the acquired characters.
Optionally, the initial size of the preset graph may be automatically adjusted according to the size of the text displayed in the active window interface. Optionally, the shape of the preset graph may be stretched or shrunk according to the received two-finger control command.
Optionally, the graphic display module 401 is specifically configured to: calling a view control to display a preset graph at a corner position in an active window interface displayed by a touch screen; after the obtained words are queried, the method further comprises the following steps: and controlling the preset graph to return to the corner position.
Optionally, the graphic display module 401 is specifically configured to: calling a Layout control in the android system, and creating a control class to realize a self-defined preset graph; dynamically adding the preset graph in a LinearLayout control of the active window and initializing a LinearLayout list so as to display the preset graph in a floating mode in an active window interface displayed by the touch screen.
In this embodiment, a mobile terminal is provided on the basis of the foregoing embodiments, and fig. 5A is a schematic structural diagram of a mobile terminal provided in an embodiment of the present invention, as shown in fig. 5A, the mobile terminal 500 includes a memory 501 and a processor 502, where the memory 501 stores a computer program that can be executed on the processor, and the processor 502 executes the computer program to implement the following steps:
after the target application program is monitored to be started, calling a view control to display a preset graph in a movable window interface displayed by a touch screen, wherein the target application program comprises an application program which displays characters in the interface;
after the preset graph is selected, controlling the preset graph to move according to the detected sliding operation, and acquiring characters in the area where the preset graph is located when the preset graph is moved;
and inquiring the acquired characters.
The present embodiment provides a mobile terminal on the basis of the foregoing embodiments, and the mobile terminal may include the word processing apparatus provided by the present invention. Fig. 5B is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention, and as shown in fig. 5B, the mobile terminal may include: memory 501, processor (CPU) 502, peripheral interfaces 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speaker 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.
It should be understood that the illustrated mobile terminal 500 is merely one example of a mobile terminal and that the mobile terminal 500 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a mobile terminal for rights management of multiple applications provided in this embodiment, where the mobile terminal is a smart phone as an example.
A memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 512, which touch screen 512 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
The word processing device of the mobile terminal and the mobile terminal provided in the above embodiments can execute the word processing method of the mobile terminal provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For details of the mobile terminal, reference may be made to the word processing method of the mobile terminal according to any embodiment of the present invention.
An embodiment of the present invention further provides a storage medium containing mobile terminal executable instructions, where the mobile terminal executable instructions are used for executing a word processing method when executed by a mobile terminal processor, and the method includes:
after the target application program is monitored to be started, calling a view control to display a preset graph in a movable window interface displayed by a touch screen, wherein the target application program comprises an application program which displays characters in the interface;
after the preset graph is selected, controlling the preset graph to move according to the detected sliding operation, and acquiring characters in the area where the preset graph is located when the preset graph is moved;
and inquiring the acquired characters.
Optionally, when the movement of the preset graph is finished, the obtaining of the text of the area where the preset graph is located includes:
when the preset graph is detected to be out of the selected state, carrying out optical character recognition on the area where the preset graph is located, and obtaining recognized characters; or
And when the preset graph retention time is detected to meet the preset time length, carrying out image recognition on the area where the preset graph is located, and acquiring recognized characters.
Optionally, the querying the obtained text includes:
and calling software through a preset interface to translate or interpret the acquired characters.
Optionally, the initial size of the preset graph is automatically adjusted according to the size of the characters displayed in the active window interface.
Optionally, the shape of the preset graph is stretched or shrunk according to the received two-finger control instruction.
Optionally, the invoking the view control to display a preset graphic in an active window interface displayed by the touch screen includes:
calling a view control to display a preset graph at a corner position in an active window interface displayed by a touch screen;
correspondingly, after the obtained characters are queried, the method further comprises the following steps:
and controlling the preset graph to return to the corner position.
Optionally, the invoking the view control to display a preset graphic in an active window interface displayed by the touch screen includes:
calling a Layout control in the android system, and creating a control class to realize a self-defined preset graph;
dynamically adding the preset graph in a LinearLayout control of the active window and initializing a LinearLayout list so as to display the preset graph in a floating mode in an active window interface displayed by the touch screen.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the word processing method described above, and may also execute the related operations in the word processing method provided by any embodiment of the present invention.
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A method of word processing, comprising:
after the opening of a target application program is monitored, calling a view control to form a preset graph in a movable window interface displayed by a touch screen, wherein the preset graph is in a hidden state, and displaying the preset graph at a click position of the touch screen after the touch screen is clicked, and the target application program comprises an application program which displays characters in the interface;
after the preset graph is selected, controlling the preset graph to move according to the detected sliding operation, and acquiring characters in the area where the preset graph is located when the preset graph is moved;
inquiring the acquired characters;
wherein, obtaining the text of the area where the preset graph is located comprises:
determining the whole line or a plurality of lines of the position of a preset graph as the area of the preset graph, and carrying out image recognition on the area of the preset graph to obtain a recognized whole sentence or a recognized whole segment of characters;
or determining the area occupied by the complete character covered by the preset graph as the area where the preset graph is located, and performing image recognition on the area where the preset graph is located to obtain characters in the area where the preset graph is located;
and the initial size of the preset graph is automatically adjusted according to the size of the characters displayed in the active window interface.
2. The method of claim 1, wherein obtaining the text of the area where the preset graphic is located when the preset graphic is moved to the end comprises:
when the preset graph is detected to be out of the selected state, carrying out optical character recognition on the area where the preset graph is located, and obtaining recognized characters; or
And when the preset graph retention time is detected to meet the preset duration, carrying out image recognition on the area where the preset graph is located, and obtaining recognized characters.
3. The method of claim 2, wherein the querying the obtained text comprises:
and calling software through a preset interface to translate or interpret the acquired characters.
4. The method of claim 1, wherein the shape of the predetermined pattern is stretched or shrunk according to the received two-finger control command.
5. The method of claim 4, wherein invoking the view control to display a predetermined graphic in an active window interface displayed on a touch screen comprises:
calling a view control to display a preset graph at a corner position in an active window interface displayed by a touch screen;
correspondingly, after the obtained characters are queried, the method further comprises the following steps:
and controlling the preset graph to return to the corner position.
6. The method according to any one of claims 1-5, wherein invoking the view control to display a preset graphic in an active window interface displayed on a touch screen comprises:
calling a Layout control in the android system, and creating a control class to realize a self-defined preset graph;
dynamically adding the preset graph in a LinearLayout control of the active window and initializing a LinearLayout list so as to display the preset graph in a floating mode in an active window interface displayed by the touch screen.
7. A word processing device, comprising:
the image display module is used for calling the view control to form a preset image in a movable window interface displayed by the touch screen after the opening of a target application program is monitored, wherein the preset image is in a hidden state, the preset image is displayed at the clicking position of the touch screen after the touch screen is clicked, and the target application program comprises an application program which displays characters in the interface;
the processing module is used for controlling the preset graph to move according to the detected sliding operation after the preset graph is selected, and acquiring characters in the area where the preset graph is located when the preset graph is moved;
wherein, obtaining the text of the area where the preset graph is located comprises:
determining the whole line or a plurality of lines of the position of a preset graph as the area of the preset graph, and carrying out image recognition on the area of the preset graph to obtain a recognized whole sentence or a recognized whole segment of characters;
or determining the area occupied by the complete character covered by the preset graph as the area where the preset graph is located, and performing image recognition on the area where the preset graph is located to obtain characters in the area where the preset graph is located;
the initial size of the preset graph is automatically adjusted according to the size of the characters displayed in the active window interface;
and the query module is used for querying the acquired characters.
8. A mobile terminal, comprising: processor, memory and computer program stored on the memory and executable on the processor, characterized in that the processor implements the word processing method according to any of claims 1-6 when executing the computer program.
9. A storage medium containing mobile terminal-executable instructions, which when executed by a mobile terminal processor, are for performing the word processing method of any of claims 1-6.
CN201710596079.2A 2017-07-20 2017-07-20 Word processing method, device, mobile terminal and storage medium Active CN107391017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710596079.2A CN107391017B (en) 2017-07-20 2017-07-20 Word processing method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710596079.2A CN107391017B (en) 2017-07-20 2017-07-20 Word processing method, device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107391017A CN107391017A (en) 2017-11-24
CN107391017B true CN107391017B (en) 2022-05-17

Family

ID=60337441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710596079.2A Active CN107391017B (en) 2017-07-20 2017-07-20 Word processing method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107391017B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002759A (en) * 2018-06-07 2018-12-14 Oppo广东移动通信有限公司 text recognition method, device, mobile terminal and storage medium
CN111401323A (en) * 2020-04-20 2020-07-10 Oppo广东移动通信有限公司 Character translation method, device, storage medium and electronic equipment
CN111708959A (en) * 2020-06-16 2020-09-25 Oppo广东移动通信有限公司 Page display method and device, storage medium and electronic equipment
CN112764634A (en) * 2021-01-22 2021-05-07 维沃移动通信有限公司 Content processing method and device
CN114553528B (en) * 2022-02-22 2024-04-19 成都睿智兴华信息技术有限公司 Internal and external network data safety transmission system and transmission method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662525A (en) * 2012-04-27 2012-09-12 上海量明科技发展有限公司 Method and terminal for carrying out screenshot operation through touch screen
WO2015037851A1 (en) * 2013-09-12 2015-03-19 삼성전자 주식회사 Screenshot processing device and method for same

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI114346B (en) * 2002-06-25 2004-09-30 Nokia Corp Method of identifying symbols and a portable electronic device
CN103455590B (en) * 2013-08-29 2017-05-31 百度在线网络技术(北京)有限公司 The method and apparatus retrieved in touch-screen equipment
CN105786930B (en) * 2014-12-26 2019-11-26 北京奇虎科技有限公司 Based on the searching method and device for touching interaction
CN105930147B (en) * 2016-04-13 2020-09-08 北京小米移动软件有限公司 Application function starting method and device
CN106951893A (en) * 2017-05-08 2017-07-14 奇酷互联网络科技(深圳)有限公司 Text information acquisition methods, device and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662525A (en) * 2012-04-27 2012-09-12 上海量明科技发展有限公司 Method and terminal for carrying out screenshot operation through touch screen
WO2015037851A1 (en) * 2013-09-12 2015-03-19 삼성전자 주식회사 Screenshot processing device and method for same

Also Published As

Publication number Publication date
CN107391017A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN107391017B (en) Word processing method, device, mobile terminal and storage medium
US11086663B2 (en) Preloading application using active window stack
CN106681635B (en) Split screen false touch prevention method and device and mobile terminal
CN108363593B (en) Application program preloading method and device, storage medium and terminal
CN108710513B (en) Application program starting method and device, storage medium and terminal
CN111149086B (en) Method for editing main screen, graphical user interface and electronic equipment
CN108710515B (en) Application preloading method and device, storage medium and terminal
CN108647052A (en) Application program preloads method, apparatus, storage medium and terminal
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
CN109840418B (en) Jump control method and device for application program, storage medium and terminal
CN108920070B (en) Screen splitting method and device based on special-shaped display screen, storage medium and mobile terminal
CN107678823A (en) Control method, device and the storage medium and mobile terminal of mobile terminal application
CN110865734B (en) Target object display method and device, electronic equipment and computer readable medium
CN106681817B (en) Terminal control method and terminal
CN109284142A (en) File preloads method, apparatus, electronic equipment and computer readable storage medium
CN108780400B (en) Data processing method and electronic equipment
CN103324438A (en) Electronic equipment, and page turning method and page turning device for browser
CN106250374B (en) Word-taking translation method and system
US11048568B2 (en) Broadcast sending control method and apparatus, storage medium, and electronic device
CN107589954B (en) Application program updating method and device, terminal and computer readable storage medium
CN107862728B (en) Picture label adding method and device and computer readable storage medium
CN114398016B (en) Interface display method and device
CN107765956B (en) User interface editing method, device, terminal and computer readable storage medium
CN107844554B (en) Application recommendation method and device, terminal equipment and storage medium
CN116700853B (en) Page display method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant