CN110471609B - Text information editing method and device, computer equipment and storage medium - Google Patents
Text information editing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110471609B CN110471609B CN201910755072.XA CN201910755072A CN110471609B CN 110471609 B CN110471609 B CN 110471609B CN 201910755072 A CN201910755072 A CN 201910755072A CN 110471609 B CN110471609 B CN 110471609B
- Authority
- CN
- China
- Prior art keywords
- display screen
- text
- movable cursor
- text box
- characters
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
- G06F3/04855—Interaction with scrollbars
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04806—Zoom, i.e. interaction techniques or interactors for controlling the zooming 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
The invention discloses a text information editing method, a text information editing device, computer equipment and a storage medium, which belong to the technical field of data processing, wherein the text information editing method is applied to terminal equipment at least comprising a first display screen and a second display screen which are positioned on different surfaces, and comprises the following steps: displaying a text box in an editing state on the second display screen in response to a touch of the text box in the first display screen, the text box in the editing state having a movable cursor, wherein the text box in the editing state is an enlarged version of the text box in the first display screen in which at least one of a font and a space in the text box is enlarged; and responding to the touch operation on the second display screen, and moving the movable cursor to a corresponding position. So that the user can move the movable cursor to the corresponding position at one time.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a text information editing method and apparatus, a computer device, and a storage medium.
Background
In the existing mobile phone, the method for editing the text message generally needs to select the text message, such as the contents of the short message, the mail, the web page characters, etc., and then drag the cursor in the text message to position the position where the text editing is needed. However, according to this method, if the display screen is small and the user's finger is thick, it is often troublesome to press the cursor and drag the cursor along the touch screen or drag the cursor for multiple times until the cursor is dragged to a position where text editing is needed in the process of dragging the cursor. With the pace of life increasing, people want a faster and more convenient way to edit text to save time.
Disclosure of Invention
Based on the above, the invention provides a text information editing method, a text information editing device, a computer device and a storage medium, in order to solve the technical problem of low text editing efficiency in the related art.
In a first aspect, a text information editing method is provided, which is applied to a terminal device at least including a first display screen and a second display screen, where the first display screen and the second display screen are located on different surfaces of the terminal device, and the method includes:
in response to a touch of a text box in the first display screen, displaying the text box in an editing state on the second display screen, the text box in the editing state having a movable cursor, wherein the text box in the editing state is an enlarged version of the text box in the first display screen in which at least one of a font and a space in the text box is enlarged;
and responding to the touch operation on the second display screen, and moving the movable cursor to a corresponding position.
In a second aspect, there is provided a text information editing apparatus comprising:
a text display unit configured to display a text box in an editing state on the second display screen in response to a touch of the text box in the first display screen, the text box in the editing state having a movable cursor, wherein the text box in the editing state is an enlarged version of the text box in the first display screen in which at least one of a font and a space in the text box is enlarged;
and the cursor moving unit is used for responding to the touch operation on the second display screen and moving the movable cursor to a corresponding position.
In a third aspect, a computer device is provided, which includes a memory and a processor, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the text information editing method.
In a fourth aspect, a storage medium is provided, in which computer readable instructions are stored, which, when executed by one or more processors, cause the one or more processors to perform the steps of the text information editing method described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the text information editing method, the text information editing device, the computer equipment and the storage medium are applied to terminal equipment at least comprising a first display screen and a second display screen, after a user touches a text box in the first display screen, the text box in an editing state is displayed on the second display screen, so that the user can edit the text box in the editing state, wherein the text box in the editing state is provided with a movable cursor, the text box in the editing state is an enlarged version of the text box in the first display screen, and at least one of a font and a space in the text box is enlarged in the enlarged version. Therefore, as the fonts or the intervals in the text box are enlarged, when a user performs touch operation on the second display screen to move the movable cursor in the text box in an editing state, the movable cursor can be moved to the corresponding position at one time without repeatedly moving the movable cursor to the corresponding position due to the fact that the screen is too small and the fonts are too small.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Fig. 1 is an implementation environment diagram of a text information editing method provided in one embodiment.
Fig. 2 is a flow diagram illustrating a method of text message editing in accordance with an exemplary embodiment.
Fig. 3 is a flowchart illustrating a specific implementation of step S120 in the text information editing method according to the corresponding embodiment in fig. 2.
Fig. 4 is a flowchart illustrating another text information editing method according to the corresponding embodiment of fig. 3.
Fig. 5 is a flowchart illustrating a specific implementation of step S120 in the text information editing method according to the corresponding embodiment in fig. 2.
Fig. 6 is a flow chart of another text message editing method according to the corresponding embodiment of fig. 2.
Fig. 7 is a block diagram illustrating a text information editing apparatus according to an exemplary embodiment.
Fig. 8 schematically shows an exemplary block diagram of an electronic device for implementing the text information editing method described above.
Fig. 9 schematically illustrates a computer-readable storage medium for implementing the above-described text information editing method.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a diagram of an implementation environment of a text message editing method provided in an embodiment, as shown in fig. 1, in the implementation environment, including a processor 400, a first display 100, and a second display 200.
The processor 400 is a processor of a terminal device, and is, for example, a Central Processing Unit (CPU) of a computer device, a System on Chip (SoC) in a mobile phone tablet, a control Chip of another terminal device, and the like. The first display screen 100 and the second display screen 200 may display different interfaces, and both are connected to the processor 400 and controlled by the processor 400. The first display 100 and the second display 200 are respectively located on different surfaces of the terminal device in one embodiment, and may also be located on the same surface in another embodiment. After the user touches a text box displayed in the first display screen 100, the processor 400 controls the second display screen 200 to display the text box in an editing state, the text box in the editing state having a movable cursor, and the text box in the editing state being an enlarged version of the text box in the first display screen in which at least one of a font and a space in the text box is enlarged. Then, the user performs the touch operation on the second display screen 200, and the processor 400 controls the second display screen 200 to move the movable cursor to the corresponding position when sensing the touch operation.
It should be noted that the processor 400 may be, but is not limited to, a CPU, an SoC, other control chips, and the like. The first display 100 and the second display 200 may be a flat panel display, a liquid crystal display, an Organic Light-Emitting display (OLED), and the like, but are not limited thereto. The processor 400 and the first display screen 100 and the second display screen 200 may be connected through a wired, wireless or other communication connection, and the invention is not limited herein.
As shown in fig. 2, in an embodiment, a text information editing method is provided, which is applied to a terminal device including at least a first display screen and a second display screen, and the text information editing method may be applied to the processor 400, and specifically includes the following steps:
step S110, in response to a touch on a text box in the first display screen, displaying the text box in an editing state on the second display screen, where the text box in the editing state has a movable cursor, where the text box in the editing state is an enlarged version of the text box in the first display screen, and in the enlarged version, at least one of a font and a space in the text box is enlarged.
When a user touches a text box in the first display screen 100 during the use of the terminal device, the processor 400 senses that the first display screen 100 is touched, and displays the text box in an editing state on the second display screen 200, wherein the text box in the editing state has a movable cursor, the text box is an enlarged version of the text box in the first display screen, and at least one of a font and a space in the text box is enlarged in the enlarged version. Therefore, when the user controls to move the movable cursor, the cursor does not need to be moved repeatedly due to the fact that the finger is too thick, the font in the text box is too small, or the distance between the two is too short.
Step S120, in response to the touch operation on the second display screen, moving the movable cursor to a corresponding position.
After the text box in the editing state is displayed on the second display screen 200, the user may perform a touch operation on the second display screen 200 to move the movable cursor to a corresponding position. The touch operation may include dragging the movable cursor on the screen, or clicking a cursor movement button on the screen to move the movable cursor, or performing a key touch operation on the terminal device to move the movable cursor.
The first display 100 and the second display 200 may be respectively located on different surfaces of the terminal device, or may be located on the same surface.
Optionally, in one embodiment, the first display screen 100 and the second display screen 200 are located on two opposite surfaces of the terminal device. Therefore, the two display screens are arranged oppositely, so that the size of the terminal equipment is smaller, the thickness of the terminal equipment is thinner and the terminal equipment is easy to hold when the area of the display screens is ensured. Therefore, when the user uses the terminal device to edit text information, the user can operate the terminal device with one hand, and the display areas of the first display screen 100 and the second display screen 200 are not too small, so that more text information can be displayed, and the user can acquire more information when the user performs text information editing operation.
Particularly, if a slider is displayed on the second display screen 200, the user may operate the slider on the second display screen 200 while viewing the first display screen 100, so that after the cursor is moved, other text editing operations, such as inputting characters or copying characters in a text box to other applications, may be performed on the first display screen immediately, thereby improving the efficiency of the user in editing texts.
Optionally, in one embodiment, as shown in fig. 3, in the text information editing method, a slider is included on the second display screen, so that in the using process, if the font and the space in the text box in the editing state are still not large enough, the operation of moving the cursor may be performed by means of the slider. The touch operation includes a sliding operation on the slide bar, wherein a unit length of sliding on the slide bar causes the movable cursor to move across a predetermined number of characters in a direction of the sliding operation, and step S120 may include the steps of:
step S122, calculating the number of characters crossed by the movable cursor moving along the sliding operation direction according to the number of characters crossed by the sliding unit length on the sliding strip in the sliding distance of the sliding operation.
When the user slides on the slide bar, the processor 400 collects the sliding distance of the sliding operation of the user on the slide bar, and then calculates the number of characters crossed by the movable cursor in the direction of the sliding operation according to the number of characters crossed by the movable cursor in the sliding operation caused by the length of the sliding unit on the slide bar.
In one embodiment, the calculating process may be to query a unit length-to-number correspondence table that details the number of characters corresponding to each unit length interval, so as to calculate the number of characters over which the movable cursor moves along the sliding operation direction according to the unit length-to-number correspondence table.
In another embodiment, the calculation process may be according to a formula, which may reduce the storage space occupied by the program and may conveniently change part of the fixed parameters to adjust the sensitivity of the slider.
In one embodiment, the calculation formula is:
A=kint(D)
in another embodiment, the calculation formula may be:
A=int(kD)
wherein, a is the number of the last calculated characters that the movable cursor moves across along the direction of the sliding operation, D is the sliding distance of the sliding operation of the user on the sliding bar, k is a constant term coefficient, and int is an integer function. In one embodiment, the user can adjust the constant term coefficient k according to the requirement on the moving speed of the cursor.
Optionally, in one embodiment, the slide bar may include a horizontal slide bar and a vertical slide bar, and the touch operation includes a slide operation on the horizontal slide bar and a slide operation on the vertical slide bar.
In this embodiment, when the user slides a unit length on the horizontal slider, the processor 400 collects the distance that the user performs a sliding operation on the horizontal slider, and then causes the movable cursor to move in the horizontal direction across a predetermined number of characters. When a user slides a unit length on the vertical slider, processor 400 collects the distance the user performs a sliding operation on the vertical slider and then causes the movable cursor to move in the vertical direction across a predetermined number of characters.
Wherein the predetermined number is, for example, 2, 3, 5, 7, etc., and the disclosure is not limited thereto. The predetermined number of characters may be determined by a method of looking up a table and a method of calculating by a formula in the above embodiments.
Step S123, moving the movable cursor across the calculated character in the direction of the sliding operation.
After the calculated number of characters over which the movable cursor moves in the direction of the sliding operation, the processor 400 may control to move the movable cursor over the calculated number of characters in the direction of the sliding operation, such that the movable cursor moves to a corresponding position.
Alternatively, fig. 4 is an embodiment of a text information editing method shown according to the corresponding embodiment in fig. 3, in which the slider includes a plurality of sliders for one direction, and the length of the unit sliding on different sliders is such that the number of characters across which the movable cursor moves in the direction of the sliding operation is different, before step S122, the following steps may be further included:
step S121, receiving activation of a slider bar of the plurality of slider bars by a user.
In this embodiment, there are a plurality of sliders displayed on the second display screen 200, and the sensitivity (i.e., the number of characters that the unit length of the slider is such that the movable cursor moves across in the sliding operation direction) of different slider settings may be different, so that the user needs to select a slider with appropriate sensitivity for activation before moving the movable cursor by sliding the slider, and then slide the activated slider to control the movement of the movable cursor.
The activation manner of the slider may be to click the slider, to slide the slider, or to double click the slider, which is not limited in this disclosure.
Optionally, in one embodiment, before step S122, the following steps may be further included:
hiding the inactive slider and only displaying the active slider.
In this embodiment, after the user touches the text box in the first display screen 100, the second display screen 200 is triggered to display a plurality of sliders and the sensitivity corresponding to each slider, after the user clicks one of the sliders, the slider is activated, the other sliders that are not activated are hidden from the second display screen 200, and only the activated slider is displayed, at this time, the user slides on the activated slider, and the processor 400 calculates the number of characters across which the movable cursor moves in the direction of the sliding operation according to the sliding distance of the sliding operation of the user on the activated slider and the sensitivity of the activated slider. And finally, moving the movable cursor to move across the calculated number of characters along the sliding operation direction to finish the operation of moving the cursor.
In another embodiment, after the user touches a text box in the first display screen 100, the second display screen 200 is triggered to display a plurality of sliders and the corresponding sensitivity of each slider, and after the user touches one of the sliders, the slider is activated, and other sliders that are not activated are still displayed on the second display screen 200. At this time, the user slides on the activated slider, and the processor 400 calculates the number of characters over which the movable cursor moves in the direction of the sliding operation according to the sliding distance of the sliding operation of the user on the activated slider and the sensitivity of the activated slider, and then moves the movable cursor in the direction of the sliding operation over the calculated number of characters, thereby completing the operation of moving the cursor for the first time. The user then selects another slider activation and the same action is performed, thus completing the second cursor movement. Generally, the sensitivity of the first activated slider is higher (i.e. the unit length of the sliding movement enables the number of characters crossed by the movable cursor moving along the direction of the sliding operation to be larger), and the sensitivity of the second activated slider is lower (i.e. the unit length of the sliding movement enables the number of characters crossed by the movable cursor moving along the direction of the sliding operation to be smaller), so that when the cursor needs to move in the text for a longer distance, the method can better save the time of the user and improve the editing efficiency of the user.
Optionally, in one embodiment, the second display screen 200 further has a slider span setting control thereon, by which a user can change the number of characters that the movable cursor moves across after a unit length slides on the slider.
Alternatively, the slider span setting control may be a plus key and a minus key, each touch of the plus key or the minus key corresponding to a unit length of sliding on the slider such that the number of characters across which the movable cursor moves increases or decreases by a fixed numerical value. The mode of changing the sensitivity by the plus-minus key only needs two buttons of the plus-minus key, and the sensitivity of the slider can be adjusted and controlled relatively simply and conveniently.
Alternatively, the slider span setting control may be a numeric input box, and the number entered through the numeric input box sets the number of characters on the slider that the sliding unit length causes the movable cursor to move across. Compared with the mode of adding and subtracting keys, when the user needs to adjust the sensitivity of the slider from a lower value to a higher value, the user only needs to press the button for a plurality of times or a long time by using the adding and subtracting keys, so that the user feels tired, the using comfort of the user is reduced, and a large amount of time is wasted. The problem can be well relieved by directly inputting through the number keys, a user can quickly and conveniently adjust the sensitivity to a required value through the number keys without pressing the same key for multiple times, the fatigue of the user in the using process is avoided, the using comfort of the user is improved, and the time is saved for the user.
Optionally, this embodiment is a detailed description of step S120 in the text information editing method shown in a corresponding embodiment in fig. 2, in the text information editing method, the second display screen includes a plurality of interaction controls with moving steps, where the number of times of touching the interaction controls causes the movable cursor to move across the next number of characters in a direction corresponding to the interaction controls, the touch operation includes touching one of the interaction controls, and step S120 may include the following steps:
the moving the movable cursor to the respective location comprises: and moving the movable cursor to enable the movable cursor to move in the direction corresponding to the interaction control and cross the touch times of the characters.
In this embodiment, when the user slides on the screen, the number of characters spanned by the movement of the movable cursor along the direction of the sliding operation can be adjusted by touching the interactive control for multiple times, and different numbers of touching times correspond to different numbers of characters. The mode of changing the sensitivity by touching the interactive control for multiple times can simply adjust and control the sliding sensitivity only by the interactive control.
Optionally, this embodiment is a detailed description of step S120 in the text information editing method shown in the corresponding embodiment of fig. 2, in which the touch operation includes inputting a number in the moving step input box, where inputting a number in the moving step input box causes the movable cursor to move across the number of characters in one direction corresponding to the input box; the touch operation includes inputting a number in one moving step input box, the second display screen includes a plurality of moving step input boxes, and step S120 may include the following steps:
and moving the movable cursor to enable the movable cursor to move in a direction corresponding to a moving step input box for inputting the number to cross the number characters.
In this embodiment, the user can input numbers in the moving step input box to adjust the number of characters over which the movable cursor moves in the direction of the sliding operation when the user slides on the screen. Compared with the method of adding and subtracting keys, when the user needs to adjust the sensitivity of the sliding to a higher value, the method only uses the touch key to press for many times or a longer time, which is fatiguing for the user, reduces the comfort level of the user, and wastes a lot of time for the user. The problem can be well relieved by directly inputting through the number keys, a user can quickly and conveniently adjust the sensitivity to a required value through the number keys without pressing the same key for multiple times, the fatigue of the user in the using process is avoided, the using comfort of the user is improved, and the time is saved for the user.
Optionally, fig. 5 is a detailed description of step S120 in the text information editing method shown in the corresponding embodiment of fig. 2, where in the text information editing method, the text information editing includes text information copying, and step S120 may further include the following steps:
step S1201, in response to a copy trigger operation, displaying a first movable cursor for positioning a copy start point and a second movable cursor for positioning a copy end point;
step S1202, in response to a first touch operation on a second display screen, moving the first movable cursor to a corresponding position as a replication origin;
step S1203, in response to a second touch operation on a second display screen, moving the second movable cursor to a corresponding position as a copy destination;
after moving the movable cursor to a corresponding position in response to a touch operation on the second display screen, the method further comprises:
step S1204, takes the character between the copy start point and the copy end point as text information to be copied.
The present embodiment is an embodiment when a user performs a copy operation, after the user triggers the copy operation, the second display 200 displays a first movable cursor for positioning a copy start point and a second movable cursor for positioning a copy end point, at this time, the user may perform a first touch operation on the second display 200, after the processor 400 detects the first touch operation, the processor 400 controls the first movable cursor to move to a corresponding position and to serve as the copy start point, then, the user may perform a second touch operation on the second display 200, after the processor 400 senses the second touch operation, the processor 400 controls the second movable cursor to move to a corresponding position and to serve as the copy end point, and finally, the user may copy a character between the copy start point and the copy end point as text information to be copied. In another embodiment, the user may first perform the second touch operation on the second display 200, and then perform the second touch operation on the second display 200, which is not limited in this disclosure.
Optionally, the text in the text box displayed on the second display screen is converted from the text in the text box displayed on the first display screen according to a predetermined conversion policy.
Optionally, fig. 6 illustrates another text information editing method according to the corresponding embodiment of fig. 2, where text in the text box displayed on the second display screen is converted from text in the text box displayed on the first display screen according to a predetermined conversion policy by:
step S101, acquiring the type of a text in a text box displayed on the first display screen;
step S102, obtaining a conversion strategy corresponding to the type of the text;
step S103, applying the obtained conversion policy to the text in the text box displayed on the first display screen to obtain the text in the text box displayed on the second display screen.
In this embodiment, in some application environments (for example, short messages), texts of different text types may be converted into a form with higher readability according to different policies and displayed for a user, and at this time, it is not very convenient for the user to edit (for example, copy) the text, so in this embodiment, the processor 400 may simultaneously obtain the text type in the text box displayed on the first display screen and a conversion policy corresponding to the text type after receiving an edit instruction triggered by the user, and then convert the text in the text box displayed on the first display screen according to the conversion policy to obtain the text in the text box displayed on the second display screen, where the text in the text box displayed on the second display screen is a text that is easier to copy and paste.
For example, in one embodiment, a user needs to copy a travel short message, the travel short message is displayed in a form more convenient for the user to read in a first display screen due to self optimization of a terminal system, the form is not favorable for the user to copy, the user needs to convert the short message into an original short message again before copying, and in this embodiment, a second display screen of the terminal device converts the form displayed in the first display screen into the original short message form convenient for the user to copy according to a conversion strategy. Therefore, the user can conveniently copy in the second display screen, and the manual conversion operation is avoided.
In one embodiment, the type of text in the text box may include multiple categories, such as basic service category, personal service category, transaction service category, entertainment service category, location service category, and corporate and industrial application service category.
As shown in fig. 6, in one embodiment, a text information editing apparatus is provided, which may be integrated in the processor 400, and specifically may include a text display unit 410 and a cursor moving unit 420,
a text display unit 410 configured to display a text box in an edited state on the second display screen in response to a touch of the text box in the first display screen, the text box in the edited state having a movable cursor, wherein the text box in the edited state is an enlarged version of the text box in the first display screen in which at least one of a font and a space in the text box is enlarged;
a cursor moving unit 420, configured to move the movable cursor to a corresponding position in response to a touch operation on the second display screen.
The implementation processes of the functions and actions of the modules in the device are specifically described in the implementation processes of the corresponding steps in the text information editing method, and are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 500 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 500 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 8, the electronic device 500 is embodied in the form of a general purpose computing device. The components of the electronic device 500 may include, but are not limited to: the at least one processing unit 510, the at least one memory unit 520, and a bus 530 that couples various system components including the memory unit 520 and the processing unit 510.
Wherein the memory unit stores program code that is executable by the processing unit 510 to cause the processing unit 510 to perform steps according to various exemplary embodiments of the present invention as described in the "exemplary methods" section above in this specification. For example, the processing unit 510 may perform step S110 as shown in fig. 2, in response to a touch of a text box in the first display screen, displaying the text box in an editing state on the second display screen, the text box in the editing state having a movable cursor, wherein the text box in the editing state is an enlarged version of the text box in the first display screen in which at least one of a font and a space in the text box is enlarged. Step S120, in response to the touch operation on the second display screen, moving the movable cursor to a corresponding position.
The memory unit 520 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM) 5201 and/or a cache memory unit 5202, and may further include a read-only memory unit (ROM) 5203.
The electronic device 500 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 500, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 500 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 550. Also, the electronic device 500 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 560. As shown, the network adapter 560 communicates with the other modules of the electronic device 500 over the bus 530. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
Referring to fig. 9, a program product 600 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this respect, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily appreciated that the processes illustrated in the above figures are not intended to indicate or limit the temporal order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
Claims (14)
1. A text message editing method is applied to a terminal device at least comprising a first display screen and a second display screen, and the method comprises the following steps:
displaying a text box in an editing state on the second display screen in response to a touch of the text box in the first display screen, the text box in the editing state having a movable cursor, wherein the text box in the editing state is an enlarged version of the text box in the first display screen in which at least one of a font and a space in the text box is enlarged;
responding to touch operation on a second display screen, and moving the movable cursor to a corresponding position;
the text in the text box displayed on the second display screen is converted from the text in the text box displayed on the first display screen according to a preset conversion strategy, and the text box in an editing state is displayed on the second display screen in response to the touch of the text box in the first display screen, and the method comprises the following steps:
acquiring the type of the text in the text box displayed on the first display screen:
acquiring a conversion strategy corresponding to the type of the text;
and applying the acquired conversion strategy to the text in the text box displayed on the first display screen to obtain the text in the text box displayed on the second display screen.
2. The method of claim 1, wherein the second display screen includes a slide-bar thereon, the touch operation comprising a slide operation on the slide-bar, wherein sliding a unit length on the slide-bar causes the movable cursor to move across a predetermined number of characters in a direction of the slide operation,
the moving the movable cursor to the respective location comprises:
calculating the number of characters over which the movable cursor moves in the direction of the sliding operation according to the number of characters over which the movable cursor moves by the length of the sliding unit on the sliding strip in the sliding distance of the sliding operation;
moving the movable cursor across the calculated number of characters in the direction of the sliding operation.
3. The method of claim 2, wherein the slider bar comprises a horizontal slider bar and a vertical slider bar, the touch operations comprising a slide operation on the horizontal slider bar and a slide operation on the vertical slider bar, wherein sliding a unit length on the horizontal slider bar causes the movable cursor to move in a horizontal direction across a predetermined number of characters and sliding a unit length on the vertical slider bar causes the movable cursor to move in a vertical direction across a predetermined number of characters.
4. The method of claim 2, wherein the slider includes a plurality of sliders corresponding to a same direction, a unit length of sliding on different sliders causes the movable cursor to move across a different number of characters in a direction of the sliding operation, the method further comprising, prior to moving the movable cursor to a corresponding position:
receiving a user activation of one of the plurality of sliders.
5. The method of claim 4, wherein after receiving user activation of one of the plurality of sliders, the method further comprises:
hiding the unactivated slider and only displaying the activated slider.
6. The method of claim 2, further comprising a slider span setting control on the second display screen, the slider having a length of a unit of slide such that the number of characters across which the movable cursor moves is set by the slider span setting control.
7. The method of claim 6, wherein the slider span setting control is a numeric input box, the number entered through the numeric input box setting the number of characters over which the movable cursor moves by a unit length of sliding on the slider, or the slider span setting control is a plus key and a minus key, each touch of the plus key or the minus key corresponding to a unit length of sliding on the slider increasing or decreasing the number of characters over which the movable cursor moves by a fixed numerical value.
8. The method of claim 1, comprising a plurality of movement step input boxes on the second display screen, wherein entering a number in the movement step input box causes the movable cursor to move across the number of characters in a direction corresponding to the input box;
the touch operation comprises inputting a number in one of the moving step input boxes,
the moving the movable cursor to the respective location comprises: and moving the movable cursor to enable the movable cursor to move in the direction corresponding to the moving step input box of the input number to cross the number characters.
9. The method of claim 1, including a plurality of movement-step interaction controls on the second display screen, wherein a number of times the interaction controls are touched causes the movable cursor to move across a next number of characters in a corresponding one of the directions of the interaction controls,
the touch operation comprises touching one of the interaction controls,
said moving the movable cursor to a respective position comprises: and moving the movable cursor to enable the movable cursor to move in the direction corresponding to the interaction control and stride over a plurality of characters in touch.
10. The method of claim 1, wherein the first display screen and the second display screen are located on different surfaces of a terminal device.
11. The method of claim 1, wherein the editing of the text message comprises copying of the text message,
the moving the movable cursor to a corresponding position in response to the touch operation on the second display screen comprises:
displaying a first movable cursor for positioning a replication origin and a second movable cursor for positioning a replication destination in response to a replication trigger operation;
responding to a first touch operation on a second display screen, and moving the first movable cursor to a corresponding position to serve as a replication starting point;
responding to a second touch operation on a second display screen, and moving a second movable cursor to a corresponding position to serve as a copying terminal point;
after moving the movable cursor to a corresponding position in response to a touch operation on the second display screen, the method further comprises:
and taking the characters between the replication starting point and the replication end point as text information to be replicated.
12. An apparatus for editing text information, the apparatus comprising:
a text display unit configured to display a text box in an editing state on a second display screen in response to a touch of the text box in a first display screen, the text box in the editing state having a movable cursor, wherein the text box in the editing state is an enlarged version of the text box in the first display screen in which at least one of a font and a space in the text box is enlarged;
the cursor moving unit is used for responding to touch operation on the second display screen and moving the movable cursor to a corresponding position;
the text display unit is specifically configured to acquire a type of a text in the text box displayed on the first display screen, acquire a conversion policy corresponding to the type of the text, and apply the acquired conversion policy to the text in the text box displayed on the first display screen to obtain a text in the text box displayed on the second display screen.
13. A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1 to 11.
14. A storage medium storing computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the method of any one of claims 1-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910755072.XA CN110471609B (en) | 2019-08-15 | 2019-08-15 | Text information editing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910755072.XA CN110471609B (en) | 2019-08-15 | 2019-08-15 | Text information editing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110471609A CN110471609A (en) | 2019-11-19 |
CN110471609B true CN110471609B (en) | 2023-02-07 |
Family
ID=68510171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910755072.XA Active CN110471609B (en) | 2019-08-15 | 2019-08-15 | Text information editing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110471609B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110909524B (en) * | 2019-11-27 | 2023-12-26 | 维沃移动通信有限公司 | Editing method and electronic equipment |
CN111857495A (en) * | 2020-06-30 | 2020-10-30 | 海尔优家智能科技(北京)有限公司 | Information display method, information display device, storage medium, and electronic device |
CN113703593A (en) * | 2021-11-01 | 2021-11-26 | 徐州正达光电有限公司 | Equipment interactive communication method, device and storage medium |
CN115878012A (en) * | 2023-03-01 | 2023-03-31 | 南方科技大学 | Method and device for editing text of electronic equipment, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103999028A (en) * | 2011-05-23 | 2014-08-20 | 微软公司 | Invisible control |
CN105744062A (en) * | 2016-01-29 | 2016-07-06 | 深圳天珑无线科技有限公司 | Method and system for accurately positioning text cursor |
CN106980438A (en) * | 2017-03-20 | 2017-07-25 | 联想(北京)有限公司 | Cursor control method, apparatus and system |
CN107885416A (en) * | 2017-10-30 | 2018-04-06 | 努比亚技术有限公司 | A kind of text clone method, terminal and computer-readable recording medium |
CN109840060A (en) * | 2019-01-31 | 2019-06-04 | 维沃移动通信有限公司 | A kind of display control method and terminal device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9009586B2 (en) * | 2012-07-12 | 2015-04-14 | Micah Nathanael Peterson | Knowledgebase article authoring system, apparatus and method |
-
2019
- 2019-08-15 CN CN201910755072.XA patent/CN110471609B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103999028A (en) * | 2011-05-23 | 2014-08-20 | 微软公司 | Invisible control |
CN105744062A (en) * | 2016-01-29 | 2016-07-06 | 深圳天珑无线科技有限公司 | Method and system for accurately positioning text cursor |
CN106980438A (en) * | 2017-03-20 | 2017-07-25 | 联想(北京)有限公司 | Cursor control method, apparatus and system |
CN107885416A (en) * | 2017-10-30 | 2018-04-06 | 努比亚技术有限公司 | A kind of text clone method, terminal and computer-readable recording medium |
CN109840060A (en) * | 2019-01-31 | 2019-06-04 | 维沃移动通信有限公司 | A kind of display control method and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN110471609A (en) | 2019-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110471609B (en) | Text information editing method and device, computer equipment and storage medium | |
US8990732B2 (en) | Value interval selection on multi-touch devices | |
US5586317A (en) | Method and apparatus for implementing I/O in a frame-based computer system | |
US20140145945A1 (en) | Touch-based input control method | |
CN102902480A (en) | Control area for a touch screen | |
EP2776909A1 (en) | Providing keyboard shortcuts mapped to a keyboard | |
US20180088966A1 (en) | Electronic device and method thereof for managing applications | |
US11119636B2 (en) | Display for input selection on a compact information processing device | |
KR20140132731A (en) | Web page application controls | |
CN112667328B (en) | Stock quotation device and method with multiple graphical user interfaces | |
JP2013045147A (en) | Graph display device and program | |
CN114116098B (en) | Application icon management method and device, electronic equipment and storage medium | |
CN112631474B (en) | Method and device for moving elements in page, medium and equipment | |
US9710124B2 (en) | Augmenting user interface elements based on timing information | |
JP5882973B2 (en) | Information processing apparatus, method, and program | |
CN110489023A (en) | Implementation method, device, equipment, medium and the system of windows display | |
CN112462989A (en) | Operation method and device of intelligent interaction panel, intelligent interaction panel and medium | |
JP7216317B1 (en) | Information processing device, its control method, and program | |
CN113360064A (en) | Method and device for searching local area of picture, medium and electronic equipment | |
CN114035739B (en) | Graph drawing method and device, computer readable storage medium and electronic equipment | |
CN111078112A (en) | Terminal device control method and device, computer device and storage medium | |
KR101332644B1 (en) | Method for providing user interface in mobile device and recording medium for storing the same | |
CN116368455A (en) | Terminal control method, device, medium and electronic equipment | |
CN110825372A (en) | Page configuration method, device, medium and electronic equipment of e-commerce management system | |
JPWO2007063594A1 (en) | Input support computer program and input support computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |