WO2017193456A1 - Method and device for performing text manipulation operation - Google Patents

Method and device for performing text manipulation operation Download PDF

Info

Publication number
WO2017193456A1
WO2017193456A1 PCT/CN2016/086445 CN2016086445W WO2017193456A1 WO 2017193456 A1 WO2017193456 A1 WO 2017193456A1 CN 2016086445 W CN2016086445 W CN 2016086445W WO 2017193456 A1 WO2017193456 A1 WO 2017193456A1
Authority
WO
WIPO (PCT)
Prior art keywords
pressure value
preset
pressing
text
pressing pressure
Prior art date
Application number
PCT/CN2016/086445
Other languages
French (fr)
Chinese (zh)
Inventor
梁震
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017193456A1 publication Critical patent/WO2017193456A1/en

Links

Images

Classifications

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

Definitions

  • This document relates to, but is not limited to, the field of communications, and more particularly to a text operation execution method and apparatus.
  • the general touch device input mode the response of the operation key (for example, the delete button) is only responding to the click action, one character is deleted each time, and when multiple characters need to be deleted, a button is needed, or the button can be simultaneously responded to. And long press does not let go, when the long press time reaches a certain time, the deletion speed is accelerated or gradually accelerated.
  • the operation key for example, the delete button
  • the problem caused by this is that when the user deletes a large amount of text and wants to accurately stay at a certain position, the speed of clicking and deleting one time is not fast enough, if the user does not let go and enters the high speed mode, It is impossible to accurately control the deletion speed, and it is impossible to decelerate when it is about to reach the destination position, and thus cannot accurately stay at the desired position, which causes inconvenience to the user.
  • Embodiments of the present invention provide a text operation execution method and apparatus, which are capable of controlling an operation speed when performing a text operation.
  • An embodiment of the present invention provides a text operation execution method, including: detecting a first pressing event at a preset position of a touch screen and a first pressing pressure value of the first pressing event; according to the first pressing pressure value Determining a text operation speed of performing a preset text operation corresponding to the preset position; performing the preset text operation according to the determined text operation speed.
  • determining, according to the first pressing pressure value, the performing the text operation speed of the preset text operation corresponding to the preset position comprises: determining a preset pressure that the first pressing pressure value falls into a range of values; obtaining a preset pressing pressure value and an operating speed according to the preset pressure value range a mapping relationship; determining the operating speed corresponding to the first pressing pressure value according to a mapping relationship between the preset pressing pressure value and an operating speed.
  • determining, according to the first pressing pressure value, the text operation speed of performing the preset text operation at the preset position comprises: determining the first pressing pressure value; acquiring a pressing pressure value and an operation speed a mapping relationship; determining the operating speed corresponding to the first pressing pressure value according to the first pressing pressure value and the mapping relationship.
  • detecting the first pressing event value of the first pressing event and the first pressing event on the preset position of the touch screen comprises: detecting the preset in the touch screen a second pressing pressure event at the position and the second pressing pressure value of the second pressing event; determining whether the second pressing pressure value is greater than a preset pressure value; and if the determination result is YES, detecting the The first pressing event and the first pressing pressure value of the first pressing event.
  • the preset operation corresponding to the preset position includes at least one of: a text deletion operation corresponding to the text deletion key on the touch screen, a moving cursor operation corresponding to the touch screen upper direction key, and the The text input operation corresponding to the text input key on the touch screen.
  • An embodiment of the present invention provides a text operation executing apparatus, including: a detecting module, configured to detect a first pressing event at a preset position of the touch screen and a first pressing pressure value of the first pressing event; and a determining module, And being configured to determine, according to the first pressing pressure value, a text operation speed of performing a preset text operation corresponding to the preset position; and an execution module configured to perform the preset text operation according to the determined text operation speed.
  • the determining module includes: a first determining unit, configured to determine a preset pressure value range in which the first pressing pressure value falls; and a first acquiring unit configured to acquire according to the preset pressure value range a mapping relationship between the preset pressing pressure value and the operating speed; the second determining unit is configured to determine the operating speed corresponding to the first pressing pressure value according to the mapping relationship between the preset pressing pressure value and the operating speed.
  • the determining module includes: a third determining unit, configured to determine the first pressing pressure value; and a second acquiring unit configured to acquire a mapping relationship between the pressing pressure value and the operating speed; and fourth determining unit, setting And determining, according to the first pressing pressure value, and the mapping relationship, the operating speed corresponding to the first pressing pressure value.
  • the detecting module includes: a first detecting unit configured to detect the touch screen a second pressing event at the preset position and the second pressing pressure value of the second pressing event; a determining unit configured to determine whether the second pressing pressure value is greater than a preset pressure value; The detecting unit is configured to detect the first pressing pressure value of the first pressing event and the first pressing event when the determination result is YES.
  • the preset operation corresponding to the preset position includes at least one of: a text deletion operation corresponding to the text deletion key on the touch screen, a moving cursor operation corresponding to the touch screen upper direction key, and the The text input operation corresponding to the text input key on the touch screen.
  • the first pressing pressure value of the first pressing event and the first pressing event at the preset position of the touch screen is detected by the first pressing pressure value, and the preset text operation corresponding to the preset position is determined according to the first pressing pressure value.
  • a text operation speed performing a preset text operation according to the determined text operation speed, wherein it can be seen that the first pressing pressure value of the first pressing event and the first pressing event is detected by using the above solution, and then the execution text is determined according to the first pressing pressure value.
  • the speed of the operation, the text operation is performed at a determined speed, and therefore, the operation speed at the time of controlling the execution of the text operation is realized, thereby solving the problem in the related art that the operation speed at the time of executing the text operation cannot be controlled.
  • FIG. 1 is a block diagram showing the hardware structure of a mobile terminal for performing a text operation method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a text operation execution method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a mapping function according to an embodiment of the present invention.
  • FIG. 4 is a block diagram 1 of a text operation execution apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram 2 of a text operation execution apparatus according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram 3 of a text operation execution apparatus according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram 4 of a text operation execution apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a text operation execution interface in accordance with an alternative embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a fit curve performed by a text operation in accordance with an alternate embodiment of the present invention.
  • Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or the like.
  • the mobile terminal 10 may include one or more (only in the figure).
  • a processor 102 is shown (the processor 102 may include, but is not limited to, a processing device such as a Micro Controller Unit (MCU) or a Field-Programmable Gate Array (FPGA)), configured to store data.
  • a memory 104, and a transmission device 106 configured as a communication function.
  • the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
  • the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the memory 104 may be configured as a software program and a module for storing application software, such as program instructions or modules corresponding to the carrier phase recovery method in the embodiment of the present invention, and the processor 102 executes by executing a software program and a module stored in the memory 104.
  • application software such as program instructions or modules corresponding to the carrier phase recovery method in the embodiment of the present invention
  • the processor 102 executes by executing a software program and a module stored in the memory 104.
  • Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is arranged to receive or transmit data via a network.
  • the above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10.
  • the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 can be a radio frequency (RF) module configured to be wireless. Communicate with the Internet.
  • NIC Network Interface Controller
  • RF radio frequency
  • FIG. 2 is a flowchart of a text operation execution method according to an embodiment of the present invention. As shown in FIG. 2, the flow includes the following steps:
  • Step S202 detecting a first pressing event at a preset position of the touch screen and a first pressing pressure value of the first pressing event
  • Step S204 determining, according to the first pressing pressure value, a text operation speed of performing a preset text operation corresponding to the preset position;
  • Step S206 executing a preset text operation according to the determined text operation speed.
  • the above text operation execution method may be, but is not limited to, applied to a scene in which a text operation is performed. For example: Touching a scene on a device that edits text.
  • the text operation execution method described above may be, but is not limited to, applied to a terminal having a touch screen, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a smart wearable device, or the like.
  • the preset operation corresponding to the preset position may include, but is not limited to, at least one of the following: a text deletion operation corresponding to the text deletion key on the touch screen, a moving cursor operation corresponding to the direction key on the touch screen, and a touch screen The text input operation corresponding to the text input key.
  • the text operation speed can be determined according to the mapping function Pressure2SpeedFunction(p) of the pressing pressure value and the text operation speed, and the Pressure2SpeedFunction(p) can be determined according to the actual situation, for example, the user response speed status, the skilled user, the young user reaction The speed is faster, and the old user and the novice user have a slower response speed.
  • FIG. 3 is a schematic diagram of a mapping function according to an embodiment of the present invention. As shown in FIG. 3, the touch pressure ranges from 0 to 1, according to the curve, the mapping The speed is 0 ⁇ 2. When this curve is actually applied, you can take a magnification of 25 (this value is the test sample The order refresh rate) to determine the actual number of characters deleted per second.
  • the manner of determining the text operation speed according to the first pressing pressure value may be, but is not limited to, one of the following:
  • the preset pressure value range in which the first pressing pressure value falls can be determined, and the mapping relationship between the preset pressing pressure value and the operating speed is obtained according to the preset pressure value range, and then according to the obtained preset pressing pressure value and The mapping relationship of the operating speed determines the operating speed corresponding to the first pressing pressure value.
  • the text operation takes the deletion operation as an example.
  • the mapping relationship is exemplified by the mapping function Pressure2SpeedFunction(p), where p represents the first pressing pressure value, as shown by the solid line in FIG. 3, the mapping function Pressure2SpeedFunction(p) can be But not limited to a piecewise function to achieve a reasonable mapping of pressure and deletion speed, as shown below:
  • the continuous deletion state of the deletion speed by the pressure control has not yet entered. At this time, the system stays in the other characters after deleting the first character before the cursor. In the rear, waiting for the command to be further deleted; another case is that the state has been continuously deleted by the mapping relationship, but since the pressure is already less than the predetermined threshold P0, the finger and the screen are in a state of being detached, which is not conducive to effective control deletion. Speed, so return to the cursor stay state, the deletion speed is 0.
  • the pressure is approaching the maximum value.
  • the high-speed variable speed continuous deletion mode is entered, and the slope of the pressure and deletion speed mapping curve is large, which is beneficial for the user to control the speed of the high-speed deletion by controlling the pressure, and can be 15 characters per second. Free control between 50 characters per second.
  • the above-mentioned piecewise function allows the user to actually use it to feel whether the control of the speed is free to improve the parameter constant. For example, if the user feels the low speed, the rate of change of the speed with respect to the pressure If it is too high, the slope of the low speed section can be further reduced; if the maximum speed is too high or not high enough, the maximum speed and slope of the high speed can be adjusted to solve the equation again.
  • the first pressing pressure value may be determined, the mapping relationship between the pressing pressure value and the operating speed is obtained, and the operating speed corresponding to the first pressing pressure value is determined according to the first pressing pressure value and the mapping relationship.
  • the state of shifting according to the pressing pressure value may be entered upon detecting that the pressing pressure value for the preset position reaches a predetermined value.
  • the second pressing pressure event at the preset position of the touch screen and the second pressing pressure value of the second pressing event may be detected to determine whether the second pressing pressure value is greater than the preset pressure value, and if the determination result is yes, A first pressing pressure value of the first pressing event and the first pressing event is detected.
  • a text operation execution device is further provided, which is configured to implement the above-mentioned embodiments and optional embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 4 is a structural block diagram 1 of a text operation execution apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes:
  • the detecting module 42 is configured to detect a first pressing event at a preset position of the touch screen and a first pressing pressure value of the first pressing event;
  • the determining module 44 is coupled to the detecting module 42 and configured to determine, according to the first pressing pressure value, a text operation speed of performing a preset text operation corresponding to the preset position;
  • An execution module 46 coupled to the determination module 44, is configured to perform a preset text operation in accordance with the determined text manipulation speed.
  • the above text operation executing means may be, but not limited to, applied to a scene in which a text operation is performed. For example: Touching a scene on a device that edits text.
  • the text operation execution device may be applied to, but not limited to, a terminal having a touch screen, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a smart wearable device, or the like.
  • a terminal having a touch screen such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a smart wearable device, or the like.
  • the detecting module is configured to detect a first pressing event and a first pressing pressure value of the first pressing event at the preset position of the touch screen; and the determining module is configured to determine, according to the first pressing pressure value, the execution of the preset position a text operation speed of the preset text operation; the execution module is configured to perform the preset text operation according to the determined text operation speed, thereby, thereby detecting that the first pressing pressure value of the first pressing event and the first pressing event is detected by the above solution, Further, the speed of executing the text operation is determined according to the first pressing pressure value, and the text operation is performed according to the determined speed, thereby realizing the operation speed when controlling the execution of the text operation, thereby solving the operation speed in the related art that the text operation cannot be controlled.
  • the problem is configured to detect a first pressing event and a first pressing pressure value of the first pressing event at the preset position of the touch screen; and the determining module is configured to determine, according to the first pressing pressure value, the execution of the preset position a text operation speed of
  • the preset operation corresponding to the preset position may include, but is not limited to, at least one of the following: a text deletion operation corresponding to the text deletion key on the touch screen, a moving cursor operation corresponding to the direction key on the touch screen, and a touch screen The text input operation corresponding to the text input key.
  • the text operation speed can be determined according to the mapping function Pressure2SpeedFunction(p) of the pressing pressure value and the text operation speed, and the Pressure2SpeedFunction(p) can be determined according to the actual situation, for example, the user response speed status, the skilled user, the young user reaction The speed is faster, and the old user and the novice user have a slower response speed.
  • FIG. 3 is a schematic diagram of a mapping function according to an embodiment of the present invention. As shown in FIG. 3, the touch pressure ranges from 0 to 1, according to the curve, the mapping The speed is 0 ⁇ 2. When this curve is actually applied, you can take a magnification of 25 (this is the refresh rate of the test sample program) to determine the actual number of characters deleted per second.
  • FIG. 5 is a structural block diagram 2 of a text operation execution apparatus according to an embodiment of the present invention.
  • the determining module 44 includes:
  • the first determining unit 52 is configured to determine a preset pressure value range in which the first pressing pressure value falls;
  • the first obtaining unit 54 is coupled to the first determining unit 52, and is configured to obtain a mapping relationship between the preset pressing pressure value and the operating speed according to the preset pressure value range;
  • the second determining unit 56 is coupled to the first obtaining unit 54 and configured to determine an operating speed corresponding to the first pressing pressure value according to a mapping relationship between the preset pressing pressure value and the operating speed.
  • FIG. 6 is a structural block diagram 3 of a text operation execution apparatus according to an embodiment of the present invention.
  • the determining module 44 includes:
  • a third determining unit 62 configured to determine a first pressing pressure value
  • the second obtaining unit 64 is coupled to the third determining module 62, and is configured to obtain a mapping relationship between the pressing pressure value and the operating speed;
  • the fourth determining unit 66 is coupled to the second obtaining unit 64, and is configured to determine an operating speed corresponding to the first pressing pressure value according to the first pressing pressure value and the mapping relationship.
  • FIG. 7 is a structural block diagram of a text operation execution apparatus according to an embodiment of the present invention.
  • the detection module 42 includes:
  • a first detecting unit 72 configured to detect a second pressing event value at a preset position of the touch screen and a second pressing pressure value of the second pressing event
  • the determining unit 74 is coupled to the first detecting unit 72, and is configured to determine whether the second pressing pressure value is greater than a preset pressure value;
  • the second detecting unit 76 is coupled to the determining unit 74, and is configured to detect the first pressing pressure value of the first pressing event and the first pressing event if the determination result is YES.
  • the foregoing multiple modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • An optional embodiment of the present invention provides a text operation execution device, which includes three parts, a main control subsystem, a pressure touch subsystem, and a display subsystem.
  • the main control subsystem settings In order to complete the data transmission and reception, processing, user operation response, control, and unified control element management of the touch screen and display subsystem;
  • the pressure touch subsystem is set to be responsible for the detection of the touch position and touch pressure required by the main control subsystem;
  • the display subsystem is set up to be responsible for the display of the system interface and all content.
  • An alternative embodiment of the present invention also provides a text operation execution method.
  • text manipulation is an example of controlling deletion and cursor movement. The method comprises the following steps:
  • Step 1 When the user starts using the device, the touch screen is in a lit state, and the system interface is in a common text input state, and the user can input the text content through the most common touch click operation.
  • Step 2 When the user finds that the input content is incorrect and needs to be replaced with other content, the user enters an operation state of deleting the text.
  • Step 3 At this time, the user will click the delete key on the input method keyboard, and when the user touches the delete key, the character before the cursor is deleted regardless of the pressure.
  • Step 4 after that, the system enters the pressure detection state. If the second pressing pressure value reported by the pressure touch screen is greater than the preset threshold value P0, the state of deleting the text according to the continuous pressure shifting according to the pressure is entered, and the speed of deleting the text is used in the system.
  • the pressing pressure value and the velocity mapping function Pressure2SpeedFunction(p) are determined. According to the magnitude of the pressure p, the greater the pressure, the faster the deletion speed, and the deletion speed can be 0 characters/second in the case where the finger does not leave the screen. Free control between ⁇ 50 characters/second (example value, this value is the maximum value of the deleted text speed).
  • the system can still enter the quick delete mode in the manner of the old touch duration detection.
  • the purpose of entering the entire line deletion mode is to facilitate the user to see the deleted position, and exit the high-speed deletion mode at any time to return to the low-speed mode, and precisely control the position where the deletion is finally stopped.
  • FIG. 8 is a schematic diagram of a text operation execution interface according to an alternative embodiment of the present invention, as shown in FIG.
  • the delete button 802 the debug parameter display 804, the text input box 806, and the input cursor 808 are shown.
  • the text operation execution method of the optional embodiment of the present invention includes the following steps:
  • step 1 in response to the conventional deletion operation, a character before the input cursor 808 is deleted.
  • step 2 the input cursor 808 stays, and the system monitors the magnitude of the second pressing pressure value p in real time, and prepares to enter the continuous deletion state.
  • Step 3 Before the system detects the user's touch pressure p>P0, the cursor stays and is ready to enter the continuous deletion state.
  • Step 4 When the system detects the user's touch pressure p>P0, the system starts to continuously (25 frames/second, once every frame refresh) to detect the magnitude of the pressure p, and according to the “pressure rate map” described in the invention core
  • the function "Pressure2SpeedFunction(p) calculates the value of the current instantaneous delete speed (DeleteSpeed), allowing the value to be a decimal.
  • step 5 the instantaneous deletion speed (DeleteSpeed) value is added to the total number of characters to be deleted (TotalDelete, the value is allowed to be depreciated, and the initial value of the value is 0).
  • Step 6 If the total number of characters to be deleted is >1, the integer part of the total number of characters that should be deleted is the number of characters that should be deleted at the time N; the last N characters of the text in the delete box are deleted, and the total number of characters to be deleted should be deleted. To the original value -N, that is, only the fractional part is retained, continue to return to step 4 to detect the pressure p.
  • Step 7 If it is detected that the system detects the user's touch pressure p ⁇ P0, the instantaneous deletion speed is equal to 0, the cursor stops, and the process returns to step 4 to detect the pressure p.
  • Step 8 If it is detected that the user's finger leaves the touch screen, the current deletion operation is terminated.
  • Step 3 - Step 8 is performed sequentially in each frame refresh.
  • FIG. 9 is a schematic diagram of a fitting curve performed by a text operation according to an alternative embodiment of the present invention.
  • the fitting request search expression is: Exp fit ⁇ 0.15,0 ⁇ , ⁇ 0.75,0.6 ⁇ , ⁇ 1,2 ⁇ , you can get the acceleration fitting difference curve using the same reference point as follows:
  • the text operation execution method and apparatus provided by the embodiments and the optional embodiments of the present invention implement the operation speed when controlling the execution of the text operation, thereby solving the operation speed in the related art that cannot control the execution of the text operation.
  • the problem is that no additional accessories need to be added, no additional cost increases, and the operation is more intuitive and convenient.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a storage medium (such as a read only memory (ROM, Read). -Only Memory) or Random Access Memory (RAM), including a number of instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the present
  • a storage medium such as a read only memory (ROM, Read). -Only Memory) or Random Access Memory (RAM)
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but is not limited to: a USB flash drive, read only.
  • a medium that can store program code such as a memory (ROM, Read-Only Memory), a random access memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
  • the processor executes the method steps described in the foregoing embodiments according to the stored program code in the storage medium.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the above technical solution realizes the operation speed when controlling the execution of the text operation.

