CN108762654B - Text editing method, text editing device, text editing terminal and computer readable storage medium - Google Patents

Text editing method, text editing device, text editing terminal and computer readable storage medium Download PDF

Info

Publication number
CN108762654B
CN108762654B CN201810466682.3A CN201810466682A CN108762654B CN 108762654 B CN108762654 B CN 108762654B CN 201810466682 A CN201810466682 A CN 201810466682A CN 108762654 B CN108762654 B CN 108762654B
Authority
CN
China
Prior art keywords
text editing
text
editing
virtual keyboard
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810466682.3A
Other languages
Chinese (zh)
Other versions
CN108762654A (en
Inventor
曾鸿坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810466682.3A priority Critical patent/CN108762654B/en
Publication of CN108762654A publication Critical patent/CN108762654A/en
Application granted granted Critical
Publication of CN108762654B publication Critical patent/CN108762654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Abstract

The present application belongs to the technical field of electronic devices, and in particular, to a method, an apparatus, a terminal and a computer-readable storage medium for text editing, wherein the method comprises: determining a text editing type according to the triggering operation of a user on a text editing interface; loading a virtual keyboard corresponding to the text editing type; and editing the text according to an editing instruction triggered on the virtual keyboard. In the embodiment of the application, the text content of the text editing interface cannot be covered by the global virtual keyboard in a large area, so that a display screen of the terminal can display more text content, a user can edit the text conveniently, and the efficiency of the user for editing the text is improved.

Description

Text editing method, text editing device, text editing terminal and computer readable storage medium
Technical Field
The present application belongs to the field of electronic technologies, and in particular, to a method, an apparatus, a terminal, and a computer-readable storage medium for text editing.
Background
Generally, a terminal device such as a mobile phone has a scene in which text editing is required, for example, a scene in which text editing is performed in a WPS Office application, a memo application, and a short message application. However, in these text editing scenarios, when the user edits the text, the virtual keyboard covers the text content in a large area, so that the text content that can be displayed on the display screen is less, which affects the user to edit the text, and reduces the efficiency of the user to edit the text.
Disclosure of Invention
The embodiment of the application provides a method, a device, a terminal and a computer readable storage medium for text editing, which can solve the technical problem of low text editing efficiency.
A first aspect of an embodiment of the present application provides a method for text editing, including:
determining a text editing type according to the triggering operation of a user on a text editing interface;
loading a virtual keyboard corresponding to the text editing type;
and editing the text according to an editing instruction triggered on the virtual keyboard.
A second aspect of the embodiments of the present application provides a text editing apparatus, including:
the determining unit is used for determining the text editing type according to the triggering operation of a user on the text editing interface;
the loading unit is used for loading a virtual keyboard corresponding to the text editing type;
and the editing unit is used for editing the text according to the editing instruction triggered on the virtual keyboard.
A third aspect of the embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the above method.
In the embodiment of the application, by determining the text editing type and loading the virtual keyboard corresponding to the text editing type, when a user edits the text, the text can be edited according to an editing instruction triggered on the virtual keyboard corresponding to the text editing type instead of fixedly using the global virtual keyboard to edit the text, so that the text content of a text editing interface cannot be covered by the global virtual keyboard in a large area when the user does not input characters, a display screen of the terminal can display more text content, the text editing is facilitated for the user, and the efficiency of the user in editing the text is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flowchart of an implementation process of a method for text editing according to an embodiment of the present application;
FIG. 2 is a schematic view of an alphabet input virtual keyboard provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a line feed virtual keyboard provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of another line feed virtual keyboard provided in the embodiments of the present application;
fig. 5 is a schematic flowchart illustrating a specific implementation of step 101 of a method for text editing according to an embodiment of the present application;
FIG. 6 is a schematic diagram of loading a text editing type selection interface on a text editing interface according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a user-defined virtual keyboard provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of another user-defined virtual keyboard provided in an embodiment of the present application;
FIG. 9 is a schematic structural diagram of an apparatus for text editing according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application 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 present application and are not intended to limit the present application. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
When a user uses a mobile phone or other terminals to edit texts, the situation that the global virtual keyboard covers the text contents to be edited in a large area or occupies the terminal display screen in a large area is often encountered, so that the text contents which can be displayed by the display screen are less, the text editing of the user is influenced, and the efficiency of the user in text editing is reduced.
However, in some text editing scenarios, the user does not need to use all the operation controls in the global virtual keyboard, and only needs to repeatedly use some of the operation controls for text editing. For example, when the user does not perform the editing operation of inputting characters but only performs the line feed operation, the user only needs to move the cursor to the position where the line feed is needed on the text editing page and then click the line feed operation control in the global virtual keyboard. That is, the user only needs to use the line feed operation control in the global virtual keyboard.
Based on the application scenario, in the embodiment of the application, the text editing type is determined, and the virtual keyboard corresponding to the text editing type is loaded, so that when a user edits the text, the text can be edited according to an editing instruction triggered on the virtual keyboard corresponding to the text editing type, instead of fixedly editing the text by using the global virtual keyboard, and the efficiency of the user in editing the text is improved.
Fig. 1 is a schematic diagram illustrating an implementation flow of a text editing method provided in an embodiment of the present application, where the method is applied to a terminal, and can be executed by a text editing apparatus configured on the terminal, and the text editing apparatus can be implemented in a hardware and/or software manner, and is suitable for a situation where text editing efficiency needs to be improved. The method for editing the text provided by the embodiment of the application can comprise the following steps 101 to 103.
In step 101, a text editing type is determined according to a triggering operation of a user on a text editing interface.
In some embodiments of the present application, the terminal configured with the text editing apparatus may include terminal devices such as a smart phone, a tablet computer, a Personal Digital Assistant (PDA), and a learning machine. The terminal equipment can be provided with applications such as WPSOFFIce, memorandum, short message and the like.
In step 101, determining a text editing type according to a trigger operation of a user on a text editing interface may include: and determining the text editing type according to the triggering operation of the text editing interface applied to the WPS Office, the memorandum, the short message and the like. And each text editing type corresponds to a virtual keyboard.
Optionally, the text editing types include: a text entry type and a line feed type.
The character input type refers to character input of a text. Such as english alphabet input, chinese character input, etc. The line feed type means that a sentence in the text content is additionally provided with a paragraph.
In other embodiments of the present application, the text editing type may also be a text editing type of other specific character input. For example, a space input type, a "#" character input type, and a "-" character input type, and the like are text editing types. It should be noted that, this is only an example and is not meant to limit the scope of the present application, and other text editing types of specific character input also belong to the scope of the present application, and the text editing type of specific character input may include a text editing type of inputting one character or inputting a plurality of custom characters.
Optionally, in some embodiments of the present application, determining a text editing type according to a trigger operation of a user on a text editing interface includes: acquiring a preset number of historical editing operations of a user in a text editing interface; if the text editing types corresponding to the preset number of historical editing operations are the same, determining that the text editing type is the text editing type corresponding to the historical editing operation; or acquiring a previous character of the cursor position of the text editing interface; and if the previous character of the cursor position of the text editing interface is a preset character, determining that the text editing type is the text editing type corresponding to the preset character.
Acquiring a preset number of historical editing operations of a user in a text editing interface; if the preset number of the text editing types corresponding to the historical editing operations are the same, determining that the text editing type is the text editing type corresponding to the historical editing operation means determining the text editing type according to the same editing operation of the user on the text editing interface for the continuous set times.
For example, the text editing type is determined to be the line feed type according to 3 consecutive line feed editing operations of the user on the text editing interface. And determining the text editing type as a space input type according to the continuous 3 times of space input operation of the user on the text editing interface.
In some embodiments of the present application, a previous character of a cursor position of a text editing interface is obtained; if the previous character at the cursor position of the text editing interface is a preset character, determining that the text editing type is the text editing type corresponding to the preset character comprises the following steps: acquiring a previous character of a cursor position of a text editing interface; and if the previous character at the cursor position of the text editing interface is a line feed preset character, determining that the text editing type is a line feed type corresponding to the line feed preset character.
For example, the line feed preset characters may include: and the semicolon, the period, the question mark, the exclamation mark and the like trade off preset characters. When the previous character of the cursor position is a line feed preset character, it indicates that the user may need to perform a line feed operation, and at this time, the terminal may switch the global virtual keyboard to the line feed keyboard.
It should be noted that the preset number, the set number of times, and the preset characters in the embodiment of the present application may be set by a user in a customized manner, or different preset numbers, set numbers, or preset characters may be adapted according to different applications.
In step 102, a virtual keyboard corresponding to the text editing type is loaded.
In some embodiments of the present application, when detecting that a user edits a text, the terminal needs to load a virtual keyboard, so that the user edits the text according to an editing instruction triggered on the virtual keyboard. For example, when the terminal detects that the cursor is located on the text editing interface, it is determined that the user may need to perform text editing, and at this time, the terminal loads a virtual keyboard corresponding to the text editing type.
Generally, a virtual keyboard loaded by a terminal when a user edits a text is a global virtual keyboard. Such as a pinyin input virtual keyboard, an alphabetic input virtual keyboard, a numeric input virtual keyboard, and the like.
As shown in fig. 2, for the virtual keyboard for inputting letters provided in the embodiment of the present application, the english alphabet input keyboard 2 may include function selection controls such as 26 letter input controls, a reduction and zoom-out control 21, a hidden control 22, a line feed selection control 23, and a deletion control 24.
The user clicks the reduction and reduction control 21 on the english alphabet input keyboard 2 to trigger a reduction instruction, and can reduce the global virtual keyboard to the last called virtual keyboard except the global virtual keyboard.
In some embodiments of the present application, the virtual keyboard further includes a line feed virtual keyboard, a space input virtual keyboard, a "#" character input virtual keyboard, a "rah" character input virtual keyboard, and a "+" character input virtual keyboard, among other virtual keyboards. It should be noted that, this is only an example and is not meant to limit the scope of the present application, and other virtual keyboards for inputting specific characters also belong to the scope of the present application, and the virtual keyboard for inputting specific characters may include one character input control or a virtual keyboard of a plurality of character input controls.
The user clicks the hiding control 22 on the english alphabet input keyboard 2 to trigger the hiding instruction, and hides the english alphabet input keyboard 2, that is, closes the display of the english alphabet input keyboard 2. A user can trigger a line feed instruction by clicking a line feed selection control 23 on the English letter input keyboard 2 and execute line feed operation on text contents; the user clicks the delete control 24 on the english alphabet input keyboard 2 to trigger a delete instruction and delete the previous character at the cursor position.
In some embodiments of the present application, after determining the text editing type, a virtual keyboard corresponding to the text editing type may be loaded.
For example, after the text editing type is determined to be the line feed type, a line feed virtual keyboard corresponding to the line feed type is loaded.
As shown in fig. 3, for a schematic view of a line feed virtual keyboard provided in the embodiment of the present application, the line feed virtual keyboard 3 includes a line feed selection control 31, a reduction and zoom-out control 32, and a hidden control 33. A user clicks a line feed selection control 31 on the line feed virtual keyboard 3 to trigger a line feed instruction, and performs line feed operation on text content; a user clicks the reduction and reduction control 32 on the line feed virtual keyboard 3 to trigger a reduction instruction, and the line feed virtual keyboard is reduced to the global virtual keyboard; the user clicks the hiding control 33 on the line feed virtual keyboard 3 to trigger the hiding instruction and hide the line feed virtual keyboard, i.e., close the display of the line feed virtual keyboard.
It should be noted that in other embodiments of the present application, the line feed virtual keyboard may further include more or fewer controls on the global virtual keyboard. For example, as shown in fig. 4, the line feed virtual keyboard may also include a line feed selection control 41, a restore control 42, and a space input control 43.
Optionally, loading a virtual keyboard corresponding to the text editing type includes: and loading the movable virtual keyboard corresponding to the text editing type.
That is, the virtual keyboard can be moved according to the user's operation.
For example, when the user clicks a blank above the virtual keyboard and slides, the terminal moves the virtual keyboard according to the sliding direction of the user, so that the virtual keyboard has mobility, coverage of the virtual keyboard on a specific area of text content is effectively avoided, and the efficiency of text editing by the user is improved.
In step 103, the text is edited according to an editing instruction triggered on the virtual keyboard.
For example, according to a line feed instruction triggered on the line feed virtual keyboard, a line feed operation is performed on the text content.
Optionally, when it is determined that the text editing type is a text input type, loading a virtual keyboard corresponding to the text editing type, including: loading a global virtual keyboard corresponding to the character input type; according to the editing instruction triggered on the virtual keyboard, editing the text comprises the following steps: and inputting characters according to a character input instruction triggered on the global virtual keyboard.
In the embodiment of the application, the text editing type is determined, and the virtual keyboard corresponding to the text editing type is loaded, so that when a user edits the text, the text can be edited according to the editing instruction triggered on the virtual keyboard corresponding to the text editing type, instead of fixedly editing the text by using the global virtual keyboard. The method and the terminal have the advantages that the text content of the text editing interface can not be covered by the global virtual keyboard in a large area when the user does not input characters, the display screen of the terminal can display more text content, the text editing by the user is facilitated, and the text editing efficiency of the user is improved.
Fig. 5 is a schematic diagram illustrating a specific implementation flow of step 101 of a method for text editing according to an embodiment of the present application, where the method further defines step 101 of the embodiment described in fig. 1, and can determine a text editing type more accurately. The same parts of this embodiment as those of the embodiment described in fig. 1 are not described again, and the method for editing text in this embodiment includes steps 501 to 502.
In step 501, loading a text editing type selection interface on a text editing interface according to the pressing operation of a user on the text editing interface; the text editing type selection interface is configured with a text editing type selection control.
Fig. 6 is a schematic diagram illustrating a text editing type selection interface loaded on a text editing interface according to an embodiment of the present application. When a user performs long-time pressing operation at a cursor position 62 of a text editing interface 61, the terminal loads a text editing type selection interface 63 on the text editing interface 61; the text editing type selection interface 63 is configured with a text editing type selection control.
In step 502, a text editing type is determined based on a selected operation of the text editing type selection control.
For example, the text editing type selection controls include a linefeed selection control 64 and a text selection control 65. Determining the text editing type according to the selected operation of the text editing type selection control comprises: determining the text editing type as a line change type according to the selection operation of the line change selection control; or determining the text editing type as the character input type according to the selected operation of the character input selection control.
It should be noted that the text editing type selection control configured by the text editing type selection interface 63 may also include other text editing type selection controls. For example, a space input selection control, etc., and the text editing type selection control configured by the text editing type selection interface 63 may be configured by the user in a custom manner or in a factory setting.
In the embodiment of the application, the text editing type is determined by loading the text editing type selection interface and according to the selection operation of the text editing type selection control, so that the determination of the text editing type is more accurate, the virtual keyboard loaded according to the text editing type is more in line with the text editing requirement of a user, and the efficiency of text editing of the user is further improved.
Optionally, the method for text editing further comprises: and loading the virtual keyboard of the operation control corresponding to the long-press operation according to the long-press operation of the user on the selected operation control on the global virtual keyboard, wherein the virtual keyboard is a virtual keyboard configured by the user in a self-defined way. .
For example, if the user long presses the delete control 24 on the global virtual keyboard, the user-defined virtual keyboard 7 as shown in fig. 7 is loaded, and the virtual keyboard 7 includes a delete control 71 and a restore and zoom-out control 72. The user can trigger a deletion instruction by clicking the deletion control 71 and delete the previous character at the cursor position; the user clicks the reduction and reduction control 72 to trigger a reduction instruction, and the virtual keyboard 7 defined by the user is reduced to the global virtual keyboard 2.
As shown in fig. 8, according to the long-time pressing operation of the user on the selected operation control on the global virtual keyboard, the loaded virtual keyboard may further include a control addition selection control 81, and when the control addition selection control 81 is triggered, the global virtual keyboard is loaded, and the control selected by the user through the selection operation on the global virtual keyboard is loaded onto the virtual keyboard configured by the user.
Fig. 9 shows a schematic structural diagram of an apparatus 900 for text editing provided in an embodiment of the present application, and includes a determining unit 901, a loading unit 902, and an editing unit 903.
A determining unit 901, configured to determine a text editing type according to a trigger operation of a user on a text editing interface;
a loading unit 902, configured to load a virtual keyboard corresponding to the text editing type;
and an editing unit 903, configured to edit the text according to an editing instruction triggered on the virtual keyboard.
In some embodiments of the present application, the determining unit 901 is specifically configured to load a text editing type selection interface on the text editing interface according to a pressing operation of a user on the text editing interface; the text editing type selection interface is configured with a text editing type selection control; and determining the text editing type according to the selected operation of the text editing type selection control.
In some embodiments of the present application, the determining unit 901 is further specifically configured to obtain a preset number of historical editing operations in the text editing interface by the user; if the text editing types corresponding to the preset number of historical editing operations are the same, determining that the text editing types are the text editing types corresponding to the historical editing operations; or acquiring a previous character of the cursor position of the text editing interface; and if the previous character of the cursor position of the text editing interface is a preset character, determining that the text editing type is a text editing type corresponding to the preset character.
In some embodiments of the present application, the determining unit 901 is further specifically configured to determine that the text editing type is a line feed type. Correspondingly, the loading unit 902 is further specifically configured to load a line feed virtual keyboard corresponding to the line feed type. The editing unit 903 is further specifically configured to perform a line feed operation on the text content according to a line feed instruction triggered on the line feed virtual keyboard. Optionally, after loading the line feed virtual keyboard corresponding to the line feed type, the method includes: and restoring to the global virtual keyboard according to a restoring instruction triggered on the line feed virtual keyboard.
Optionally, the loading unit 902 is further specifically configured to load a removable virtual keyboard corresponding to the text editing type.
In some embodiments of the present application, the apparatus 900 for text editing further comprises: and the loading subunit is used for loading the virtual keyboard of the operation control corresponding to the long-press operation according to the long-press operation of the user on the selected operation control on the global virtual keyboard.
In some embodiments of the present application, the determining unit 901 is further specifically configured to determine that the text editing type is a text input type; correspondingly, the loading unit is specifically configured to load the global virtual keyboard corresponding to the text input type.
It should be noted that, for convenience and simplicity of description, the specific working process of the text editing apparatus 900 described above may refer to the corresponding process of the method described in fig. 1 to fig. 8, and is not described herein again.
As shown in fig. 10, the present application provides a terminal for implementing the method for editing text, where the terminal may include: one or more input devices 13 (only one shown in fig. 10) and one or more output devices 14 (only one shown in fig. 1). The processor 11, memory 12, input device 13 and output device 14 are connected by a bus 15.
It should be understood that, in the embodiment of the present Application, the Processor 11 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 13 may include a virtual keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 14 may include a display, a speaker, etc.
Memory 12 may include both read-only memory and random access memory and provides instructions and data to processor 11. A portion or all of the memory 11 may also include non-volatile random access memory. For example, the memory 12 may also store device type information.
The memory 12 stores a computer program that is executable on the processor 11, for example, a program of a method of text editing. The steps in the above-described method embodiment of text editing, such as steps 101 to 103 shown in fig. 1, are implemented when the processor 11 executes the computer program. Alternatively, the processor 11, when executing the computer program, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the units 901 to 903 shown in fig. 9.
The computer program may be divided into one or more modules/units, where one or more modules/units are stored in the memory 12 and executed by the processor 11 to accomplish the present application. One or more of the modules/units herein may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the terminal performing text editing. For example, the computer program may be divided into a determination unit, a loading unit, and an editing unit, and the specific functions of each unit are as follows: the determining unit is used for determining the text editing type according to the triggering operation of a user on the text editing interface; the loading unit is used for loading a virtual keyboard corresponding to the text editing type; and the editing unit is used for editing the text according to the editing instruction triggered on the virtual keyboard.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described embodiments of the device/terminal are merely illustrative, and for example, the division of the modules or units of the device/terminal is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (9)

1. A method of text editing, comprising:
determining the text editing type according to the triggering operation of a user on a text editing interface, wherein the method comprises the following steps:
acquiring a preset number of historical editing operations of a user in a text editing interface;
if the text editing types corresponding to the preset number of historical editing operations are the same, determining that the text editing types are the text editing types corresponding to the historical editing operations; wherein the text editing types include: a text input type and a line feed type; the preset number is set by a user in a self-defined way;
loading a movable virtual keyboard corresponding to the text editing type; each text editing type corresponds to a virtual keyboard;
and editing the text according to an editing instruction triggered on the virtual keyboard.
2. The method of claim 1, wherein determining the text editing type based on a user trigger operation at the text editing interface comprises:
loading a text editing type selection interface on a text editing interface according to the pressing operation of a user on the text editing interface; the text editing type selection interface is configured with a text editing type selection control;
and determining the text editing type according to the selected operation of the text editing type selection control.
3. The method of any of claims 1-2, wherein the determining a text editing type comprises:
determining the text editing type as a line feed type;
correspondingly, the loading a virtual keyboard corresponding to the text editing type includes:
loading a line feed virtual keyboard corresponding to the line feed type;
the editing text according to the editing instruction triggered on the virtual keyboard comprises:
and executing line feed operation on the text content according to the line feed instruction triggered on the line feed virtual keyboard.
4. The method of claim 3, wherein the loading the line feed virtual keyboard corresponding to the line feed type comprises, after the loading:
and restoring to the global virtual keyboard according to a restoring instruction triggered on the line feed virtual keyboard.
5. The method of claim 1, wherein the method further comprises:
and loading the virtual keyboard of the operation control corresponding to the long-press operation according to the long-press operation of the user on the selected operation control on the global virtual keyboard.
6. The method of any of claims 1-2, wherein the determining a text editing type comprises:
determining the text editing type as a character input type;
correspondingly, the loading a virtual keyboard corresponding to the text editing type includes:
and loading a global virtual keyboard corresponding to the character input type.
7. An apparatus for text editing, comprising:
the determining unit is used for determining the text editing type according to the triggering operation of a user on the text editing interface, and comprises the following steps:
acquiring a preset number of historical editing operations of a user in a text editing interface;
if the text editing types corresponding to the preset number of historical editing operations are the same, determining that the text editing types are the text editing types corresponding to the historical editing operations; wherein the text editing types include: a text input type and a line feed type; the preset number is set by a user in a self-defined way;
the loading unit is used for loading a movable virtual keyboard corresponding to the text editing type; each text editing type corresponds to a virtual keyboard;
and the editing unit is used for editing the text according to the editing instruction triggered on the virtual keyboard.
8. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201810466682.3A 2018-05-15 2018-05-15 Text editing method, text editing device, text editing terminal and computer readable storage medium Active CN108762654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810466682.3A CN108762654B (en) 2018-05-15 2018-05-15 Text editing method, text editing device, text editing terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810466682.3A CN108762654B (en) 2018-05-15 2018-05-15 Text editing method, text editing device, text editing terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108762654A CN108762654A (en) 2018-11-06
CN108762654B true CN108762654B (en) 2020-09-29

Family

ID=64008080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810466682.3A Active CN108762654B (en) 2018-05-15 2018-05-15 Text editing method, text editing device, text editing terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108762654B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190529B (en) * 2018-11-15 2024-04-30 鸿合科技股份有限公司 Keyboard input method and device and electronic equipment
CN109635261A (en) * 2018-11-16 2019-04-16 天津字节跳动科技有限公司 Online document content edition method, device, storage medium and electronic equipment
CN110633461B (en) * 2019-09-10 2024-01-16 北京百度网讯科技有限公司 Document detection processing method, device, electronic equipment and storage medium
CN113448461A (en) * 2020-06-24 2021-09-28 北京新氧科技有限公司 Information processing method, device and equipment
CN112434494A (en) * 2020-11-26 2021-03-02 北京沃东天骏信息技术有限公司 Text editing method, device, terminal and storage medium
CN114237487B (en) * 2021-11-26 2023-07-04 浙江长兴和良智能装备有限公司 Control method of pipe fitting machining equipment, interface generation method and storage medium
CN114253454B (en) * 2022-01-27 2024-03-19 华中师范大学 Dynamic keyboard generation method and system based on symbol mining
CN114860149A (en) * 2022-05-23 2022-08-05 Oppo广东移动通信有限公司 Content editing control method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777858A (en) * 2003-03-03 2006-05-24 艾科斯格米克斯私人有限公司 Unambiguous text input method for touch screens and reduced keyboard systems
CN101329616A (en) * 2008-07-24 2008-12-24 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method and system for displaying virtual keyboard
JP2014212419A (en) * 2013-04-18 2014-11-13 株式会社野村総合研究所 Character input apparatus, character input method and character input program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107741820B (en) * 2017-09-12 2020-04-03 维沃移动通信有限公司 Input method keyboard display method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777858A (en) * 2003-03-03 2006-05-24 艾科斯格米克斯私人有限公司 Unambiguous text input method for touch screens and reduced keyboard systems
CN101329616A (en) * 2008-07-24 2008-12-24 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method and system for displaying virtual keyboard
JP2014212419A (en) * 2013-04-18 2014-11-13 株式会社野村総合研究所 Character input apparatus, character input method and character input program

Also Published As

Publication number Publication date
CN108762654A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108762654B (en) Text editing method, text editing device, text editing terminal and computer readable storage medium
USRE46139E1 (en) Language input interface on a device
US10936798B2 (en) Text editing method, device, and electronic apparatus
US8605039B2 (en) Text input
US8214546B2 (en) Mode switching
US20130007606A1 (en) Text deletion
US20090256808A1 (en) Device and method for stroke based graphic input
US10180780B2 (en) Portable electronic device including touch-sensitive display and method of controlling selection of information
EP2787450A2 (en) Device and method for editing ink text data
CN107861932B (en) Text editing method, device and system and terminal equipment
CN103164162A (en) Text application method and device of hand inputting
US20060227100A1 (en) Mobile communication terminal and method
CN107291369A (en) Character editing method and device, terminal device and computer-readable recording medium
CN108737634B (en) Voice input method and device, computer device and computer readable storage medium
CN110427138A (en) Translation information processing method, device, electronic equipment and storage medium
CN112965781A (en) Method and device for processing page
US10254959B2 (en) Method of inputting a character into a text string using a sliding touch gesture, and electronic device therefor
CN113807057A (en) Method and device for editing characters
CN107423273B (en) Text editing method and device
CN112764551A (en) Vocabulary display method and device and electronic equipment
CN111752428A (en) Icon arrangement method and device, electronic equipment and medium
CN105718427B (en) Information processing method and electronic equipment
US20170255352A1 (en) Electronic device
CN107678562B (en) Phrase pinyin input method and device, computer device and readable storage medium
WO2015044519A1 (en) Method and apparatus for inputting contents in a touch-screen device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant