WO2023174369A1 - Procédé de sélection de texte, appareil de sélection de texte, dispositif électronique et support de stockage lisible - Google Patents

Procédé de sélection de texte, appareil de sélection de texte, dispositif électronique et support de stockage lisible Download PDF

Info

Publication number
WO2023174369A1
WO2023174369A1 PCT/CN2023/081875 CN2023081875W WO2023174369A1 WO 2023174369 A1 WO2023174369 A1 WO 2023174369A1 CN 2023081875 W CN2023081875 W CN 2023081875W WO 2023174369 A1 WO2023174369 A1 WO 2023174369A1
Authority
WO
WIPO (PCT)
Prior art keywords
cursor
speed
coordinate value
display position
moving
Prior art date
Application number
PCT/CN2023/081875
Other languages
English (en)
Chinese (zh)
Inventor
黄鼎民
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023174369A1 publication Critical patent/WO2023174369A1/fr

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Definitions

  • This application belongs to the field of text processing technology, and specifically relates to a text selection method, text selection device, electronic equipment and readable storage medium.
  • the purpose of the embodiments of the present application is to provide a text selection method, text selection device, electronic device and readable storage medium, which can solve the problem of poor text selection operation experience.
  • embodiments of the present application provide a text selection method, including:
  • a text selection device including:
  • Display module used to display cursors and controls on the display interface
  • the receiving module is used to receive the first input to the control
  • a movement module configured to update the display position of the cursor in response to the first input
  • the selection module is used to select the target text corresponding to the display interface based on the display position of the cursor before and after updating.
  • embodiments of the present application provide an electronic device, including a processor and a memory.
  • the memory stores programs or instructions that can be run on the processor.
  • the program or instructions are executed by the processor, the method of the first aspect is implemented. step.
  • embodiments of the present application provide a readable storage medium that stores a program or instructions, and when the program or instructions are executed by a processor, the steps of the method in the first aspect are implemented.
  • inventions of the present application provide a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the steps of the method in the first aspect. .
  • embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method as described in the first aspect.
  • embodiments of the present application provide an electronic device configured to implement the method of the first aspect.
  • the cursor and control display can be triggered by double-clicking, where the cursor is used to indicate the text editing or operation position.
  • the control is used to precisely adjust the position of the cursor to control the process of text editing and text selection.
  • the user updates the display position of the cursor by operating the control. During the movement of the cursor position, the corresponding text will be selected, thereby providing precise control over text editing and text selection within a time limit. The user does not need to make large changes in the process. Swipe across the screen and operate the controls with one hand to select text, which improves the efficiency and experience of text editing and text selection.
  • Figure 1 shows a flow chart of a text selection method according to an embodiment of the present application
  • Figure 2 shows one of the interface schematic diagrams of a text selection method according to an embodiment of the present application
  • Figure 3 shows the second schematic interface diagram of the text selection method according to the embodiment of the present application.
  • Figure 4 shows the third schematic interface diagram of the text selection method according to the embodiment of the present application.
  • Figure 5 shows a structural block diagram of a text selection device according to an embodiment of the present application
  • Figure 6 shows a structural block diagram of an electronic device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application.
  • first, second, etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first,” “second,” etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the related objects are in an "or” relationship.
  • Figure 1 shows a flow chart of the text selection method according to the embodiment of the present application. As shown in Figure 1, the method includes:
  • Step 102 display the cursor and controls on the display interface
  • Step 104 receive the first input to the control
  • Step 106 in response to the first input, update the display position of the cursor
  • Step 108 Select the target text corresponding to the display interface according to the display position of the cursor before and after updating.
  • the user's selection input of the text content can be received.
  • the text content includes web page text, local text, chat box text or input method text, etc.
  • the selection input is used to trigger the cursor and control display on the text content.
  • the specific input method of the selection input can be personalized by the user, such as Long press, double-click, two-finger slide, etc. on the text display interface.
  • the embodiment of the present application does not limit the specific type of selected input.
  • a cursor is displayed on the display interface.
  • the cursor is specifically an identifier used to indicate a position for editing or selecting the text content.
  • the initial display position of the cursor can be related to the input position of the selection input. If the user performs selection input on a certain word, the initial display position of the cursor will be close to the word.
  • the control may be a circular, translucent virtual joystick.
  • Figure 2 shows one of the interface schematic diagrams of a text selection method according to an embodiment of the present application. As shown in Figure 2, on the display interface 200 of the electronic device, there is displayed In the text content 202, after the user makes a selection input, the cursor 204 and the control 206 are displayed at the corresponding position of the selection input, and the display position of the control 206 is close to the cursor 204.
  • the user can make the first input to the control by dragging the control, etc., so that the cursor starts to move from the initial display position through the first input to the control, and the movement direction is consistent with the first input corresponding to the direction.
  • the first input includes direction information and speed information.
  • the moving direction of the cursor is determined based on the direction information, and the moving speed of the cursor is determined based on the speed information, thereby controlling the cursor to start moving.
  • the display position of the cursor is updated based on the current position of the cursor at the time point when the stop command is received.
  • the stop command of the first input can be a sub-input of the first input, for example, if the first input is a sliding input, the stop command is an input in which the user stops sliding the finger and raises the hand.
  • the movement path of the cursor will pass through the text.
  • the target text can be selected.
  • the movement path of the cursor passes through a line in the text. If the movement path of the cursor spans a certain line in the text, all the text in the line passed by the cursor will be selected, thereby effectively improving the text quality. Choose efficiency.
  • the selection method of the target text can be adjusted according to the actual needs of the user.
  • the user can freely set the entire line that the cursor path passes through, or the single word that the cursor path passes through. This embodiment of the present application does not limit this.
  • control 206 may be a translucent circular control, with a dot 2062 displayed in the center of the circular control, and the user can control it by touching and "drag" the dot 2062.
  • the cursor moves in the same way that dot 2062 is dragged.
  • the cursor moves left on the current line at a certain moving speed, and the user "drags” straight up. "dot, and the dragging distance exceeds a certain threshold, the cursor will move upward on the current column at a certain moving speed, and if the dot is "dragped” to the lower right, and the dragging distance exceeds a certain threshold, , the cursor moves columns to the right and rows down at a certain moving speed.
  • the movement speed of the cursor is related to the distance of the user dragging the dot.
  • the text on the path passed by the cursor will be selected simultaneously. For example, if the cursor's moving path passes through a character, or the cursor's moving path passes by the side of a character, the entire line of text on the line where the character is located will be selected. All lines are selected as target text, that is, all lines passed by the cursor path are selected, thereby effectively improving text selection efficiency.
  • a text will be selected to the left. If you move one row down, a row of text will be selected. The selected text will be displayed differently from other texts.
  • the cursor and control display are triggered according to user input.
  • the user moves the display position of the cursor by operating the control.
  • the corresponding Text thereby providing precise control over text editing and text selection within a time limit.
  • the user does not need to swipe across the screen significantly, and can operate the controls with one hand to select text, which improves the efficiency and experience of text editing and text selection.
  • the cursor includes a first cursor and a second cursor, wherein the display colors of the first cursor and the second cursor are different; according to the display positions of the cursor before and after updating, the target corresponding to the display interface is selected.
  • the text includes: determining the coordinates of the first input; determining the corresponding moving direction and moving speed based on the coordinates; updating the first display position of the first cursor and the second display position of the second cursor based on the moving direction and moving speed. At least one of; select and determine the target text according to the updated first display position and/or second display position.
  • the cursor specifically includes a first cursor and a second cursor.
  • the first cursor is used to locate the starting point of the selected text
  • the second cursor is used to locate the end point of the selected text.
  • the target text is located in the text content and selected based on the first display position of the first cursor and the second display position of the second cursor. Specifically, the first cursor indicates the starting point of the target text, and the second cursor is used to indicate the end point of the target text.
  • Figure 3 shows the second schematic interface diagram of the text selection method according to the embodiment of the present application.
  • text content 302 is displayed on the display interface 300 of the electronic device, and controls 304 and 304 are displayed on the text content 302.
  • the display color of the first cursor is different from that of the second cursor, thereby helping the user quickly identify the corresponding cursor. It can be understood that when moving the cursor, the user moves one of the first cursor and the second cursor in response to the first input of the control, and the display color of the moved cursor should be more prominent than that of the unmoved cursor. Take the user moving the second cursor through the control as an example. At this time, the first cursor can be displayed in white, and the second cursor can be displayed in yellow or red.
  • the first input is input to the control.
  • the user first touches the control.
  • the control Taking the circular control shown in Figure 2 as an example, after the user touches the circular control, he moves his finger in the direction where he wants to move the cursor. After the user moves his finger , the dot in the center of the circular control moves with the position of the user's finger, where the position of the dot is the coordinate of the position where the user's finger stays, which is the coordinate of the first input.
  • the electronic device can determine the direction and distance of the user's finger sliding, thereby determining the moving direction and moving speed of the cursor, then updating the display position of the cursor, and selecting the corresponding target based on the moved display position. text.
  • the coordinate system corresponding to the first input coordinate is an xy rectangular coordinate system established with the center point of the control as the origin.
  • the extension direction of the x-axis of this coordinate system is the extension direction of the straight line where the line of text content is located.
  • the extension direction of the y-axis of the coordinate system that is, the extension direction of the straight line where the column of text content is located.
  • determining the corresponding moving direction and moving speed based on the coordinates includes: determining the moving direction based on the coordinate values of the coordinates; and determining the moving speed based on the absolute values of the coordinate values.
  • an xy rectangular coordinate system is established with the center point of the control 206 as the origin. Then the coordinates of the center point of the control, that is, the initial position of the dot 2062 is (0, 0).
  • the current position coordinates of the dot 2062 leaving the initial position that is, the coordinates of the first input are (a, b), then the following relationship exists:
  • the cursor moves to the lower right.
  • the moving speed of the cursor is determined based on the absolute value of the coordinate value. Specifically, in the first input coordinates (a, b), the larger the absolute value Abs(a) of the coordinate value a is, the greater the distance the user's finger drags the dot along the x-axis, and the cursor is in the x-axis direction. The faster you move. The larger the absolute value Abs(b) of the coordinate value b is, the greater the distance the user drags the dot along the y-axis. If the value is larger, the cursor moves faster in the y-axis direction.
  • the moving direction and moving speed are determined based on the coordinate values, which requires a small amount of calculation and is conducive to achieving precise positioning.
  • the moving direction includes a first direction and a second direction
  • the moving direction of the cursor includes at least one of the first direction and the second direction.
  • the movement direction includes the first direction and the second direction.
  • the movement direction includes the first direction and the second direction.
  • the first direction For text that is normally arranged in a "horizontal, horizontal and vertical" manner, taking the xy rectangular coordinate system established based on the center point of the control as the origin as an example, x
  • the extending direction of the axis is the first direction
  • the extending direction of the y-axis is the second direction.
  • the first direction is the direction of the "row” of the text
  • the second direction is the direction of the "column” of the text.
  • the cursor may move in both directions at the same time. direction movement.
  • this application divides the target area where the control is located into a first sub-area, a second sub-area and a third sub-area, where each sub-area corresponds to a coordinate value range.
  • the first sub-area The area range of the area corresponds to the situation that the coordinate value of the cursor is within the first range value
  • the area range of the second sub-area corresponds to the situation that the coordinate value of the cursor is within the second range value
  • the area range of the third sub-area corresponds to The coordinate value of the cursor is within the third range of values.
  • the target area is the area centered on the display position of the control.
  • Figure 4 shows the third interface schematic diagram of the text selection method according to the embodiment of the present application. As shown in Figure 4, The area centered on the control 402 is the target area 404 .
  • the target area 404 includes a first sub-area 4042, a second sub-area 4044, and a third sub-area 4046, where the first sub-area 4042 is an area that shields y-axis movement, and the second sub-area 4044 is an area that shields x-axis movement.
  • the first sub-area 4042 is the area close to the x-axis of the coordinate system. If the user drags the dot 4024 in the control 402 into the first sub-area 4042, the cursor will only move in the first direction, that is, Move in the x-axis direction.
  • the second sub-area 4044 is the area close to the y-axis of the coordinate system. If the user drags the dot 4024 into the second sub-area 4044, the cursor will only move in the second direction, that is, the y-axis direction. .
  • the third sub-region 4046 is an area located between the first sub-region 4042 and the second sub-region 4044.
  • the embodiment of the present application helps the user control the cursor movement more accurately and improves the accuracy and controllability of text selection.
  • moving at least one of the first display position of the first cursor and the second display position of the second cursor according to the movement direction and movement speed includes: before receiving a third response to the control.
  • one of the first display position and the second display position is updated according to the moving direction and moving speed; in the case of receiving the second input, the first display position is updated according to the moving direction and moving speed. and the other in the second display position.
  • the cursor includes a first cursor and a second cursor, where the first cursor is the starting point of the target text, and the second cursor is the end point of the target text.
  • first cursor is the starting point of the target text
  • second cursor is the end point of the target text.
  • the second input can be performed by double-clicking or long-pressing the control, thereby switching the cursor that the control moves from the currently moved cursor to another.
  • the second cursor or the first second display position is moved by default.
  • the second input is not received, according to the default setting, according to the first input Enter the coordinates to move the display position of the second cursor. If the second input to the control is received, the second cursor that the control moves by default is switched to the first cursor. At this time, if the first input to the control is received again, the first cursor is moved according to the coordinates of the first input. Show location.
  • the coordinate value of the coordinate includes an x-axis coordinate value and a y-axis coordinate value
  • Determine the moving speed based on the absolute value of the coordinate value including:
  • the first speed is smaller than the second speed, and the second speed is smaller than the third speed.
  • the moving speed of the cursor is set to three levels, namely the first speed, the second speed and the third speed, where the first speed is the slowest and the third speed is the fastest.
  • the moving speed of the cursor in the first direction that is, the x-axis direction is determined based on the absolute value of a, Abs(a)
  • the movement speed of the cursor in the second direction that is, the y-axis is determined based on the absolute value of b, Abs(b). Movement speed in direction.
  • the first threshold and the second threshold are pre-stored in the electronic device, where the first threshold and the second threshold are related to the display size of the control.
  • the control 206 is a translucent circular control, and the radius of the circular control is R, then the first threshold can be set to 1/3R, and the second threshold can be set to 2/3R.
  • the method further includes: receiving a third input to the control; and in response to the third input, selecting any one of the target text, the target line, or the target paragraph on the text content.
  • the user if the user wishes to individually select a text, a line or a period of time, he or she can perform a third input on the control, where the third input can be quickly dragging a dot in the control and releasing it, such as to Quickly drag the dot left and release to select a word to the left of the cursor; quickly drag the dot downward and release to select the line where the cursor is located, etc., thus achieving more precise text selection.
  • a text selection device is provided.
  • Figure 5 shows a structural block diagram of a text selection device according to an embodiment of the present application. As shown in Figure 5, the text selection device 500 includes:
  • Display module 502 used to display cursors and controls on the display interface
  • the receiving module 504 is used to receive the first input to the control
  • Movement module 506, configured to update the display position of the cursor in response to the first input
  • the selection module 508 is used to select the target text corresponding to the display interface according to the display position of the cursor before and after updating.
  • the user's selection input of the text content can be received.
  • the text content includes web page text, local text, chat box text or input method text, etc.
  • the selection input is used to trigger the cursor and control display on the text content.
  • the specific input method of the selection input can be personalized by the user, such as Long press, double-click, two-finger slide, etc. on the text display interface.
  • the embodiment of the present application does not limit the specific type of selected input.
  • the user can make the first input to the control by dragging the control, etc., so that the cursor starts to move from the initial display position through the first input to the control, and the movement direction is consistent with the first input corresponding to the direction.
  • the user only needs to operate the control with a single finger to complete the selection of a large section of content. There is no need for the user's finger to move across the screen significantly, and no need for both hands to operate, which can improve the operating experience of text editing and text selection.
  • the cursor and control display are triggered according to user input.
  • the user moves the display position of the cursor by operating the control.
  • the corresponding Text thereby providing precise control over text editing and text selection within a time limit.
  • the user does not need to swipe across the screen significantly, and can operate the controls with one hand to select text, which improves the efficiency and experience of text editing and text selection.
  • the cursor includes a first cursor and a second cursor, wherein the first cursor and the second cursor have different display colors;
  • Text selection devices also include:
  • the determination module is used to determine the coordinates of the first input; determine the corresponding moving direction and moving speed according to the coordinates;
  • the movement module is also used to update the first display of the first cursor according to the movement direction and movement speed. at least one of the display position and the second display position of the second cursor;
  • the selection module is also used to select and determine the target text according to the updated first display position and/or second display position.
  • the cursor specifically includes a first cursor and a second cursor.
  • the first cursor is used to locate the starting point of the selected text
  • the second cursor is used to locate the end point of the selected text.
  • the target text is located in the text content and selected based on the first display position of the first cursor and the second display position of the second cursor.
  • the first cursor indicates the starting point of the target text
  • the second cursor is used to indicate the end point of the target text.
  • the first input is an input to the control.
  • the electronic device can determine the direction and distance of the user's finger sliding, thereby determining the moving direction and speed of the cursor, and then moving the display position of the cursor and selecting the corresponding target text.
  • the coordinate system corresponding to the first input coordinate is an xy rectangular coordinate system established with the center point of the control as the origin.
  • the extension direction of the x-axis of this coordinate system is the extension direction of the straight line where the line of text content is located.
  • the extension direction of the y-axis of the coordinate system that is, the extension direction of the straight line where the column of text content is located.
  • the determination module is also used to: determine the moving direction according to the coordinate value of the coordinate; determine the moving speed according to the absolute value of the coordinate value.
  • the moving direction and moving speed are determined based on the coordinate values, which requires a small amount of calculation and is conducive to achieving precise positioning.
  • the determining module, the movement direction includes a first direction and a second direction
  • the moving direction of the cursor includes at least one of the first direction and the second direction.
  • the movement direction includes a first direction and a second direction.
  • the extension direction of the x-axis is the first direction
  • the embodiment of the present application helps the user control the cursor movement more accurately and improves the accuracy and controllability of text selection.
  • the mobile module is also used to:
  • the other one of the first display position and the second display position is updated according to the moving direction and the moving speed.
  • the cursor includes a first cursor and a second cursor, where the first cursor is the starting point of the target text, and the second cursor is the end point of the target text.
  • first cursor is the starting point of the target text
  • second cursor is the end point of the target text.
  • the coordinate value of the coordinate includes an x-axis coordinate value and a y-axis coordinate value
  • the first speed is smaller than the second speed, and the second speed is smaller than the third speed.
  • the moving speed of the cursor is set to three levels, namely the first speed, the second speed and the third speed, where the first speed is the slowest and the third speed is the fastest.
  • the receiving module is further configured to receive a third input to the control; the moving module is further configured to select the target text, target line, or target paragraph in the text content in response to the third input. Either.
  • the user if the user wishes to individually select a text, a line or a period of time, he or she can perform a third input on the control, where the third input can be quickly dragging a dot in the control and releasing it, such as to Quickly drag the dot left and release to select a word to the left of the cursor; quickly drag the dot downward and release to select the line where the cursor is located, etc., thus achieving more precise text selection.
  • the text selection device in the embodiment of the present application may be an electronic device, or may be a component of the electronic device, such as an integrated circuit or chip.
  • the electronic device may be a terminal or other devices other than the terminal.
  • the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (MID), or augmented reality (AR)/virtual reality (VR).
  • MID mobile Internet device
  • AR augmented reality
  • VR virtual reality
  • UMPC ultra-mobile personal computers
  • PDA personal digital assistants
  • NAS Network Attached Storage
  • PC personal computer
  • TV television
  • teller machine or self-service machine etc.
  • the text selection device in the embodiment of the present application may be a device with an operating system.
  • the operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
  • the text selection device provided by the embodiments of the present application can implement each process implemented by the above method embodiments. To avoid repetition, the details will not be described here.
  • FIG. 6 shows a structural block diagram of the electronic device according to the embodiment of the present application. As shown in Figure 6, it includes a processor 602 and a memory 604, which are stored in the memory. 604 and can be run on the processor 602. When the program or instruction is executed by the processor 602, it implements each process of the above method embodiment and can achieve the same technical effect. To avoid duplication, it is not included here. Again.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 7 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application.
  • the electronic device 700 includes but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor 710, etc. part.
  • the electronic device 700 may also include a power supply (such as a battery) that supplies power to various components.
  • the power supply may be logically connected to the processor 710 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions.
  • the structure of the electronic device shown in Figure 7 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
  • the display unit 706 is used to display the cursor and controls on the display interface
  • the user input unit 707 is also used to receive a first input to the control
  • the processor 710 is also configured to update the display position of the cursor in response to the first input; and select the target text corresponding to the display interface according to the display position of the cursor before and after updating.
  • the cursor when the electronic device displays text, the cursor is triggered based on user input. and control display. The user moves the display position of the cursor by operating the control. During the movement of the cursor position, the corresponding text will be selected, thus providing precise control over text editing and text selection. During this process, the user There is no need to swipe across the screen significantly, and the controls can be operated with one hand to select text, which improves the efficiency and experience of text editing and text selection.
  • the cursor includes a first cursor and a second cursor, wherein the display colors of the first cursor and the second cursor are different; the processor 710 is also used to determine the coordinates of the first input; and determine the corresponding movement direction and Moving speed; updating at least one of the first display position of the first cursor and the second display position of the second cursor according to the moving direction and the moving speed; according to the updated first display position and/or the second display position, Select and identify the target text.
  • the cursor specifically includes a first cursor and a second cursor.
  • the first cursor is used to locate the starting point of the selected text
  • the second cursor is used to locate the end point of the selected text.
  • the target text is located in the text content and selected based on the first display position of the first cursor and the second display position of the second cursor.
  • the first cursor indicates the starting point of the target text
  • the second cursor is used to indicate the end point of the target text.
  • the processor 710 is also configured to determine the coordinates of the first input; determine the corresponding moving direction and moving speed based on the coordinates; and move the display position of the cursor based on the moving direction and moving speed.
  • the first input is an input to the control.
  • the electronic device can determine the direction and distance of the user's finger sliding, thereby determining the moving direction and moving speed of the cursor, and then moving the cursor. display position and select the corresponding target text.
  • the coordinate system corresponding to the first input coordinate is an xy rectangular coordinate system established with the center point of the control as the origin.
  • the extension direction of the x-axis of this coordinate system is the extension direction of the straight line where the line of text content is located.
  • the extension direction of the y-axis of the coordinate system that is, the extension direction of the straight line where the column of text content is located.
  • the processor 710 determines the moving direction according to the coordinate value; determines the moving speed according to the absolute value of the coordinate value.
  • the moving direction and moving speed are determined based on the coordinate values, which requires a small amount of calculation and is conducive to achieving precise positioning.
  • the moving direction includes a first direction and a second direction; the processor 710 is further configured to:
  • the moving direction of the cursor includes at least one of the first direction and the second direction.
  • the movement direction includes a first direction and a second direction.
  • the extension direction of the x-axis is the first direction
  • the embodiment of the present application helps the user control the cursor movement more accurately and improves the accuracy and controllability of text selection.
  • the processor 710 is also configured to update one of the first display position and the second display position according to the moving direction and the moving speed without receiving the second input to the control; after receiving the third In the case of two inputs, the other one of the first display position and the second display position is updated based on the moving direction and the moving speed.
  • the cursor includes a first cursor and a second cursor, where the first cursor is the starting point of the target text, and the second cursor is the end point of the target text.
  • first cursor is the starting point of the target text
  • second cursor is the end point of the target text.
  • the coordinate value of the coordinate includes an x-axis coordinate value and a y-axis coordinate value; the processor 710 is also configured to determine the movement of the cursor along the first direction when the absolute value of the x-axis coordinate value is less than or equal to the first threshold.
  • the speed is the first speed; when the absolute value of the x-axis coordinate value is greater than the first threshold and less than or equal to the second threshold, it is determined that the moving speed of the cursor along the first direction is the second speed; when the absolute value of the x-axis coordinate value is If the value is greater than the second threshold, determine the movement of the cursor in the first direction.
  • the moving speed is the third speed; when the absolute value of the y-axis coordinate value is less than or equal to the first threshold, the moving speed of the cursor in the second direction is determined to be the first speed; when the absolute value of the y-axis coordinate value is greater than the first threshold , and is less than or equal to the second threshold, determine the moving speed of the cursor along the second direction as the second speed; when the absolute value of the y-axis coordinate value is greater than the second threshold, determine the moving speed of the cursor along the second direction. is the third speed; wherein, the first speed is smaller than the second speed, and the second speed is smaller than the third speed.
  • the moving speed of the cursor is set to three levels, namely the first speed, the second speed and the third speed, where the first speed is the slowest and the third speed is the fastest.
  • the user input unit 707 is also used to receive a third input to the control
  • the processor 710 is further configured to select any one of target words, target lines, or target paragraphs on the text content in response to the third input.
  • the user if the user wishes to individually select a text, a line or a period of time, he or she can perform a third input on the control, where the third input can be quickly dragging a dot in the control and releasing it, such as to Quickly drag the dot left and release to select a word to the left of the cursor; quickly drag the dot downward and release to select the line where the cursor is located, etc., thus achieving more precise text selection.
  • the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042.
  • the graphics processor 7041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras).
  • the display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072 . Touch panel 7071, also called touch screen.
  • the touch panel 7071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 7072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not included here. Again.
  • Memory 709 may be used to store software programs as well as various data.
  • the memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc.
  • memory 709 may include volatile memory or non-volatile memory, or memory 709 may include both volatile and non-volatile memory.
  • non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • synchronous dynamic random access memory Synchronous DRAM, SDRAM
  • Double data rate synchronous dynamic random access memory Double Data Rate SDRAM, DDRSDRAM
  • Enhanced SDRAM, ESDRAM synchronous link dynamic random access memory
  • Synch link DRAM synchronous link dynamic random access memory
  • SLDRAM direct memory bus random access memory
  • the processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above-mentioned modem processor may not be integrated into the processor 710.
  • Embodiments of the present application also provide a readable storage medium.
  • Programs or instructions are stored on the readable storage medium.
  • the program or instructions are executed by a processor, each process of the above method embodiments is implemented and the same technology can be achieved. The effect will not be described here to avoid repetition.
  • the processor is the processor in the electronic device described in the above embodiment.
  • described Readable storage media includes computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or optical disks.
  • An embodiment of the present application further provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement various processes of the above method embodiments. , and can achieve the same technical effect, so to avoid repetition, they will not be described again here.
  • chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
  • Embodiments of the present application provide a computer program product.
  • the program product is stored in a storage medium.
  • the program product is executed by at least one processor to implement the processes of the above method embodiments and can achieve the same technical effect. To avoid repetition, we will not go into details here.
  • the embodiment of the present application also provides an electronic device.
  • the electronic device is configured to implement each process of the above method embodiment and can achieve the same technical effect. To avoid duplication, the details will not be described here.
  • the above-described embodiment method can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method.
  • the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.

