Text processing method and device

By providing switching controls and semantic analysis of global and local editing pages in video creation, the format editing process of video text is optimized, and the cumbersome operation problems in video creation are solved, improving efficiency and user experience.

CN120562387AActive Publication Date: 2025-08-29BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510586119.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-07
Publication Date
2025-08-29
Estimated Expiration
2045-05-07

AI Technical Summary

Technical Problem

In the prior art, video creation users are cumbersome when processing large amounts of video text, resulting in inefficiency and poor user experience.

Method used

Provide a text processing method and device, which realizes global format editing through the first editing page, and implements local format editing through the second editing page, and uses switching controls and semantic parsing controls to support switching between pages and automatic or manual selection of target characters, combining the format panel and completion controls to optimize the editing process.

Benefits of technology

It improves the format editing efficiency and accuracy of video creation users, meets personalized needs, and improves user experience and operation flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120562387A_ABST
    Figure CN120562387A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a text processing method and device. According to the main technical scheme, the method comprises the steps that a first editing page is displayed, a target text and at least one first switching control are displayed on the first editing page, the target text is composed of at least one target field, and each target field corresponds to one first switching control; in response to one first switching control being triggered, switching to display a second editing page, the second editing page displaying a target field corresponding to the triggered first switching control and the second switching control, and the second switching control being used for triggering to switch to display the first editing page; wherein the first editing page is used for performing format editing on the target text, and the second editing page is used for performing format editing on the target field corresponding to the triggered first switching control. On one hand, the efficiency of format editing of the large-scale text by the user can be improved, and on the other hand, personalized fine adjustment of the local text by the user can be realized, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet application technology, and in particular to a text processing method and device. Background Art

[0002] With the rapid development of Internet technology, the emergence of long video playback applications, short video playback applications, etc. enables people to watch videos anytime and anywhere.

[0003] However, with the increasing popularity of video playback technology and the increasing demand for people to watch videos, the creative ability requirements for video creation users are also getting higher and higher. Video creation users need to create videos with better content to meet people's needs for watching videos, especially the text in the video. However, for a large amount of video text, how to improve the text processing efficiency of video creation users has become an urgent problem to be solved. Summary of the Invention

[0004] In view of this, the present application provides a text processing method and device to improve the text processing efficiency of video creation users.

[0005] This application provides the following solutions:

[0006] In a first aspect, a text processing method is provided, the method comprising: displaying a first editing page, the first editing page displaying target text and at least one first switch control, the target text consisting of at least one target field, each target field corresponding to a first switch control; in response to one of the first switch controls being triggered, switching to display a second editing page, the second editing page displaying the target field and the second switch control corresponding to the triggered first switch control, the second switch control being used to trigger switching to display the first editing page; wherein the first editing page is used to perform format editing on the target text, and the second editing page is used to perform format editing on the target field corresponding to the triggered first switch control.

[0007] Optionally, format editing includes: in response to triggering an event for a target character, displaying the target character in a first marking style in the editing page where the target character is located; in response to triggering a pop-up operation of a format panel, popping up a format panel on the editing page where the target character is located, the format panel including a plurality of format options; in response to one of the format options being triggered, editing the target character in a format corresponding to the triggered format option; wherein, the target character is a character in the target text displayed on the first editing page, or the target character is a character in the target field displayed on the second editing page.

[0008] Optionally, the editing page where the target character is located is a first editing page, and the first editing page includes a semantic parsing control; in response to triggering an event for the target character, the target character is displayed in a first marking style in the editing page where the target character is located, including: in response to the semantic parsing control being triggered, semantically parsing the target text to obtain the character to be selected; determining the target character based on the character to be selected; and displaying the target character in the first editing page using the first marking style.

[0009] Optionally, based on the character to be selected, determining the target character includes: in response to detecting the presence of historically edited characters among the characters to be selected, displaying a selection panel, the selection panel including a first option and a second option, the first option being used to trigger the character to be selected as the target character, and the second option being used to trigger the characters among the characters to be selected other than the historically edited characters as the target character.

[0010] Optionally, in response to triggering an event for a target character, displaying the target character in a first marking style in an editing page where the target character is located includes: in response to a selection operation on the target character, displaying the target character in a first marking style in an editing page where the target character is located.

[0011] Optionally, after the target character is displayed in the first marking style in the editing page where the target character is located, the method further includes: in response to a switch control on the editing page where the target character is located being triggered, displaying the target character in the first marking style in the switched editing page.

[0012] Optionally, the format panel further includes a completion control; the method further includes: in response to the completion control being triggered, displaying the edited target character in the editing page where the target character is located using a second marking style.

[0013] Optionally, it also includes: in response to triggering a switch between the first editing page and the second editing page based on the first switching control or the second switching control, detecting the format parameter values ​​of other characters except the target character in the first editing page or the second editing page after the switch; based on the format parameter values, determining the editing status of other characters, the editing status including the unedited state and the historically edited state; displaying the characters in the unedited state among the other characters in the initial style in the editing page where the target character is located; displaying the characters in the historically edited state among the other characters in the third marking style in the editing page where the target character is located.

[0014] Optionally, the editing page where the target character is located also includes a preview area, and the method further includes: displaying the characters in the unedited state among other characters in the initial format in the preview area; and displaying the characters in the historical edited state among other characters in their latest historical format in the preview area.

[0015] Optionally, the method further includes: in response to the completion control being triggered, displaying a prompt pop-up window, the prompt pop-up window being used to prompt the editing type and / or editing quantity of the format editing of the target character.

[0016] Optionally, the second editing page further displays a third switching control, which is used to trigger switching of the currently displayed target field to display of adjacent target fields according to the display order of each target field in the target text.

[0017] Optionally, a second editing page is displayed, including: displaying a text input page, the text input page displaying a text display area and an input area, the input area is used to input target text, the text display area includes at least a fourth switch control, and the text display area is used to display the input target text; in response to the fourth switch control being triggered, switching to displaying the second editing page.

[0018] Optionally, the first switch control corresponding to the target field currently in the selected state in the first editing page is in a displayed state, and the first switch control corresponding to the target field currently in the unselected state is in a hidden state.

[0019] In a second aspect, a text processing device is provided, which includes: a page display unit, configured to display a first editing page, the first editing page displays target text and at least one first switching control, the target text consists of at least one target field, and each target field corresponds to a first switching control; a page switching unit, configured to switch to display a second editing page in response to one of the first switching controls being triggered, the second editing page displays the target field and the second switching control corresponding to the triggered first switching control, the second switching control is used to trigger switching to display the first editing page; wherein the first editing page is used to perform format editing on the target text, and the second editing page is used to perform format editing on the target field corresponding to the triggered first switching control.

[0020] In a third aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed, the steps of any one of the methods in the first aspect are implemented.

[0021] In a fourth aspect, an electronic device is provided, comprising: one or more processors; and a memory associated with the one or more processors, the memory being used to store program instructions, which, when read and executed by the one or more processors, execute the steps of any one of the methods in the first aspect above.

[0022] In a fifth aspect, a computer program product is provided, comprising a computer program, which, when executed, implements the steps of any one of the methods described in the first aspect.

[0023] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0024] 1) This application implements global format editing of the target text through the first editing page, and local format editing of the target field in the target text through the second editing page. In addition, the first switching control in the first editing page and the second switching control in the second editing page can be used, that is, routing parameters or positioning anchor technology are used to achieve mutual switching between the first editing page and the second editing page. For users, by switching between editing pages, not only can efficiency be improved through global format editing, but also personalized needs can be met through local format editing, thereby ensuring the user's creative freedom and improving the user experience.

[0025] 2) By displaying the target characters in the first markup style on the editing page, this application allows users to quickly and intuitively identify the selected target characters and perform formatting on them. Furthermore, users can adjust the selection range of these target characters based on their needs, making the selection of target characters more in line with their needs. Furthermore, the format panel provided on the editing page includes multiple format options, and users can select any format option to perform formatting on the selected target characters, thereby meeting the diverse needs of users.

[0026] 3) Through the semantic parsing control in the first editing page, this application can perform contextual semantic analysis on the target text when the user performs global format editing of the target text, and automatically select target characters for the user, thereby reducing the time for the user to select the target characters and improving the efficiency of the user's format editing.

[0027] 4) When the target characters are automatically selected through the semantic parsing control in the first editing page, the present application provides a selection panel to the user. When it is detected that the automatically selected characters to be selected include historically edited characters, the user can determine whether to retain the historically edited characters in the final selected target characters, thereby making the format editing of the target characters more in line with user needs, and further improving the user experience.

[0028] 5) This application provides the user with the function of manually selecting target characters. The user can accurately select the target characters that need to be formatted according to his or her needs, thereby improving the accuracy and flexibility of the user's formatting.

[0029] 6) In this application, if the user has selected the target character in the current editing page but has not performed format editing, after the user switches the editing page, the first mark style is retained to display the target character in the switched editing page to reduce the user's repeated selection operations, further improve the user's format editing efficiency and accuracy, and improve the user experience.

[0030] 7) This application provides a completion control on the format panel. After the user has formatted the target character, the user can trigger the completion control, so that the edited target character can be displayed in the editing page where the target character is located using the second mark style, so that the user can quickly and intuitively identify the target character that has been formatted, reducing the user's repeated operations and erroneous operations, thereby improving the user's format editing efficiency and operational flexibility, and thus improving the user experience.

[0031] 8) The present application can also detect the format parameter values ​​of other characters except the target character in the first editing page or the second editing page after switching when switching between the first editing page and the second editing page, so as to determine the current editing status of other characters, and display the characters currently in the unedited state in the editing page where the target character is located using the default initial style, and display the characters currently in the historically edited state in the editing page where the target character is located using the third marking style, so that users can quickly and intuitively distinguish between characters in different editing states in the editing page where the target character is located, reduce users' repeated operations and misoperations, thereby improving users' format editing efficiency and operation flexibility, and thus improving user experience.

[0032] 9) This application also provides a preview area in the editing page where the target character is located. For characters in an unedited state, the default initial format is used for display in the preview area. For characters in a historically edited state, the latest historical format is used for display in the preview area, so that users can quickly and intuitively distinguish between characters in an unedited state and characters in a historically edited state, thereby reducing users' repeated operations and erroneous operations, improving users' format editing efficiency and operational flexibility, and thus improving user experience.

[0033] 10) After detecting that the completion control in the style panel is triggered, this application also displays a prompt pop-up window to remind the user of the type and number of edits involved in the current format editing operation, allowing the user to understand the content of the current format editing operation more quickly, thereby further improving the user experience.

[0034] 11) The present application also displays a third switching control on the second editing page. Through the third switching control, the user can switch the currently displayed target field in the second editing page according to the display order of each target field in the target text. Thus, by performing local format editing on the currently displayed target field in the second editing page and switching the currently displayed target field, the global format editing of the target text can be indirectly achieved. Therefore, not only can a balance between efficiency and personalization be achieved, but the user's operational flexibility can also be further improved, thereby improving the user experience.

[0035] 12) This application can also provide a text input page. After the user enters the target text, he can quickly enter the second editing page through the fourth switch control in the text input page. Therefore, it can reduce the user's operations and reduce the user's learning cost, thereby improving the user's format editing efficiency and improving the user experience.

[0036] 13) This application can reduce the situation where users mistakenly switch to the second editing page corresponding to other target fields by only displaying the first switch control corresponding to the target field that is currently selected in the first editing page. Therefore, it can improve the user's operation accuracy, thereby improving the user's efficiency in format editing and improving the user experience.

[0037] Of course, any product implementing the present application does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 A schematic diagram of a system architecture applicable to embodiments of the present application;

[0040] Figure 2 A flowchart of a text processing method provided in an embodiment of the present application;

[0041] Figure 3 A schematic diagram of switching between the first editing page and the second editing page provided in an embodiment of the present application;

[0042] Figure 4 Schematic diagram of each stage of the first editing page provided in an embodiment of the present application;

[0043] Figure 5A schematic diagram of various stages of a second editing page provided in an embodiment of the present application;

[0044] Figure 6 A schematic diagram of various stages of another second editing page provided in an embodiment of the present application;

[0045] Figure 7 A schematic diagram showing a text input page provided in an embodiment of the present application being switched to displaying a second editing page;

[0046] Figure 8 A schematic block diagram of a text processing device provided in an embodiment of the present application;

[0047] Figure 9 A schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0049] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "an", "the" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.

[0050] It should be understood that the term "and / or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0051] The word "if," as used herein, may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.

[0052] The existing methods for formatting text in media files can usually only format single sentences in the text. For example, when creating a video, a user adds text to a certain video segment, then formats the text added to the video segment. After completion, they continue to add text to the next video segment and format it again, repeating the steps of adding text and formatting until the entire video is created. This method is very cumbersome. Users need to constantly switch video segments, add text to the video segments after switching, and format the text. In the case of long videos and a lot of text, the workload of this video creation method is undoubtedly enormous for users. Therefore, on the one hand, this method is cumbersome for users to operate, resulting in extremely low efficiency in user video creation. On the other hand, frequent repetitive operations also reduce the user experience.

[0053] In view of this, the present application provides a new approach. To facilitate understanding of the present application, the system architecture on which the present application is based is first described. Figure 1 This is a schematic diagram of the system architecture applicable to the embodiments of the present application, such as Figure 1 As shown in , the system architecture may include: a user end, a terminal device and a server end.

[0054] Among them, the user end is set on the terminal device. The user end involved in the embodiment of the present application can be a client running on the terminal device, a small program or a Web application running through a browser, etc.

[0055] Terminal devices may include, but are not limited to, smart mobile terminals, wearable devices, PCs (Personal Computers), smart home devices, etc. Smart mobile devices may include, for example, mobile phones, tablet computers, laptop computers, PDAs (Personal Digital Assistants), and internet car terminals. Wearable devices may include, for example, smart watches, smart glasses, smart bracelets, VR (Virtual Reality) devices, AR (Augmented Reality) devices, mixed reality devices (i.e., devices that support both virtual reality and augmented reality), etc. Smart home devices may include, for example, smart TVs and smart refrigerators with displays.

[0056] The user end can interact with the server end through the network and store the target text after format editing on the server end.

[0057] The server side can be a single server, a server cluster consisting of multiple servers, or a cloud server. A cloud server, also known as a cloud computing server or cloud host, is a hosting product within the cloud computing service ecosystem. It addresses the management difficulties and limited scalability of traditional physical hosting and virtual private server (VPS) services.

[0058] As one of the feasible methods, the user end adopts the method provided in the embodiment of the present application to perform text processing, and can send the target text to the server end once after each format editing operation, or can send the target text to the server after completing the format editing of the entire target text, so that the server can store the format-edited target text.

[0059] As one of the feasible methods, in a video creation scenario, the user end processes the text in the video using the method provided in this application, and sends the video and the target text after format editing to the server end, so that the video and the target text after format editing are stored through the server.

[0060] It should be understood that Figure 1 The number of user terminals, terminal devices and server terminals in the embodiment is merely illustrative. Any number of user terminals, terminal devices and server terminals may be provided according to implementation requirements.

[0061] Figure 2 This is a flowchart of a text processing method provided in an embodiment of the present application. The method can be performed by Figure 1 The user side of the system shown is executed. Figure 2 As shown in , the method may include the following steps:

[0062] Step 201: Display a first editing page, wherein the first editing page displays target text and at least one first switching control. The target text consists of at least one target field, and each target field corresponds to a first switching control.

[0063] Step 203: In response to one of the first switch controls being triggered, switch to display the second editing page, the second editing page displays the target field corresponding to the triggered first switch control and the second switch control, the second switch control is used to trigger the switch to display the first editing page.

[0064] The first editing page is used to perform format editing on the target text, and the second editing page is used to perform format editing on the target field corresponding to the triggered first switching control.

[0065] Figure 3 A schematic diagram of switching between the first editing page and the second editing page provided in an embodiment of the present application. Figure 3(a) shows the first editing page, Figure 3 (b) shows the second editing page. Figure 3 In (a), the first editing page displays a target text, which consists of multiple target fields, each of which corresponds to a first switch control; Figure 3 In (b), the second edit page displays one of the target fields in the target text and a second toggle control. By triggering the first toggle control, the first edit page can be switched to the second edit page displaying the target field corresponding to the first toggle control. By triggering the second toggle control, the second edit page can be switched back to the first edit page.

[0066] It can be seen that the first editing page of the present application can use the global style pool (for example, an artificial intelligence batch processing framework) to implement global format editing of the target text, and the second editing page can use the local editing stack (manual fine-tuning sandbox) to implement local format editing of the target field in the target text. Moreover, the first switching control in the first editing page and the second switching control in the second editing page can be used to switch between the first editing page and the second editing page, simulating the user's natural workflow. For users, by switching between editing pages, not only can efficiency be improved through global format editing, but personalized needs can also be met through local format editing, thereby improving user experience.

[0067] The following is a detailed description of each step in the above process and the effects that can be further produced in conjunction with the embodiments. It should be noted that the limitations such as "first" and "second" involved in this disclosure do not have restrictions on size, order, and quantity, and are only used to distinguish them in name. For example, "first editing page" and "second editing page" are used to distinguish two editing pages in name. For example, "first switching control", "second switching control", "third switching control" and "fourth switching control" are used to distinguish different switching controls in name. And so on.

[0068] First, the “format editing” in the above process is described in detail with reference to the embodiment.

[0069] The formats involved in the embodiments of the present application may include fonts, styles, font sizes, opacity, etc., where the styles may include colors, shadows, strokes, bold italics, etc.

[0070] The text processing in the embodiments of the present application can be formatting text added to a video, formatting text added to an image in an atlas, or formatting plain text. That is, the text processed in the embodiments of the present application can include a background image (including a static background image, a dynamic background image, a combination of static and dynamic background images, etc.), or it can exclude a background image.

[0071] Videos can be long videos, short videos, or a combination of long and short videos. The distinction between long and short videos is mainly reflected in the length, content, and production methods of the videos. Long videos are usually more than tens of minutes long; the content is relatively complete and in-depth, and the content quality is relatively high; they usually require professional photography, editing, sound effects and other teams to complete, with a longer production cycle and more resources required; for example, movies, TV series, documentaries, etc. are all long videos. Short videos are usually within ten minutes or a few minutes; the content is usually brief and concise, focusing on highlighting a certain highlight or quickly conveying information; the production is also relatively simple, often shot with a mobile phone or other portable device, and post-editing is relatively easy; short videos pay more attention to rapid production and rapid dissemination, and emphasize timeliness; for example, some funny videos, life recording videos, advertising videos, short dramas, etc. are all short videos.

[0072] In addition, the above videos can be either horizontal or vertical. Horizontal videos are videos where the width of the video is greater than its height, which better fits the natural field of view of the human eye and is more suitable for viewing on wide-screen devices (such as TVs and computers). Vertical videos are videos where the height of the video is greater than its width, which is more suitable for viewing on narrow-screen devices (such as smartphones and tablets) and is more popular in areas such as social media and short videos.

[0073] Images in an album can be either regular or long. Regular images are typically single, static images, allowing users to view their entire content without any additional interaction. Long images, on the other hand, are a special type of image, consisting of a series of images. Users must scroll or swipe to view the entire image. Long images typically combine multiple image elements to form a coherent content.

[0074] In one embodiment, format editing includes: in response to triggering an event for a target character, displaying the target character in a first marking style in an editing page where the target character is located; in response to triggering a pop-up operation of a format panel, popping up a format panel on the editing page where the target character is located, the format panel including a plurality of format options; in response to one of the format options being triggered, editing the target character in a format corresponding to the triggered format option; wherein the target character is a character in a target text displayed on the first editing page.

[0075] Among them, the target characters can be words, letters, numbers, punctuation marks, special characters, mathematical symbols, emoticons, etc. in the target text. Different format options can correspond to different character types. This application does not limit the type of characters.

[0076] The first marking style is used to distinguish the target character from other characters in the target text except the target character, for example, only changing the color of the target character, only adding a background color to the target character, only bolding the target character, only adding an underline, a marking point, etc. to the target character, only changing the color, shape, etc. of the underline, marking point, etc. of the target character, etc., and the specific type of the first marking style is not limited in this application.

[0077] Triggering the pop-up operation of the format panel can be achieved by triggering a control on the first editing page.

[0078] In one embodiment, since the target text displayed on the first editing page is global text and the text volume is relatively large, the following two methods can be used to determine the target characters:

[0079] In the first way, in order to improve the efficiency of determining the target character, when the editing page where the target character is located is the first editing page, the first editing page may include a semantic parsing control, and the target character in the target text is automatically selected through the semantic parsing control.

[0080] The second method is to provide users with a function of manually selecting target characters in the target text in order to satisfy users' fine-tuning needs.

[0081] Therefore, the event that triggers the target character can be an event that triggers the semantic parsing control in the first editing page, or an event that triggers the target character selection operation. When determining the target character, the user can choose either method or a combination of the two methods. For example, the semantic parsing control can automatically select the target character, and the user can then manually adjust the range of the selected target characters.

[0082] Figure 4 Schematic diagram of each stage of the first editing page provided in the embodiment of this application. Figure 4The first editing page shown in (a) displays the target text containing multiple target fields, the first switching control, the format editing control, and the semantic parsing control; if the user clicks the semantic parsing control, the user can enter Figure 4 (b) shows the waiting page; when the progress in the waiting page is completed, enter Figure 4 (d) shows a page that displays the target characters in the first markup style. Through this page, the user can quickly and intuitively identify the target characters in the target text. If the user clicks the format editing control, the user enters the Figure 4 (f) shows a pop-up format panel page, which includes format options such as font, style, font, font size, opacity, etc., where font can include format options of multiple font types, style can include format options of color, shadow, stroke, bold italic, etc., font can include format options of multiple font types, and the font size and opacity can be selected by dragging the slider; users can select specific parameter values ​​through Figure 4 Select the corresponding format in the format panel shown in (f) to edit the format of the target character.

[0083] If the user does not click the semantic parsing control, the user can Figure 4 Manually select the target character in the first editing page shown in (a) and enter Figure 4 (d) shows a page that displays target characters in the first markup style. Users can accurately select target characters that need to be formatted according to their needs, thereby improving the accuracy and flexibility of formatting for users.

