CN116521037B - Word processing method and system - Google Patents

Word processing method and system Download PDF

Info

Publication number
CN116521037B
CN116521037B CN202310337041.9A CN202310337041A CN116521037B CN 116521037 B CN116521037 B CN 116521037B CN 202310337041 A CN202310337041 A CN 202310337041A CN 116521037 B CN116521037 B CN 116521037B
Authority
CN
China
Prior art keywords
text
text selection
area
touch
selection area
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
CN202310337041.9A
Other languages
Chinese (zh)
Other versions
CN116521037A (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.)
Shenzhen Sailing Weiye Technology Co ltd
Original Assignee
Shenzhen Sailing Weiye Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Sailing Weiye Technology Co ltd filed Critical Shenzhen Sailing Weiye Technology Co ltd
Priority to CN202310337041.9A priority Critical patent/CN116521037B/en
Publication of CN116521037A publication Critical patent/CN116521037A/en
Application granted granted Critical
Publication of CN116521037B publication Critical patent/CN116521037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Position Input By Displaying (AREA)

Abstract

The invention is applicable to the technical field of word processing, and particularly relates to a word processing method and a word processing system, wherein the method comprises the following steps: detecting a screen touch signal, and entering a word processing mode when a trigger instruction is detected; generating a touch operation area, performing touch monitoring to obtain touch monitoring data, and converting a cursor into a text selection area; controlling the text selection area to move, and selecting the characters covered by the text selection area according to the track slid by the text selection area to obtain a selected text; in the text selection process, the text displayed on the screen is switched. When the text selection is performed, the control area is arranged at a fixed position so as to indirectly control the text selection area, so that the problem of difficult selection caused by the fact that the view is blocked by the fingers of a user is avoided, the size of the text selection area is changed, the text selection can be selected according to the font size of the text, and the speed of text selection is improved.

Description