Landscapes

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

Abstract

Provided are a method and device for performing a text manipulation operation. The method comprises: detecting a first pressing event at a preset location on a touchscreen and a first pressure value associated with the first pressing event; determining, according to the first pressure value, a manipulation speed at which a preset text manipulation operation corresponding to the preset location is to be performed; and performing the preset text manipulation operation at the determined manipulation speed.

Description

文本操作执行方法及装置Text operation execution method and device 技术领域Technical field
本文涉及但不限于通信领域,尤指一种文本操作执行方法及装置。This document relates to, but is not limited to, the field of communications, and more particularly to a text operation execution method and apparatus.
背景技术Background technique
目前一般的触摸设备输入方式,操作键(例如:删除按钮)的响应要么是仅响应点击动作,每次点击删除一个字符,需要删除多个字符时,需要一下一下按键,要么是可以同时响应点击和长按不松手,长按时长达到一定时间时,删除速度加快或逐步加快。At present, the general touch device input mode, the response of the operation key (for example, the delete button) is only responding to the click action, one character is deleted each time, and when multiple characters need to be deleted, a button is needed, or the button can be simultaneously responded to. And long press does not let go, when the long press time reaches a certain time, the deletion speed is accelerated or gradually accelerated.
根据上述描述的操作方式,这样导致的问题就是,用户在删除大量文字而又想精确的停留在某个位置时,慢慢一次一次点击删除则速度不够快,如果按住不松手进入高速模式由于无法精确的控制删除速度,以及快要到达目的位置时无法减速,因而不能精确停留在想要的位置,这会给用户带来的不便。According to the operation mode described above, the problem caused by this is that when the user deletes a large amount of text and wants to accurately stay at a certain position, the speed of clicking and deleting one time is not fast enough, if the user does not let go and enters the high speed mode, It is impossible to accurately control the deletion speed, and it is impossible to decelerate when it is about to reach the destination position, and thus cannot accurately stay at the desired position, which causes inconvenience to the user.
针对相关技术中无法控制执行文本操作时的操作速度的问题,目前还没有有效地解决方案。There is currently no effective solution to the problem in the related art that the speed of operation when performing text operations cannot be controlled.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种文本操作执行方法及装置,能够控制执行文本操作时的操作速度。Embodiments of the present invention provide a text operation execution method and apparatus, which are capable of controlling an operation speed when performing a text operation.
本发明实施例提供了一种文本操作执行方法,包括:检测在触摸屏的预设位置上的第一按压事件和所述第一按压事件的第一按压压力值;根据所述第一按压压力值确定执行所述预设位置所对应的预设文本操作的文本操作速度;根据确定的所述文本操作速度执行所述预设文本操作。An embodiment of the present invention provides a text operation execution method, including: detecting a first pressing event at a preset position of a touch screen and a first pressing pressure value of the first pressing event; according to the first pressing pressure value Determining a text operation speed of performing a preset text operation corresponding to the preset position; performing the preset text operation according to the determined text operation speed.
可选地,根据所述第一按压压力值确定执行所述预设位置所对应的所述预设文本操作的所述文本操作速度包括:确定所述第一按压压力值落入的预设压力值范围;根据所述预设压力值范围获取预设的按压压力值与操作速度 的映射关系;根据所述预设的按压压力值与操作速度的映射关系确定所述第一按压压力值对应的所述操作速度。Optionally, determining, according to the first pressing pressure value, the performing the text operation speed of the preset text operation corresponding to the preset position comprises: determining a preset pressure that the first pressing pressure value falls into a range of values; obtaining a preset pressing pressure value and an operating speed according to the preset pressure value range a mapping relationship; determining the operating speed corresponding to the first pressing pressure value according to a mapping relationship between the preset pressing pressure value and an operating speed.
可选地,根据所述第一按压压力值确定在所述预设位置执行所述预设文本操作的所述文本操作速度包括:确定所述第一按压压力值;获取按压压力值与操作速度的映射关系;根据所述第一按压压力值,以及所述映射关系确定所述第一按压压力值对应的所述操作速度。Optionally, determining, according to the first pressing pressure value, the text operation speed of performing the preset text operation at the preset position comprises: determining the first pressing pressure value; acquiring a pressing pressure value and an operation speed a mapping relationship; determining the operating speed corresponding to the first pressing pressure value according to the first pressing pressure value and the mapping relationship.
可选地,检测在所述触摸屏的所述预设位置上的所述第一按压事件和所述第一按压事件的所述第一按压压力值包括:检测在所述触摸屏的所述预设位置上的第二按压事件和所述第二按压事件的所述第二按压压力值;判断所述第二按压压力值是否大于预设压力值;在判断结果为是的情况下,检测所述第一按压事件和所述第一按压事件的所述第一按压压力值。Optionally, detecting the first pressing event value of the first pressing event and the first pressing event on the preset position of the touch screen comprises: detecting the preset in the touch screen a second pressing pressure event at the position and the second pressing pressure value of the second pressing event; determining whether the second pressing pressure value is greater than a preset pressure value; and if the determination result is YES, detecting the The first pressing event and the first pressing pressure value of the first pressing event.
可选地,所述预设位置所对应的预设操作包括以下至少之一:所述触摸屏上文本删除键所对应的文本删除操作、所述触摸屏上方向键所对应的移动光标操作、所述触摸屏上文本输入键所对应的文本输入操作。Optionally, the preset operation corresponding to the preset position includes at least one of: a text deletion operation corresponding to the text deletion key on the touch screen, a moving cursor operation corresponding to the touch screen upper direction key, and the The text input operation corresponding to the text input key on the touch screen.
本发明实施例提供了一种文本操作执行装置,包括:检测模块,设置为检测在触摸屏的预设位置上的第一按压事件和所述第一按压事件的第一按压压力值;确定模块,设置为根据所述第一按压压力值确定执行所述预设位置所对应的预设文本操作的文本操作速度;执行模块,设置为根据确定的所述文本操作速度执行所述预设文本操作。An embodiment of the present invention provides a text operation executing apparatus, including: a detecting module, configured to detect a first pressing event at a preset position of the touch screen and a first pressing pressure value of the first pressing event; and a determining module, And being configured to determine, according to the first pressing pressure value, a text operation speed of performing a preset text operation corresponding to the preset position; and an execution module configured to perform the preset text operation according to the determined text operation speed.
可选地,所述确定模块包括:第一确定单元,设置为确定所述第一按压压力值落入的预设压力值范围;第一获取单元,设置为根据所述预设压力值范围获取预设的按压压力值与操作速度的映射关系;第二确定单元,设置为根据所述预设的按压压力值与操作速度的映射关系确定所述第一按压压力值对应的所述操作速度。Optionally, the determining module includes: a first determining unit, configured to determine a preset pressure value range in which the first pressing pressure value falls; and a first acquiring unit configured to acquire according to the preset pressure value range a mapping relationship between the preset pressing pressure value and the operating speed; the second determining unit is configured to determine the operating speed corresponding to the first pressing pressure value according to the mapping relationship between the preset pressing pressure value and the operating speed.
可选地,所述确定模块包括:第三确定单元,设置为确定所述第一按压压力值;第二获取单元,设置为获取按压压力值与操作速度的映射关系;第四确定单元,设置为根据所述第一按压压力值,以及所述映射关系确定所述第一按压压力值对应的所述操作速度。Optionally, the determining module includes: a third determining unit, configured to determine the first pressing pressure value; and a second acquiring unit configured to acquire a mapping relationship between the pressing pressure value and the operating speed; and fourth determining unit, setting And determining, according to the first pressing pressure value, and the mapping relationship, the operating speed corresponding to the first pressing pressure value.
可选地,所述检测模块包括:第一检测单元,设置为检测在所述触摸屏 的所述预设位置上的第二按压事件和所述第二按压事件的所述第二按压压力值;判断单元,设置为判断所述第二按压压力值是否大于预设压力值;第二检测单元,设置为在判断结果为是的情况下,检测所述第一按压事件和所述第一按压事件的所述第一按压压力值。Optionally, the detecting module includes: a first detecting unit configured to detect the touch screen a second pressing event at the preset position and the second pressing pressure value of the second pressing event; a determining unit configured to determine whether the second pressing pressure value is greater than a preset pressure value; The detecting unit is configured to detect the first pressing pressure value of the first pressing event and the first pressing event when the determination result is YES.
可选地,所述预设位置所对应的预设操作包括以下至少之一:所述触摸屏上文本删除键所对应的文本删除操作、所述触摸屏上方向键所对应的移动光标操作、所述触摸屏上文本输入键所对应的文本输入操作。Optionally, the preset operation corresponding to the preset position includes at least one of: a text deletion operation corresponding to the text deletion key on the touch screen, a moving cursor operation corresponding to the touch screen upper direction key, and the The text input operation corresponding to the text input key on the touch screen.
通过本发明实施例,检测在触摸屏的预设位置上的第一按压事件和第一按压事件的第一按压压力值;根据第一按压压力值确定执行预设位置所对应的预设文本操作的文本操作速度;根据确定的文本操作速度执行预设文本操作,由此可见,采用上述方案检测第一按压事件和第一按压事件的第一按压压力值,再根据第一按压压力值确定执行文本操作的速度,按照确定的速度执行文本操作,因此,实现了控制执行文本操作时的操作速度,从而解决了相关技术中无法控制执行文本操作时的操作速度的问题。The first pressing pressure value of the first pressing event and the first pressing event at the preset position of the touch screen is detected by the first pressing pressure value, and the preset text operation corresponding to the preset position is determined according to the first pressing pressure value. a text operation speed; performing a preset text operation according to the determined text operation speed, wherein it can be seen that the first pressing pressure value of the first pressing event and the first pressing event is detected by using the above solution, and then the execution text is determined according to the first pressing pressure value. The speed of the operation, the text operation is performed at a determined speed, and therefore, the operation speed at the time of controlling the execution of the text operation is realized, thereby solving the problem in the related art that the operation speed at the time of executing the text operation cannot be controlled.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是本发明实施例的一种文本操作执行方法的移动终端的硬件结构框图;1 is a block diagram showing the hardware structure of a mobile terminal for performing a text operation method according to an embodiment of the present invention;
图2是根据本发明实施例的一种文本操作执行方法的流程图;2 is a flowchart of a text operation execution method according to an embodiment of the present invention;
图3是根据本发明实施例的映射函数的示意图;3 is a schematic diagram of a mapping function according to an embodiment of the present invention;
图4是根据本发明实施例的一种文本操作执行装置的结构框图一;4 is a block diagram 1 of a text operation execution apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的一种文本操作执行装置的结构框图二;FIG. 5 is a structural block diagram 2 of a text operation execution apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的一种文本操作执行装置的结构框图三;FIG. 6 is a structural block diagram 3 of a text operation execution apparatus according to an embodiment of the present invention; FIG.
图7是根据本发明实施例的一种文本操作执行装置的结构框图四;FIG. 7 is a structural block diagram 4 of a text operation execution apparatus according to an embodiment of the present invention; FIG.
图8是根据本发明可选实施例的文本操作执行界面的示意图;8 is a schematic diagram of a text operation execution interface in accordance with an alternative embodiment of the present invention;
图9是根据本发明可选实施例的文本操作执行的拟合曲线的示意图。9 is a schematic diagram of a fit curve performed by a text operation in accordance with an alternate embodiment of the present invention.
本发明的实施方式 Embodiments of the invention
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
本申请实施例1所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种文本操作执行方法的移动终端的硬件结构框图,如图1所示,移动终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器(MCU,MicroController Unit)或可编程逻辑器件(FPGA,Field-Programmable Gate Array)等的处理装置)、设置为存储数据的存储器104、以及设置为通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided by Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or the like. 1 is a block diagram of a hardware structure of a mobile terminal performing a text operation execution method according to an embodiment of the present invention. As shown in FIG. 1, the mobile terminal 10 may include one or more (only in the figure). A processor 102 is shown (the processor 102 may include, but is not limited to, a processing device such as a Micro Controller Unit (MCU) or a Field-Programmable Gate Array (FPGA)), configured to store data. A memory 104, and a transmission device 106 configured as a communication function. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
存储器104可设置为存储应用软件的软件程序以及模块,如本发明实施例中的载波相位恢复方法对应的程序指令或模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行多种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 may be configured as a software program and a module for storing application software, such as program instructions or modules corresponding to the carrier phase recovery method in the embodiment of the present invention, and the processor 102 executes by executing a software program and a module stored in the memory 104. A variety of functional applications and data processing, that is, to achieve the above method. Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其设置为通过无线方式 与互联网进行通讯。Transmission device 106 is arranged to receive or transmit data via a network. The above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module configured to be wireless. Communicate with the Internet.
在本实施例中提供了一种文本操作执行方法,图2是根据本发明实施例的一种文本操作执行方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a text operation execution method is provided. FIG. 2 is a flowchart of a text operation execution method according to an embodiment of the present invention. As shown in FIG. 2, the flow includes the following steps:
步骤S202,检测在触摸屏的预设位置上的第一按压事件和第一按压事件的第一按压压力值;Step S202, detecting a first pressing event at a preset position of the touch screen and a first pressing pressure value of the first pressing event;
步骤S204,根据第一按压压力值确定执行预设位置所对应的预设文本操作的文本操作速度;Step S204, determining, according to the first pressing pressure value, a text operation speed of performing a preset text operation corresponding to the preset position;
步骤S206,根据确定的文本操作速度执行预设文本操作。Step S206, executing a preset text operation according to the determined text operation speed.
可选地,上述文本操作执行方法可以但不限于应用于执行文本操作的场景中。例如:触摸设备上对文本进行编辑的场景。Alternatively, the above text operation execution method may be, but is not limited to, applied to a scene in which a text operation is performed. For example: Touching a scene on a device that edits text.
可选地,上述文本操作执行方法可以但不限于应用于具有触摸屏的终端,例如:手机、平板电脑、笔记本电脑、台式电脑、智能穿戴设备等。Optionally, the text operation execution method described above may be, but is not limited to, applied to a terminal having a touch screen, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a smart wearable device, or the like.
通过上述步骤,检测在触摸屏的预设位置上的第一按压事件和第一按压事件的第一按压压力值;根据第一按压压力值确定执行预设位置所对应的预设文本操作的文本操作速度;根据确定的文本操作速度执行预设文本操作,由此可见,采用上述方案检测第一按压事件和第一按压事件的第一按压压力值,再根据第一按压压力值确定执行文本操作的速度,按照确定的速度执行文本操作,因此,实现了控制执行文本操作时的操作速度,从而解决了相关技术中无法控制执行文本操作时的操作速度的问题。Through the above steps, detecting a first pressing event at a preset position of the touch screen and a first pressing pressure value of the first pressing event; determining, according to the first pressing pressure value, a text operation of performing a preset text operation corresponding to the preset position Speed; performing a preset text operation according to the determined text operation speed, thereby being able to detect the first pressing pressure value of the first pressing event and the first pressing event by using the above solution, and determining the text operation according to the first pressing pressure value The speed, the text operation is performed at a determined speed, and therefore, the operation speed at the time of controlling the execution of the text operation is realized, thereby solving the problem in the related art that the operation speed at the time of executing the text operation cannot be controlled.
在本实施例中,预设位置所对应的预设操作可以但不限于包括以下至少之一:触摸屏上文本删除键所对应的文本删除操作、触摸屏上方向键所对应的移动光标操作、触摸屏上文本输入键所对应的文本输入操作。In this embodiment, the preset operation corresponding to the preset position may include, but is not limited to, at least one of the following: a text deletion operation corresponding to the text deletion key on the touch screen, a moving cursor operation corresponding to the direction key on the touch screen, and a touch screen The text input operation corresponding to the text input key.
在本实施例中,可以根据按压压力值与文本操作速度的映射函数Pressure2SpeedFunction(p)确定文本操作速度,Pressure2SpeedFunction(p)可以根据实际情况确定,例如:用户反应速度状况,熟练用户、年轻用户反应速度较快,老年用户、新手用户则反应速度较慢,图3是根据本发明实施例的映射函数的示意图,如图3所示,触摸压力取值范围为0~1,根据曲线,映射的速度为0~2。实际应用此曲线时,可以取倍率25(此值为测试范例程 序的刷新率)来确定实际每秒删除的字符数。In this embodiment, the text operation speed can be determined according to the mapping function Pressure2SpeedFunction(p) of the pressing pressure value and the text operation speed, and the Pressure2SpeedFunction(p) can be determined according to the actual situation, for example, the user response speed status, the skilled user, the young user reaction The speed is faster, and the old user and the novice user have a slower response speed. FIG. 3 is a schematic diagram of a mapping function according to an embodiment of the present invention. As shown in FIG. 3, the touch pressure ranges from 0 to 1, according to the curve, the mapping The speed is 0~2. When this curve is actually applied, you can take a magnification of 25 (this value is the test sample The order refresh rate) to determine the actual number of characters deleted per second.
可选地,在上述步骤S204中,根据第一按压压力值确定文本操作速度的方式可以但不限于是以下之一:Optionally, in the foregoing step S204, the manner of determining the text operation speed according to the first pressing pressure value may be, but is not limited to, one of the following:
方式一,可以确定第一按压压力值落入的预设压力值范围,根据预设压力值范围获取预设的按压压力值与操作速度的映射关系,再根据获得的预设的按压压力值与操作速度的映射关系确定第一按压压力值对应的操作速度。In the first manner, the preset pressure value range in which the first pressing pressure value falls can be determined, and the mapping relationship between the preset pressing pressure value and the operating speed is obtained according to the preset pressure value range, and then according to the obtained preset pressing pressure value and The mapping relationship of the operating speed determines the operating speed corresponding to the first pressing pressure value.
例如:文本操作以删除操作为例,上述映射关系以映射函数Pressure2SpeedFunction(p)为例,其中,p表示第一按压压力值,如图3中的实线所示,映射函数Pressure2SpeedFunction(p)可以但不限于是分段函数来实现压力与删除速度的合理映射,如下所示:For example, the text operation takes the deletion operation as an example. The mapping relationship is exemplified by the mapping function Pressure2SpeedFunction(p), where p represents the first pressing pressure value, as shown by the solid line in FIG. 3, the mapping function Pressure2SpeedFunction(p) can be But not limited to a piecewise function to achieve a reasonable mapping of pressure and deletion speed, as shown below:
Figure PCTCN2016086445-appb-000001
Figure PCTCN2016086445-appb-000001
其中,当p<P0时,分为两种情况,一种情况是尚未进入通过压力控制删除速度的连续删除状态,此时,系统在删除光标前的第一个字符后,停留在其他文字的后方,等待进一步删除的命令;另一种情况是已经进入到通过映射关系连续删除的状态,但由于压力已经小于预定阈值P0,此时手指和屏幕处于若即若离的状态,不利于有效的控制删除的速度,故回到光标停留的状态,删除速度为0。Among them, when p<P0, it is divided into two cases. In one case, the continuous deletion state of the deletion speed by the pressure control has not yet entered. At this time, the system stays in the other characters after deleting the first character before the cursor. In the rear, waiting for the command to be further deleted; another case is that the state has been continuously deleted by the mapping relationship, but since the pressure is already less than the predetermined threshold P0, the finger and the screen are in a state of being detached, which is not conducive to effective control deletion. Speed, so return to the cursor stay state, the deletion speed is 0.
当P0<p<P1时,处于压力大于阈值P0而又不太大的状态,此时,进入的是低速可变速连续删除模式,压力与删除速度的映射关系曲线的斜率较小,有利于用户通过控制压力的大小,精确的控制删除的速度,可以从0~每秒15个字符之间自由控制。When P0<p<P1, the pressure is greater than the threshold P0 and not too large. At this time, the low-speed variable speed continuous deletion mode is entered, and the slope of the mapping relationship between the pressure and the deletion speed is small, which is beneficial to the user. By controlling the magnitude of the pressure and precisely controlling the speed of deletion, it can be freely controlled from 0 to 15 characters per second.
当p>P1时,处于压力快要接近最大值的状态。此时,进入的是高速可变速连续删除模式,压力与删除速度映射曲线的斜率较大,有利于用户通过控制压力的大小,较为精确的控制高速删除时的速度,可以从每秒15个字符至每秒50个字符之间自由控制。When p>P1, the pressure is approaching the maximum value. At this time, the high-speed variable speed continuous deletion mode is entered, and the slope of the pressure and deletion speed mapping curve is large, which is beneficial for the user to control the speed of the high-speed deletion by controlling the pressure, and can be 15 characters per second. Free control between 50 characters per second.
上述分段函数可以让用户实际使用来感受对速度的控制是否自由来对参数常数进行改进,比如,如果用户感觉到低速时,速度相对于压力的变化率 偏高,则可以进一步降低低速段的斜率;如果感觉到最高速度过高或者不够高,也可以调整高速度的最高速度和斜率,重新求解方程即可。The above-mentioned piecewise function allows the user to actually use it to feel whether the control of the speed is free to improve the parameter constant. For example, if the user feels the low speed, the rate of change of the speed with respect to the pressure If it is too high, the slope of the low speed section can be further reduced; if the maximum speed is too high or not high enough, the maximum speed and slope of the high speed can be adjusted to solve the equation again.
方式二,可以确定第一按压压力值,获取按压压力值与操作速度的映射关系,再根据第一按压压力值,以及映射关系确定第一按压压力值对应的操作速度。In the second manner, the first pressing pressure value may be determined, the mapping relationship between the pressing pressure value and the operating speed is obtained, and the operating speed corresponding to the first pressing pressure value is determined according to the first pressing pressure value and the mapping relationship.
例如:可以使用2次,3次贝塞尔曲线方程或其他曲线方程拟合来替代分段函数的方式,将速度变化率更加平滑和连贯。如图3中的虚线所示的曲线,根据推断,可以在低速区获得更低的斜率。For example, you can use 2 times, 3 times Bezier curve equation or other curve equation fitting to replace the piecewise function, and make the speed change rate smoother and more consistent. As shown by the broken line in Fig. 3, it is estimated that a lower slope can be obtained in the low speed region.
自然而然的,让用户使用压力的大小来控制速度是完全直觉的设计,属于可以快速习得、无需记忆的技能,常见的例子例如,以前的游戏机的游戏,如果有需要控制人物跳跃的场景,当玩家想要跳的很高的时候,就会更大力度的去按压对应的按钮,想要加速更快的时候,也会无意识的更大力度的按压加速的按钮。因此,本发明实施例的方案相比于其他方案属于更优的方案。Naturally, letting users use the size of the pressure to control the speed is a completely intuitive design. It is a skill that can be learned quickly and without memory. Common examples are, for example, the game of the previous game console. If there is a need to control the scene of the character jumping, When the player wants to jump very high, it will press the corresponding button more strongly. If you want to accelerate faster, you will unconsciously press the accelerator button with greater force. Therefore, the solution of the embodiment of the present invention is a better solution than other solutions.
可选地,在上述步骤S202中,可以在检测到对预设位置的按压压力值达到预定值时进入根据按压压力值变速的状态。例如:可以检测在触摸屏的预设位置上的第二按压事件和第二按压事件的第二按压压力值,判断第二按压压力值是否大于预设压力值,在判断结果为是的情况下,检测第一按压事件和第一按压事件的第一按压压力值。Alternatively, in the above step S202, the state of shifting according to the pressing pressure value may be entered upon detecting that the pressing pressure value for the preset position reaches a predetermined value. For example, the second pressing pressure event at the preset position of the touch screen and the second pressing pressure value of the second pressing event may be detected to determine whether the second pressing pressure value is greater than the preset pressure value, and if the determination result is yes, A first pressing pressure value of the first pressing event and the first pressing event is detected.
实施例2Example 2
在本实施例中还提供了一种文本操作执行装置,该装置设置为实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a text operation execution device is further provided, which is configured to implement the above-mentioned embodiments and optional embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图4是根据本发明实施例的一种文本操作执行装置的结构框图一,如图4所示,该装置包括:FIG. 4 is a structural block diagram 1 of a text operation execution apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes:
1)检测模块42,设置为检测在触摸屏的预设位置上的第一按压事件和第一按压事件的第一按压压力值; 1) The detecting module 42 is configured to detect a first pressing event at a preset position of the touch screen and a first pressing pressure value of the first pressing event;
2)确定模块44,耦合至检测模块42,设置为根据第一按压压力值确定执行预设位置所对应的预设文本操作的文本操作速度;2) The determining module 44 is coupled to the detecting module 42 and configured to determine, according to the first pressing pressure value, a text operation speed of performing a preset text operation corresponding to the preset position;
3)执行模块46,耦合至确定模块44,设置为根据确定的文本操作速度执行预设文本操作。3) An execution module 46, coupled to the determination module 44, is configured to perform a preset text operation in accordance with the determined text manipulation speed.
可选地,上述文本操作执行装置可以但不限于应用于执行文本操作的场景中。例如:触摸设备上对文本进行编辑的场景。Alternatively, the above text operation executing means may be, but not limited to, applied to a scene in which a text operation is performed. For example: Touching a scene on a device that edits text.
可选地,上述文本操作执行装置可以但不限于应用于具有触摸屏的终端,例如:手机、平板电脑、笔记本电脑、台式电脑、智能穿戴设备等。Optionally, the text operation execution device may be applied to, but not limited to, a terminal having a touch screen, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a smart wearable device, or the like.
通过上述装置,检测模块设置为检测在触摸屏的预设位置上的第一按压事件和第一按压事件的第一按压压力值;确定模块设置为根据第一按压压力值确定执行预设位置所对应的预设文本操作的文本操作速度;执行模块设置为根据确定的文本操作速度执行预设文本操作,由此可见,采用上述方案检测第一按压事件和第一按压事件的第一按压压力值,再根据第一按压压力值确定执行文本操作的速度,按照确定的速度执行文本操作,因此,实现了控制执行文本操作时的操作速度,从而解决了相关技术中无法控制执行文本操作时的操作速度的问题。With the above device, the detecting module is configured to detect a first pressing event and a first pressing pressure value of the first pressing event at the preset position of the touch screen; and the determining module is configured to determine, according to the first pressing pressure value, the execution of the preset position a text operation speed of the preset text operation; the execution module is configured to perform the preset text operation according to the determined text operation speed, thereby, thereby detecting that the first pressing pressure value of the first pressing event and the first pressing event is detected by the above solution, Further, the speed of executing the text operation is determined according to the first pressing pressure value, and the text operation is performed according to the determined speed, thereby realizing the operation speed when controlling the execution of the text operation, thereby solving the operation speed in the related art that the text operation cannot be controlled. The problem.
在本实施例中,预设位置所对应的预设操作可以但不限于包括以下至少之一:触摸屏上文本删除键所对应的文本删除操作、触摸屏上方向键所对应的移动光标操作、触摸屏上文本输入键所对应的文本输入操作。In this embodiment, the preset operation corresponding to the preset position may include, but is not limited to, at least one of the following: a text deletion operation corresponding to the text deletion key on the touch screen, a moving cursor operation corresponding to the direction key on the touch screen, and a touch screen The text input operation corresponding to the text input key.
在本实施例中,可以根据按压压力值与文本操作速度的映射函数Pressure2SpeedFunction(p)确定文本操作速度,Pressure2SpeedFunction(p)可以根据实际情况确定,例如:用户反应速度状况,熟练用户、年轻用户反应速度较快,老年用户、新手用户则反应速度较慢,图3是根据本发明实施例的映射函数的示意图,如图3所示,触摸压力取值范围为0~1,根据曲线,映射的速度为0~2。实际应用此曲线时,可以取倍率25(此值为测试范例程序的刷新率)来确定实际每秒删除的字符数。In this embodiment, the text operation speed can be determined according to the mapping function Pressure2SpeedFunction(p) of the pressing pressure value and the text operation speed, and the Pressure2SpeedFunction(p) can be determined according to the actual situation, for example, the user response speed status, the skilled user, the young user reaction The speed is faster, and the old user and the novice user have a slower response speed. FIG. 3 is a schematic diagram of a mapping function according to an embodiment of the present invention. As shown in FIG. 3, the touch pressure ranges from 0 to 1, according to the curve, the mapping The speed is 0~2. When this curve is actually applied, you can take a magnification of 25 (this is the refresh rate of the test sample program) to determine the actual number of characters deleted per second.
图5是根据本发明实施例的一种文本操作执行装置的结构框图二,如图5所示,可选地,确定模块44包括: FIG. 5 is a structural block diagram 2 of a text operation execution apparatus according to an embodiment of the present invention. As shown in FIG. 5, optionally, the determining module 44 includes:
1)第一确定单元52,设置为确定第一按压压力值落入的预设压力值范围;1) The first determining unit 52 is configured to determine a preset pressure value range in which the first pressing pressure value falls;
2)第一获取单元54,耦合至第一确定单元52,设置为根据预设压力值范围获取预设的按压压力值与操作速度的映射关系;2) The first obtaining unit 54 is coupled to the first determining unit 52, and is configured to obtain a mapping relationship between the preset pressing pressure value and the operating speed according to the preset pressure value range;
3)第二确定单元56,耦合至第一获取单元54,设置为根据预设的按压压力值与操作速度的映射关系确定第一按压压力值对应的操作速度。3) The second determining unit 56 is coupled to the first obtaining unit 54 and configured to determine an operating speed corresponding to the first pressing pressure value according to a mapping relationship between the preset pressing pressure value and the operating speed.
图6是根据本发明实施例的一种文本操作执行装置的结构框图三,如图6所示,可选地,确定模块44包括:FIG. 6 is a structural block diagram 3 of a text operation execution apparatus according to an embodiment of the present invention. As shown in FIG. 6, optionally, the determining module 44 includes:
1)第三确定单元62,设置为确定第一按压压力值;1) a third determining unit 62, configured to determine a first pressing pressure value;
2)第二获取单元64,耦合至第三确定模块62,设置为获取按压压力值与操作速度的映射关系;2) The second obtaining unit 64 is coupled to the third determining module 62, and is configured to obtain a mapping relationship between the pressing pressure value and the operating speed;
3)第四确定单元66,耦合至第二获取单元64,设置为根据第一按压压力值,以及映射关系确定第一按压压力值对应的操作速度。3) The fourth determining unit 66 is coupled to the second obtaining unit 64, and is configured to determine an operating speed corresponding to the first pressing pressure value according to the first pressing pressure value and the mapping relationship.
图7是根据本发明实施例的一种文本操作执行装置的结构框图四,如图7所示,可选地,检测模块42包括:FIG. 7 is a structural block diagram of a text operation execution apparatus according to an embodiment of the present invention. As shown in FIG. 7, optionally, the detection module 42 includes:
1)第一检测单元72,设置为检测在触摸屏的预设位置上的第二按压事件和第二按压事件的第二按压压力值;1) a first detecting unit 72 configured to detect a second pressing event value at a preset position of the touch screen and a second pressing pressure value of the second pressing event;
2)判断单元74,耦合至第一检测单元72,设置为判断第二按压压力值是否大于预设压力值;2) the determining unit 74 is coupled to the first detecting unit 72, and is configured to determine whether the second pressing pressure value is greater than a preset pressure value;
3)第二检测单元76,耦合至判断单元74,设置为在判断结果为是的情况下,检测第一按压事件和第一按压事件的第一按压压力值。3) The second detecting unit 76 is coupled to the determining unit 74, and is configured to detect the first pressing pressure value of the first pressing event and the first pressing event if the determination result is YES.
需要说明的是,上述多个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that the foregoing multiple modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
下面结合本发明可选实施例进行详细说明。The following is a detailed description in conjunction with an alternative embodiment of the invention.
本发明可选实施例提供了一种文本操作执行设备,该设备包括3部分,分别为主控子系统,压力触摸子系统,显示子系统。其中,主控子系统设置 为完成数据的收发、处理,用户操作的响应、控制,以及触摸屏和显示等子系统的统一控制元管理;压力触摸子系统设置为负责主控子系统要求的触摸位置和触摸压力大小的检测;显示子系统设置为负责系统界面和所有内容的显示。An optional embodiment of the present invention provides a text operation execution device, which includes three parts, a main control subsystem, a pressure touch subsystem, and a display subsystem. Among them, the main control subsystem settings In order to complete the data transmission and reception, processing, user operation response, control, and unified control element management of the touch screen and display subsystem; the pressure touch subsystem is set to be responsible for the detection of the touch position and touch pressure required by the main control subsystem; The display subsystem is set up to be responsible for the display of the system interface and all content.
本发明可选实施例还提供了一种文本操作执行方法。在本可选实施例中,文本操作以控制删除和光标移动为例。该方法包括如下步骤:An alternative embodiment of the present invention also provides a text operation execution method. In this alternative embodiment, text manipulation is an example of controlling deletion and cursor movement. The method comprises the following steps:
步骤1,用户在开始使用本装置时,触摸屏处于点亮状态,系统界面处于常见的文字输入状态,用户可以通过最常见的触摸点击操作完成对文字内容的输入。 Step 1. When the user starts using the device, the touch screen is in a lit state, and the system interface is in a common text input state, and the user can input the text content through the most common touch click operation.
步骤2,当用户发现输入内容有误、需要更换为其他内容等情况时,进入删除文字的操作状态。Step 2: When the user finds that the input content is incorrect and needs to be replaced with other content, the user enters an operation state of deleting the text.
步骤3,此时,用户将点击输入法键盘上的删除键,当用户接触删除键时,无论压力大小,均删除光标前的一个字符。Step 3: At this time, the user will click the delete key on the input method keyboard, and when the user touches the delete key, the character before the cursor is deleted regardless of the pressure.
步骤4,此后,系统进入压力检测状态,如果压力触摸屏上报的第二按压压力值为p大于了预置阈值P0,则进入根据压力大小连续变速删除文字的状态,删除文字的速度使用系统内预置的按压压力值与速度的映射函数Pressure2SpeedFunction(p)进行确定,根据压力p的大小,压力越大,删除速度越快,在手指不离开屏幕的情况下,删除速度可以在0字符/秒~~50字符/秒(范例值,此值为删除文字速度的最大值)之间自由控制。Step 4, after that, the system enters the pressure detection state. If the second pressing pressure value reported by the pressure touch screen is greater than the preset threshold value P0, the state of deleting the text according to the continuous pressure shifting according to the pressure is entered, and the speed of deleting the text is used in the system. The pressing pressure value and the velocity mapping function Pressure2SpeedFunction(p) are determined. According to the magnitude of the pressure p, the greater the pressure, the faster the deletion speed, and the deletion speed can be 0 characters/second in the case where the finger does not leave the screen. Free control between ~50 characters/second (example value, this value is the maximum value of the deleted text speed).
可选的,系统仍然可以以旧有的触摸时长检测的方式,进入快速删除的模式。Optionally, the system can still enter the quick delete mode in the manner of the old touch duration detection.
可选的,系统可以在每秒删除文字的速度大于一行的文字字数时,进入整行删除的模式,并且,每次删除之间的间隔时间可以取值t=每行字数/删除速度,以保持实际删除速度为稳定值,进入整行删除模式的目的为有利于用户看清删除的位置,并随时退出高速删除的模式回到低速模式,精确控制最后停止删除的位置。Optionally, the system can enter the entire line deletion mode when the speed of deleting text is greater than one line of text words per second, and the interval between each deletion can take the value t=number of words per line/deletion speed to Keep the actual deletion speed as a stable value. The purpose of entering the entire line deletion mode is to facilitate the user to see the deleted position, and exit the high-speed deletion mode at any time to return to the low-speed mode, and precisely control the position where the deletion is finally stopped.
下面结合附图对本发明可选实施例进行说明。The optional embodiments of the present invention are described below with reference to the accompanying drawings.
图8是根据本发明可选实施例的文本操作执行界面的示意图,如图8所 示,删除按钮802,调试参数显示804,文本输入框806,输入光标808。FIG. 8 is a schematic diagram of a text operation execution interface according to an alternative embodiment of the present invention, as shown in FIG. The delete button 802, the debug parameter display 804, the text input box 806, and the input cursor 808 are shown.
当手指触摸删除按钮802,系统开始执行删除后,本发明可选实施例的文本操作执行方法包括如下步骤:After the finger touches the delete button 802 and the system starts to perform the deletion, the text operation execution method of the optional embodiment of the present invention includes the following steps:
步骤1,响应常规的删除操作,删除输入光标808前的一个文字。In step 1, in response to the conventional deletion operation, a character before the input cursor 808 is deleted.
步骤2,输入光标808停留,系统实时监测第二按压压力值p的大小,准备进入连续删除状态。In step 2, the input cursor 808 stays, and the system monitors the magnitude of the second pressing pressure value p in real time, and prepares to enter the continuous deletion state.
步骤3,当系统检测到用户的触摸压力p>P0前,光标停留,准备进入连续删除状态。Step 3: Before the system detects the user's touch pressure p>P0, the cursor stays and is ready to enter the continuous deletion state.
步骤4,当系统检测到用户的触摸压力p>P0后,系统开始连续(25帧/秒,每帧刷新时检测一次)检测压力p的大小,并根据发明核心中所述的“压力速度映射函数”Pressure2SpeedFunction(p)计算当前的瞬时删除速度(DeleteSpeed)的值,允许该取值为小数。Step 4: When the system detects the user's touch pressure p>P0, the system starts to continuously (25 frames/second, once every frame refresh) to detect the magnitude of the pressure p, and according to the “pressure rate map” described in the invention core The function "Pressure2SpeedFunction(p) calculates the value of the current instantaneous delete speed (DeleteSpeed), allowing the value to be a decimal.
步骤5,把瞬时删除速度(DeleteSpeed)值累加到总计应删除字符数(TotalDelete,允许该值去小数,该值初始值为0)。In step 5, the instantaneous deletion speed (DeleteSpeed) value is added to the total number of characters to be deleted (TotalDelete, the value is allowed to be depreciated, and the initial value of the value is 0).
步骤6,如果总计应删除字符数>1,则取总计应删除字符数的整数部分为当次应删除字符数N;将删除框中的文字的后N个字符删除,总计应删除字符数变为原值-N,即仅保留小数部分,继续回到步骤4检测压力p。Step 6. If the total number of characters to be deleted is >1, the integer part of the total number of characters that should be deleted is the number of characters that should be deleted at the time N; the last N characters of the text in the delete box are deleted, and the total number of characters to be deleted should be deleted. To the original value -N, that is, only the fractional part is retained, continue to return to step 4 to detect the pressure p.
步骤7,如果检测到当系统检测到用户的触摸压力p<P0,则瞬时删除速度等于0,光标停止,继续回到步骤4检测压力p。Step 7. If it is detected that the system detects the user's touch pressure p<P0, the instantaneous deletion speed is equal to 0, the cursor stops, and the process returns to step 4 to detect the pressure p.
步骤8,如果检测到用户手指离开触摸屏,则本次连续删除操作过程终止。Step 8. If it is detected that the user's finger leaves the touch screen, the current deletion operation is terminated.
其中,步骤3-步骤8,在每帧刷新时顺序执行一次。Step 3 - Step 8 is performed sequentially in each frame refresh.
对于无压力参数的触摸设备,也可以通过使用面积参数代替压力参数等方式,达到上述方法同样或类似的速度控制的效果。For touch devices without pressure parameters, it is also possible to achieve the same or similar speed control effects by using the area parameters instead of the pressure parameters.
上面提到了可以使用曲线拟合代替分段函数,例如:图9是根据本发明可选实施例的文本操作执行的拟合曲线的示意图,如图9所示,拟合请求搜索表达式为:exp fit{{0.15,0},{0.75,0.6},{1,2}},可以得到使用同样参考点的加速拟合差值曲线如下: It is mentioned above that curve fitting can be used instead of the segmentation function. For example, FIG. 9 is a schematic diagram of a fitting curve performed by a text operation according to an alternative embodiment of the present invention. As shown in FIG. 9, the fitting request search expression is: Exp fit{{0.15,0}, {0.75,0.6},{1,2}}, you can get the acceleration fitting difference curve using the same reference point as follows:
Pressure2SpeedFunction(p)=0.0155394e^(4.85815p)Pressure2SpeedFunction(p)=0.0155394e^(4.85815p)
可以看到,能够得到更加近似和平滑的曲线来控制删除速度。如果考虑各种函数的计算量差异带来的性能影响,则选择更多分段的直线方程来代替曲线方程也可以达到与曲线近似的效果。As you can see, you can get a more approximate and smooth curve to control the speed of deletion. If you consider the performance impact of the difference in the calculation of various functions, you can achieve the effect of approximating the curve by selecting more segmented line equations instead of curve equations.
综上所述,采用本发明实施例和可选实施例提供的文本操作执行方法及装置,实现了控制执行文本操作时的操作速度,从而解决了相关技术中无法控制执行文本操作时的操作速度的问题,无需增加额外附件,无附加成本的增加,并且操作更加直观和方便。In summary, the text operation execution method and apparatus provided by the embodiments and the optional embodiments of the present invention implement the operation speed when controlling the execution of the text operation, thereby solving the operation speed in the related art that cannot control the execution of the text operation. The problem is that no additional accessories need to be added, no additional cost increases, and the operation is more intuitive and convenient.
以上实施例仅用以说明本发明的技术方案而非对其进行限制,本领域的普通技术人员可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明的精神和范围,本发明的保护范围应以权利要求所述为准。The above embodiments are only used to illustrate the technical solutions of the present invention, and the present invention is not limited thereto, and those skilled in the art can modify or replace the technical solutions of the present invention without departing from the spirit and scope of the present invention. The scope of protection shall be as stated in the claims.
实施例3Example 3
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(ROM,Read-Only Memory)或随机存取存储器(RAM,Random Access Memory)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a storage medium (such as a read only memory (ROM, Read). -Only Memory) or Random Access Memory (RAM), including a number of instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the present The methods described in the various embodiments are invented.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,检测在触摸屏的预设位置上的第一按压事件和第一按压事件的第一按压压力值;S1, detecting a first pressing event at a preset position of the touch screen and a first pressing pressure value of the first pressing event;
S2,根据第一按压压力值确定执行预设位置所对应的预设文本操作的文本操作速度;S2, determining, according to the first pressing pressure value, a text operation speed of performing a preset text operation corresponding to the preset position;
S3,根据确定的文本操作速度执行预设文本操作。S3. Perform a preset text operation according to the determined text operation speed.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读 存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but is not limited to: a USB flash drive, read only. A medium that can store program code, such as a memory (ROM, Read-Only Memory), a random access memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述实施例记载的方法步骤。Optionally, in this embodiment, the processor executes the method steps described in the foregoing embodiments according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述描述的任意一个方法。Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储与存储器中的程序/指令来实现其相应功能。本发明不限于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function. The invention is not limited to any specific form of combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
上述技术方案实现了控制执行文本操作时的操作速度。 The above technical solution realizes the operation speed when controlling the execution of the text operation.

Claims (10)

  1. 一种文本操作执行方法,包括:A text operation execution method includes:
    检测在触摸屏的预设位置上的第一按压事件和所述第一按压事件的第一按压压力值;Detecting a first pressing event at a preset position of the touch screen and a first pressing pressure value of the first pressing event;
    根据所述第一按压压力值确定执行所述预设位置所对应的预设文本操作的文本操作速度;Determining, according to the first pressing pressure value, a text operation speed of performing a preset text operation corresponding to the preset position;
    根据确定的所述文本操作速度执行所述预设文本操作。The preset text operation is performed according to the determined text operation speed.
  2. 根据权利要求1所述的方法,其中,根据所述第一按压压力值确定执行所述预设位置所对应的所述预设文本操作的所述文本操作速度包括:The method according to claim 1, wherein determining the text operation speed of performing the preset text operation corresponding to the preset position according to the first pressing pressure value comprises:
    确定所述第一按压压力值落入的预设压力值范围;Determining a range of preset pressure values in which the first pressing pressure value falls;
    根据所述预设压力值范围获取预设的按压压力值与操作速度的映射关系;Obtaining a mapping relationship between the preset pressing pressure value and the operating speed according to the preset pressure value range;
    根据所述预设的按压压力值与操作速度的映射关系确定所述第一按压压力值对应的所述操作速度。And determining, according to a mapping relationship between the preset pressing pressure value and the operating speed, the operating speed corresponding to the first pressing pressure value.
  3. 根据权利要求1所述的方法,其中,根据所述第一按压压力值确定在所述预设位置执行所述预设文本操作的所述文本操作速度包括:The method according to claim 1, wherein determining the text operation speed of performing the preset text operation at the preset position according to the first pressing pressure value comprises:
    确定所述第一按压压力值;Determining the first pressing pressure value;
    获取按压压力值与操作速度的映射关系;Obtaining a mapping relationship between the pressing pressure value and the operating speed;
    根据所述第一按压压力值,以及所述映射关系确定所述第一按压压力值对应的所述操作速度。Determining the operating speed corresponding to the first pressing pressure value according to the first pressing pressure value and the mapping relationship.
  4. 根据权利要求1所述的方法,其中,检测在所述触摸屏的所述预设位置上的所述第一按压事件和所述第一按压事件的所述第一按压压力值包括:The method of claim 1, wherein detecting the first pressing event value of the first pressing event and the first pressing event at the preset position of the touch screen comprises:
    检测在所述触摸屏的所述预设位置上的第二按压事件和所述第二按压事件的所述第二按压压力值;Detecting a second pressing event at the preset position of the touch screen and the second pressing pressure value of the second pressing event;
    判断所述第二按压压力值是否大于预设压力值;Determining whether the second pressing pressure value is greater than a preset pressure value;
    在判断结果为是的情况下,检测所述第一按压事件和所述第一按压事件的所述第一按压压力值。 When the determination result is YES, the first pressing pressure value of the first pressing event and the first pressing event is detected.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述预设位置所对应的预设操作包括以下至少之一:所述触摸屏上文本删除键所对应的文本删除操作、所述触摸屏上方向键所对应的移动光标操作、所述触摸屏上文本输入键所对应的文本输入操作。The method according to any one of claims 1 to 4, wherein the preset operation corresponding to the preset position comprises at least one of: a text deletion operation corresponding to the text deletion key on the touch screen, the The moving cursor operation corresponding to the direction key on the touch screen, and the text input operation corresponding to the text input key on the touch screen.
  6. 一种文本操作执行装置,包括:A text operation execution device includes:
    检测模块,设置为检测在触摸屏的预设位置上的第一按压事件和所述第一按压事件的第一按压压力值;a detecting module configured to detect a first pressing event at a preset position of the touch screen and a first pressing pressure value of the first pressing event;
    确定模块,设置为根据所述第一按压压力值确定执行所述预设位置所对应的预设文本操作的文本操作速度;a determining module, configured to determine, according to the first pressing pressure value, a text operation speed of performing a preset text operation corresponding to the preset position;
    执行模块,设置为根据确定的所述文本操作速度执行所述预设文本操作。And an execution module configured to perform the preset text operation according to the determined text operation speed.
  7. 根据权利要求6所述的装置,其中,所述确定模块包括:The apparatus of claim 6 wherein said determining module comprises:
    第一确定单元,设置为确定所述第一按压压力值落入的预设压力值范围;a first determining unit, configured to determine a preset pressure value range in which the first pressing pressure value falls;
    第一获取单元,设置为根据所述预设压力值范围获取预设的按压压力值与操作速度的映射关系;The first acquiring unit is configured to acquire a mapping relationship between the preset pressing pressure value and the operating speed according to the preset pressure value range;
    第二确定单元,设置为根据所述预设的按压压力值与操作速度的映射关系确定所述第一按压压力值对应的所述操作速度。The second determining unit is configured to determine the operating speed corresponding to the first pressing pressure value according to a mapping relationship between the preset pressing pressure value and the operating speed.
  8. 根据权利要求6所述的装置,其中,所述确定模块包括:The apparatus of claim 6 wherein said determining module comprises:
    第三确定单元,设置为确定所述第一按压压力值;a third determining unit, configured to determine the first pressing pressure value;
    第二获取单元,设置为获取按压压力值与操作速度的映射关系;a second acquiring unit, configured to acquire a mapping relationship between the pressing pressure value and the operating speed;
    第四确定单元,设置为根据所述第一按压压力值,以及所述映射关系确定所述第一按压压力值对应的所述操作速度。The fourth determining unit is configured to determine the operating speed corresponding to the first pressing pressure value according to the first pressing pressure value and the mapping relationship.
  9. 根据权利要求6所述的装置,其中,所述检测模块包括:The apparatus of claim 6 wherein said detecting module comprises:
    第一检测单元,设置为检测在所述触摸屏的所述预设位置上的第二按压事件和所述第二按压事件的所述第二按压压力值;a first detecting unit configured to detect a second pressing event at the preset position of the touch screen and the second pressing pressure value of the second pressing event;
    判断单元,设置为判断所述第二按压压力值是否大于预设压力值;a determining unit, configured to determine whether the second pressing pressure value is greater than a preset pressure value;
    第二检测单元,设置为在判断结果为是的情况下,检测所述第一按压事件和所述第一按压事件的所述第一按压压力值。 The second detecting unit is configured to detect the first pressing pressure value of the first pressing event and the first pressing event when the determination result is YES.
  10. 根据权利要求6至9中任一项所述的装置,其中,所述预设位置所对应的预设操作包括以下至少之一:所述触摸屏上文本删除键所对应的文本删除操作、所述触摸屏上方向键所对应的移动光标操作、所述触摸屏上文本输入键所对应的文本输入操作。 The device according to any one of claims 6 to 9, wherein the preset operation corresponding to the preset position comprises at least one of: a text deletion operation corresponding to the text deletion key on the touch screen, the The moving cursor operation corresponding to the direction key on the touch screen, and the text input operation corresponding to the text input key on the touch screen.