[0084] In one embodiment, the editing page where the target character is located is a first editing page, and the first editing page includes a semantic parsing control; in response to triggering an event for the target character, the target character is displayed in a first marking style in the editing page where the target character is located, including: in response to the semantic parsing control being triggered, semantically parsing the target text to obtain the character to be selected; determining the target character based on the character to be selected; and displaying the target character in the first editing page using the first marking style.

[0085] The semantic parsing control can be connected to a large language model. By pre-setting prompt words for the large language model, when the semantic parsing control is triggered, the large language model automatically performs semantic parsing on the target text based on the set prompt words, identifies key characters in the target text, and uses the key characters as the characters to be selected. After the target characters are determined based on the characters to be selected, the target characters can be displayed using the first markup style on the first editing page. This can reduce the time users spend selecting characters, thereby improving the efficiency of format editing.

[0086] In one embodiment, determining a target character based on the character to be selected includes: in response to detecting that there are historically edited characters among the characters to be selected, displaying a selection panel, the selection panel including a first option and a second option, the first option being used to trigger selecting the character to be selected as the target character, and the second option being used to trigger selecting a character other than the historically edited character among the characters to be selected as the target character.

[0087] The target text displayed in the first editing page may or may not have a history of format editing records. Therefore, when the semantic parsing control automatically selects the characters to be selected in the target text, the characters to be selected may contain historically edited characters, so it is necessary to detect the characters to be selected, such as Figure 4 The waiting page shown in (b) can be a process of identifying key characters and detecting historical edited characters. If it is detected that there are historical edited characters in the characters to be selected, then enter Figure 4 The page showing the selection panel shown in (c) includes a prompt message, a first option, and a second option. The prompt message may be "It is detected that you have edited the text format, please select", the first option may be "Directly overwrite", and the second option may be "Add key characters (keep historical settings)". If the user selects the first option, the user enters Figure 4 If the user selects the second option, the page shown in (d) will be displayed. Figure 4 The page shown in (e) also includes a cancel option for canceling the current operation. By allowing the user to determine whether to retain the historical edited characters in the final selected target character, the format editing of the target character can be made more in line with the user's needs, further improving the user experience.

[0088] In one embodiment, format editing includes: in response to triggering an event for a target character, displaying the target character in a first marking style in an editing page where the target character is located; in response to triggering a pop-up operation of a format panel, popping up a format panel on the editing page where the target character is located, the format panel including a plurality of format options; in response to one of the format options being triggered, editing the target character in a format corresponding to the triggered format option; wherein the target character is a character in a target field displayed on a second editing page.

[0089] In one embodiment, because the target field displayed on the second edit page is only one of the target text fields displayed on the first edit page, the text volume is relatively small. To meet the user's needs for refined adjustments, the user is provided with the function of manually selecting the target character in the target field. Thus, in response to triggering an event targeting the target character, the target character is displayed using the first markup style on the edit page where the target character is located, including: in response to the target character selection operation, the target character is displayed using the first markup style on the edit page where the target character is located.

[0090] Optionally, in order to reduce the user's learning cost and reduce the user's operation steps, the pop-up operation of the format panel can be triggered by detecting that the user manually selects the target character in the target field. For example, when it is detected that the user's sliding operation on the screen is completed, the format panel pops up.

[0091] Figure 5 This is a schematic diagram of each stage of a second editing page provided in an embodiment of the present application. Figure 5 The second editing page shown in (a) displays one of the target fields and the second switch control of the target text; if the user manually selects the target character, the user can enter Figure 5 (b) shows a page that displays the target characters in the first markup style. Through this page, the user can quickly and intuitively identify the target characters in the target field, and the page displays a format panel; the user can Figure 5 Select the corresponding format in the format panel shown in (b) to edit the format of the target character.

[0092] In one embodiment, after the target character is displayed in the first marking style in the editing page where the target character is located, the method further includes: in response to a switch control on the editing page where the target character is located being triggered, displaying the target character in the first marking style in the switched editing page.

[0093] In the case where the editing page where the target character is located is the first editing page, if the target character is displayed in the first marking style in the first editing page, and the target character is not formatted, and in response to the first switch control on the first editing page being triggered, it switches to the second editing page that displays the target field corresponding to the first switch control, and in the target field on the second editing page, the target character continues to be displayed in the first marking style, so as to reduce the user's repeated selection operations on the target character, further improve the user's format editing efficiency and accuracy, and improve the user experience.

[0094] Continue to refer Figure 4 If the user is Figure 4 On the page shown in (d), click the first switch control corresponding to one of the target fields to enter Figure 4 The second editing page shown in (g) is shown in FIG. 1 , and in the second editing page, keep Figure 4 As shown in (d), the target character is displayed using the first markup style, and a format panel is displayed.

[0095] In the case where the editing page where the target character is located is the second editing page, if the target character is displayed in the first marking style in the second editing page, and the target character is not formatted, and in response to the second switch control on the second editing page being triggered, the first editing page is switched to be displayed, and the target character is continued to be displayed in the first marking style in the corresponding target field on the first editing page, so as to reduce the user's repeated selection operations on the target character, further improve the user's format editing efficiency and accuracy, and improve the user experience.

[0096] Continue to refer Figure 5 If the user is Figure 5 On the page shown in (b), click the second switch control to enter Figure 5 The first editing page shown in (c) and in the first editing page, keep Figure 5 (b) shows the target character displayed using the first marking style.

[0097] In one embodiment, the format panel further includes a completion control; the method further includes: in response to the completion control being triggered, displaying the edited target character in the editing page where the target character is located using a second marking style.

[0098] Among them, the second marking style is used to distinguish the currently edited target character from other characters except the target character in the editing page where the target character is located, for example, only changing the color of the target character, only adding a background color to the target character, only bolding the target character, only adding an underline, a marking point, etc. to the target character, only changing the color, shape, etc. of the underline, marking point, etc. of the target character, etc., and the specific type of the second marking style is not limited in this application, but it should be noted that the first marking style and the second marking style are different. Through the second marking style, the user can quickly and intuitively identify the target character that has been formatted and edited, reduce the user's repeated operations and misoperations, thereby improving the user's format editing efficiency and operational flexibility, and thus improving the user experience.

[0099] In the case where the editing page where the target character is located is the first editing page, in the format panel displayed on the first editing page, if the target character is formatted using the format corresponding to the triggered format option, and the completion control on the format panel is triggered, the edited target character will be displayed using the second marking style in the first editing page.

[0100] Continue to refer Figure 4 If the user clicks Figure 4 (f) shows the completion control on the format panel (in Figure 4 ) is displayed as “√” in the Figure 4 The page shown in (h) in FIG. 1 is a diagram showing a page in which the edited target character is displayed using a second marking style in which a solid marking point in a circular shape is added.

[0101] In one embodiment, the first editing page also includes a preview area. If the completion control on the format panel is triggered, the format of the target character after format editing is displayed in the preview area. If the format editing of the target character is to change the style of the target character to bold, then Figure 4 In the page shown in (h), the preview area displays the target field where the target character is located, along with the target character in bold black. This allows the user to immediately and intuitively see the formatting effect of the target character, allowing them to quickly determine whether the current formatting effect is what they expected. If the user is not satisfied with the current formatting effect, they can make adjustments in a timely manner. This improves formatting efficiency and enhances the user experience.

[0102] In the case where the editing page where the target character is located is the second editing page, in the format panel displayed on the second editing page, if the target character is formatted using the format corresponding to the triggered format option, and the completion control on the format panel is triggered, the edited target character will be displayed using the second marking style in the second editing page.