Word processing method and system
Technical Field
The invention belongs to the technical field of word processing, and particularly relates to a word processing method and a word processing system.
Background
Mobile device: also known as mobile devices, hand-held devices, etc., are pocket-sized computing devices, typically having a small display screen, touch input, or miniature keyboard.
In the current mobile device, the screen is smaller, the user can only select through touch control, the characters are smaller, the fingers of the user are relatively larger, and the characters are difficult to select conveniently.
Disclosure of Invention
The embodiment of the invention aims to provide a word processing method, which aims to solve the problems that in the current mobile equipment, a user can only select through touch control due to a smaller screen, words are smaller, fingers of the user are relatively larger, and words are difficult to select conveniently.
The embodiment of the invention is realized in such a way that the word processing method comprises the following steps:
detecting a screen touch signal, and entering a word processing mode when a trigger instruction is detected;
generating a touch operation area, performing touch monitoring on the touch operation area to obtain touch monitoring data, and converting a cursor into a text selection area;
controlling the text selection area to move according to the touch detection data, and selecting the characters covered by the text selection area according to the track slid by the text selection area to obtain a selected text;
in the text selection process, the text displayed on the screen is switched according to the position of the text selection area, whether a control action is triggered or not is monitored, and the text selection is paused according to the control action.
Preferably, the step of generating a touch operation area, performing touch monitoring on the touch operation area to obtain touch monitoring data, and converting a cursor into a text selection area specifically includes:
generating a touch operation area in an area below the screen, and receiving touch actions of a user in the touch operation area to obtain touch detection data, wherein the touch actions comprise sliding in the touch operation area and clicking the touch operation area;
recognizing the position of a current cursor, and switching the cursor into a text selection area, wherein the initial shape of the text selection area is a preset shape;
and receiving a user operation instruction, and carrying out shape modification on the text selection area to replace the original cursor by the modified text selection area.
Preferably, the step of controlling the movement of the text selection area according to the touch detection data, and selecting the text covered by the text selection area according to the track slid by the text selection area to obtain the selected text specifically includes:
determining pixel areas contacted between a user and a touch operation area at each moment according to touch detection data;
determining a region center according to the pixel region, and selecting a moving track of the region by taking a pixel corresponding to the region center as a text;
and (3) moving the text selection area according to the movement track, judging whether each text is completely covered by the text selection area in the moving process, and if so, inputting the text into the selected text.
Preferably, in the text selection process, the text displayed on the screen is switched according to the position of the text selection area, whether a control action is triggered or not is monitored, and the text selection is paused according to the control action, which specifically comprises the following steps:
identifying the center position of a text selection area in real time, and switching pictures when the center position exceeds the preset range of a screen;
in the picture switching process, keeping the relative rest between the text selection area and the text;
and monitoring whether a control action occurs in real time, and if the control action occurs, tentatively selecting the text until the control action is detected.
Preferably, the control action is double-click of the touch operation area.
Preferably, the preset shape is a circle.
It is another object of an embodiment of the present invention to provide a word processing system, the system including:
the signal detection module is used for detecting a screen touch signal, and entering a word processing mode when a trigger instruction is detected;
the touch data monitoring module is used for generating a touch operation area, carrying out touch monitoring on the touch operation area to obtain touch monitoring data, and converting a cursor into a text selection area;
the text selection module is used for controlling the text selection area to move according to the touch detection data, and selecting the characters covered by the text selection area according to the track slid by the text selection area to obtain a selected text;
and the picture control module is used for switching the text displayed on the screen according to the position of the text selection area in the text selection process, monitoring whether to trigger a control action, and suspending the text selection according to a control brake.
Preferably, the touch data monitoring module includes:
the data recording unit is used for generating a touch operation area in the area below the screen, receiving touch actions of a user in the touch operation area, and obtaining touch detection data, wherein the touch actions comprise sliding in the touch operation area and clicking the touch operation area;
the cursor switching unit is used for identifying the position of the current cursor and switching the cursor into a text selection area, wherein the initial shape of the text selection area is a preset shape;
and the selection area modification unit is used for receiving the user operation instruction, and carrying out shape modification on the text selection area so as to replace the original cursor by the modified text selection area.
Preferably, the text selection module includes:
the touch information statistics unit is used for determining pixel areas contacted between the user and the touch operation area at each moment according to the touch detection data;
the track recognition unit is used for determining the center of the region according to the pixel region, and selecting a moving track of the region by taking the pixel corresponding to the center of the region as a text;
and the selection judging unit is used for moving the text selection area according to the movement track, judging whether each text is completely covered by the text selection area in the moving process, and if so, inputting the text into the selected text.
Preferably, the screen control module includes:
the text switching unit is used for identifying the center position of the text selection area in real time, and switching the picture when the center position exceeds the preset range of the screen;
a text control unit for keeping a relative rest between the text selection area and the text during the picture switching;
and the selection control unit is used for monitoring whether the control action occurs in real time, and if the control action occurs, the text is temporarily selected until the control action is detected.
The word processing method provided by the embodiment of the invention has the beneficial effects that: when the text is selected, the control area is arranged at a fixed position so as to indirectly control the text selection area, so that the problem of difficult selection caused by the shielding of the field of view formed by the fingers of a user is avoided, the size of the text selection area is changed, the text selection area can be selected according to the font size of the text, and the speed of text selection is improved.
Drawings
FIG. 1 is a flow chart of a word processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a step of generating a touch operation area, performing touch monitoring on the touch operation area to obtain touch monitoring data, and converting a cursor into a text selection area according to an embodiment of the present invention;
FIG. 3 is a flowchart showing steps for controlling a text selection area to move according to touch detection data, selecting a text covered by the text selection area according to a track slid by the text selection area, and obtaining a selected text according to the embodiment of the present invention;
fig. 4 is a flowchart of a step of switching a text displayed on a screen according to a position of a text selection area and monitoring whether to trigger a control action in a text selection process according to an embodiment of the present invention, and pausing the text selection according to a control action;
FIG. 5 is a block diagram of a word processing system according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a touch data monitoring module according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a text selection module according to an embodiment of the present invention;
fig. 8 is a block diagram of a frame control module according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, a flowchart of a word processing method according to an embodiment of the present invention is provided, where the method includes:
s100, detecting a screen touch signal, and entering a word processing mode when a trigger instruction is detected.
In the step, a screen touch signal is detected, real-time text detection is carried out on the screen, when the content displayed on the screen is text, a text selection button is displayed on the screen, if the text selection button is clicked, the text selection button is regarded as receiving a trigger instruction, a word processing mode is entered, and when the user motors the text selection button again, the word processing mode is exited.
And S200, generating a touch operation area, performing touch monitoring on the touch operation area to obtain touch monitoring data, and converting a cursor into a text selection area.
In the step, a touch operation area is generated, in the prior art, a user switches the position of a cursor through clicking, but when the font is small, the finger of the user is easy to form shielding, so that the position of the cursor cannot be accurately switched, and in the selection process, the user cannot select more or less frequently.
And S300, controlling the movement of the text selection area according to the touch detection data, and selecting the characters covered by the text selection area according to the track slid by the text selection area to obtain the selected text.
In this step, the text selection area is controlled to move according to the touch detection data, the touch detection data records the action of the user touching the touch operation area, the user will perform a sliding operation or a clicking operation after touching the touch operation area, the moving path is recorded, the text selection area is controlled to move according to the same moving path according to the moving path of the user in the touch operation area, that is, the user slides 100 pixels leftwards in the touch operation area, the text selection area slides 100 pixels leftwards synchronously, and in the sliding process, the text covered by the text selection area is selected, so as to obtain the selected text.
And S400, switching the text displayed on the screen according to the position of the text selection area in the text selection process, monitoring whether to trigger a control action, and suspending the text selection according to the control action.
In this step, in the text selection process, the text displayed on the screen is switched according to the position of the text selection area, when the text to be selected by the user is more, part of the text is not displayed in the current screen display area, at this time, the screen may be switched according to the position of the text selection area, specifically, the screen may be divided into four rectangular areas with the respective proportions of 20%, 40%, 20% and 20% according to the sequence from top to bottom, and the rectangular areas are respectively defined as a first area, a second area, a third area and a touch operation area, and the text selection area is only moved in the second area, when the text selection area is moved to the boundary of the first area or the third area, the content displayed on the screen is adjusted, that is, the text is adjusted upwards, or the text is adjusted downwards, so that the new text is displayed in the screen range for further selection by the user, and if the user needs to select a plurality of texts at intervals, the text selection can be paused or continued by triggering the control action.
As shown in fig. 2, as a preferred embodiment of the present invention, the steps of generating a touch operation area, performing touch monitoring on the touch operation area to obtain touch monitoring data, and converting a cursor into a text selection area specifically include:
s201, generating a touch operation area in the area below the screen, and receiving touch actions of a user in the touch operation area to obtain touch detection data, wherein the touch actions comprise sliding in the touch operation area and clicking the touch operation area.
In the step, a touch operation area is generated in an area below the screen, after the touch operation area is generated, the first area, the second area and the third area are synchronously generated, and in the selection process, a user directly touches the touch operation area, so that the action of the user touching the touch operation area is recorded, and touch detection data are obtained.
S202, recognizing the position of a current cursor, and switching the cursor into a text selection area, wherein the initial shape of the text selection area is a preset shape.
In this step, the current cursor position is identified, the original text selection cursor is a stroboscopic vertical line, which can only exist between the gaps between the characters, and for convenience of selection, the original text selection cursor is switched to a preset shape, specifically, may be a circle, and then the circular text selection area can be used for selecting the text.
S203, receiving a user operation instruction, and carrying out shape modification on the text selection area so as to replace the original cursor by the modified text selection area.
In this step, a user operation instruction is received, so that the user can change the shape of the text selection area according to the font size of the text, for example, the text selection area is changed into a rectangular area, and the side length of the rectangular area can be changed so as to facilitate selection, and the original cursor is replaced by the changed text selection area.
As shown in fig. 3, as a preferred embodiment of the present invention, the step of controlling the movement of the text selection area according to the touch detection data, and selecting the text covered by the text selection area according to the track on which the text selection area slides to obtain the selected text specifically includes:
s301, determining pixel areas contacted between a user and a touch operation area at each moment according to touch detection data.
In this step, the pixel area contacted between the user and the touch operation area at each moment is determined according to the touch detection data, when the user touches the touch operation area, different pressing forces will generate different contact areas with the screen, and then the number of pixels contacted by the user and the screen in real time is counted to obtain the pixel area.
S302, determining the center of the region according to the pixel region, and selecting the moving track of the region by taking the pixel corresponding to the center of the region as the text.
In this step, the center of the region is determined according to the pixel region, specifically, the coordinates of each pixel in the pixel region may be marked, specifically, a two-dimensional coordinate system is constructed by using the pixel distribution of the screen (with the resolution of n×m), for example, the first pixel in the lower left corner is (0, 0), then the coordinates of the pixel in the upper right corner are (n, m), the average value of the coordinates of each pixel region is calculated, the obtained coordinates are the center of the region, and the pixel corresponding to the center of the region is the moving track of the text selection region.
S303, moving the text selection area according to the movement track, judging whether each text is completely covered by the text selection area in the moving process, and if so, inputting the text into the selected text.
In the step, the text selection area is moved according to the movement track, and the center position of the text selection area is determined, and then the movement track is mapped to the center position of the text selection area, so that the effect that a user slides in the touch operation area to indirectly control the text selection area to synchronously move is achieved, in the moving process, whether each text is completely covered by the text selection area is judged, and if yes, the text is recorded into the selected text.
As shown in fig. 4, as a preferred embodiment of the present invention, in the text selection process, the text displayed on the screen is switched according to the position of the text selection area, and whether a control action is triggered is monitored, and the step of suspending the text selection according to the control action specifically includes:
s401, recognizing the center position of the text selection area in real time, and switching the picture when the center position exceeds the preset range of the screen.
S402, during the screen switching process, the relative rest between the text selection area and the text is maintained.
In this step, the center position of the text selection area is identified in real time, when the text selection area moves in the second area, the currently displayed picture of the screen is not updated, if the currently displayed picture moves to the boundary of the first area or the third area, the currently displayed text content of the screen is updated, and the relative rest between the text selection area and the text is maintained, i.e. the text moves upwards by N pixels, and the center position of the text selection area also moves upwards by N pixels.
S403, monitoring whether a control action occurs in real time, and if the control action occurs, suspending the selection of the text until the control action is detected.
In this step, whether a control action occurs is monitored in real time, specifically, the control action may be double-click, when double-click operation is detected, text selection is paused, at this time, the user may continue to control movement of the text selection area by sliding in the touch operation area, but in this process, text covered by the text selection area is not selected as selected text until double-click operation is detected again, and text selection is continued.
As shown in fig. 5, a word processing system according to an embodiment of the present invention includes:
the signal detection module 100 is configured to detect a screen touch signal, and enter a word processing mode when a trigger instruction is detected.
In the system, the signal detection module 100 detects a screen touch signal, performs real-time text detection on a screen, displays a text selection button on the screen when the content displayed on the screen is text, and if the text selection button is clicked, the user considers that a trigger instruction is received, enters a word processing mode, and exits the word processing mode when the user motors the text selection button again.
The touch data monitoring module 200 is configured to generate a touch operation area, perform touch monitoring on the touch operation area, obtain touch monitoring data, and convert a cursor into a text selection area.
In the system, the touch data monitoring module 200 generates a touch operation area, in the prior art, a user switches the position of a cursor through clicking, but when the font is small, the finger of the user is easy to form shielding, so that the position of the cursor cannot be accurately switched, and in the selection process, the user cannot select precisely, frequently select more or less, in the invention, a touch operation area is independently generated below a screen, the user can directly slide in the touch operation area to realize the purpose of controlling the cursor, a text selection area is generated according to the real-time position of the cursor, and in the selection process, the area slid by the text selection area is recorded to obtain touch monitoring data.
The text selection module 300 is configured to control the movement of the text selection area according to the touch detection data, and select the text covered by the text selection area according to the track slid by the text selection area, so as to obtain the selected text.
In the system, the text selection module 300 controls the text selection area to move according to the touch detection data, the touch detection data records the action of touching the touch operation area by the user, the user performs sliding operation or clicking operation after touching the touch operation area, the moving path is recorded, the text selection area is controlled to move according to the same moving path according to the moving path of the user in the touch operation area, namely, the user slides 100 pixels leftwards in the touch operation area, the text selection area also slides 100 pixels leftwards synchronously, and in the sliding process, the text covered by the text selection area is selected, so that the selected text is obtained.
The picture control module 400 is configured to switch the text displayed on the screen according to the position of the text selection area during text selection, monitor whether to trigger a control action, and pause text selection according to a control brake.
In this system, the screen control module 400 switches the text displayed on the screen according to the position of the text selection area in the text selection process, when the text to be selected by the user is more, part of the text is not displayed in the current screen display area, at this time, the screen may be switched according to the position of the text selection area, specifically, the screen may be divided into four rectangular areas with the ratio of 20%, 40%, 20% and 20% according to the sequence from top to bottom, and the rectangular areas are respectively defined as a first area, a second area, a third area and a touch operation area, and the text selection area only moves in the second area, when the text selection area moves to the boundary of the first area or the third area, the content displayed on the screen is adjusted, that is, the text is adjusted upwards, or the text is adjusted downwards, so that the new text is displayed in the screen area for further selection by the user, and if the user needs to select a plurality of texts at intervals, the text selection may be suspended or the text selection may be continued by triggering the control action.
As shown in fig. 6, as a preferred embodiment of the present invention, the touch data monitoring module 200 includes:
the data recording unit 201 is configured to generate a touch operation area in an area below the screen, and receive a touch action of the user in the touch operation area to obtain touch detection data, where the touch action includes sliding in the touch operation area and clicking on the touch operation area.
In this module, the data recording unit 201 generates a touch operation area in an area below the screen, and after generating the touch operation area, the first area, the second area and the third area are synchronously generated, and in the selection process, the user directly touches the touch operation area, so that the action of touching the touch operation area by the user is recorded, and touch detection data is obtained.
The cursor switching unit 202 is configured to identify a current position of the cursor, and switch the cursor to a text selection area, where an initial shape of the text selection area is a preset shape.
In this module, the cursor switching unit 202 identifies the current cursor position, the original text selection cursor is a stroboscopic vertical line, which can only exist between the gaps between the characters, and for convenience of selection, it is switched to a preset shape, specifically, may be a circle, and then the circular text selection area can be used for selecting the text.
The selection area modifying unit 203 is configured to receive a user operation instruction, modify the shape of the text selection area, and replace the original cursor with the modified text selection area.
In this module, the selection area modifying unit 203 receives a user operation instruction, so that, for convenience in selecting, the user may modify the shape of the text selection area according to the font size of the text, for example, modify the text selection area into a rectangular area, and also modify the side length of the rectangular area, so as to facilitate selection, so that the modified text selection area replaces the original cursor.
As shown in fig. 7, as a preferred embodiment of the present invention, the text selection module 300 includes:
the touch information statistics unit 301 is configured to determine, according to the touch detection data, a pixel area contacted between the user and the touch operation area at each moment.
In this module, the touch information statistics unit 301 determines the pixel areas contacted between the user and the touch operation area at each moment according to the touch detection data, when the user touches the touch operation area, different pressing forces will generate different contact areas with the screen, so that the number of pixels contacted by the user and the screen in real time is counted, and the pixel areas are obtained.
The track recognition unit 302 is configured to determine a region center according to the pixel region, and select a movement track of the region by using a pixel corresponding to the region center as a text.
In this module, the track identifying unit 302 determines the center of the area according to the pixel area, specifically, may perform coordinate marking on each pixel in the pixel area, specifically, construct a two-dimensional coordinate system according to the pixel distribution of the screen (with the resolution of n×m), for example, if the first pixel in the lower left corner is (0, 0), then the pixel coordinate in the upper right corner is (n, m), calculate the coordinate average value of each pixel area, and the obtained coordinate is the center of the area, and uses the pixel corresponding to the center of the area as the moving track of the text selection area.
And the selection determination unit 303 is configured to move the text selection area according to the movement track, and determine whether each text is completely covered by the text selection area during the movement process, and if so, enter the text into the selected text.
In this module, the selection decision unit 303 moves the text selection area according to the movement track, and similarly, determines the center position of the text selection area first, and then maps the movement track to the center position of the text selection area, so as to realize the effect that the user slides in the touch operation area to indirectly control the text selection area to move synchronously, and in the moving process, decides whether each text is completely covered by the text selection area, if so, inputs the text into the selected text.
As shown in fig. 8, as a preferred embodiment of the present invention, the screen control module 400 includes:
the text switching unit 401 is configured to identify the center position of the text selection area in real time, and perform screen switching when the center position exceeds a preset range of the screen.
A text control unit 402 for keeping the text selection area and the text relatively still during the picture switching.
In this module, the text switching unit 401 identifies the center position of the text selection area in real time, does not update the currently displayed picture of the screen when it moves in the second area, updates the currently displayed text content of the screen when it moves to the boundary of the first area or the third area, and keeps the relative rest between the text selection area and the text, i.e., the text moves up by N pixels, and the center position of the text selection area also moves up by N pixels.
The selection control unit 403 is configured to monitor whether a control action occurs in real time, and if the control action occurs, tentatively select the text until the control action is detected.
In the module, whether a control action occurs is monitored in real time, specifically, the control action can be double-click, when double-click operation is detected, text selection is paused, at this time, a user can continue to control the text selection area to move by sliding in the touch operation area, but in the process, the text covered by the text selection area cannot be selected as the selected text until double-click operation is detected again, and text selection is continued.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (4)