PCT/CN2016/086445 2016-05-09 2016-06-20 Method and device for performing text manipulation operation WO2017193456A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610302296.1A CN107357509A (en) 2016-05-09 2016-05-09 Text maninulation performs method and device
CN201610302296.1 2016-05-09

Publications (1)

Publication Number Publication Date
WO2017193456A1 true WO2017193456A1 (en) 2017-11-16

Family

ID=60266113

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086445 WO2017193456A1 (en) 2016-05-09 2016-06-20 Method and device for performing text manipulation operation

Country Status (2)

Country Link
CN (1) CN107357509A (en)
WO (1) WO2017193456A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268162A (en) * 2021-06-02 2021-08-17 广州绿怡信息科技有限公司 Screen replacement detection method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080316183A1 (en) * 2007-06-22 2008-12-25 Apple Inc. Swipe gestures for touch screen keyboards
CN103970460A (en) * 2013-01-30 2014-08-06 三星电子(中国)研发中心 Touch screen-based operation method and terminal equipment using same
CN104915080A (en) * 2014-03-14 2015-09-16 索尼公司 Information processing device, input device, information processing method, and program
CN105373309A (en) * 2015-11-26 2016-03-02 努比亚技术有限公司 Text selection method and mobile terminal
CN105404444A (en) * 2015-11-26 2016-03-16 广州华多网络科技有限公司 Cursor moving method and apparatus
CN105824459A (en) * 2016-02-29 2016-08-03 维沃移动通信有限公司 Text reproducing and pasting method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068721B (en) * 2015-08-27 2019-03-15 Oppo广东移动通信有限公司 A kind of actions menu display methods and terminal
CN105183227A (en) * 2015-09-09 2015-12-23 魅族科技(中国)有限公司 Character deletion method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080316183A1 (en) * 2007-06-22 2008-12-25 Apple Inc. Swipe gestures for touch screen keyboards
CN103970460A (en) * 2013-01-30 2014-08-06 三星电子(中国)研发中心 Touch screen-based operation method and terminal equipment using same
CN104915080A (en) * 2014-03-14 2015-09-16 索尼公司 Information processing device, input device, information processing method, and program
CN105373309A (en) * 2015-11-26 2016-03-02 努比亚技术有限公司 Text selection method and mobile terminal
CN105404444A (en) * 2015-11-26 2016-03-16 广州华多网络科技有限公司 Cursor moving method and apparatus
CN105824459A (en) * 2016-02-29 2016-08-03 维沃移动通信有限公司 Text reproducing and pasting method and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268162A (en) * 2021-06-02 2021-08-17 广州绿怡信息科技有限公司 Screen replacement detection method and device