Landscapes

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

Abstract

La présente demande concerne un procédé de sélection de texte, un appareil de sélection de texte, un dispositif électronique et un support de stockage lisible. Le procédé de sélection de texte consiste à : afficher un curseur et une commande sur une interface d'affichage ; recevoir une première entrée pour la commande ; en réponse à la première entrée, mettre à jour la position d'affichage du curseur ; et selon les positions d'affichage du curseur avant et après la mise à jour, sélectionner un texte cible correspondant à partir de l'interface d'affichage.
PCT/CN2023/081875 2022-03-17 2023-03-16 Procédé de sélection de texte, appareil de sélection de texte, dispositif électronique et support de stockage lisible WO2023174369A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210263694.2 2022-03-17
CN202210263694.2A CN114610192A (zh) 2022-03-17 2022-03-17 文本选取方法、文本选取装置、电子设备和可读存储介质

Publications (1)

Publication Number Publication Date
WO2023174369A1 true WO2023174369A1 (fr) 2023-09-21

Family

ID=81865763

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/081875 WO2023174369A1 (fr) 2022-03-17 2023-03-16 Procédé de sélection de texte, appareil de sélection de texte, dispositif électronique et support de stockage lisible

Country Status (2)

Country Link
CN (1) CN114610192A (fr)
WO (1) WO2023174369A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610192A (zh) * 2022-03-17 2022-06-10 维沃移动通信有限公司 文本选取方法、文本选取装置、电子设备和可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030103082A1 (en) * 1998-12-31 2003-06-05 Michael Carroll System and method for selecting and deselecting information in an electronic document
CN104932807A (zh) * 2014-03-19 2015-09-23 腾讯科技(深圳)有限公司 一种光标定位方法及触屏设备
CN110516222A (zh) * 2019-08-30 2019-11-29 北京字节跳动网络技术有限公司 文本编辑方法、装置、设备、存储介质
CN112860146A (zh) * 2021-01-28 2021-05-28 维沃移动通信有限公司 文本选择方法、装置和电子设备
CN113961115A (zh) * 2020-07-16 2022-01-21 荣耀终端有限公司 对象编辑方法、电子设备、介质以及程序产品
CN114610192A (zh) * 2022-03-17 2022-06-10 维沃移动通信有限公司 文本选取方法、文本选取装置、电子设备和可读存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132752B (zh) * 2017-12-21 2020-02-18 维沃移动通信有限公司 一种文本编辑方法及移动终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030103082A1 (en) * 1998-12-31 2003-06-05 Michael Carroll System and method for selecting and deselecting information in an electronic document
CN104932807A (zh) * 2014-03-19 2015-09-23 腾讯科技(深圳)有限公司 一种光标定位方法及触屏设备
CN110516222A (zh) * 2019-08-30 2019-11-29 北京字节跳动网络技术有限公司 文本编辑方法、装置、设备、存储介质
CN113961115A (zh) * 2020-07-16 2022-01-21 荣耀终端有限公司 对象编辑方法、电子设备、介质以及程序产品
CN112860146A (zh) * 2021-01-28 2021-05-28 维沃移动通信有限公司 文本选择方法、装置和电子设备
CN114610192A (zh) * 2022-03-17 2022-06-10 维沃移动通信有限公司 文本选取方法、文本选取装置、电子设备和可读存储介质