1. A method of word processing, the method comprising:
detecting a screen touch signal, and entering a word processing mode when a trigger instruction is detected;
generating a touch operation area, performing touch monitoring on the touch operation area to obtain touch monitoring data, and converting a cursor into a text selection area;
controlling the text selection area to move according to the touch detection data, and selecting the characters covered by the text selection area according to the track slid by the text selection area to obtain a selected text;
in the text selection process, switching the text displayed on the screen according to the position of the text selection area, monitoring whether to trigger a control action, and suspending text selection according to a control brake;
the step of detecting the screen touch signal and entering a word processing mode when a trigger instruction is detected specifically comprises the following steps: detecting a screen touch signal, detecting a screen in real time, displaying a text selection button on the screen when the content displayed on the screen is text, and entering a word processing mode if the text selection button is clicked and a trigger instruction is received;
the step of generating a touch operation area, performing touch monitoring on the touch operation area to obtain touch monitoring data, and converting a cursor into a text selection area specifically comprises the following steps:
generating a touch operation area in an area below the screen, and receiving touch actions of a user in the touch operation area to obtain touch detection data, wherein the touch actions comprise sliding in the touch operation area and clicking the touch operation area;
recognizing the position of a current cursor, and switching the cursor into a text selection area, wherein the initial shape of the text selection area is a preset shape;
receiving a user operation instruction, and carrying out shape modification on the text selection area to replace an original cursor by the modified text selection area;
the step of controlling the movement of the text selection area according to the touch detection data, selecting the text covered by the text selection area according to the track slid by the text selection area, and obtaining the selected text specifically comprises the following steps:
determining pixel areas contacted between a user and a touch operation area at each moment according to touch detection data;
determining a region center according to the pixel region, and selecting a moving track of the region by taking a pixel corresponding to the region center as a text;
the text selection area is moved according to the movement track, whether each text is completely covered by the text selection area is judged in the movement process, and if yes, the text is input into the selected text;
in the text selection process, switching the text displayed on the screen according to the position of the text selection area, monitoring whether to trigger a control action, and suspending the text selection according to the control action, wherein the method specifically comprises the following steps:
identifying the center position of a text selection area in real time, and switching pictures when the center position exceeds the preset range of a screen;
in the picture switching process, keeping the relative rest between the text selection area and the text;
and monitoring whether a control action occurs in real time, and if the control action occurs, tentatively selecting the text until the control action is detected.
2. The word processing method of claim 1, wherein the control action is a double-click touch operation area.
3. The word processing method of claim 1, wherein the predetermined shape is a circle.
4. A word processing system, the system comprising:
the signal detection module is used for detecting a screen touch signal, and entering a word processing mode when a trigger instruction is detected;
the touch data monitoring module is used for generating a touch operation area, carrying out touch monitoring on the touch operation area to obtain touch monitoring data, and converting a cursor into a text selection area;
the text selection module is used for controlling the text selection area to move according to the touch detection data, and selecting the characters covered by the text selection area according to the track slid by the text selection area to obtain a selected text;
the picture control module is used for switching the text displayed on the screen according to the position of the text selection area in the text selection process, monitoring whether to trigger a control action, and suspending the text selection according to a control brake;
the step of detecting the screen touch signal and entering a word processing mode when a trigger instruction is detected specifically comprises the following steps: detecting a screen touch signal, detecting a screen in real time, displaying a text selection button on the screen when the content displayed on the screen is text, and entering a word processing mode if the text selection button is clicked and a trigger instruction is received;
the step of generating a touch operation area, performing touch monitoring on the touch operation area to obtain touch monitoring data, and converting a cursor into a text selection area specifically comprises the following steps:
generating a touch operation area in an area below the screen, and receiving touch actions of a user in the touch operation area to obtain touch detection data, wherein the touch actions comprise sliding in the touch operation area and clicking the touch operation area;
recognizing the position of a current cursor, and switching the cursor into a text selection area, wherein the initial shape of the text selection area is a preset shape;
receiving a user operation instruction, and carrying out shape modification on the text selection area to replace an original cursor by the modified text selection area;
the step of controlling the movement of the text selection area according to the touch detection data, selecting the text covered by the text selection area according to the track slid by the text selection area, and obtaining the selected text specifically comprises the following steps:
determining pixel areas contacted between a user and a touch operation area at each moment according to touch detection data;
determining a region center according to the pixel region, and selecting a moving track of the region by taking a pixel corresponding to the region center as a text;
the text selection area is moved according to the movement track, whether each text is completely covered by the text selection area is judged in the movement process, and if yes, the text is input into the selected text;
in the text selection process, switching the text displayed on the screen according to the position of the text selection area, monitoring whether to trigger a control action, and suspending the text selection according to the control action, wherein the method specifically comprises the following steps:
identifying the center position of a text selection area in real time, and switching pictures when the center position exceeds the preset range of a screen;
in the picture switching process, keeping the relative rest between the text selection area and the text;
and monitoring whether a control action occurs in real time, and if the control action occurs, tentatively selecting the text until the control action is detected.
CN202310337041.9A 2023-03-31 2023-03-31 Word processing method and system Active CN116521037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310337041.9A CN116521037B (en) 2023-03-31 2023-03-31 Word processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310337041.9A CN116521037B (en) 2023-03-31 2023-03-31 Word processing method and system