Also Published As

Publication number Publication date
CN107357509A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
US8654076B2 (en) Touch screen hover input handling
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
WO2022068773A1 (en) Desktop element adjustment method and apparatus, and electronic device
WO2017054623A1 (en) Method and device for starting application program, and electronic device
US9395916B2 (en) Method for touch input and device therefore
WO2017032005A1 (en) Operation menu display method and terminal
US20140089824A1 (en) Systems And Methods For Dynamically Altering A User Interface Based On User Interface Actions
US20170147184A1 (en) Method and electronic device for processing terminal folder
WO2022194004A1 (en) Application icon arrangement method and apparatus, and electronic device
CN108170342B (en) Application program interface display method and device, terminal and readable storage medium
WO2018010316A1 (en) Desktop page management method and device
US20130332888A1 (en) Method and device for operating list in handheld device
US9678656B2 (en) Preventing accidental selection events on a touch screen
WO2022068599A1 (en) Split-screen display control method and apparatus, and electronic device and storage medium
CN114153344A (en) Group creation method and device, electronic equipment and storage medium
WO2022242542A1 (en) Application icon management method and electronic device
WO2021232956A1 (en) Device control method and apparatus, and storage medium and electronic device
CN108491152B (en) Touch screen terminal control method, terminal and medium based on virtual cursor
CN114415886A (en) Application icon management method and electronic equipment
CN106557223B (en) Mobile terminal shortcut operation method and device
US20170168694A1 (en) Method and electronic device for adjusting sequence of shortcut switches in control center
WO2017193456A1 (en) Method and device for performing text manipulation operation
WO2022247787A1 (en) Application classification method and apparatus, and electronic device
WO2022161218A1 (en) Icon moving method and apparatus, and electronic device
CN112578961B (en) Application identifier display method and device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16901411

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16901411

Country of ref document: EP

Kind code of ref document: A1