Also Published As

Publication number Publication date
CN114610192A (zh) 2022-06-10

Similar Documents

Publication Publication Date Title
US11487426B2 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
US10359932B2 (en) Method and apparatus for providing character input interface
WO2022068773A1 (fr) Procédé et appareil de réglage d'élément de bureau, et dispositif électronique
US10254927B2 (en) Device, method, and graphical user interface for manipulating workspace views
KR101673509B1 (ko) 문서 조작을 위한 디바이스들, 방법들 및 그래픽 사용자 인터페이스들
KR101836564B1 (ko) 소프트 키보드를 조작하기 위한 장치, 방법, 및 그래픽 사용자 인터페이스
US20140109016A1 (en) Gesture-based cursor control
CN112148170B (zh) 桌面元素调整方法、装置和电子设备
WO2023125425A1 (fr) Procédé et appareil d'affichage et dispositif électronique
JP2023530395A (ja) アプリアイコン制御方法、装置及び電子機器
WO2023174369A1 (fr) Procédé de sélection de texte, appareil de sélection de texte, dispositif électronique et support de stockage lisible
WO2023274067A1 (fr) Procédé et appareil de génération d'icône, dispositif électronique, et support de stockage lisible
WO2023155877A1 (fr) Procédé et appareil de gestion d'icône d'application et dispositif électronique
WO2024046204A1 (fr) Procédé et appareil de traitement de messages, dispositif électronique et support d'enregistrement
CN104317485B (zh) 电子黑板显示控制方法和装置
WO2024037419A1 (fr) Procédé et appareil de commande d'affichage, dispositif électronique, et support de stockage lisible
WO2024037438A1 (fr) Procédé et appareil de commande d'écran partagé, dispositif électronique, et support de stockage lisible
WO2023216976A1 (fr) Procédé et appareil d'affichage, dispositif électronique et support de stockage
WO2023231871A1 (fr) Procédé et appareil de commande d'affichage, dispositif électronique et support de stockage lisible
WO2023151659A1 (fr) Procédé et dispositif d'affichage d'icône d'application
WO2023174316A1 (fr) Procédé d'affichage d'écran à texte défilant et appareil associé
WO2023030307A1 (fr) Procédé et appareil de capture d'écran et dispositif électronique
WO2023093809A1 (fr) Procédé et appareil de traitement d'édition de fichier et dispositif électronique
WO2023093661A1 (fr) Procédé et appareil de commande d'interface, et dispositif électronique et support de stockage
WO2023045923A1 (fr) Procédé et appareil d'édition de texte et dispositif électronique

Legal Events

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

Ref document number: 23769871

Country of ref document: EP

Kind code of ref document: A1