CN114626344A - Text processing method and related device - Google Patents

Text processing method and related device Download PDF

Info

Publication number
CN114626344A
CN114626344A CN202011359515.2A CN202011359515A CN114626344A CN 114626344 A CN114626344 A CN 114626344A CN 202011359515 A CN202011359515 A CN 202011359515A CN 114626344 A CN114626344 A CN 114626344A
Authority
CN
China
Prior art keywords
text
editable
area
text content
editable area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011359515.2A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011359515.2A priority Critical patent/CN114626344A/en
Publication of CN114626344A publication Critical patent/CN114626344A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application discloses a text processing method, which comprises the following steps: opening text content corresponding to the target file through an editor; determining an editable area in the text content according to the editing tag corresponding to the target file, wherein the editable area is a part of text area in the text content; identifying a focus position of an input focus in the text content; if the focal position is determined to be in the editable area, adjusting the state of the editor to be in an editable state; and if the focal position is determined not to be in the editable area, adjusting the state of the editor to be in the non-editable state. According to the method and the device, the editable area can be arranged in the text content of the target file, and the state of the editor is adjusted to be the editable state only when the user wants to edit the text content in the editable area, so that the text content outside the editable area is protected, meanwhile, the text content outside the editable area does not need to be checked in other processes, and the file safety and the text processing efficiency are improved.

Description

Text processing method and related device
Technical Field
The present application relates to the field of text processing, and in particular, to a text processing method and a related apparatus.
Background
Editors, such as code editors, are commonly used to write text, through which functions such as entry, generation, editing, etc. of text, such as code, may be implemented.
When writing text by an editor, all the completed text is editable, which may result in incorrect operations or editing parts that should not be edited, such as incorrectly modifying some correct content, editing originally correct code templates, and the like.
These operations may cause unnecessary impact on text writing, and may take a lot of time to review, thereby reducing the efficiency of text writing.
Disclosure of Invention
In order to solve the technical problem, the present application provides a text processing method, an editable area may be set in text content of a target file, and after a user opens the target file, the state of an editor may be adjusted to an editable state only when the user wants to edit the text content in the editable area by monitoring a focus position of an input focus, so that the text content outside the editable area is protected, and meanwhile, the text content outside the editable area does not need to be checked in other processes, thereby improving file security and text processing efficiency.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a text processing method, where the method includes:
opening text content corresponding to the target file through an editor;
determining an editable area in the text content according to an editing tag corresponding to the target file, wherein the editable area is a part of text area in the text content;
identifying a focus position of an input focus in the textual content;
if the focal position is determined to be in the editable area, adjusting the state of the editor to be an editable state;
and if the focal position is determined not to be in the editable area, adjusting the state of the editor to be in a non-editable state.
In a second aspect, an embodiment of the present application provides a text processing apparatus, where the apparatus includes an opening unit, a first determining unit, a recognizing unit, a first adjusting unit, and a second adjusting unit:
the starting unit is used for opening the text content corresponding to the target file through the editor;
the first determining unit is used for determining an editable area in the text content according to the editing tag corresponding to the target file, wherein the editable area is a part of text area in the text content;
the identification unit is used for identifying the focus position of an input focus in the text content;
the first adjusting unit is configured to adjust the state of the editor to an editable state if it is determined that the focus position is located in the editable area;
and the second adjusting unit is used for adjusting the state of the editor to be in a non-editable state if the focal position is determined not to be in the editable area.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the text processing method according to the first aspect according to instructions in the program code.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, where the computer program is configured to execute the text processing method described in the first aspect.
According to the technical scheme, when the target file is edited, the editable area can be set in the text content of the target file according to the requirement. After the text content corresponding to the target file is opened through the editor, an editable area in the text content can be determined according to the editing tag corresponding to the target file, wherein the editable area is a part of text area in the text content, and the part of text area allows editing through the editor. The editor provides an input focus for text editing, a user can edit the text at the position indicated by the input focus, and the focus position of the input focus in the text content is identified when the target file is opened for editing through the editor. If the focus position is determined to be in the editable area, adjusting the state of the editor to be in an editable state, and allowing a user to edit the text content of the editable area; if the focus position is determined not to be in the editable area, the state of the editor is adjusted to be in the non-editable state, so that the user is prevented from editing the text content outside the editable area, the editing of the text content in the target file can be effectively controlled, and the protection of the text content outside the editable area is realized. When the target file is checked, only the content in the editable area needs to be checked, so that the time for checking the file is reduced to a certain extent, the misoperation of the uneditable content is avoided, and the efficiency of writing the text is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a text processing method in an actual application scenario according to an embodiment of the present application;
fig. 2 is a flowchart of a text processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a text processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a text processing method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a text processing method according to an embodiment of the present application;
fig. 6 is a flowchart of a text processing method in an actual application scenario according to an embodiment of the present application;
fig. 7 is a block diagram of a text processing apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of a computer device according to an embodiment of the present application;
fig. 9 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings.
Electronic documents are one of the things that are frequently touched in life and work. In the text content corresponding to the file, a part of the text content is usually protected, and if the part of the text content is modified, a certain risk may be brought. In the related art, after a file is opened, all text contents of the file can be edited, and a protection effect on part of the text contents cannot be achieved.
In order to solve the technical problem, the present application provides a text processing method, an editable area may be set in text content of a target file, and after a user opens the target file, the state of an editor may be adjusted to an editable state only when the user wants to edit the text content in the editable area by monitoring a focus position of an input focus, so that the text content outside the editable area is protected, and meanwhile, the text content outside the editable area does not need to be checked in other processes, thereby improving file security and text processing efficiency.
It is understood that the method may be applied to a processing device having a text processing function, for example, a terminal device or a server having a text processing function. The method can be independently operated by the terminal equipment or the server, and can also be applied to a network scene of communication between the terminal equipment and the server, and the method can be operated by the cooperation of the terminal equipment and the server. The terminal device may be a mobile phone, a desktop computer, a Personal Digital Assistant (PDA for short), a tablet computer, or the like. The server may be understood as an application server, or may also be a Web server, and in actual deployment, the server may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
In order to facilitate understanding of the technical solution of the present application, a text processing method provided in the embodiments of the present application will be described below with reference to an actual application scenario.
Referring to fig. 1, fig. 1 is a schematic diagram of a text processing method in an actual application scenario provided in an embodiment of the present application. In this practical application scenario, the processing device is a terminal device 101, and an editor for editing a text file is installed in the terminal device 101.
When a user wants to edit and process a certain target file, the user can operate on the terminal device 101, and the terminal device 101 can open the text content corresponding to the target file through the editor. When the author of the target file creates the text content, the author of the target file may set the text content to a non-editable state in order to protect some of the text content. For example, in a contract document, the writer of the contract may set only the portion that needs to be filled in the contract as an editable area, such as partner signature, contract time, etc., in order to avoid others from tampering with the contract contents. After the setting is completed, an editing tag corresponding to the target file may be generated, where the editing tag is used to identify an editable area in the target file.
After the text content is opened, the terminal device 101 may determine, according to the editing tag corresponding to the target file, an editable area in the text content, where the editable area refers to a portion of the text content that is allowed to be edited by a user, and as shown in fig. 1, the editable area may be a portion of the text area in the text content. When browsing the text content, if there is a need to edit the text content, the user can move the input focus to a position where the user wants to edit, where the input focus is used to position the position where the user edits in the target file. For example, when a user wants to delete a field in text content, the input focus can be moved to the field for editing.
In order to protect text content outside the editable area from being edited by the user, the terminal apparatus 101 may recognize the focus position of the input focus, and determine whether the focus position is in the editable area based on the focus position and the editable area, thereby determining whether the position that the user wants to edit is in the editable area. If it is determined that the focus position is in the editable area, which indicates that the content the user wants to edit is allowed to edit, the terminal apparatus 101 may adjust the state of the editor to an editable state in which the user can edit, such as delete, add, or the like, the target file opened by the editor. If the focus position is determined not to be in the editable area, the content which the user wants to edit is not allowed to be edited. At this time, the terminal apparatus 101 may adjust the state of the editor to a non-editable state in which the user cannot edit the target file opened by the editor, thereby protecting the text content outside the editable area.
As shown in fig. 1, in the text content on the left side of fig. 1, the input focus is an input cursor located in the editable area, which indicates that the user wants to edit the text content allowed to be edited at this time. The terminal device 101 may adjust the editor to an editable state, thereby enabling the user to have the ability to edit the text content in the target file.
Since the terminal device 101 adjusts the state of the editor by recognizing the focal position, the terminal device 101 can dynamically switch the state of the editor with the change of the focal position during the process of editing the target file by the user, so that the user can only edit in the editable area and cannot edit the text content outside the editable area. In the subsequent process, related personnel can only audit the text content in the editable area, so that the processing efficiency of the file is improved while the text content is protected.
Next, a text processing method provided in an embodiment of the present application will be described with reference to the drawings.
Referring to fig. 2, fig. 2 is a flowchart of a text processing method provided in an embodiment of the present application, where the method includes:
s201: and opening the text content corresponding to the target file through an editor.
Wherein the target file may be any one of files that an editor may open. The type of the target file may not be limited to a text file, and a file that contains text content and can be opened by the editor may be used as the target file in the present application to some extent, and may include a code file, a document file, a slide file, and the like, for example. The text content may include various text contents such as words, symbols, numbers, etc., and the editor may be any program or application that can be used to edit the text content in the file, for example, an editing software, etc.
The text content of the target file may include a part of text content that does not need to be edited by the user, for example, a part of text content that has a high security requirement and may bring a high risk if edited, and the like. For example, when the target file is a code file, the text content corresponding to the code file may be a code set, a part of the code may relate to a core part of the system, which is a basic architecture of the system, and the part of the code does not need to be edited, and if the part of the code is edited, the system related to the code may be paralyzed; part of the code may relate to a more personalized part of the system, and the part of the code may be edited based on the actual needs of the user and may not affect the normal operation of the system. Therefore, the anti-editing processing of the partial text content in the target file can play a key role in the safety and reliability of the file.
Based on this, the embodiment of the application can enable the editor to have the capability of controlling the editing authority of the user by designing the editor. In the embodiment of the present application, the editor may include two states, an editable state and a non-editable state. When the editor is in an editable state, a user can edit the text content in the target file; when the editor is in the non-editable state, the user cannot edit the text content opened by the editor, so that the processing device can control the editor to realize the editing control of the text content.
Firstly, when a user browses a file, the user can control the processing device to open the text content corresponding to the target file through the editor for processing through a certain operation instruction. For example, when the processing device is a computer, the editor may be a piece of computer software installed in the computer. The user may open the target file by clicking on the target file and then selecting the manner in which the editor opens. In addition, in order to provide more convenient service for the user, the processing device may also automatically open the text content corresponding to the target file through the editor after a certain condition is met. For example, the target file may correspond to a user list, and the user on the user list is a user having a right to open the target file. After acquiring the user list, the processing device may automatically open the target file on the terminal device corresponding to the user list through the editor, so that the user may look up and edit the target file.
S202: and determining an editable area in the text content according to the corresponding editing label of the target file.
Before the processing device opens the target file, when an author or other processing parties of the target file process the target file, the text content corresponding to the target file may be divided in order to protect part of the text content in the target file. In the embodiment of the present application, the text content may be divided into an editable area and an area outside the editable area, where the editable area is a part of the text area in the text content of the target file. The text content in the editable area is text content which can be edited by the user, for example, time required to be filled in a contract document, a collaborator and the like; the text content outside the editable area is text content that does not allow the user to edit, and may be, for example, a clause in a contract file, a core code in a code file, or the like.
In order to protect the text content of the target file in a targeted manner, after the editable area is divided, the processing device may generate an editing tag corresponding to the target file based on the editable area, where the editing tag is used to identify the editable area in the target file. The processing device may establish a mapping relationship between the edit tag and the target file, or directly store the edit tag in the target file. After the text content corresponding to the target file is opened through the editor, the processing device may obtain the editing tag, and determine an editable area in the text content according to the editing tag.
S203: a focus position of an input focus in the text content is identified.
In order to determine whether the user can edit the text content in the target file, in addition to determining the editable area corresponding to the target file, the text position where the user wants to edit needs to be determined, so that it is possible to determine whether the user is allowed to edit. It is understood that when a user wants to edit the text content, the user usually needs to first locate the input position through the input focus, so as to edit the text content at the desired text position.
The input focus may be in various forms, for example, may be an input cursor shown in fig. 1, or may be a double-click position of the user in the text content through a mouse. The input focus is used for positioning the text to be edited when the text content needs to be edited. The embodiment of the present application does not limit the form and appearance of the input focus, and may be in a form of a blinking display or a non-display form, other than a vertical line form similar to the continuous display shown in fig. 1. In the case where the input focus is not displayed, the user can quickly locate the focus position of the input focus by a simple editing operation.
When a user edits the text content, the editing process is reflected on the text content corresponding to the focus position of the input focus, and the focus position refers to the position corresponding to the input focus in the text content of the target file. For example, the content input by the user is newly added to the focus position of the input focus, or the content on the left or right side of the focus position is deleted based on the input focus.
By recognizing the focus position of the input focus, the processing device can determine the position where the user wants to edit in the text content, so that it can determine whether the user is allowed to edit the text content by comparing the relation between the focus position and the editable area.
S204: and if the focal position is determined to be in the editable area, adjusting the state of the editor to be in an editable state.
If the processing device determines that the focal position is in the editable area when comparing the relationship between the focal position and the editable area, it may be described to some extent that the text content that the user currently wants to edit is the text content in the editable area, and at this time, the processing device may allow the user to edit the text content. As mentioned above, the processing device can control the editing right of the user by adjusting the state of the editor. Thus, to allow a user to edit the text content, the processing device may adjust the state of the editor to an editable state. In this editable state, the user can perform editing processing on all the text contents corresponding to the target file. However, since the processing device adjusts the state of the editor to the editable state only when the focus position is located in the editable area, the processing device can protect the text content outside the editable area in the text content without separately setting the authority for each part of the text content by combining the determination of the focus position, thereby further simplifying the text processing flow.
S205: and if the focal position is determined not to be in the editable area, adjusting the state of the editor to be in the non-editable state.
If the processing device determines that the focus position is not in the editable area when comparing the relation between the focus position and the editable area, it can be described to a certain extent that the text content that the user wants to edit currently is the text content outside the editable area, and the text content is the text content that the user is not allowed to edit. At this time, the processing device may adjust the state of the editor to a non-editable state in which all text content in the target file does not allow the user to perform the editing process.
Because the processing device can recognize the focus position of the input focus in real time, when the input focus of the user continuously moves, the processing device can also dynamically adjust the state of the editor, thereby realizing the accurate protection of the text content. For example, when the input focus moves from the editable area to the outside of the editable area, the processing device may adjust the state of the editor from the editable state to the non-editable state for the first time, thereby preventing the user from editing the text content outside the editable area; when the input focus moves from the outside of the editable area to the inside of the editable area, the processing equipment can adjust the state of the editor from the non-editable state to the editable state, so that the user is given the right to edit the text content.
According to the technical scheme, when the target file is edited, the editable area can be set in the text content of the target file according to the requirement. After the text content corresponding to the target file is opened through the editor, an editable area in the text content can be determined according to the editing tag corresponding to the target file, wherein the editable area is a part of text area in the text content, and the part of text area allows editing through the editor. The editor provides an input focus for text editing, a user can edit the text at the position indicated by the input focus, and the focus position of the input focus in the text content is identified when the target file is opened for editing through the editor. If the focus position is determined to be in the editable area, adjusting the state of the editor to be in an editable state, and allowing a user to edit the text content of the editable area; if the focus position is determined not to be in the editable area, the state of the editor is adjusted to be in the non-editable state, so that the user is prevented from editing the text content outside the editable area, the editing of the text content in the target file can be effectively controlled, and the protection of the text content outside the editable area is realized. When the target file is checked, only the content in the editable area needs to be checked, so that the time for checking the file is reduced to a certain extent, the misoperation on the uneditable content is avoided, and the efficiency of writing the text is improved.
In order to enable the user to know more clearly whether the text content in the target file can be edited, the processing device may perform special processing on the editable area and the text content outside the editable area when displaying the text content to the user. For example, in one possible implementation, if the editor includes an editable area in the presentation area for the text content, the processing device may highlight the editable area to identify an area range of the editable area by highlighting. The display area is a text content area that can be seen by a user, and the highlighting means a display mode that can distinguish a part of text content from other text content, and may include, for example, highlighting. The highlight display is a display method for distinguishing a part of text content from other text content by a relatively clear color, and may be, for example, a method of adjusting the background color of the part of text content or the color of the text itself to a relatively clear color, or a method of adding a text box having a clear color to the part of text content. When the display area includes the editable area, the processing device may highlight only the part of the editable area in the display area, or may highlight all the editable areas in the text content. As shown in fig. 3, fig. 3 is a schematic diagram of highlighting an editable area, and "x" in the schematic diagram represents text content. In the text content presented in the presentation area, the text content of lines 7-9 is the text content in the editable area. The text content in the editable area can be highlighted in a ground color adding mode through the processing device, so that a user can quickly find the editable area for editing. It is understood that, besides highlighting, other methods that can be used to highlight the editable area can also achieve the technical effects described above, such as underlining the text content of the editable area, bolding the text content in the editable area, and so on.
In addition to special processing of the editable area, the processing device may also process text content outside the editable area. For example, in one possible implementation, when the user wants to edit the text content outside the editable area, the processing device may remind the user that the text content cannot be edited. As mentioned above, the processing device may determine the editing position of the user in the text content by identifying the focus position of the input focus, and thus, if it is determined that the focus position is not in the editable area, it indicates that the user wants to edit the text content outside the editable area. The processing device may present a non-editable prompt based on the focus position, the prompt for prompting the user that the text content of the current location is not editable. The form of the prompt may include various forms, for example, a text prompt, an identification prompt, a voice prompt, and the like.
As shown in fig. 4, fig. 4 is a schematic diagram of a non-editable prompt provided in the embodiment of the application, when a focus position is located outside an editable area, the processing device may display a text box with "cancel in read-only editor" (prohibited from editing in a read-only area) content at the focus position, where the read-only area is an area outside the editable area and only allows a user to read.
As mentioned above, the editing tag corresponding to the target file can be used to identify the editable area in the text content, and the manner of identifying the editable area by the editing tag may also include various manners. It will be appreciated that the text content is typically arranged in a line-by-line arrangement, as shown in the schematic diagrams of fig. 3 and 4, the text content has a corresponding line number mark by which the processing device can determine a portion of the text content in the text content as the text content in the editable area. For example, in the schematic diagram shown in fig. 3, the text content corresponding to lines 7-9 is the text content in the editable area.
Based on this, in one possible implementation, the editing tag may include a start position identifier and an end position identifier of an editable area in the text content, the start position identifier being used for identifying a start position of the editable area, and the end position identifier being used for identifying an end position of the editable area. The processing device may determine a start line and an end line of an editable area in the text content according to the start position identifier and the end position identifier, and then determine the editable area according to the start line and the end line. The start position identifier and the end position identifier may be line numbers themselves, and at this time, the editable area is a line number range including the start line and the end line. For example, the starting position indicator may be "line 7" and the ending position indicator may be "line 9", in which case the editable area includes the text content of lines 7-9.
It is to be understood that, when the processing device determines whether the focus position is in the editable area, the manner in which the processing device determines may be different for different editable area determination manners. For example, in one possible implementation, if the editable area is determined by the start line and the end line, the processing device may determine the navigation number of the line where the focus position is located, and then determine whether the line number is between the start line and the end line. As described above, the processing device may determine the text region between the start line and the end line as an editable region, and thus, if the line number is between the start line and the end line, may determine that the focus position is located in the editable region; if not, it may be determined that the focus position is not in the editable area.
Furthermore, the start position indicator and the end position indicator may also be line-independent indicators, which the processing device may identify to determine the start line and the end line. In a possible implementation manner, the start position identifier and the end position identifier may be set in the text content as texts, and when determining the editable area, the processing device may use a line of the text identified by the start position identifier as a start line and a line of the text identified by the end position identifier as an end line by traversing the texts in the text content corresponding to the start position identifier and the end position identifier. For example, the START position identifier may be "TAG-START", the END position identifier may be "TAG-END", the processing device may retrieve the document content of the target file, and if the identifier "TAG-START" is detected, the line in which the identifier is located may be determined as the START line; if the TAG "TAG END" is detected, the line in which the TAG is located may be determined to be the END line.
It will be appreciated that the manner in which the editable area is determined based on the identity will vary depending on where the identity is located. For example, when the start position indicator and the end position indicator are not located in a single row, the row in which the start position indicator is located may be determined as a start row, and the row in which the end position indicator is located may be determined as an end row. At this time, the editable area is a text area from the start line to the end line and including the start line and the end line. When the start position indicator and the end position indicator are located in a single row, the row in which the start position indicator is located may be determined as the start row, and the row in which the end position indicator is located may be determined as the end row. At this time, in order to protect the start position indicator and the end position indicator from being changed by the user, the processing device may determine the editable area as the text area of the start line to the end line, but excluding the start line and the end line.
As shown in fig. 5, fig. 5 is a schematic diagram of determining an editable area according to an embodiment of the present application, in which a START position identifier "TAG-START" and an END position identifier "TAG-END" are located in a single line, and when a processing device traverses text content, the START position identifier may be determined to be on the 6 th line and the END position identifier is located on the 10 th line, so that the START action in fig. 5 is the 6 th line, and the END action is the 10 th line, at this time, the processing device may determine that the editable area is the 6 th to 10 th lines and does not include text areas on the 6 th line and the 10 th line.
As can be seen from the foregoing analysis, in a normal situation, the processing device may determine an editable area by using a start position identifier and an end position identifier, so that the start position identifier and the end position identifier should be identifiers corresponding to each other in the editing tag corresponding to the target file. Based on this, in order to improve the security and reliability of the target file, the processing device may further check the editable area in the text content corresponding to the target file based on the start position identifier and the end position identifier.
In a possible implementation manner, since the start position id and the end position id have a one-to-one correspondence, the numbers of the start position id and the end position id should be consistent under normal conditions. When checking, the processing device may determine whether the numbers of the start position identifier and the end position identifier are consistent, and if so, indicate that all editable areas in the target file are in a normal state to a certain extent; if the editable area in the target file is not consistent with the editable area in the target file, the situation that the editable area in the target file has a missing starting position identifier or a missing ending position identifier is described, and therefore abnormal situations may occur when the processing device determines the editable area. For example, when there are only 7 START position identifiers "TAG-START" and 6 END position identifiers "TAG-END", this results in one START position identifier lacking a corresponding END position identifier, which makes it impossible for the processing device to correctly recognize the editable area corresponding to the START position identifier. At this time, in order to make the user aware of the error condition and prevent the user from changing the text content outside the editable area, the processing device may generate an error event indicating that the editable area is in error, and may present the error event to the user through the presentation area. The error time may include various types of information related to the editable area with the problem, for example, the user may be notified of the missing identification category.
Besides the error judgment through the number, the processing device can judge whether the editable area has a problem or not by traversing the corresponding relation between the start position identification and the end position identification and the like. For example, under normal conditions, the start position identifier and the end position identifier in the target file appear in sequence, so that if the processing device determines a plurality of continuous start position identifiers or a plurality of continuous end position identifiers in the process of traversing the text content, it can also be said that a problem occurs in the editable area; in addition, each pair of corresponding start position identifier and end position identifier may include a unique pairing identifier, for example, "start position identifier 1", "end position identifier 1", "start position identifier 2", "end position identifier 2", and the like, and the processing device may detect whether the start position identifier and the end position identifier are identifiers corresponding to each other one by one through the pairing identifier.
During editing of the editable area, the user may perform operations such as adding text, deleting text, adjusting text format and layout, which may affect the range of the editable area. For example, when part of the text content in the editable area is deleted, the number of lines of the editable area may be reduced; when the carriage return character is added, an increase in the number of lines of the editable area may result. When the range of the editable area is changed, the processing equipment can detect and update the range of the editable area in real time in order to accurately adjust the editing authority of the user, so that the updated editable area can be timely compared with the focus position after the range of the editable area is changed, and the text content outside the editable area is prevented from being changed due to the change of the range of the editable area.
As mentioned above, in one possible implementation, the processing device may determine the start line and the end line of the editable area by the start position identifier and the end position identifier in the edit tag, and then determine the editable area by the start line and the end line, that is, the range of the editable area may be represented by the number of lines. Therefore, if the number of lines included in the editable area changes due to the user's editing operation, the range of the editable area is affected. Based on this, the processing device may first acquire a text editing operation for the editable area, which may include any editing operation that the user may make on the text content, such as deletion, addition, and the like. Since the processing device may determine the number of lines corresponding to the editable area by using the editing tag, for example, the start position identifier and the end position identifier in the editing tag, after the text editing operation is obtained, the processing device may determine whether the range of the editable area is changed by determining the editable area in the text content according to the editing tag of the target file.
Specifically, in one possible implementation manner, when the processing device determines the editable area according to the edit tag, if it is determined that the line number of the editable area is changed by the text editing operation, the area range of the editable area may be updated correspondingly. For example, when the start position identification and the end position identification set in the text content are included in the editing tag, after the text editing operation is acquired, the processing device may determine that the number of lines of the editable area is changed by determining whether the number of lines corresponding to the start position identification and the end position identification is changed by the text editing operation. If the number of lines is changed, the processing device can compare the focus position with the updated editable area, so that the situation that the user edits the text content outside the editable area due to the fact that the range of the editable area is not updated can be avoided to a certain extent, and the safety and the reliability of the target file are improved.
In addition to this, when the user edits the text content of the target file, the processing device may provide a function of reviewing the edited content in order to improve the security of the edited content. For example, in one possible implementation, the processing device may monitor the text content of the editable area in real time, and if a text change occurs in the text in the editable area, the processing device may generate a text change event, where the text change event is used to embody information related to the text change, and may include, for example, the text in the editable area and change data corresponding to the text change, as well as information such as an initiator and a change time of the text change, and the change data is used to identify the text change content for the text. For example, when a user deletes a certain piece of text in the editable area, the text change event generated by the processing device may include: text content corresponding to the editable area, deleted text content, deletion time, user who makes the deletion operation, and the like.
After obtaining the text change event, the relevant personnel or equipment can audit the text change event, if the user agrees to make a text change, the text change event can be approved, and at the moment, the processing equipment can receive feedback information that the change is passed and accept the text change made by the user; if the text change event is not approved, the text change event can be rejected, the processing equipment can receive feedback information that the change is not passed, reject the text change made by the user through the editor, and prompt the user that the text change is not checked.
Next, a text processing method provided in the embodiment of the present application will be described in conjunction with an actual application scenario.
Referring to fig. 6, fig. 6 is a flowchart of a text processing method in an actual application scenario provided in the present application, in the actual application scenario, a processing device is a computer capable of performing code editing operation, an editor is a piece of code editing software in the computer, for example, a piece of Webide component, and a target file is a piece of code file. The method comprises the following steps:
s601: and acquiring an editing tag corresponding to the code file.
Firstly, a user can operate a computer, and text content in the code file is opened through the code editing software, wherein the text content can be a piece of code content. Subsequently, the computer may obtain the editing tag corresponding to the code file for determining the editable area in the text content. As shown by the following code:
editableAreaMark="editableAreaMark:['TAG-BEGIN','TAG-END']"
the edibleAreaMark is a parameter array which can be used for representing an editing label, and TAG-BEGIN is a starting position mark and TAG-END is an ending position mark.
S602: traversing the text content of the code file determines the editable area.
The computer may traverse the start position indicator and the end position indicator in the text content to determine a start line and an end line, thereby determining an editable area. In addition, the computer can detect the number of the start position marks and the number of the end position marks in the text content so as to judge whether the editable area exists or not
Figure BDA0002803582220000161
Now abnormal. For example, as shown by the following code, the code is a code for comparing the number of start position identifications and end position identifications:
with the first line of code, the computer can compare the identification numbers; through the 2 nd to 3 rd lines of codes, the computer can send an error prompt of 'code mark is tampered' to the user when the identification number is inconsistent.
Figure BDA0002803582220000162
S603: the editable area is highlighted.
The computer may highlight the text content of the editable area by the following code:
s604: the input focus is identified in real time.
To determine whether the text content allows the user to edit, the computer may identify the user's input focus in the text content in real-time.
S605: the focal position is determined.
S606: and judging whether the editing is available.
Figure BDA0002803582220000171
The computer may determine whether the user is able to edit the text content based on the focal position of the user input focus and the editable area. As shown by the following code:
as mentioned above, the computer can highlight the editable area, so that if the computer determines that the focus position is not in the highlighted area through the code, the computer can continue to perform the identification calculation; if the input focus is in the highlight area, that is, the area has marks such as the start position mark and the end position mark, it can be determined that the input focus is located in the editable area.
S607: the editor state is adjusted.
Figure BDA0002803582220000172
The computer may adjust the state of the code editor based on the location of the input focus. As shown by the following code:
if the computer judges that the focus position (namely the position where the current event occurs) is in an editable area (namely the area where the editing can occur), the state of the editor can be adjusted to be an editable state; if not, the state can be adjusted to be in a non-editable state.
S608: a text change event is generated.
Figure BDA0002803582220000181
If the user performs text change on the text content in the code file through the computer, the computer can generate a text change event for sending to related personnel to be checked. As shown by the following code:
the code includes an array "editable area value change" for identifying the text change content, and through the array, the related person can know the change content of the text change.
Based on the text processing method provided in the foregoing embodiment, an embodiment of the present application further provides a text processing apparatus, referring to fig. 7, fig. 7 is a block diagram of a structure of a text processing apparatus 700 provided in the embodiment of the present application, and the apparatus includes an opening unit 701, a first determining unit 702, an identifying unit 703, a first adjusting unit 704, and a second adjusting unit 705:
an opening unit 701, configured to open text content corresponding to a target file through an editor;
a first determining unit 702, configured to determine, according to an editing tag corresponding to the target file, an editable area in the text content, where the editable area is a part of a text area in the text content;
an identifying unit 703 for identifying a focus position of an input focus in the text content;
a first adjusting unit 704, configured to adjust the state of the editor to an editable state if it is determined that the focus position is located in the editable area;
a second adjusting unit 705, configured to adjust the state of the editor to an uneditable state if it is determined that the focus position is not in the editable area.
In one possible implementation, the apparatus 700 further includes a display unit:
and the display unit is used for highlighting the editable area if the display area of the text content for the editor comprises the editable area so as to mark the area range of the editable area through highlighting.
In a possible implementation manner, if it is determined that the focus position is not in the editable area, the apparatus 700 further includes a display unit:
and the display unit is used for displaying the non-editable prompt based on the focus position.
In a possible implementation manner, the edit tag includes a start position identifier and an end position identifier of an editable area in the text content, and the first determining unit 702 is specifically configured to:
determining a starting line and an ending line of an editable area in the text content according to the starting position identification and the ending position identification;
determining the editable area according to the starting line and the ending line.
In a possible implementation manner, the start position identifier and the end position identifier are set in the text content as texts, and the first determining unit 702 is specifically configured to:
and traversing the texts corresponding to the starting position identification and the ending position identification in the text content, taking the line of the text of the starting position identification as the starting line, and taking the line of the text of the ending position identification as the ending line.
In one possible implementation manner, the apparatus 700 further includes a second determining unit, a third determining unit, a fourth determining unit, and a fifth determining unit:
a second determining unit, configured to determine a line number of a line where the focus position is located;
a third determination unit for determining whether a line number is between the start line and the end line;
a fourth determining unit, configured to determine that the focus position is in the editable area if the focus position is in the editable area;
and the fifth determining unit is used for determining that the focus position is not in the editable area if the focus position is not in the editable area.
In one possible implementation, the apparatus 700 further includes a sixth determining unit and a first generating unit:
a sixth determining unit configured to determine whether the numbers of the start position indicators and the end position indicators are consistent;
and the first generating unit is used for generating an error event for indicating that the editable area has errors if the editable area does not accord with the editable area.
In one possible implementation manner, the apparatus 700 further includes an obtaining unit:
an acquisition unit configured to acquire a text editing operation for the editable area;
the first determining unit 702 is specifically configured to:
and if the line number of the editable area is determined to be changed through the text editing operation, correspondingly updating the area range of the editable area.
In one possible implementation, the apparatus 700 further includes a second generating unit:
and a second generating unit, configured to generate a text change event if a text change occurs in the text in the editable area, where the text change event includes the text in the editable area and change data corresponding to the text change.
The embodiment of the application also provides computer equipment which is described in the following with reference to the attached drawings. Referring to fig. 8, an embodiment of the present application provides a device, which may also be a terminal device, where the terminal device may be any intelligent terminal including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a Point of Sales (POS), a vehicle-mounted computer, and the terminal device is taken as the mobile phone as an example:
fig. 8 is a block diagram illustrating a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Referring to fig. 8, the handset includes: a Radio Frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wireless fidelity (WiFi) module 870, a processor 880, and a power supply 890. Those skilled in the art will appreciate that the handset configuration shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 8:
the RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to the processor 880; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 810 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 or near the touch panel 831 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The Display unit 840 may include a Display panel 841, and the Display panel 841 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, touch panel 831 can overlay display panel 841, and when touch panel 831 detects a touch operation thereon or nearby, communicate to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 based on the type of touch event. Although in fig. 8, the touch panel 831 and the display panel 841 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts collected sound signals into electrical signals, which are received by the audio circuit 860 and converted into audio data, which are then output to the processor 880 for processing, and then sent to, for example, another cellular phone via the RF circuit 810, or output to the memory 820 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and the mobile phone can help a user to receive and send emails, browse webpages, access streaming media and the like through the WiFi module 870, and provides wireless broadband internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 880 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone. Optionally, processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The handset also includes a power supply 890 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 880 via a power management system to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment, the processor 880 included in the terminal device further has the following functions:
opening text content corresponding to the target file through an editor;
determining an editable area in the text content according to an editing tag corresponding to the target file, wherein the editable area is a part of text area in the text content;
identifying a focus position of an input focus in the textual content;
if the focal position is determined to be in the editable area, adjusting the state of the editor to be an editable state;
and if the focal position is determined not to be in the editable area, adjusting the state of the editor to be in a non-editable state.
Referring to fig. 9, fig. 9 is a block diagram of a server 900 provided in this embodiment, and the server 900 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 922 (e.g., one or more processors) and a memory 932, and one or more storage media 930 (e.g., one or more mass storage devices) storing an application 942 or data 944. Memory 932 and storage media 930 can be, among other things, transient storage or persistent storage. The program stored on the storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations on the server. Still further, a central processor 922 may be provided in communication with the storage medium 930 to execute a series of instruction operations in the storage medium 930 on the server 900.
The server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input-output interfaces 958, and/or one or more operating systems 941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 9.
The embodiment of the present application further provides a computer-readable storage medium for storing a computer program, where the computer program is used to execute any one implementation manner of the text processing method described in the foregoing embodiments.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium may be at least one of the following media: various media that can store program codes, such as read-only memory (ROM), RAM, magnetic disk, or optical disk.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A method of text processing, the method comprising:
opening text content corresponding to the target file through an editor;
determining an editable area in the text content according to an editing tag corresponding to the target file, wherein the editable area is a part of text area in the text content;
identifying a focus position of an input focus in the textual content;
if the focal position is determined to be in the editable area, adjusting the state of the editor to be an editable state;
and if the focal position is determined not to be in the editable area, adjusting the state of the editor to be in a non-editable state.
2. The method of claim 1, further comprising:
if the editor aims at that the display area of the text content comprises the editable area, highlighting the editable area so as to mark the area range of the editable area through highlighting.
3. The method of claim 1, wherein if it is determined that the focus position is not in the editable area, the method further comprises:
displaying a non-editable prompt based on the focus position.
4. The method according to any one of claims 1 to 3, wherein the editing tags include a start position identifier and an end position identifier of an editable area in the text content, and the determining the editable area in the text content according to the editing tag corresponding to the target text file includes:
determining a starting line and an ending line of an editable area in the text content according to the starting position identification and the ending position identification;
determining the editable area according to the starting line and the ending line.
5. The method of claim 4, wherein the start position identifier and the end position identifier are provided as text in the text content, and wherein determining the start line and the end line of the editable area in the text content according to the start position identifier and the end position identifier comprises:
and traversing the texts corresponding to the starting position identification and the ending position identification in the text content, taking the line of the text of the starting position identification as the starting line, and taking the line of the text of the ending position identification as the ending line.
6. The method of claim 4, further comprising:
determining the line number of the line where the focus position is located;
determining whether a line number is between the starting line and the ending line;
if so, determining that the focus position is in the editable area;
if not, determining that the focus position is not in the editable area.
7. The method of claim 4, further comprising:
determining whether the number of the starting position marks and the number of the ending position marks are consistent;
and if the editable areas are not consistent, generating an error event for indicating that the editable areas are in error.
8. The method according to any one of claims 1-7, further comprising:
acquiring a text editing operation aiming at the editable area;
determining an editable area in the text content according to the editing tag corresponding to the target file, including:
and if the line number of the editable area is determined to be changed through the text editing operation, correspondingly updating the area range of the editable area.
9. The method according to any one of claims 1-7, further comprising:
and if the text in the editable area is changed, generating a text change event, wherein the text change event comprises the text in the editable area and change data corresponding to the text change.
10. A text processing apparatus, characterized in that the apparatus comprises an opening unit, a first determining unit, a recognizing unit, a first adjusting unit, and a second adjusting unit:
the starting unit is used for opening the text content corresponding to the target file through the editor;
the first determining unit is used for determining an editable area in the text content according to the editing tag corresponding to the target file, wherein the editable area is a part of text area in the text content;
the identification unit is used for identifying the focus position of an input focus in the text content;
the first adjusting unit is configured to adjust the state of the editor to an editable state if the focal position is determined to be in the editable area;
the second adjusting unit is configured to adjust the state of the editor to the non-editable state if it is determined that the focus position is not in the editable area.
11. The apparatus of claim 10, further comprising a display unit:
the display unit is configured to highlight the editable area if the display area of the text content includes the editable area, so as to identify an area range of the editable area by highlighting.
12. The apparatus according to claim 10, wherein if it is determined that the focus position is not in the editable area, the apparatus further comprises a presentation unit:
the display unit is used for displaying the non-editable prompt based on the focus position.
13. The method according to any one of claims 10 to 12, wherein the editing tag includes a start position identifier and an end position identifier of an editable area in the text content, and the first determining unit is specifically configured to:
determining a starting line and an ending line of an editable area in the text content according to the starting position identification and the ending position identification;
determining the editable area according to the starting line and the ending line.
14. A computer device, the device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the text processing method of any one of claims 1-9 according to instructions in the program code.
15. A computer-readable storage medium for storing a computer program for executing the text processing method according to any one of claims 1 to 9.
CN202011359515.2A 2020-11-27 2020-11-27 Text processing method and related device Pending CN114626344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011359515.2A CN114626344A (en) 2020-11-27 2020-11-27 Text processing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011359515.2A CN114626344A (en) 2020-11-27 2020-11-27 Text processing method and related device

Publications (1)

Publication Number Publication Date
CN114626344A true CN114626344A (en) 2022-06-14

Family

ID=81895633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011359515.2A Pending CN114626344A (en) 2020-11-27 2020-11-27 Text processing method and related device

Country Status (1)

Country Link
CN (1) CN114626344A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109164953A (en) * 2018-07-27 2019-01-08 努比亚技术有限公司 A kind of document edit method, terminal and computer readable storage medium
CN109815434A (en) * 2019-01-18 2019-05-28 深圳壹账通智能科技有限公司 Page editing method, apparatus, equipment and storage medium
CN110659526A (en) * 2018-06-29 2020-01-07 珠海金山办公软件有限公司 Document processing method and device and electronic equipment
CN111339557A (en) * 2020-02-20 2020-06-26 北京字节跳动网络技术有限公司 Online document display method, device, equipment and medium
CN111767563A (en) * 2020-08-03 2020-10-13 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for setting authority of online document

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659526A (en) * 2018-06-29 2020-01-07 珠海金山办公软件有限公司 Document processing method and device and electronic equipment
CN109164953A (en) * 2018-07-27 2019-01-08 努比亚技术有限公司 A kind of document edit method, terminal and computer readable storage medium
CN109815434A (en) * 2019-01-18 2019-05-28 深圳壹账通智能科技有限公司 Page editing method, apparatus, equipment and storage medium
CN111339557A (en) * 2020-02-20 2020-06-26 北京字节跳动网络技术有限公司 Online document display method, device, equipment and medium
CN111767563A (en) * 2020-08-03 2020-10-13 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for setting authority of online document