[0103] Continue to refer Figure 5 If the user clicks Figure 5 (b) shows the completion control on the format panel (in Figure 5 ) is displayed as “√” in the Figure 5 In the page shown in (d), the edited target character is displayed in the second marking style with a solid marking point in a circular shape added.

[0104] In one embodiment, the second editing page also includes a preview area. If the completion control on the format panel is triggered, the format of the target character after format editing is displayed in the preview area. If the format editing of the target character is to change the style of the target character to bold, then Figure 5 In the page shown in (d), the preview area displays the target field where the target character is located, and displays the target character in bold black.

[0105] In one embodiment, the method further includes: in response to triggering a switch between the first edit page and the second edit page based on the first toggle control or the second toggle control, detecting the format parameter values ​​of other characters other than the target character in the first edit page or the second edit page after the switch; determining the editing state of the other characters based on the format parameter values, the editing state including an unedited state and a historically edited state; displaying the unedited characters among the other characters in the edit page where the target character is located using an initial style; and displaying the historically edited characters among the other characters in the edit page where the target character is located using a third markup style. The edit page where the target character is located also includes a preview area, and the method further includes: displaying the unedited characters among the other characters in the initial format in the preview area; and displaying the historically edited characters among the other characters in their latest historical format in the preview area.

[0106] Among them, characters in the historical edited state can also be called historical edited characters. The third marking style is used to distinguish historical edited characters from other characters except historical edited characters in the second editing page, for example, only changing the color of historical edited characters, only adding background color to historical edited characters, only bolding historical edited characters, only adding underlines, marking dots, etc. to historical edited characters, only changing the color, shape, etc. of the underlines, marking dots, etc. of historical edited characters, etc., and the specific type of the third marking style is not limited in this application, but it should be noted that the first marking style, the second marking style and the third marking style are all different. Through the third marking style, users can quickly and intuitively distinguish the historical edited characters in the second editing page, reduce users' repeated operations and misoperations, thereby improving users' format editing efficiency and operational flexibility, and further improving user experience.

[0107] Through the first marking style, the second marking style and the third marking style, the user can quickly and intuitively distinguish the target characters selected in the second editing page, the target characters that have been formatted and the historically edited characters, reducing the user's repeated operations and erroneous operations, thereby improving the user's format editing efficiency and operational flexibility, and thus improving the user experience.

[0108] The initial style may be a style without any markup, or may be another markup style that is different from the first markup style, the second markup style, and the third markup style. Preferably, the initial style is a style without any markup, thereby reducing the situation where users cannot distinguish characters in an unedited state due to confusion among multiple markup styles.

[0109] In one embodiment, for a first editing page, in response to switching the first editing page to display a second editing page based on a first switching control trigger, the format parameter values ​​of other characters except the target character in the switched second editing page are detected; based on the format parameter values, the editing status of other characters is determined, and the editing status includes an unedited state and a historically edited state; the characters in the unedited state among the other characters are displayed in the second editing page using the initial style; the characters in the historically edited state among the other characters are displayed in the second editing page using a third marking style.

[0110] Since the target text displayed on the first editing page may contain characters in an unedited state and / or characters in a historically edited state in addition to the edited target characters, in response to triggering a switch between the first editing page and the second editing page based on the first switching control, the format parameter values ​​of the characters other than the target characters in the second editing page displayed after the switch are detected, and the characters in the unedited state among the other characters are displayed in the initial style on the second editing page, and the characters in the historically edited state among the other characters are displayed in the third marking style.

[0111] Continue to refer Figure 4 , Figure 4 In the target text displayed on the first editing page shown in (a) to (h), the target field corresponding to the first switching control contains characters in an unedited state without any markup style, and characters in a historically edited state displayed using a third markup style with a hollow circular markup point. If the user clicks Figure 4 (f) on the format panel shown, then enter Figure 4 In the page shown in (h), the edited target characters are displayed in the second marking style with solid circular marking points added, the unedited characters are displayed without any marking style, and the historical edited characters are displayed in the third marking style with hollow circular marking points added. If the user clicks Figure 4 The first switch control on the page shown in (h) enters Figure 4 In the second editing page shown in (i), after the page switching operation is performed, the target characters that were formatted before the switching are in the historical edited state after the switching. Therefore, in this second editing page, only the unedited characters without any marking style are displayed, and the historical edited characters using the third marking style with hollow marking points in a circular shape are displayed.

[0112] In one embodiment, the second editing page also includes a preview area, and the characters in the unedited state among other characters are displayed in the initial format in the preview area of ​​the second editing page; and the characters in the historically edited state among other characters are displayed in their latest historical format in the preview area of ​​the second editing page.

[0113] If you edit the target character format before switching pages, and change the target character style to bold, and the latest history format of the edited character is italic, then after switching pages, Figure 4 In the preview area of ​​the second editing page shown in (i), unedited characters are displayed in their original format. The target characters that were formatted before the switch are in the historically edited state after the switch. Therefore, the preview area also displays characters in black bold and italic bold. Through the preview area, users can quickly and intuitively distinguish between unedited characters and historically edited characters, thereby reducing repeated operations and incorrect operations, improving user format editing efficiency and operational flexibility, and thus enhancing the user experience.

[0114] That is to say, in this embodiment, the page switching operation does not affect the editing status of the characters. By synchronizing the editing status of the target characters in the first editing page and the second editing page, a seamless correspondence between the first editing page and the second editing page can be achieved, thereby greatly improving the user's operational efficiency and experience when switching between different editing pages. This means that any formatting edits made by the user on the first editing page can be clearly seen in the second editing page (and vice versa), thereby helping the user to quickly understand the distribution of key characters of the entire target text and ensure consistency of style. Moreover, the relevance and coherence between the two views of the first editing page and the second editing page can be strengthened, allowing the user to switch between macro-grasping and micro-adjustments more efficiently without having to repeatedly search for modifications already made, thereby significantly improving operational efficiency and user experience. In addition, through intuitive visual feedback in the preview area, it is easy for users to discover potential formatting conflicts or inconsistencies, thereby further optimizing the overall quality of the target text.

[0115] Optionally, an intelligent mapping mechanism or a state management mechanism (e.g., maintaining a global format pool and a local edit stack) can be used to synchronize the editing states of all characters when the user switches between the single-sentence editing mode (the second editing page) and the global editing mode (the first editing page). That is, after the first editing page is switched to display the second editing page, the format parameter values ​​corresponding to all characters on the first editing page are mapped to the corresponding characters on the second editing page; similarly, after the second editing page is switched to display the first editing page, the format parameter values ​​corresponding to all characters on the second editing page are mapped to the corresponding characters on the first editing page.

[0116] In an optional embodiment, different format parameter values ​​correspond to different formats. For characters in an unedited state, their format parameter values ​​can remain at the initial values. For characters in a historically edited state, their format parameter values ​​must be modified relative to the initial values. Therefore, based on the format parameter values, the editing status of other characters can be determined by judging whether the format parameter values ​​of other characters are initial values.

[0117] In one embodiment, for the second editing page, in response to switching the second editing page to display the first editing page based on a second switching control trigger, the format parameter values ​​of other characters except the target character in the first editing page after switching are detected; based on the format parameter values, the editing status of other characters is determined, and the editing status includes an unedited state and a historically edited state; the characters in the unedited state among the other characters are displayed in the initial style in the first editing page; the characters in the historically edited state among the other characters are displayed in the third marking style in the first editing page.