Publications (2)

Publication Number Publication Date
CN116521037A CN116521037A (en) 2023-08-01
CN116521037B true CN116521037B (en) 2024-01-30

Family

ID=87394955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310337041.9A Active CN116521037B (en) 2023-03-31 2023-03-31 Word processing method and system

Country Status (1)

Country Link
CN (1) CN116521037B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117971102A (en) * 2024-01-18 2024-05-03 北京长佩网络科技有限公司 Text content marking method, apparatus, electronic device, and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186345A (en) * 2013-02-25 2013-07-03 北京极兴莱博信息科技有限公司 Text segment selecting method and field selecting method, device and terminal
CN106648379A (en) * 2017-01-17 2017-05-10 维沃移动通信有限公司 Method and device for selecting text area
CN108874260A (en) * 2018-05-30 2018-11-23 维沃移动通信有限公司 A kind of text handling method and terminal device
WO2022052817A1 (en) * 2020-09-09 2022-03-17 腾讯科技(深圳)有限公司 Search processing method and apparatus, and terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9182831B2 (en) * 2011-04-09 2015-11-10 Shanghai Chule (Cootek) Information Technology Co., Ltd. System and method for implementing sliding input of text based upon on-screen soft keyboard on electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186345A (en) * 2013-02-25 2013-07-03 北京极兴莱博信息科技有限公司 Text segment selecting method and field selecting method, device and terminal
CN106648379A (en) * 2017-01-17 2017-05-10 维沃移动通信有限公司 Method and device for selecting text area
CN108874260A (en) * 2018-05-30 2018-11-23 维沃移动通信有限公司 A kind of text handling method and terminal device
WO2022052817A1 (en) * 2020-09-09 2022-03-17 腾讯科技(深圳)有限公司 Search processing method and apparatus, and terminal and storage medium

Also Published As

Publication number Publication date
CN116521037A (en) 2023-08-01

Similar Documents

Publication Publication Date Title
KR100856222B1 (en) Apparatus and method for data scrolling of mobile terminal
EP3736675B1 (en) Method for performing operation on touchscreen and terminal
CA3040356C (en) Screen display method and terminal
CN116521037B (en) Word processing method and system
CN102346592A (en) Touch input transitions
CN104850660A (en) Picture displaying method, picture displaying device and mobile terminal
JP6334767B1 (en) Information processing apparatus, program, and information processing method
CN102033695A (en) Information display device
CN106201234A (en) The inspection method of content of pages and device
CN112540713B (en) Video preview progress bar scaling method, system, device and storage medium
CN111831182A (en) Application icon control method and device and electronic equipment
EP2677397A2 (en) Character input method and information processing apparatus
CN102446021A (en) Electronic device, method and computer-readable storage medium
CN110795015A (en) Operation prompting method, device, equipment and storage medium
US12086395B2 (en) Device control method, storage medium, and non-transitory computer-readable electronic device
US20150205483A1 (en) Object operation system, recording medium recorded with object operation control program, and object operation control method
TW201413640A (en) Apparatus and method capable of changing picture
CN114564134A (en) Application icon display method and device
CN108604142B (en) Touch screen device operation method and touch screen device
CN109582424B (en) Interface closing method, system and related device
JP6197559B2 (en) Object operation system, object operation control program, and object operation control method
CN114610155A (en) Gesture control method and device, display terminal and storage medium
KR101944454B1 (en) Information processing program and information processing method
CN112306341A (en) Display area moving method and device, storage medium and electronic whiteboard
CN113485590A (en) Touch operation method and device

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
GR01 Patent grant
GR01 Patent grant