Similar Documents

Publication Publication Date Title
AU2021200254B2 (en) Method for displaying current geographical location on emergency call screen and terminal
CN110673782B (en) Control method applied to screen projection scene and related equipment
CN107038112B (en) Application interface debugging method and device
CN107480533B (en) Vulnerability repairing method and device and storage medium
US20150212691A1 (en) Method and apparatus for desktop management
US20200228641A1 (en) Lock Screen Interface Processing Method and Terminal
WO2014206101A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
CN110618969B (en) Icon display method and electronic equipment
US10320730B2 (en) Method and device for displaying message
EP3699743A1 (en) Image viewing method and mobile terminal
CN109670507B (en) Picture processing method and device and mobile terminal
CN108604161B (en) Method and device for locking list object and terminal equipment
CN110995919A (en) Message processing method and electronic equipment
WO2020238372A1 (en) Method for displaying unread message, and terminal device
CN110069407B (en) Function test method and device for application program
CN110929273A (en) Permission setting method and electronic equipment
CN111090529A (en) Method for sharing information and electronic equipment
US11147038B2 (en) Notification message processing method and terminal
US20200258165A1 (en) Method for automatic classification of bill, storage medium, and mobile terminal
CN111651068B (en) Method, device and equipment for switching character language types and storage medium
CN111290673B (en) Message processing method and electronic equipment
CN111368151A (en) Display method and electronic equipment
CN114626344A (en) Text processing method and related device
CN109491515B (en) Input method, intelligent terminal and computer readable storage medium
CN109471539B (en) Input content modification method and mobile terminal

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