[0118] Since, in addition to the edited target characters, the target field displayed on the second edit page may also contain characters in an unedited state and / or characters in a historically edited state, and since, in addition to the target field corresponding to the second edit page, the target text displayed on the first edit page may also contain characters in an unedited state and / or characters in a historically edited state in fields other than the target field corresponding to the second edit page. Therefore, in response to triggering the switch between the first edit page and the second edit page based on the second switch control, the format parameter values ​​of the characters other than the target characters in the first edit page displayed after the switch are detected, and the characters in the unedited state among the other characters are displayed in the initial style on the first edit page, and the characters in the historically edited state among the other characters are displayed in the third mark style.

[0119] Continue to refer Figure 5 , Figure 5In the target field displayed on the second editing page shown in (a) to (d), there are characters in an unedited state without any mark style display, and there are characters in a historical edited state displayed using a third mark style with a hollow mark point in a circular shape. If the user clicks Figure 5 (b) shows the completion control on the format panel, then enter Figure 5 In the page shown in (d), the edited target characters are displayed in the second marking style with a solid circular mark point added, the unedited characters are displayed without any marking style, and the historically edited characters are displayed in the third marking style with a hollow circular mark point added. If the user clicks Figure 5 The second switch control on the page shown in (d) enters Figure 5 In the first editing page shown in (e), after the page switching operation is performed, the target characters that were formatted before the switching are in the historical edited state after the switching. Therefore, in the first editing page, only the characters in the unedited state without any marking style and the characters in the historical edited state with the third marking style of adding a hollow marking point in a circular shape are displayed.

[0120] In some embodiments, if, in the first or second editing page, a target character is detected as including a previously edited character, a selection window may be displayed, providing the user with two options: a first option for overwriting the latest historical format of the previously edited character with the format corresponding to the triggered format option; and a second option for retaining the latest historical format of the previously edited character. This can improve the user's format editing efficiency and operational flexibility, thereby enhancing the user experience.

[0121] In some embodiments, if, in the first or second editing page, a target character is detected as including previously edited characters, the format corresponding to the triggered format option can be directly used to overwrite the latest historical format of the previously edited character. This can improve the user's format editing efficiency and operational flexibility, thereby enhancing the user experience.

[0122] refer to Figure 5 If the user is Figure 5 (d) In the second editing page shown, select the target character for the second time, and the target character selected this time includes the historical edited characters, then enter Figure 5 (f) shows a second editing page, in which the target character including the historical edited characters is displayed in the first mark style, the target character that has just completed format editing is displayed in the second mark style, the historical edited characters are displayed in the third mark style, and the format panel is displayed; if the user clicks Figure 5(f) Complete the control on the format panel shown, then enter Figure 5 (g) shows a second editing page, in which the edited content is displayed using a second marking style with solid circular marking points added, and the preview area displays the target field where the target character is located, as well as the target character in bold black.

[0123] In one embodiment, the first editing page also includes a preview area, and the characters in the unedited state among other characters are displayed in the initial format in the preview area of ​​the first editing page; the characters in the historically edited state among other characters are displayed in their latest historical format in the preview area of ​​the first editing page.

[0124] If you edit the target character format before switching pages, and change the target character style to bold, and the latest history format of the edited character is italic, then after switching pages, Figure 5 In the preview area of ​​the first editing page shown in (e), the unedited characters are displayed in their initial format, and the target characters that were formatted before the switch are in the historical edited state after the switch. Therefore, the preview area also displays characters in black bold style and characters in italic bold style.

[0125] In one embodiment, the method further includes: in response to the completion control being triggered, displaying a prompt pop-up window for indicating the edit type and / or number of edits to be performed on the target character. By using the prompt pop-up window, the user is reminded of the edit type and number involved in the current format editing operation, allowing the user to more quickly understand the content of the current format editing operation, thereby further improving the user experience.

[0126] For the first edit page, continue to refer to Figure 4 If the user clicks Figure 4 (f) on the format panel shown, then enter Figure 4 The page shown in (h) displays a pop-up window prompting "5 new bold characters added".

[0127] For the second edit page, continue to refer to Figure 5 If the user clicks Figure 5 (b) shows the completion control on the format panel, then enter Figure 5 The page shown in (d) above displays a pop-up window prompting "5 new bold characters added".

[0128] In one embodiment, the second editing page further displays a third switching control, which is used to trigger switching of the currently displayed target field to display of its adjacent target fields according to the display order of each target field in the target text.

[0129] The second editing page also provides the function of switching the currently displayed target field. By triggering the third switch control on the second editing page, the user can switch the currently displayed target field to its previous target field or its next target field for display according to the display order of the target fields in the target text. After the format editing of the currently displayed target field in the second editing page is completed, if the target field is switched, the format editing record of the target field before the switch will be saved after the switch. In this way, global format editing of the target text can be indirectly achieved. Therefore, it is possible to achieve a balance between efficiency and personalization, and further enhance the user's operational flexibility, thereby improving the user experience.

[0130] Optionally, if there is a background video in the target field displayed on the second editing page, the third switching control is triggered. When switching the next target field of the current target field, the background video is also switched to the starting frame of the next target field; when switching the previous target field of the current target field, the background video is also switched to the starting frame of the previous target field.

[0131] Optionally, the second editing page can provide a second switching control and a third switching control at the same time. The user can choose to trigger the second switching control to switch to the first editing page to perform global format editing of the target text, or can choose to trigger the third switching control to switch to display the adjacent target field of the current target field to perform global format editing of the target text indirectly. Alternatively, after the user has completed the indirect global format editing of the target text through the third switching control, the second switching control is triggered, and the target text displayed on the first editing page after the switch uses the third markup style to display the characters that have been formatted on the second editing page, and the preview area of ​​the first editing page uses the latest edited format to display the characters that have been formatted on the second editing page. Therefore, not only can a balance between efficiency and personalization be achieved, but the user's operational flexibility can also be further improved, thereby improving the user experience.

[0132] Figure 6 This is a schematic diagram of each stage of another second editing page provided in an embodiment of the present application. Figure 6 The second editing page shown in (a) displays one target field of the target text, a second switch control, and two third switch controls; if the user manually selects the target character, the user can enter Figure 6 (b) shows a page that displays the target characters in the first markup style. Through this page, the user can quickly and intuitively identify the target characters in the target field, and the page displays a format panel; the user can Figure 6Select the corresponding format in the format panel shown in (b) to edit the target character format. Figure 6 (b) shows the completion control on the format panel (in Figure 6 ) is displayed as “√” in the Figure 6 In the page shown in (c), the edited target character is displayed in the second marking style with a solid circular marking point added. Figure 6 Click the third switch control that switches downward on the page shown in (c) to enter Figure 6 The page shown in (d) in the figure shows the next field of the target field before the switch operation, and the format of the field can be edited on the current page. Figure 6 Click the third switch control that switches upward on the page shown in (d), and the display will switch back to Figure 6 The page shown in (c).

[0133] In one embodiment, displaying a second editing page includes: displaying a text input page, the text input page displays a text display area and an input area, the input area is used to input target text, the text display area includes at least a fourth switch control, and the text display area is used to display the input target text; in response to the fourth switch control being triggered, switching to displaying the second editing page.

[0134] In addition to being displayed by triggering the first switch control in the first edit page, the second edit page can also be displayed by triggering the fourth switch control in the text input page. The text input page is used to input and display the target text. The input area of ​​the page may include a text input control. By triggering the text input control, the target field in the target text can be input, and the currently input content is displayed in real time in the text display area. The text display area of ​​the text input page includes a text box control, and the content entered through the text input control is displayed in real time in the text box control. The text box control includes a fourth switch control. By triggering the fourth switch control, it switches to the second edit page corresponding to the target field in the current text box control. In this embodiment, the second edit page can be quickly entered through the fourth switch control in the text input page. Therefore, the user's operations can be reduced, the user's learning cost can be reduced, and the user's efficiency in format editing can be improved, as well as the user experience can be improved.

[0135] Optionally, the text box control further includes at least one of a delete control, a copy control, a rotation and scaling control, and a move control. The delete control is used to delete the current text box control and the content displayed therein; the copy control is used to add a new text box control identical to the current one; the rotation and scaling control is used to rotate and scale the current text box control; and the move control is used to move the current text box control.

[0136] Figure 7 A schematic diagram showing a text input page provided in an embodiment of the present application switching to display a second editing page. Figure 7 The text input page shown in (a) has a text display area and an input area. The text display area has a text box control, which includes a delete control, a copy control, a rotation and zoom control, a move control, and a fourth switch control. The input area has a text input control and a virtual keyboard control. The user triggers the text input control and uses the virtual keyboard control to enter the target text. The text box control displays the user's input content in real time. If the user clicks the fourth switch control, the user can enter the following Figure 7 The second editing page shown in (b) displays the target field corresponding to the text box control of the text input page.

[0137] In one embodiment, the first switch control corresponding to the target field currently in the selected state in the first editing page is in the displayed state, and the first switch control corresponding to the target field currently in the unselected state is in the hidden state. Figure 3 The first editing page is shown in (a).

[0138] Displaying only the first switch control corresponding to the target field that is currently selected in the first editing page can reduce the situation where the user accidentally switches to the second editing page corresponding to other target fields. Therefore, the user's operation accuracy can be improved, thereby improving the user's efficiency in format editing and improving the user experience.

[0139] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0140] According to another embodiment, a text processing apparatus is provided. Figure 8 A schematic block diagram of a text processing device provided in an embodiment of the present application, wherein the device is provided at Figure 1 The user side of the architecture shown in Figure 1 is shown in Figure 2. Figure 8 As shown, the device 800 includes: a page switching unit 801, an event monitoring unit 802 and a page display unit 803. The main functions of each component unit are as follows:

[0141] The page switching unit 801 is configured to switch the first editing page to the second editing page in response to one of the first switching controls being triggered; or to switch the second editing page to the first editing page in response to the second switching control being triggered.

[0142] The event monitoring unit 802 is configured to monitor an event in which the first switching control is triggered or an event in which the second switching control is triggered.

[0143] The page display unit 803 is configured to display a first editing page and a second editing page; the first editing page displays target text and at least one first switching control, the target text is composed of at least one target field, and each target field corresponds to a first switching control; the second editing page displays the target field and the second switching control corresponding to the triggered first switching control; the first editing page is used to perform format editing on the target text, and the second editing page is used to perform format editing on the target field corresponding to the triggered first switching control.

[0144] Optionally, the device 800 also includes: a processing module 804, which is arranged in the page display unit 803, and the processing module 804 is configured to perform format editing on the target text on the first editing page, and perform format editing on the target field corresponding to the triggered first switch control on the second editing page. Specifically, in response to triggering an event for a target character, the target character is displayed in the editing page where the target character is located using a first marking style; in response to triggering a pop-up operation of a format panel, a format panel is popped up on the editing page where the target character is located, and the format panel includes multiple format options; in response to one of the format options being triggered, the target character is edited using the format corresponding to the triggered format option; wherein, the target character is a character in the target text displayed on the first editing page, or the target character is a character in the target field displayed on the second editing page.

[0145] Optionally, the editing page where the target character is located is the first editing page, and the first editing page includes a semantic parsing control; the processing module 804 is also configured to, in response to triggering an event for the target character, display the target character using the first marking style in the editing page where the target character is located: in response to the semantic parsing control being triggered, perform semantic parsing on the target text to obtain the character to be selected; determine the target character based on the character to be selected; and display the target character using the first marking style in the first editing page.

[0146] Optionally, the processing module 804 is also configured to, when determining the target character based on the character to be selected: in response to detecting the presence of historically edited characters in the characters to be selected, display a selection panel, the selection panel including a first option and a second option, the first option being used to trigger the character to be selected as the target character, and the second option being used to trigger the characters in the characters to be selected other than the historically edited characters as the target character.

[0147] Optionally, the processing module 804 is also configured to, in response to an event triggering a target character, display the target character in the first marking style in the editing page where the target character is located: in response to a selection operation on the target character, display the target character in the first marking style in the editing page where the target character is located.

[0148] Optionally, the processing module 804 is also configured to, after displaying the target character in the first marking style in the editing page where the target character is located: in response to the switching control on the editing page where the target character is located being triggered, display the target character in the first marking style in the switched editing page.

[0149] Optionally, the format panel further includes a completion control; the processing module 804 is further configured to, in response to the completion control being triggered, display the edited target character in the editing page where the target character is located using a second marking style.

[0150] Optionally, the processing module 804 is also configured to, in response to triggering a switch between the first editing page and the second editing page based on the first switching control or the second switching control, detect the format parameter values ​​of other characters except the target character in the first editing page or the second editing page after the switch; determine the editing status of other characters based on the format parameter values, the editing status including the unedited status and the historically edited status; display the characters in the unedited status among the other characters using the initial style in the editing page where the target character is located; display the characters in the historically edited status among the other characters using the third marking style in the editing page where the target character is located.

[0151] Optionally, the editing page where the target character is located also includes a preview area, and the processing module 804 is further configured to display the characters in the unedited state among other characters in the initial format in the preview area; and display the characters in the historically edited state among other characters in their latest historical format in the preview area.

[0152] Optionally, the processing module 804 is further configured to, in response to the completion control being triggered, display a prompt pop-up window, where the prompt pop-up window is used to prompt the edit type and / or edit quantity to be performed on the target character.

[0153] Optionally, the second editing page further displays a third switching control, which is used to trigger switching of the currently displayed target field to display of adjacent target fields according to the display order of each target field in the target text.

[0154] Optionally, the page display unit 803 is also configured to display a text input page, the text input page displays a text display area and an input area, the input area is used to input the target text, the text display area includes at least a fourth switch control, and the text display area is used to display the input target text; in response to the fourth switch control being triggered, switch to display the second editing page.

[0155] Optionally, the first switch control corresponding to the target field currently in the selected state in the first editing page is in a displayed state, and the first switch control corresponding to the target field currently in the unselected state is in a hidden state.

[0156] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for system or device embodiments, since they are basically similar to method embodiments, the description is relatively simple. For relevant parts, refer to the partial description of the method embodiment. The system and device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without expending creative work.

[0157] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0158] In addition, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the steps of any one of the methods in the aforementioned method embodiments are implemented.

[0159] An embodiment of the present application also provides an electronic device, comprising: one or more processors; and a memory associated with the one or more processors, the memory being used to store program instructions, which, when read and executed by the one or more processors, execute the steps of any one of the method embodiments described above.

[0160] The present application also provides a computer program product, comprising a computer program, which implements the steps of any one of the aforementioned method embodiments when executed.

[0161] in, Figure 9 The schematic block diagram of an electronic device provided in an embodiment of the present application may include a processor 910, a video display adapter 911, a disk drive 912, an input / output interface 913, a network interface 914, and a memory 920. The processor 910, the video display adapter 911, the disk drive 912, the input / output interface 913, the network interface 914, and the memory 920 may be communicatively connected via a communication bus 930. The input / output interface 913 may also be referred to as an I / O interface 913.

[0162] Among them, the processor 910 can be implemented by a general CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., to execute relevant programs to implement the technical solutions provided in this application.

[0163] The memory 920 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 920 can store an operating system 921 for controlling the operation of the electronic device 900 and a basic input and output system (BIOS) 922 for controlling the low-level operations of the electronic device 900. In addition, a web browser 923, a data storage management system 924, and a text processing device 800, etc. can also be stored. The above-mentioned text processing device 800 can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided by the present application is implemented by software or firmware, the relevant program code is stored in the memory 920 and is called and executed by the processor 910.

[0164] The input / output interface 913 is used to connect input / output modules to implement information input and output. The input / output modules can be configured as components in the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and output devices may include a display, speaker, vibrator, indicator light, etc.

[0165] The network interface 914 is used to connect to a communication module (not shown) to enable communication between the device and other devices. The communication module can communicate via a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WiFi, Bluetooth, etc.).

[0166] The bus 930 comprises a pathway for transmitting information between the various components of the device (eg, the processor 910 , the video display adapter 911 , the disk drive 912 , the input / output interface 913 , the network interface 914 , and the memory 920 ).

[0167] It should be noted that although the above device only shows the processor 910, video display adapter 911, disk drive 912, input / output interface 913, network interface 914, memory 920, bus 930, etc., in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it will be understood by those skilled in the art that the above device may also include only the components necessary to implement the solution of the present application, and does not necessarily include all the components shown in the figure.

[0168] Through the description of the above embodiments, it can be seen that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer program product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present application or certain parts of the embodiments.

[0169] The above is a detailed introduction to the technical solutions provided by this application. Specific examples are used herein to illustrate the principles and implementation methods of this application. The description of the above embodiments is only intended to help understand the method and core concept of this application. At the same time, for those skilled in the art, based on the concept of this application, there may be changes in the specific implementation methods and application scope. In summary, the contents of this specification should not be understood as limiting this application.

Claims

1. A text processing method, characterized in that: The method comprises: Displaying a first editing page, wherein the first editing page displays target text and at least one first switching control, the target text is composed of at least one target field, and each target field corresponds to one of the first switching controls; In response to one of the first switching controls being triggered, switching to displaying a second editing page, the second editing page displays a target field and a second switching control corresponding to the triggered first switching control, the second switching control being used to trigger switching to displaying the first editing page; The first editing page is used to perform format editing on the target text, and the second editing page is used to perform format editing on the target field corresponding to the triggered first switching control.

2. The method according to claim 1, characterized in that The format editing includes: In response to triggering an event for a target character, displaying the target character in a first marking style on an editing page where the target character is located; In response to a pop-up operation of triggering a format panel, a format panel is popped up on the editing page where the target character is located, the format panel including a plurality of format options; In response to one of the format options being triggered, editing the target character using a format corresponding to the triggered format option; The target characters are characters in the target text displayed on the first editing page, or the target characters are characters in the target field displayed on the second editing page.

3. The method according to claim 2, characterized in that The editing page where the target character is located is the first editing page, and the first editing page includes a semantic parsing control; In response to triggering an event for a target character, displaying the target character in a first markup style on an edit page where the target character is located includes: In response to the semantic parsing control being triggered, performing semantic parsing on the target text to obtain characters to be selected; Determining the target character based on the character to be selected; The target character is displayed in the first editing page using the first marking style.

4. The method according to claim 3, characterized in that The step of determining the target character based on the character to be selected includes: In response to detecting that there are historically edited characters among the characters to be selected, a selection panel is displayed, wherein the selection panel includes a first option and a second option, wherein the first option is used to trigger the character to be selected as the target character, and the second option is used to trigger the character other than the historically edited character among the characters to be selected as the target character.

5. The method according to claim 2, characterized in that In response to triggering an event for a target character, displaying the target character in a first markup style on an edit page where the target character is located includes: In response to a selection operation on the target character, the target character is displayed in a first marking style on an editing page where the target character is located.

6. The method according to claim 2, characterized in that After displaying the target character in the editing page where the target character is located using the first marking style, the method further includes: In response to a switching control on the editing page where the target character is located being triggered, the target character is displayed in the first marking style on the switched editing page.

7. The method according to claim 2, characterized in that The format panel also includes a completion control; The method further comprises: In response to the completion control being triggered, the edited target character is displayed in a second marking style on the editing page where the target character is located.

8. The method according to claim 7, characterized in that Also includes: In response to triggering switching between the first editing page and the second editing page based on the first switching control or the second switching control, detecting format parameter values ​​of other characters except the target character in the first editing page or the second editing page after switching; Determining the editing status of the other characters based on the format parameter value, wherein the editing status includes an unedited state and a historically edited state; Displaying the characters in the unedited state among the other characters in the edit page where the target character is located using an initial style; Characters in a historical edited state among the other characters are displayed in a third marking style on the editing page where the target character is located.

9. The method according to claim 8, characterized in that The editing page where the target character is located also includes a preview area, and the method further includes: Displaying the characters in the other characters that are in an unedited state in the preview area in an initial format; The characters in the history edited state among the other characters are displayed in the preview area in their latest history format.

10. The method according to claim 7, characterized in that The method further comprises: In response to the completion control being triggered, a prompt pop-up window is displayed, where the prompt pop-up window is used to prompt the editing type and / or the number of editing to be performed on the target character.

11. The method according to claim 1, wherein The second editing page further displays a third switching control, and the third switching control is used to trigger switching of the currently displayed target field to display of its adjacent target field according to the display order of each target field in the target text.

12. The method according to claim 1, characterized in that The displaying of the second editing page includes: Displaying a text input page, wherein the text input page displays a text display area and an input area, the input area is used to input the target text, the text display area includes at least a fourth switching control, and the text display area is used to display the input target text; In response to the fourth switching control being triggered, switching to displaying the second editing page.

13. The method according to claim 1, wherein The first switch control corresponding to the target field currently in the selected state in the first editing page is in the displayed state, and the first switch control corresponding to the target field currently in the unselected state is in the hidden state.

14. A text processing device, characterized in that: The device comprises: a page display unit configured to display a first editing page, wherein the first editing page displays target text and at least one first switching control, the target text is composed of at least one target field, and each target field corresponds to one of the first switching controls; The page switching unit is configured to switch to display a second editing page in response to one of the first switching controls being triggered, wherein the second editing page displays a target field corresponding to the triggered first switching control and a second switching control, and the second switching control is used to trigger switching to display the first editing page; wherein the first editing page is used to perform format editing on the target text, and the second editing page is used to perform format editing on the target field corresponding to the triggered first switching control.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the steps of the method according to any one of claims 1 to 13 are implemented.

16. An electronic device, characterized in that: include: one or more processors; as well as A memory associated with the one or more processors, the memory being configured to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method according to any one of claims 1 to 13.

17. A computer program product comprising a computer program, characterized in that When the computer program is executed, the steps of the method according to any one of claims 1 to 13 are implemented.

Citation Information

Patent Citations

  • System and method for toggling back and forth between unformatted and formatted editable views of data

    CN101814081A

  • Annotation method and device, terminal equipment and storage medium

    CN111008520A

  • Content input method and device of instant messaging software, equipment and medium

    CN114063855A

  • Interface style editing method and device, medium and equipment

    CN117289918A

  • Display state switching method and device of process node, equipment and storage medium

    CN119149004A