WO2020258717A1 - Text processing method, apparatus and device, and storage medium - Google Patents

Text processing method, apparatus and device, and storage medium Download PDF

Info

Publication number
WO2020258717A1
WO2020258717A1 PCT/CN2019/121744 CN2019121744W WO2020258717A1 WO 2020258717 A1 WO2020258717 A1 WO 2020258717A1 CN 2019121744 W CN2019121744 W CN 2019121744W WO 2020258717 A1 WO2020258717 A1 WO 2020258717A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
splitting
text data
split
sub
Prior art date
Application number
PCT/CN2019/121744
Other languages
French (fr)
Chinese (zh)
Inventor
林德熙
邓启亮
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2020258717A1 publication Critical patent/WO2020258717A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Definitions

  • This application relates to the technical field of text production, for example, to a text processing method, device, device, and storage medium.
  • various smart devices are widely used in people's daily life and work.
  • various application software are installed in smart devices to meet people's actual needs in different fields.
  • text editing software can meet users' writing and recording needs
  • courseware editing software can meet users' teaching courseware production needs
  • drawing editing software can meet users' drawing needs.
  • the user can input text data during the use process, and the text data can be displayed with animation effects during the display process.
  • the related technology has the following defects: when the user inputs a large section of text data and displays it with an animation effect, the splitting of the large section of text data has a problem of low efficiency.
  • This application provides a text processing method, device, equipment, and storage medium, which improves the splitting efficiency of text data and facilitates efficient animation display.
  • This application provides a text processing method, including:
  • An animation display mode is set for the sub-text.
  • the method before determining the text split mode corresponding to the text data, the method further includes:
  • a text splitting operation is received, and the text splitting operation is used to trigger the splitting of the text data.
  • the text split operation after receiving the text split operation, it also includes:
  • determining the text split mode corresponding to the text data includes:
  • a click operation on the split selection button is received, and the text split mode corresponding to the click operation is determined as the text split mode of the text data.
  • the method before determining the text split mode corresponding to the text data, the method further includes:
  • the determining the text split mode corresponding to the text data includes:
  • the text split mode corresponding to the text data is determined.
  • the determining the text split mode corresponding to the text data includes:
  • the performing text recognition on the text data and determining the text splitting method corresponding to the text data according to the recognition result includes:
  • the performing text recognition on the text data and determining the text splitting method corresponding to the text data according to the recognition result includes:
  • the selection operation of the split selection option is received, and the text split mode bound to the split selection option is determined as the text split mode of the text data.
  • the mark splitting includes at least one of line mark splitting, sequence number mark splitting, and paragraph mark splitting.
  • the Splitting the text data to obtain sub-texts includes:
  • Identify the mark information in the text data and split the text data according to the position of the mark information in the text data to obtain sub-texts.
  • the font attribute splitting includes font color splitting.
  • the text data is split according to the text splitting method to obtain sub The text includes:
  • the text content with consecutively consistent font colors in the text data is determined as the sub-text.
  • the font attribute splitting includes font thickness splitting.
  • the text data is split according to the text splitting method to obtain sub The text includes:
  • the text data is grouped according to the set font thickness combination mode, and each group is determined as a sub-text.
  • the font attribute splitting includes font level splitting.
  • the text data is split according to the text splitting method to obtain sub The text includes:
  • the text data is grouped according to the set font split level, and each group is determined as a sub-text.
  • This application also provides a text processing device, including:
  • Text data display module used to display the entered text data in the text input box
  • a split mode determining module configured to determine a text split mode corresponding to the text data, wherein the text split mode includes mark split and font attribute split;
  • a text splitting module configured to split the text data according to the text splitting mode to obtain at least two sub-texts
  • the sub-text animation setting module is used to set the animation display mode for the sub-text.
  • the text processing device further includes:
  • An operation receiving module configured to receive a text splitting operation, where the text splitting operation is used to trigger the splitting of the text data
  • the text data display module is also used to display a split selection button, and the split selection button is bound with a corresponding text split mode.
  • This application also provides a text processing device, including: a memory, a display screen, and one or more processors;
  • the memory is used to store one or more programs
  • the display screen is used to display text data entered in a text input box
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the text processing method as described in the first aspect.
  • the present application also provides a storage medium containing computer-executable instructions, which are used to execute the text processing method as described in the first aspect when executed by a computer processor.
  • the text processing method, device, equipment and storage medium provided above determine the text splitting method corresponding to the text data by displaying the entered text data in the text input box, wherein the text splitting method includes tag splitting And font attribute splitting, splitting the text data according to the text splitting method to obtain at least two sub-texts, and setting the animation display mode for the sub-texts to solve the problem of the problem that the user inputs large paragraphs in the prior art
  • the text splitting method includes tag splitting And font attribute splitting, splitting the text data according to the text splitting method to obtain at least two sub-texts, and setting the animation display mode for the sub-texts to solve the problem of the problem that the user inputs large paragraphs in the prior art
  • the splitting of this large piece of text data has the problem of low efficiency, realizes the automatic splitting of the diversity of the text data, optimizes the splitting mechanism of the text data, and improves
  • the splitting efficiency and splitting flexibility of text data is convenient for efficient animation display.
  • FIG. 1 is a flowchart of a text processing method provided in Embodiment 1 of this application;
  • Figure 2 is a first schematic diagram of the display interface
  • Figure 3 is a second schematic diagram of the display interface
  • FIG. 4 is a flowchart of a text processing method provided in Embodiment 2 of this application
  • Figure 5 is a third schematic diagram of the display interface
  • Figure 6 is a fourth schematic diagram of the display interface
  • FIG. 7 is a flowchart of a text processing method provided in Embodiment 3 of this application.
  • FIG. 8 is a flowchart of a text processing method provided in Embodiment 4 of this application.
  • Figure 9 is a fourth schematic diagram of the display interface
  • FIG. 10 is a flowchart of a text processing method provided by Embodiment 5 of this application.
  • Figure 11 is a fifth schematic diagram of the display interface
  • FIG. 12 is a flowchart of a text processing method provided by Embodiment 6 of this application.
  • Figure 13 is a sixth schematic diagram of the display interface
  • FIG. 14 is a flowchart of a text processing method provided in Embodiment 7 of this application.
  • Figure 15 is a seventh schematic diagram of the display interface
  • FIG. 16 is a flowchart of a text processing method provided by Embodiment 8 of this application.
  • Figure 17 is an eighth schematic diagram of the display interface
  • FIG. 18 is a schematic structural diagram of a text processing apparatus provided by Embodiment 10 of this application.
  • FIG. 19 is a schematic structural diagram of a text processing device provided in Embodiment 11 of this application.
  • FIG. 1 is a flowchart of a text processing method provided in Embodiment 1 of this application.
  • the text processing method provided in the embodiments can be executed by a text processing device, which can be implemented by software and/or hardware.
  • the text processing device can be composed of two or more physical entities, or it can be one physical entity. Entity composition.
  • text processing equipment has the function of making courseware, and the text processing equipment can be a computer, a mobile phone, a tablet, or a smart interactive tablet.
  • a smart interactive tablet is used as a text processing device for exemplary description.
  • the smart interactive tablet can be an integrated device that controls the content displayed on the display tablet through touch technology and realizes human-computer interaction. It integrates a projector, an electronic whiteboard, a screen, a sound, a TV, and a video conference.
  • One or more functions such as a terminal.
  • the display screen of the smart interactive tablet can be a capacitive screen, a resistive screen or an electromagnetic screen. The user can perform touch operations on the smart interactive tablet with a finger or a stylus.
  • the smart interactive tablet is installed with the application software that comes with the operating system. At the same time, it also installs the application software downloaded from a third-party device or server.
  • the specific type and content of the application software can be set according to the actual situation.
  • the application software has the functions of courseware production and courseware demonstration. Users can use this courseware production function to make courseware, such as inputting text data, inserting pictures, adding hyperlinks, setting display animations, etc. in each page of the courseware.
  • the courseware display function can be performed accordingly, and the display function is realized.
  • the content of each page of the courseware can be dynamically displayed according to the set animation effects. For example, the pictures can adopt animation display modes such as "flying in”, “slowly entering", and "blinds".
  • the method specifically includes:
  • the text input box can enter and display text data.
  • the text input box can be displayed in the form of a rectangular box on the courseware page when no text data is entered. It can be displayed on a courseware page. It includes one or more text input boxes to display the entered text data.
  • the text input box can be created automatically when the current courseware page is created, or it can be created according to the received text box creation instruction.
  • the entered text data can be text data entered through text entry software (such as Wubi input method), or text data in the pasteboard copied according to the "paste" instruction.
  • the text data is displayed in the text input box.
  • the text input box is displayed in an explicit manner when no text data is entered, that is, a specific entity frame is displayed. After the text data is entered, the text input box can be hidden accordingly.
  • the text data can be text data in different national languages, such as Chinese text data, English text data, Japanese text data, etc., as well as digital numbers, punctuation marks, etc., that is, the text data can be entered through text entry software or Any characters copied and pasted on the pasteboard.
  • different text data corresponds to different text splitting methods, such as mark splitting and font attribute splitting, where mark splitting can include at least one of line mark splitting, serial number mark splitting, and paragraph mark splitting
  • mark splitting can include at least one of line mark splitting, serial number mark splitting, and paragraph mark splitting
  • the font attribute splitting includes at least one of font color splitting, font thickness splitting, and font level splitting.
  • Different text data refers to the difference in the attributes of the text data and the content of the text data.
  • the attributes of the text data include the color, thickness, and level of the font in the text data.
  • the content of the text data includes the specific content of each character.
  • the text data is entered by one or Multiple characters.
  • the realization process of determining the text splitting method corresponding to the text data can be automatically obtained by recognizing the text content in the text data, or it can be based on the detected text data.
  • the selected text split method is determined.
  • the corresponding text splitting method may be the serial number mark splitting method.
  • the corresponding text splitting method can be the font color splitting method.
  • the corresponding text splitting method can be the font weight splitting method.
  • the corresponding text splitting method may be the font-level splitting method.
  • the text data is split according to the text split mode to obtain one or more sub-texts.
  • the splitting method for text data is single, and the text data is usually split using a fixed split mode. For example, for a large section of text data, the text data is split by lines, that is, the text data Each line of the text is split into a sub-text. If the text data contains multiple paragraphs, it will split each paragraph into a sub-text, which is less flexible and ignores the possibility that the production staff may enter a large number during the courseware production process. The segment does not have text data in a clear format. At this time, the existing split method cannot be used to accurately split the text data. If you want to get the sub-text, you need to split it manually.
  • the method of automatically obtaining the corresponding text splitting through the recognition of text content is taken as an example for description.
  • text recognition is performed on the text content of the text data.
  • the content of the text data is shown in Figure 2.
  • Figure 2 is the first schematic diagram of the display interface.
  • the text data 101 is recognized by the text.
  • FIG. 3 is a second schematic diagram of the display interface. As shown in FIG. 3, the text data 101 is split to obtain the sub-text 1011, the sub-text 1012, and the sub-text 1013.
  • an animation display mode is set for the sub-texts, and the animation display mode corresponding to each sub-text can be the same or different.
  • the animation display mode is the mode of animation display during the courseware presentation, such as "flying in”, “Slow entry”, “Blinds” and other animation display modes.
  • the animation display mode corresponding to the sub-text is automatically distributed and generated after the sub-text is split, and can be manually set and modified by the user. Take Figure 3 as an example, where the animation display mode set by the sub-text 1011 can be "fly-in”.
  • the animation display mode corresponding to the sub-text 1012 may be "blinds", and the animation display mode corresponding to the sub-text 1013 may be "slow flying in”.
  • animation display means that the content edited by the courseware is displayed in the form of animation during the demonstration process, such as flying from one side of the display interface to the center of the display interface, or displaying the edited content in the courseware making process with a specific animation effect in the display interface content.
  • the animation display process is also included after setting the animation display mode for the sub-text.
  • the animation display process can be an animated display of the sub-text of the current courseware page after the sub-text is split, or it can be during the courseware demonstration. (For example, after clicking the "Start Teaching" button) when displaying each page of the courseware page, the sub-texts in the courseware page are displayed in sequence.
  • the animation display of each sub-text refers to the next sub-text after a preset time interval after the animation of one sub-text is displayed or a courseware demonstration instruction (such as an instruction triggered by clicking any position in the display interface) is detected
  • the animation display order of sub-texts can be the order in which text data is split to obtain sub-texts. As shown in Figure 3, text data 101 is split to obtain sub-text 1011, sub-text 1012, and sub-text 1013.
  • the animation display of each sub-text in turn does not mean that the animation settings of each sub-text must be displayed in sequence, but the corresponding animation display is performed according to the time parameters set in the animation display mode.
  • the specific animation The display sequence is actually based on the relative sequence of time parameters of multiple sub-texts. For example, the playback time set in the animation display mode of the three sub-texts is the same.
  • the three sub-texts are actually displayed at the same time; another example is the earliest time parameter set in the sub-text 1011 in Figure 3, and the sub-text 1012 and the sub-text 1013 is set to perform animation display 1 second after the subtext 1011 is displayed, then 1 second after the subtext 1011 is displayed, the subtext 1012 and the subtext 1013 are displayed simultaneously.
  • the sub-text can only be used as the display mode in the viewing state, that is, the split effect is displayed after multiple sub-texts are split, and the sub-text is presented when the courseware is played.
  • the preset editing trigger operation for example, double-click the left mouse button, right-click the pop-up menu and then left-click to confirm, trigger by touch operation on the smart interactive tablet, etc.
  • sub-text Merge into the original text data and display it as a whole in the text input box In this way, you can enter in one operation when there are multiple sub-texts that need to be adjusted, avoiding switching between multiple sub-texts.
  • it can be further restored to the previous sub-text splitting method after confirming the editing of the text data; of course, it can also be split according to the newly confirmed splitting method .
  • the split method of the input text data is determined, and then the text data is split according to the split method and the animation display mode is set, which solves the single method of splitting text data in the prior art. Problem, improve the flexibility of text data splitting and text processing efficiency.
  • FIG. 4 is a flowchart of a text processing method provided in the second embodiment of the application, and shows a specific example of determining a text splitting method.
  • the text processing method provided by the embodiment specifically includes:
  • S202 Receive a text splitting operation, where the text splitting operation is used to trigger the splitting of text data.
  • the text split operation may be an operation event detected when a preset button displayed in the display interface is clicked.
  • Figure 5 is a third schematic diagram of the display interface.
  • a preset button 201 is displayed at the bottom right of the text data 101.
  • the preset button 201 is detected to be clicked, it is triggered after the text split operation is received Splitting the text data, splitting the text data 101 to obtain sub-texts.
  • the display position of the preset button in the display interface and the specific graphic display mode are not limited, and can be displayed in any position on the display interface in any manner, such as displayed in any position around the text data 101 in the form of a floating button .
  • a set of split selection buttons is displayed on the display interface, and each split selection button is bound with a corresponding text splitting method, as shown in Figure 6, which shows The fourth schematic diagram of the interface, when the text split operation is received, a set of split selection buttons is displayed.
  • the set of split selection buttons includes 4 buttons (button 2021, button 2022, button 2023, button 2024), Each button corresponds to a split method.
  • the split selection button can also be displayed in the form of a form list, and its specific display mode and display form are not limited.
  • S204 Receive a click operation of a split selection button, and determine a text split mode corresponding to the click operation as the text split mode of the text data.
  • each split selection button is bound to a text splitting method.
  • the text splitting method includes serial number mark splitting, font color splitting, font thickness splitting and font level splitting.
  • the button 2021 and the serial number mark in the split mode are split and bound
  • the button 2022 and the font color in the split mode are split and bound
  • the button 2023 and the font weight in the split mode are split
  • the button 2024 and split The font level in the mode splits the binding. If it is detected that the button 2023 is clicked, it is determined that the splitting method of the text data of the current courseware page is font weight splitting.
  • the corresponding annotation text can be displayed in each button, and the content of the annotation text is the text split mode bound corresponding to the button.
  • the split selection button after receiving the text splitting operation, the split selection button is displayed through the display interface, and the user can click the split selection button according to their actual needs.
  • different split selection buttons correspond to A text splitting method, which improves the flexibility of text data splitting, and at the same time does not require the user to manually split, which improves the efficiency of text splitting.
  • FIG. 7 is a flowchart of a text processing method provided in Embodiment 3 of the application, and shows another specific example of determining a text splitting method. Specifically, referring to FIG. 7, the text processing method provided by the embodiment specifically includes:
  • the text input box can input and display text data, and when it is detected that the input of the text data is completed, the text split mode corresponding to the text data is determined accordingly.
  • the completion of text data entry may refer to the completion of the text data entered in the current text box, or the completion of the text data entry in the current courseware page or all pages of the courseware.
  • the way to detect whether the text data in the text input box has been entered may be judging whether to insert a new text box or picture, hyperlink, and other objects. If so, it is determined that the text data in the current text box has been entered.
  • the operation display interface displays a text box insert button, a picture insert button, a hyperlink insert button, and other buttons for inserting objects. When it is detected that the buttons are clicked, it can be determined that the text data entry is completed.
  • the preset combination key for example, the preset is alt+A
  • the text data entry is determined to be completed.
  • the preset combination key for example, the preset is alt+A
  • the combination key binding command 00x16 of alt+A when alt+A is pressed, the command 00x16 is generated, and when it is judged that the 00x16 command is generated, it is determined that the text data input is completed.
  • a courseware page switch is detected (such as creating a new courseware page)
  • it is determined that the text data in the text box is entered.
  • the text split mode corresponding to the text data is determined according to the recognition result.
  • the corresponding text splitting method may be the serial number mark splitting method.
  • the corresponding text splitting method can be font color splitting.
  • the corresponding text splitting method can be determined to be font thickness splitting.
  • the corresponding text splitting method may be the font-level splitting method.
  • the text data is re-determined corresponding to the text split mode and the text data is split.
  • FIG. 8 is a flowchart of a text processing method provided in Embodiment 4 of this application, and gives another specific example of determining a text splitting method. Specifically, referring to FIG. 8, the text processing method provided by the embodiment specifically includes:
  • the determined text splitting method is serial number mark splitting and There are two types of font color splits.
  • the serial number mark splitting and font color splitting are sorted according to the preset splitting priority, and the final corresponding text splitting method of the text data is determined according to the sorting result
  • the split mode with the highest priority can be directly determined according to the preset split priority as the text split mode corresponding to the current text data.
  • different text splitting methods correspond to different splitting priorities.
  • the text splitting method is serial number mark splitting, font color splitting, font weight splitting and font level splitting as examples.
  • the default settings are
  • the priority of splitting can be font level splitting, font color splitting, serial number mark splitting, and font weight splitting in descending order.
  • the preset split priority can be adjusted according to the user's setting.
  • the text splitting method determined above as serial number mark splitting and font color splitting can determine that the priority of font color splitting is higher than that of serial number mark splitting, then the text splitting method of the text data is determined to be font color splitting.
  • the text data can be split in a mixed split manner.
  • Figure 9 is a fourth schematic diagram of the display interface.
  • the text data 401 is split into sub-text 4011, sub-text 4012, sub-text 4013, sub-text 4014, and sub-text 4015, where sub-text 4014 corresponds to
  • the font color of subtext 4015 is red
  • the font color corresponding to subtext 4015 is blue
  • the font color corresponding to subtext 4011, subtext 4012, and subtext 4013 are black.
  • Splitting text data 402 according to the font color splitting method can get three Sub-texts, in which the first sub-text is split by the serial number mark to obtain three sub-texts 4011, 4012 and 4013 after the split.
  • S404 Split the text data according to the text split mode to obtain at least two sub-texts, and set an animation display mode for the sub-texts.
  • the text splitting method with the highest priority can be obtained according to the preset splitting priority.
  • the different text splitting methods are The system corresponds to a corresponding number. Take text splitting methods including serial number mark splitting, font color splitting, font thickness splitting and font level splitting as examples, serial number mark splitting corresponds to number 01, font color splitting corresponds to numbering 02. Font weight splitting corresponds to number 03, font level splitting corresponds to number 04, the preset splitting priority can be 04, 02, 01 and 03 from high to low.
  • the determined text splitting method is serial number mark splitting (01) and font color splitting (02), and the current font splitting method is determined to be font color splitting (02) according to the priority ranking. ). In this way, the text data is split, the result of the split is not confused, the intelligence of the text split is improved, and the text data can be split effectively to obtain sub-texts that meet user needs.
  • performing text recognition on the text data, and determining the text split mode corresponding to the text data according to the recognition result may include: performing text recognition on the text data, if at least two types of text splitting are obtained according to the recognition result Mode, the split selection option is displayed, and the split selection option is bound with a corresponding text split mode; the selection operation of the split selection option is received, and the text split mode bound to the split selection option is determined as The text split mode of the text data.
  • the text data contains Arabic serial numbers and two or more font colors
  • Two text splitting methods are available, and the pop-up Option box, the option box can contain two button options, corresponding to the serial number mark split and font color split, for example, use the following function to pop up the option box:
  • buttons can be respectively bound to the corresponding text split event, such as:
  • the button When the button is clicked, the corresponding text splitting event is triggered, that is, the text data is split according to the text splitting method, thus, the text processing method is improved, and one-click splitting can be achieved more accurately according to user needs.
  • FIG. 10 is a flowchart of a text processing method provided in Embodiment 5 of the application, and shows an example of implementing a text splitting process. Specifically, referring to FIG. 10, the text processing method provided by the embodiment specifically includes:
  • S501 Display the entered text data in a text input box.
  • S502 Determine a text split mode corresponding to the text data.
  • the determined text splitting method is tag splitting, identify tag information in the text data, and split the text data according to the position of the tag information in the text data to obtain at least two sub-texts .
  • mark splitting is one of the text splitting methods. According to the types of different mark information in the text data, it can be exemplarily divided into line mark splitting, serial number mark splitting and paragraph mark splitting. Among them, line mark The splitting is based on the identified line mark information, the serial number mark splitting is based on the identified serial number mark information, and the paragraph mark splitting is based on the identified paragraph mark information.
  • the text splitting mode is mark splitting
  • the mark information in the text data is recognized, and the text data is split according to the position of the mark information in the text data to obtain the sub-text.
  • the line mark splitting method Take the line mark splitting method as an example.
  • Figure 11 is the fifth schematic diagram of the display interface.
  • the split basis corresponding to the line mark splitting method is the position of the line mark in the text data.
  • the text data 501 is based on the line mark
  • the information (the line break mark is hidden in the display interface and recorded inside the computer program) is divided into three sub-texts, namely sub-text 5011, sub-text 5012, and sub-text 5013.
  • the specific split method may be to determine the text data before the line marking information as a sub-text when the first line marking information is detected, and marking the first line when the second line marking information is detected.
  • the text data between the information and the second line marking information is determined as a subtext, and so on, for the last line marking information, the text data after the last line marking information is determined as a subtext.
  • serial number mark splitting and paragraph mark splitting can refer to the specific implementation process of line mark splitting, which will not be repeated here.
  • the text can be split according to the mark information in the text data, and the text data between the mark information and the text data before the first mark information and after the last mark information are determined as sub-texts, without the need for the user to manually Split, improve the efficiency of text splitting.
  • FIG. 12 is a flowchart of a text processing method provided by Embodiment 5 of the application, and shows an example of implementing a text splitting process.
  • the text processing method provided by the embodiment specifically includes:
  • S602 Determine a text split mode corresponding to the text data.
  • S603 When the determined text splitting mode is font color splitting, determine the text content with continuous and consistent font colors in the text data as sub-texts.
  • Figure 13 is the sixth schematic diagram of the display interface, as shown in Figure 13, where the letter x, the letter g, and the letter f represent different text content, and the letter
  • the font color of the text content corresponding to x is red
  • the font color of the text content corresponding to the letter g is blue
  • the font color of the text content corresponding to the letter f is yellow.
  • the text data 601 is split according to the font color to obtain the subtext 6011 , Subtext 6012, and subtext 6013.
  • the computer's internal program will record the attributes (such as font color, font size, font type, etc.) of each character (can be a single Chinese character, English letter, number, etc.), by obtaining the value of each text character in the text data
  • the font color field value can determine the display color of the text character.
  • the text content in the text data with a consistent font color is determined as a sub-text.
  • the field value with a red font color may be 00xx001.
  • the field value for the blue font color can be 00xx002
  • the field value for the yellow font color can be 00xx003.
  • the font color field value corresponding to the letter x is 00xx001
  • the font color field value corresponding to the letter g is 00xx002.
  • the font color field value corresponding to the letter f is 00xx003.
  • the text content corresponding to the letter x, the letter g, and the letter f is determined as a sub-text.
  • the text data can be automatically split according to the font color of the text data.
  • the user only needs to pay attention to the specific color format of the text data, and does not need to pay attention to the splitting of the text data.
  • text splitting can be realized automatically, which improves the efficiency of text splitting.
  • FIG. 14 is a flowchart of a text processing method provided in Embodiment 5 of this application, and shows an example of implementing a text splitting process.
  • the text processing method provided by the embodiment specifically includes:
  • S702 Determine a text split mode corresponding to the text data.
  • Figure 15 is a seventh schematic diagram of the display interface.
  • the text data 701 is exemplarily shown to obtain sub-text 7011, sub-text 7012, and sub-text 7013 according to the font thickness splitting method.
  • the bold words "excellent courseware library”, “class activity-judgment of right or wrong”, “definition of ancient poems” and the thin words below each are determined to be a sub-text.
  • the text characters are grouped according to the thickness attribute value.
  • the bold characters and the adjacent thin characters below are determined as a group.
  • the data 701 can be divided into three groups of sub-texts. Among them, the program content will record the font thickness attribute of each text character accordingly.
  • the attribute value corresponding to the exemplary bold character is 0xx00001, the attribute value corresponding to the thin character is 0xx00002, and the bold character (the first group detected)
  • the character with the attribute value of 0xx00001) and the adjacent thin characters are determined as one sub-text, and the two sub-texts subsequently divided are obtained in the same way.
  • text splitting can be performed according to the font thickness of the text data. After the user completes the courseware, the text splitting is automatically realized, and the splitting result satisfies the display requirements well.
  • FIG. 16 is a flowchart of a text processing method provided in Embodiment 5 of the application, and shows an example of implementing a text splitting process.
  • the text processing method provided by the embodiment specifically includes:
  • FIG. 17 is a seventh schematic diagram of the display interface.
  • a schematic diagram of splitting the text data 801 to obtain the sub-text 8011 and the sub-text 8012 according to the font level splitting method is exemplarily shown.
  • the texts “new” and “optimization” correspond to the first-level headings
  • the texts “excellent courseware library”, “classroom activities-judging right or wrong” and “customized ancient poems” correspond to the second-level headings
  • the remaining text content corresponds to none Title level.
  • the text characters are grouped according to the title attribute value and the set font split level.
  • the font split level set in this embodiment is the first level, and the first level heading and the corresponding content (the second level heading content and the text content of the untitled level) are determined as a sub-text to obtain Sub-text 8011 and sub-text 8012.
  • the set font split level can also be a secondary level, that is, the first-level heading is determined as a sub-text, and the second-level heading and its corresponding untitled-level text content are determined as a sub-text.
  • each text character (Chinese characters, English, Arabic numerals, line breaks, paragraph characters, etc.) in the text data is stored in the form of an array, and the values of different elements in the array correspond to different attributes of the text data
  • the first line represents the font color of the text character, such as 001 for red, 002 for blue, 003 for green, etc.
  • the second line represents the title attribute of the text character, such as 100 for the first level
  • the title, 010 is the second-level title
  • 001 is the third-level title
  • 200 is the untitled level (such as body text).
  • other attributes of the text character such as whether it is bold or not, are also identified by specific elements in the array.
  • the size of the array and the attribute content of the text characters represented by different array elements can be edited and set, and there is no limitation here.
  • Obtaining the title attribute value of each text character in the text data is to obtain the specific element of the array corresponding to each text character to determine which level of the text character is the heading, and then complete the text splitting of the text data according to the heading level.
  • the text content can be split according to the title level of the text content in the text data, and each sub-text obtained corresponds to an animation display effect, which significantly improves the efficiency of courseware animation production and optimizes the text Processing mechanism.
  • the method further includes: displaying a text division box, the text division box corresponds to the sub-text one-to-one .
  • the results of the split can be displayed accordingly, that is, the sub-texts are divided into the text division box to show them to the courseware producers, who can adjust the sub-texts obtained accordingly. To meet the needs of personalized settings.
  • FIG. 18 is a schematic structural diagram of a text processing apparatus according to Embodiment 9 of this application.
  • the text processing apparatus includes: a text data display module 901, a split mode determination module 902, a text split module 903, and a sub-text animation setting module 904.
  • the text data display module 901 is used to display the entered text data in the text input box;
  • the split mode determination module 902 is used to determine the text split mode corresponding to the text data, where the text split mode includes mark split and font attribute split; the text split module 903 is used to The text split method splits the text data to obtain at least two sub-texts; the sub-text animation setting module 904 is configured to set an animation display mode for the sub-text.
  • the technical solution provided in this embodiment determines the text splitting method corresponding to the text data by displaying the entered text data in the text input box, wherein the text splitting method includes mark splitting and font attribute splitting,
  • the text data is split according to the text splitting method to obtain at least two sub-texts, and the technical solution of setting the animation display mode for the sub-texts solves the problem that when the user inputs a large section of text data in the prior art, When the animation effect is displayed, the splitting of this large section of text data has a problem of inefficiency.
  • the automatic splitting of the diversity of text data is realized, the splitting mechanism of text data is optimized, and the splitting efficiency of text data is improved And the flexibility of splitting is convenient for efficient animation display.
  • the device further includes: an operation receiving module 905, configured to receive a text splitting operation, the text splitting operation is used to trigger the splitting of text data; the text data display module is also used to display the split selection Button, the split selection button is bound with a corresponding text split mode.
  • an operation receiving module 905 configured to receive a text splitting operation, the text splitting operation is used to trigger the splitting of text data; the text data display module is also used to display the split selection Button, the split selection button is bound with a corresponding text split mode.
  • a detection module 906 configured to detect the text data entered in the text input box before determining the text split mode corresponding to the text data
  • the split mode determining module 902 is specifically configured to:
  • the text split mode corresponding to the text data is determined.
  • the split mode determining module 902 is specifically configured to:
  • the split mode determining module 902 is specifically configured to:
  • the split mode determining module 902 is specifically configured to:
  • the operation receiving module 905 is specifically configured to receive a selection operation of a split selection option, and determine the text split mode bound to the split selection option as the text split mode of the text data.
  • the mark splitting includes at least one of line mark splitting, serial number mark splitting, and paragraph mark splitting.
  • the text splitting module 903 is specifically used for:
  • Identify the mark information in the text data and split the text data according to the position of the mark information in the text data to obtain sub-texts.
  • the font attribute splitting includes font color splitting.
  • the text splitting module 903 is specifically configured to:
  • the text content with consecutively consistent font colors in the text data is determined as the sub-text.
  • the font attribute splitting includes font thickness splitting.
  • the text splitting module 903 is specifically configured to:
  • the text data is grouped according to the set font thickness combination mode, and each group is determined as a sub-text.
  • the font attribute splitting includes font level splitting.
  • the text splitting module 903 is specifically configured to:
  • the text data is grouped according to the set font split level, and each group is determined as a sub-text.
  • the text processing device provided in this embodiment can be used to execute the text processing method provided in any of the foregoing embodiments, and has corresponding functions and beneficial effects.
  • FIG. 19 is a schematic structural diagram of a text processing device provided in Embodiment 4 of this application.
  • the text processing equipment includes a processor 40, a memory 41, a display screen 42, an input device 43, and an output device 44.
  • the number of processors 40 in the text processing device may be one or more.
  • One processor 40 is taken as an example in FIG. 19.
  • the number of memories 41 in the text processing device may be one or more.
  • One memory 41 is taken as an example in FIG. 19.
  • the processor 40, the memory 41, the display screen 42, the input device 43, and the output device 44 of the text processing device may be connected by a bus or other methods. In FIG. 19, a bus connection is taken as an example.
  • the text processing device may be a computer, a mobile phone, a tablet or an interactive smart tablet, etc.
  • the memory 41 can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the text processing device described in any embodiment of this application (for example, the Text data display module 901, split mode determination module 902, text split module 903, and sub-text animation setting module 904).
  • the memory 41 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the device, etc.
  • the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the memory 41 may further include a memory remotely provided with respect to the processor 40, and these remote memories may be connected to the device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the display screen 42 may be a display screen 42 with a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen.
  • the display screen 42 is used to display data according to the instructions of the processor 40, such as displaying the connection node adding button, the connection line generated for the target element, and the connection node located on the connection line, etc., and is also used to receive The touch operation of the display screen 42 sends the corresponding signal to the processor 40 or other devices.
  • the input device 43 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the connected node control device. It can also be a camera for acquiring images and a pickup device for acquiring audio data.
  • the output device 44 may include audio equipment such as speakers. It should be noted that the specific composition of the input device 43 and the output device 44 can be set according to actual conditions.
  • the processor 40 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 41, that is, realizes the above-mentioned text processing method.
  • the text processing device provided above can be used to execute the text processing method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
  • the fifth embodiment of the present application also provides a storage medium containing computer-executable instructions, which are used to execute a text processing method when executed by a computer processor, including:
  • An animation display mode is set for the sub-text.
  • a storage medium containing computer-executable instructions provided by the embodiments of the present application and the computer-executable instructions are not limited to the operation of the connection node control method described above, and can also perform text processing provided by any embodiment of the present application.
  • the related operations in the method have corresponding functions and beneficial effects.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • FLASH Flash memory
  • hard disk or optical disk etc.
  • a computer device which can be a robot, A personal computer, a server, or a network device, etc.
  • each part of this application can be implemented by hardware, software, firmware, or a combination thereof.
  • multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • it can be implemented by any one or a combination of the following technologies: discrete logic circuits with logic gates for implementing logic functions on data signals, ASIC with suitable combinational logic gates, programmable gate array (PGA), field programmable gate array (FPGA), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

A text processing method, apparatus and device, and a storage medium. The method comprises: displaying input text data in a text input box (S101); determining a text splitting mode corresponding to the text data (S102), wherein the text splitting mode comprises mark splitting and font attribute splitting; splitting the text data according to the text splitting mode to obtain at least two sub-texts (S103); and setting an animation display mode for the sub-text (S104), so that the problem in the prior art of low efficiency in splitting large-segment text data when a user inputs the large-segment text data and then performs animation effect display on the large-segment text data can be solved, the splitting efficiency of the text data is improved, thereby facilitating efficiently performing animation display.

Description

文本处理方法、装置、设备及存储介质Text processing method, device, equipment and storage medium
本公开要求在2019年06月22日提交中国专利局、申请号为201910545738.9的中国专利申请的优先权,以上申请的全部内容通过引用结合在本公开中。The present disclosure claims the priority of the Chinese patent application filed with the Chinese Patent Office with application number 201910545738.9 on June 22, 2019, and the entire content of the above application is incorporated into the present disclosure by reference.
技术领域Technical field
本申请涉及文本制作技术领域,例如涉及一种文本处理方法、装置、设备及存储介质。This application relates to the technical field of text production, for example, to a text processing method, device, device, and storage medium.
背景技术Background technique
目前,各类智能设备被广泛的应用在人们的日常生活和工作中。通常,智能设备中安装有各类应用软件,以满足人们在不同领域的实际需求。例如,文本编辑软件可以满足用户的写作及记录需求,课件编辑软件可以满足用户的教学课件制作需求,绘图编辑软件可以满足用户的绘画需求等。At present, various smart devices are widely used in people's daily life and work. Generally, various application software are installed in smart devices to meet people's actual needs in different fields. For example, text editing software can meet users' writing and recording needs, courseware editing software can meet users' teaching courseware production needs, and drawing editing software can meet users' drawing needs.
一般而言,对于课件编辑软件,用户在使用过程中,可以进行文本数据的录入,在展示过程中该文本数据可进行动画效果展示。但是相关技术存在如下缺陷:当用户输入大段文本数据后,对其进行动画效果展示时,对该大段文本数据的拆分存在效率低下的问题。Generally speaking, for courseware editing software, the user can input text data during the use process, and the text data can be displayed with animation effects during the display process. However, the related technology has the following defects: when the user inputs a large section of text data and displays it with an animation effect, the splitting of the large section of text data has a problem of low efficiency.
发明内容Summary of the invention
本申请提供了一种文本处理方法、装置、设备及存储介质,提高了文本数据的拆分效率,便于高效的进行动画展示。This application provides a text processing method, device, equipment, and storage medium, which improves the splitting efficiency of text data and facilitates efficient animation display.
本申请提供了一种文本处理方法,包括:This application provides a text processing method, including:
在文本输入框中显示录入的文本数据;Display the entered text data in the text input box;
确定所述文本数据对应的文本拆分方式,其中,所述文本拆分方式包括标记拆分和字体属性拆分;Determining a text splitting manner corresponding to the text data, wherein the text splitting manner includes mark splitting and font attribute splitting;
根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本;Splitting the text data according to the text splitting manner to obtain at least two sub-texts;
对所述子文本设置动画展示模式。An animation display mode is set for the sub-text.
可选的,在确定所述文本数据对应的文本拆分方式之前,还包括:Optionally, before determining the text split mode corresponding to the text data, the method further includes:
接收文本拆分操作,所述文本拆分操作用于触发所述文本数据的拆分。A text splitting operation is received, and the text splitting operation is used to trigger the splitting of the text data.
可选的,在接收文本拆分操作之后,还包括:Optionally, after receiving the text split operation, it also includes:
显示拆分选择按钮,所述拆分选择按钮绑定有对应的文本拆分方式;Display a split selection button, and the split selection button is bound with a corresponding text split mode;
相应的,确定所述文本数据对应的文本拆分方式包括:Correspondingly, determining the text split mode corresponding to the text data includes:
接收对所述拆分选择按钮的点击操作,将所述点击操作对应的文本拆分方式确定为所述文本数据的文本拆分方式。A click operation on the split selection button is received, and the text split mode corresponding to the click operation is determined as the text split mode of the text data.
可选的,在确定所述文本数据对应的文本拆分方式之前,还包括:Optionally, before determining the text split mode corresponding to the text data, the method further includes:
对文本输入框中录入的文本数据进行检测;Detect the text data entered in the text input box;
相应的,所述确定所述文本数据对应的文本拆分方式包括:Correspondingly, the determining the text split mode corresponding to the text data includes:
当检测到所述文本输入框中的文本数据录入完毕时,确定所述文本数据对应的文本拆分方式。When it is detected that the input of the text data in the text input box is completed, the text split mode corresponding to the text data is determined.
可选的,所述确定所述文本数据对应的文本拆分方式包括:Optionally, the determining the text split mode corresponding to the text data includes:
对所述文本数据进行文本识别,依据识别结果确定所述文本数据对应的文本拆分方式。Perform text recognition on the text data, and determine the text splitting mode corresponding to the text data according to the recognition result.
可选的,所述对所述文本数据进行文本识别,依据识别结果确定所述文本数据对应的文本拆分方式包括:Optionally, the performing text recognition on the text data and determining the text splitting method corresponding to the text data according to the recognition result includes:
对所述文本数据进行文本识别,如果依据识别结果得到至少两种文本拆分方式,则依据预设的拆分优先级对所述至少两种拆分方式进行排序,依据排序结果确定所述文本数据对应的文本拆分方式。Perform text recognition on the text data. If at least two text splitting methods are obtained according to the recognition result, the at least two splitting methods are sorted according to the preset splitting priority, and the text is determined according to the sorting result The text split method corresponding to the data.
可选的,所述对所述文本数据进行文本识别,依据识别结果确定所述文本数据对应的文本拆分方式包 括:Optionally, the performing text recognition on the text data and determining the text splitting method corresponding to the text data according to the recognition result includes:
对所述文本数据进行文本识别,如果依据识别结果得到至少两种文本拆分方式,则显示拆分选择选项,所述拆分选择选项绑定有对应的文本拆分方式;Perform text recognition on the text data, and if at least two text splitting methods are obtained according to the recognition results, a split selection option is displayed, and the split selection option is bound with a corresponding text splitting method;
接收拆分选择选项的选择操作,将所述拆分选择选项绑定的文本拆分方式确定为所述文本数据的文本拆分方式。The selection operation of the split selection option is received, and the text split mode bound to the split selection option is determined as the text split mode of the text data.
可选的,所述标记拆分包括行标记拆分、序号标记拆分和段落标记拆分中的至少一种,当确定出的文本拆分方式为标记拆分时,所述根据所述文本拆分方式对所述文本数据进行拆分得到子文本包括:Optionally, the mark splitting includes at least one of line mark splitting, sequence number mark splitting, and paragraph mark splitting. When the determined text splitting mode is mark splitting, the Splitting the text data to obtain sub-texts includes:
识别所述文本数据中的标记信息,依据所述标记信息在所述文本数据中的位置对文本数据进行拆分得到子文本。Identify the mark information in the text data, and split the text data according to the position of the mark information in the text data to obtain sub-texts.
可选的,所述字体属性拆分包括字体颜色拆分,当确定出的文本拆分方式为字体颜色拆分时,所述根据所述文本拆分方式对所述文本数据进行拆分得到子文本包括:Optionally, the font attribute splitting includes font color splitting. When the determined text splitting method is font color splitting, the text data is split according to the text splitting method to obtain sub The text includes:
将所述文本数据中字体颜色连续一致的文本内容确定为子文本。The text content with consecutively consistent font colors in the text data is determined as the sub-text.
可选的,所述字体属性拆分包括字体粗细拆分,当确定出的文本拆分方式为字体粗细拆分时,所述根据所述文本拆分方式对所述文本数据进行拆分得到子文本包括:Optionally, the font attribute splitting includes font thickness splitting. When the determined text splitting method is font thickness splitting, the text data is split according to the text splitting method to obtain sub The text includes:
依据设置的字体粗细组合方式对所述文本数据进行分组,将每一组确定为一个子文本。The text data is grouped according to the set font thickness combination mode, and each group is determined as a sub-text.
可选的,所述字体属性拆分包括字体级别拆分,当确定出的文本拆分方式为字体级别拆分时,所述根据所述文本拆分方式对所述文本数据进行拆分得到子文本包括:Optionally, the font attribute splitting includes font level splitting. When the determined text splitting method is font level splitting, the text data is split according to the text splitting method to obtain sub The text includes:
依据设置的字体拆分级别对所述文本数据进行分组,将每一组确定为一个子文本。The text data is grouped according to the set font split level, and each group is determined as a sub-text.
本申请还提供一种文本处理装置,包括:This application also provides a text processing device, including:
文本数据显示模块,用于在文本输入框中显示录入的文本数据;Text data display module, used to display the entered text data in the text input box;
拆分方式确定模块,用于确定所述文本数据对应的文本拆分方式,其中,所述文本拆分方式包括标记拆分和字体属性拆分;A split mode determining module, configured to determine a text split mode corresponding to the text data, wherein the text split mode includes mark split and font attribute split;
文本拆分模块,用于根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本;A text splitting module, configured to split the text data according to the text splitting mode to obtain at least two sub-texts;
子文本动画设置模块,用于对所述子文本设置动画展示模式。The sub-text animation setting module is used to set the animation display mode for the sub-text.
可选的,文本处理装置还包括:Optionally, the text processing device further includes:
操作接收模块,用于接收文本拆分操作,所述文本拆分操作用于触发所述文本数据的拆分;An operation receiving module, configured to receive a text splitting operation, where the text splitting operation is used to trigger the splitting of the text data;
所述文本数据显示模块还用于显示拆分选择按钮,所述拆分选择按钮绑定有对应的文本拆分方式。The text data display module is also used to display a split selection button, and the split selection button is bound with a corresponding text split mode.
本申请还提供一种文本处理设备,包括:存储器、显示屏以及一个或多个处理器;This application also provides a text processing device, including: a memory, a display screen, and one or more processors;
所述存储器,用于存储一个或多个程序;The memory is used to store one or more programs;
所述显示屏,用于显示文本输入框中录入的文本数据;The display screen is used to display text data entered in a text input box;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面所述的文本处理方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the text processing method as described in the first aspect.
本申请还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如第一方面所述的文本处理方法。The present application also provides a storage medium containing computer-executable instructions, which are used to execute the text processing method as described in the first aspect when executed by a computer processor.
上述提供的文本处理方法、装置、设备及存储介质,通过在文本输入框中显示录入的文本数据,确定所述文本数据对应的文本拆分方式,其中,所述文本拆分方式包括标记拆分和字体属性拆分,根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本,对所述子文本设置动画展示模式的技术方案,解决现有技术中当用户输入大段文本数据后,对其进行动画效果展示时,对该大段文本数据的拆分存在效率低下的问题,实现了对文本数据的多样性自动拆分,优化了文本数据的拆分机制,提高了文本数据的拆 分效率以及拆分灵活性,便于高效的进行动画展示。The text processing method, device, equipment and storage medium provided above determine the text splitting method corresponding to the text data by displaying the entered text data in the text input box, wherein the text splitting method includes tag splitting And font attribute splitting, splitting the text data according to the text splitting method to obtain at least two sub-texts, and setting the animation display mode for the sub-texts to solve the problem of the problem that the user inputs large paragraphs in the prior art After the text data, when the animation effect is displayed, the splitting of this large piece of text data has the problem of low efficiency, realizes the automatic splitting of the diversity of the text data, optimizes the splitting mechanism of the text data, and improves The splitting efficiency and splitting flexibility of text data is convenient for efficient animation display.
附图说明Description of the drawings
图1为本申请实施例一提供的一种文本处理方法的流程图;FIG. 1 is a flowchart of a text processing method provided in Embodiment 1 of this application;
图2为显示界面第一示意图;Figure 2 is a first schematic diagram of the display interface;
图3为显示界面第二示意图;Figure 3 is a second schematic diagram of the display interface;
图4为本申请实施例二提供的一种文本处理方法的流程图FIG. 4 is a flowchart of a text processing method provided in Embodiment 2 of this application
图5为显示界面第三示意图;Figure 5 is a third schematic diagram of the display interface;
图6为显示界面第四示意图;Figure 6 is a fourth schematic diagram of the display interface;
图7为本申请实施例三提供的一种文本处理方法的流程图;FIG. 7 is a flowchart of a text processing method provided in Embodiment 3 of this application;
图8为本申请实施例四提供的一种文本处理方法的流程图;FIG. 8 is a flowchart of a text processing method provided in Embodiment 4 of this application;
图9为显示界面第四示意图;Figure 9 is a fourth schematic diagram of the display interface;
图10为本申请实施例五提供的一种文本处理方法的流程图;FIG. 10 is a flowchart of a text processing method provided by Embodiment 5 of this application;
图11为显示界面第五示意图;Figure 11 is a fifth schematic diagram of the display interface;
图12为本申请实施例六提供的一种文本处理方法的流程图;FIG. 12 is a flowchart of a text processing method provided by Embodiment 6 of this application;
图13为显示界面第六示意图;Figure 13 is a sixth schematic diagram of the display interface;
图14为本申请实施例七提供的一种文本处理方法的流程图;FIG. 14 is a flowchart of a text processing method provided in Embodiment 7 of this application;
图15为显示界面第七示意图;Figure 15 is a seventh schematic diagram of the display interface;
图16为本申请实施例八提供的一种文本处理方法的流程图;FIG. 16 is a flowchart of a text processing method provided by Embodiment 8 of this application;
图17为显示界面第八示意图;Figure 17 is an eighth schematic diagram of the display interface;
图18为本申请实施例十提供的一种文本处理装置的结构示意图;FIG. 18 is a schematic structural diagram of a text processing apparatus provided by Embodiment 10 of this application;
图19为本申请实施例十一提供的一种文本处理设备的结构示意图。FIG. 19 is a schematic structural diagram of a text processing device provided in Embodiment 11 of this application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部内容。The application will be further described in detail below with reference to the drawings and embodiments. It is understandable that the specific embodiments described here are only used to explain the application, but not to limit the application. In addition, it should be noted that, for ease of description, the drawings only show part but not all of the content related to the present application.
实施例一Example one
图1为本申请实施例一提供的一种文本处理方法的流程图。实施例中提供的文本处理方法可以由文本处理设备执行,该文本处理设备可以通过软件和/或硬件的方式实现,该文本处理设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。一般而言,文本处理设备具备课件制作功能,该文本处理设备可以是电脑,手机,平板或智能交互平板等。FIG. 1 is a flowchart of a text processing method provided in Embodiment 1 of this application. The text processing method provided in the embodiments can be executed by a text processing device, which can be implemented by software and/or hardware. The text processing device can be composed of two or more physical entities, or it can be one physical entity. Entity composition. Generally speaking, text processing equipment has the function of making courseware, and the text processing equipment can be a computer, a mobile phone, a tablet, or a smart interactive tablet.
为了便于理解,实施例中以智能交互平板为文本处理设备进行示例性描述。其中,智能交互平板可以是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,其集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。一般而言,智能交互平板的显示屏可以是电容屏、电阻屏或者电磁屏。用户可以通过手指或者触控笔对智能交互平板进行触控操作。For ease of understanding, in the embodiments, a smart interactive tablet is used as a text processing device for exemplary description. Among them, the smart interactive tablet can be an integrated device that controls the content displayed on the display tablet through touch technology and realizes human-computer interaction. It integrates a projector, an electronic whiteboard, a screen, a sound, a TV, and a video conference. One or more functions such as a terminal. Generally speaking, the display screen of the smart interactive tablet can be a capacitive screen, a resistive screen or an electromagnetic screen. The user can perform touch operations on the smart interactive tablet with a finger or a stylus.
智能交互平板中安装有操作系统自带的应用软件,同时,也安装有从第三方设备或者服务器中下载的应用软件,其中,应用软件的具体类型及内容可以根据实际情况设定,通常,该应用软件具有课件制作和课件演示功能。用户可以使用该课件制作功能进行课件的制作,如在每页课件中录入文本数据、插入图片、添加超链接设置显示动画等,在课件制作完毕后可相应的进行课件展示功能,在实现展示功能的过程中,每页课件中的内容可以依据设置的动画效果进行动态展示,如图片可以采用“飞入”、“缓慢进入”、“百叶 窗”等动画展示模式。The smart interactive tablet is installed with the application software that comes with the operating system. At the same time, it also installs the application software downloaded from a third-party device or server. The specific type and content of the application software can be set according to the actual situation. The application software has the functions of courseware production and courseware demonstration. Users can use this courseware production function to make courseware, such as inputting text data, inserting pictures, adding hyperlinks, setting display animations, etc. in each page of the courseware. After the courseware is produced, the courseware display function can be performed accordingly, and the display function is realized. During the process, the content of each page of the courseware can be dynamically displayed according to the set animation effects. For example, the pictures can adopt animation display modes such as "flying in", "slowly entering", and "blinds".
参考图1,该方法具体包括:Referring to Figure 1, the method specifically includes:
S101、在文本输入框中显示录入的文本数据。S101. Display the entered text data in a text input box.
在制作课件过程中,文本输入框可以录入并显示文本数据,示例性的,该文本输入框在未录入文本数据时可以以矩形框体的形式显示在课件页面中,在一张课件页面中可以包括一个或多个文本输入框用以显示录入的文本数据。该文本输入框可以在当前课件页面被创建时自动创建,也可根据接收到的文本框创建指令进行创建。In the course of making the courseware, the text input box can enter and display text data. For example, the text input box can be displayed in the form of a rectangular box on the courseware page when no text data is entered. It can be displayed on a courseware page. It includes one or more text input boxes to display the entered text data. The text input box can be created automatically when the current courseware page is created, or it can be created according to the received text box creation instruction.
其中,录入的文本数据可以是通过文本录入软件(如五笔输入法)输入的文本数据,也可以根据“粘贴”指令复制的粘贴板中的文本数据。该文本数据显示在文本输入框中。可选的,该文本输入框在未录入文本数据时以显性方式显示,即显示出具体的实体边框,在文本数据录入后,该文本输入框可相应隐藏。Among them, the entered text data can be text data entered through text entry software (such as Wubi input method), or text data in the pasteboard copied according to the "paste" instruction. The text data is displayed in the text input box. Optionally, the text input box is displayed in an explicit manner when no text data is entered, that is, a specific entity frame is displayed. After the text data is entered, the text input box can be hidden accordingly.
其中,文本数据可以是不同国别语言的文字数据,如中文文字数据、英文文字数据、日文文字数据等,也包括数字编号、标点符号等,即该文本数据可以是通过文本录入软件录入的或者粘贴板复制粘贴的任意字符。Among them, the text data can be text data in different national languages, such as Chinese text data, English text data, Japanese text data, etc., as well as digital numbers, punctuation marks, etc., that is, the text data can be entered through text entry software or Any characters copied and pasted on the pasteboard.
S102、确定所述文本数据对应的文本拆分方式。S102. Determine a text split mode corresponding to the text data.
其中,不同的文本数据对应不同的文本拆分方式,如包括标记拆分和字体属性拆分,其中,标记拆分可以包括行标记拆分、序号标记拆分和段落标记拆分中的至少一种,字体属性拆分包括字体颜色拆分、字体粗细拆分和字体级别拆分中的至少一种。不同的文本数据指文本数据属性的不同和文本数据内容的不同,文本数据属性包括文本数据中字体的颜色、粗细、级别等,文本数据内容包括具体每个字符内容,文本数据由录入的一个或多个字符组成。Among them, different text data corresponds to different text splitting methods, such as mark splitting and font attribute splitting, where mark splitting can include at least one of line mark splitting, serial number mark splitting, and paragraph mark splitting The font attribute splitting includes at least one of font color splitting, font thickness splitting, and font level splitting. Different text data refers to the difference in the attributes of the text data and the content of the text data. The attributes of the text data include the color, thickness, and level of the font in the text data. The content of the text data includes the specific content of each character. The text data is entered by one or Multiple characters.
由于录入的文本数据的不同导致针对该文本数据存在不同的拆分方式,确定文本数据对应文本拆分方式的实现过程可以是通过对文本数据中文本内容的识别自动得到,也可以根据检测到的选择使用的文本拆分方式确定。Due to the difference of the entered text data, there are different splitting methods for the text data. The realization process of determining the text splitting method corresponding to the text data can be automatically obtained by recognizing the text content in the text data, or it can be based on the detected text data. The selected text split method is determined.
示例性的,当文本数据中包含序号字符(可以是阿拉伯序号、罗马文字序号等)时,其对应的文本拆分方式可以是序号标记拆分方式,当文本数据中包含多种字体颜色时,其对应的文本拆分方式可以是字体颜色拆分方式,当文本数据中包含有不同字体粗细的文本内容时,其对应的文本拆分方式可以是字体粗细拆分方式,当文本数据中包含有不同字体级别的文本内容时,其对应的文本拆分方式可以是字体级别拆分方式。Exemplarily, when the text data contains serial number characters (which can be Arabic serial numbers, Roman script serial numbers, etc.), the corresponding text splitting method may be the serial number mark splitting method. When the text data contains multiple font colors, The corresponding text splitting method can be the font color splitting method. When the text data contains text content with different font thicknesses, the corresponding text splitting method can be the font weight splitting method. When the text data contains For text content of different font levels, the corresponding text splitting method may be the font-level splitting method.
S103、根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本。S103. Split the text data according to the text split mode to obtain at least two sub-texts.
在确定出和文本数据对应的文本拆分方式后,依据该文本拆分方式对文本数据进行拆分以得到一个或多个子文本。现有技术中,针对文本数据的拆分方式单一,通常使用固定的拆分模式对文本数据进行拆分,如针对一大段文本数据,将该文本数据按照行进行拆分,即该文本数据的每一个行被拆分为一个子文本,如果文本数据包含多个段落,其将每个段落拆分为一个子文本,灵活性较差,同时忽略了课件制作过程中制作人员可能录入一大段没有明确格式的文本数据,此时采用现有的拆分方式无法完成文本数据的准确拆分,如果想要得到子文本则需要用户手动拆分。After the text split mode corresponding to the text data is determined, the text data is split according to the text split mode to obtain one or more sub-texts. In the prior art, the splitting method for text data is single, and the text data is usually split using a fixed split mode. For example, for a large section of text data, the text data is split by lines, that is, the text data Each line of the text is split into a sub-text. If the text data contains multiple paragraphs, it will split each paragraph into a sub-text, which is less flexible and ignores the possibility that the production staff may enter a large number during the courseware production process. The segment does not have text data in a clear format. At this time, the existing split method cannot be used to accurately split the text data. If you want to get the sub-text, you need to split it manually.
示例性的,以文本内容的识别自动得到对应的文本拆分方式为例进行说明。在文本数据拆分处理开始执行时,对文本数据的文本内容进行文字识别,文本数据内容如图2中展示的内容所示,图2为显示界面第一示意图,通过对文本数据101进行文字识别得到“序号字符”(阿拉伯序号1、2和3)和“文字字符”(aaaaaaaa、bbbbbbb和cccccccc,其中a、b和c在实际课件制作过程为具体的文字内容,如汉字、英文单词等),在识别到该文本数据101包含有序号字符时,确定该文本数据101对应文本拆分方式为序号 拆分方式,将该序号字符和其后的文字字符确定为一个子文本,拆分后的子文本如图3所示,图3为显示界面第二示意图,如图3所示,文本数据101拆分得到子文本1011、子文本1012和子文本1013。Exemplarily, the method of automatically obtaining the corresponding text splitting through the recognition of text content is taken as an example for description. When the text data splitting process is started, text recognition is performed on the text content of the text data. The content of the text data is shown in Figure 2. Figure 2 is the first schematic diagram of the display interface. The text data 101 is recognized by the text. Get "serial number characters" (Arabic serial numbers 1, 2 and 3) and "text characters" (aaaaaaaa, bbbbbbb and cccccccc, where a, b and c are specific text content in the actual courseware production process, such as Chinese characters, English words, etc.) When it is recognized that the text data 101 contains serial number characters, it is determined that the text splitting mode corresponding to the text data 101 is the serial number splitting mode, the serial number character and the following text characters are determined as a sub-text, and the split The sub-text is shown in FIG. 3, which is a second schematic diagram of the display interface. As shown in FIG. 3, the text data 101 is split to obtain the sub-text 1011, the sub-text 1012, and the sub-text 1013.
S104、对所述子文本设置动画展示模式。S104: Set an animation display mode for the sub-text.
在一个实施例中,对子文本设置动画展示模式,每个子文本对应的动画展示模式可以相同也可以不同,其中,动画展示模式为课件演示过程中进行动画展示的模式,如“飞入”、“缓慢进入”、“百叶窗”等动画展示模式。子文本对应的动画展示模式在子文本被拆分得到后自动分配生成,同时可由用户手动设置进行修改,以图3为例,其中,子文本1011设置的动画展示模式可以是“飞入”,子文本1012对应的动画展示模式可以是“百叶窗”,子文本1013对应的动画展示模式可以是“缓慢飞入”。In one embodiment, an animation display mode is set for the sub-texts, and the animation display mode corresponding to each sub-text can be the same or different. The animation display mode is the mode of animation display during the courseware presentation, such as "flying in", "Slow entry", "Blinds" and other animation display modes. The animation display mode corresponding to the sub-text is automatically distributed and generated after the sub-text is split, and can be manually set and modified by the user. Take Figure 3 as an example, where the animation display mode set by the sub-text 1011 can be "fly-in". The animation display mode corresponding to the sub-text 1012 may be "blinds", and the animation display mode corresponding to the sub-text 1013 may be "slow flying in".
其中,动画展示指课件所编辑的内容在演示过程以动画形式进行展示,如从显示界面的一侧飞入显示界面中心,或在显示界面中以特定的动画效果显示课件制作过程中编辑完毕的内容。Among them, animation display means that the content edited by the courseware is displayed in the form of animation during the demonstration process, such as flying from one side of the display interface to the center of the display interface, or displaying the edited content in the courseware making process with a specific animation effect in the display interface content.
可选的,对子文本设置动画展示模式后还包括动画展示过程,动画展示过程可以是在子文本被拆分完毕后,进行当前课件页面子文本的动画展示,也可以是在课件演示过程中(如点击“开始授课”按钮后)在展示课件页面的每一页时,对该课件页面内的子文本依次进行动画展示。其中,依次对每个子文本进行动画展示指在一个子文本动画展示完毕后间隔预设时间或者检测到课件演示指令(如点击显示界面中的任一位置触发的指令)后进行下一子文本的动画展示,子文本的动画展示顺序可以是文本数据在进行拆分得到子文本的顺序,如图3所示,文本数据101拆分得到子文本1011、子文本1012和子文本1013,动画展示过程中,依次展示子文本1011、子文本1012和子文本1013。Optionally, the animation display process is also included after setting the animation display mode for the sub-text. The animation display process can be an animated display of the sub-text of the current courseware page after the sub-text is split, or it can be during the courseware demonstration. (For example, after clicking the "Start Teaching" button) when displaying each page of the courseware page, the sub-texts in the courseware page are displayed in sequence. Among them, the animation display of each sub-text in turn refers to the next sub-text after a preset time interval after the animation of one sub-text is displayed or a courseware demonstration instruction (such as an instruction triggered by clicking any position in the display interface) is detected Animation display, the animation display order of sub-texts can be the order in which text data is split to obtain sub-texts. As shown in Figure 3, text data 101 is split to obtain sub-text 1011, sub-text 1012, and sub-text 1013. During animation display , To display sub-text 1011, sub-text 1012, and sub-text 1013 in sequence.
需要说明的是,依次对每个子文本进行动画展示并不是说每个子文本的动画设置一定有展示的先后,而是根据动画展示模式中设定的时间参数,进行对应的动画展示,具体的动画展示的先后实际上是基于多个子文本的时间参数的相对先后关系。例如三个子文本的动画展示模式中设定的播放时间相同,基于该时序规则,三个子文本实际上是同时展示;又例如图3中子文本1011设定的时间参数最早,子文本1012和子文本1013设定在子文本1011展示之后1秒进行动画展示,那么子文本1011动画展示后1秒,子文本1012和子文本1013同时进行动画展示。It should be noted that the animation display of each sub-text in turn does not mean that the animation settings of each sub-text must be displayed in sequence, but the corresponding animation display is performed according to the time parameters set in the animation display mode. The specific animation The display sequence is actually based on the relative sequence of time parameters of multiple sub-texts. For example, the playback time set in the animation display mode of the three sub-texts is the same. Based on this timing rule, the three sub-texts are actually displayed at the same time; another example is the earliest time parameter set in the sub-text 1011 in Figure 3, and the sub-text 1012 and the sub-text 1013 is set to perform animation display 1 second after the subtext 1011 is displayed, then 1 second after the subtext 1011 is displayed, the subtext 1012 and the subtext 1013 are displayed simultaneously.
在具体的实施过程中,子文本可以只作为查看状态下的显示方式,即在拆分得到多个子文本之后进行拆分效果显示,以及播放课件时以子文本的方式呈现。当需要对文本数据进行编辑时,通过预设的编辑触发操作(例如鼠标左键双击、鼠标右键单击弹出菜单再左键单击确认、在智能交互平板通过触控操作触发等),子文本合并为最初的文本数据并在文本输入框中作为一个整体显示,使用这种方式,可以在有多个子文本需要调整时通过一次操作进入,避免在多个子文本之间进行编辑状态的切换。在以上拆分后再进入编辑状态的操作基础上,可以进一步在确认对文本数据的编辑结束后,恢复到之前的子文本拆分方式;当然,也可以根据新确认的拆分方式进行拆分。In the specific implementation process, the sub-text can only be used as the display mode in the viewing state, that is, the split effect is displayed after multiple sub-texts are split, and the sub-text is presented when the courseware is played. When the text data needs to be edited, the preset editing trigger operation (for example, double-click the left mouse button, right-click the pop-up menu and then left-click to confirm, trigger by touch operation on the smart interactive tablet, etc.), sub-text Merge into the original text data and display it as a whole in the text input box. In this way, you can enter in one operation when there are multiple sub-texts that need to be adjusted, avoiding switching between multiple sub-texts. On the basis of the operation of entering the editing state after the above splitting, it can be further restored to the previous sub-text splitting method after confirming the editing of the text data; of course, it can also be split according to the newly confirmed splitting method .
本实施例提供的技术方案中,确定录入的文本数据的拆分方式,再依据该拆分方式对文本数据进行拆分并设置动画展示模式,解决了现有技术中文本数据拆分方式单一的问题,提高了文本数据拆分的灵活性和文本处理效率。In the technical solution provided in this embodiment, the split method of the input text data is determined, and then the text data is split according to the split method and the animation display mode is set, which solves the single method of splitting text data in the prior art. Problem, improve the flexibility of text data splitting and text processing efficiency.
实施例二Example two
图4为本申请实施例二提供的一种文本处理方法的流程图,给出了一种确定文本拆分方式的具体实例。参考图4,实施例提供的文本处理方法具体包括:FIG. 4 is a flowchart of a text processing method provided in the second embodiment of the application, and shows a specific example of determining a text splitting method. Referring to FIG. 4, the text processing method provided by the embodiment specifically includes:
S201、在文本输入框中显示录入的文本数据。S201. Display the entered text data in a text input box.
S202、接收文本拆分操作,所述文本拆分操作用于触发文本数据的拆分。S202. Receive a text splitting operation, where the text splitting operation is used to trigger the splitting of text data.
其中,文本拆分操可以是显示界面中显示的预设按钮被点击时检测到的操作事件。如图5所示,图5 为显示界面第三示意图,在文本数据101的右下方显示一预设按钮201,当检测到该预设按钮201被点击时,即接收到文本拆分操作后触发文本数据的拆分,对文本数据101进行拆分以得到子文本。其中,该预设按钮在显示界面中的显示位置以及具体图形显示方式不做限定,可以以任意方式显示在显示界面的任意位置,如以悬浮按钮的形式显示在文本数据101四周的任一位置。The text split operation may be an operation event detected when a preset button displayed in the display interface is clicked. As shown in Figure 5, Figure 5 is a third schematic diagram of the display interface. A preset button 201 is displayed at the bottom right of the text data 101. When the preset button 201 is detected to be clicked, it is triggered after the text split operation is received Splitting the text data, splitting the text data 101 to obtain sub-texts. Among them, the display position of the preset button in the display interface and the specific graphic display mode are not limited, and can be displayed in any position on the display interface in any manner, such as displayed in any position around the text data 101 in the form of a floating button .
S203、显示拆分选择按钮,所述拆分选择按钮绑定有对应的文本拆分方式。S203. Display a split selection button, and the split selection button is bound with a corresponding text split mode.
其中,当触发文本数据的拆分后,在显示界面相应显示一组拆分选择按钮,其中每个拆分选择按钮绑定有对应的文本拆分方式,如图6所示,图6为显示界面第四示意图,当接收到文本拆分操作后,显示一组拆分选择按钮,示例性的,该组拆分选择按钮包括4个按钮(按钮2021、按钮2022、按钮2023、按钮2024),其中每个按钮对应一种拆分方式。可选的,该拆分选择按钮还可以以表单列表的形式进行显示,其具体显示方式以及显示形式不做限定。Among them, when the splitting of text data is triggered, a set of split selection buttons is displayed on the display interface, and each split selection button is bound with a corresponding text splitting method, as shown in Figure 6, which shows The fourth schematic diagram of the interface, when the text split operation is received, a set of split selection buttons is displayed. Illustratively, the set of split selection buttons includes 4 buttons (button 2021, button 2022, button 2023, button 2024), Each button corresponds to a split method. Optionally, the split selection button can also be displayed in the form of a form list, and its specific display mode and display form are not limited.
S204、接收拆分选择按钮的点击操作,将所述点击操作对应的文本拆分方式确定为所述文本数据的文本拆分方式。S204: Receive a click operation of a split selection button, and determine a text split mode corresponding to the click operation as the text split mode of the text data.
其中,每个拆分选择按钮对应绑定一种文本拆分方式,示例性的,以文本拆分方式包括序号标记拆分、字体颜色拆分、字体粗细拆分和字体级别拆分四种为例,按钮2021和拆分方式中的序号标记拆分绑定,按钮2022和拆分方式中的字体颜色拆分绑定,按钮2023和拆分方式中的字体粗细拆分,按钮2024和拆分方式中的字体级别拆分绑定。如检测到按钮2023被点击,则确定当前课件页面文本数据的拆分方式为字体粗细拆分。可选的,在每个按钮中可显示相应的注释文字,该注释文字的内容为该按钮对应绑定的文本拆分方式。Among them, each split selection button is bound to a text splitting method. Illustratively, the text splitting method includes serial number mark splitting, font color splitting, font thickness splitting and font level splitting. For example, the button 2021 and the serial number mark in the split mode are split and bound, the button 2022 and the font color in the split mode are split and bound, the button 2023 and the font weight in the split mode are split, and the button 2024 and split The font level in the mode splits the binding. If it is detected that the button 2023 is clicked, it is determined that the splitting method of the text data of the current courseware page is font weight splitting. Optionally, the corresponding annotation text can be displayed in each button, and the content of the annotation text is the text split mode bound corresponding to the button.
S205、根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本。S205. Split the text data according to the text split mode to obtain at least two sub-texts.
S206、对所述子文本设置动画展示模式。S206: Set an animation display mode for the sub-text.
本实施例提供的技术方案中,在接收到文本拆分操作后,通过显示界面显示拆分选择按钮,用户可根据自己实际需求进行拆分选择按钮的点击,其中,不同的拆分选择按钮对应一种文本拆分方式,由此提高了文本数据拆分的灵活性,同时无需用户手动进行拆分,提高了文本拆分效率。In the technical solution provided in this embodiment, after receiving the text splitting operation, the split selection button is displayed through the display interface, and the user can click the split selection button according to their actual needs. Among them, different split selection buttons correspond to A text splitting method, which improves the flexibility of text data splitting, and at the same time does not require the user to manually split, which improves the efficiency of text splitting.
实施例三Example three
图7为本申请实施例三提供的一种文本处理方法的流程图,给出了另一种确定文本拆分方式的具体实例。具体的,参考图7,实施例提供的文本处理方法具体包括:FIG. 7 is a flowchart of a text processing method provided in Embodiment 3 of the application, and shows another specific example of determining a text splitting method. Specifically, referring to FIG. 7, the text processing method provided by the embodiment specifically includes:
S301、在文本输入框中显示录入的文本数据。S301. Display the entered text data in the text input box.
S302、对文本输入框中录入的文本数据进行检测,当检测到所述文本输入框中的文本数据录入完毕时,对所述文本数据进行文本识别,依据识别结果确定所述文本数据对应的文本拆分方式。S302. Detect the text data entered in the text input box, and when it is detected that the text data in the text input box has been entered, perform text recognition on the text data, and determine the text corresponding to the text data according to the recognition result Split method.
其中,文本输入框可录入并显示文本数据,在检测到文本数据录入完毕时,相应的确定文本数据对应的文本拆分方式。Among them, the text input box can input and display text data, and when it is detected that the input of the text data is completed, the text split mode corresponding to the text data is determined accordingly.
其中,文本数据录入完毕可以指当前文本框中录入的文本数据完成,还可以是当前课件页面或者课件的全部页面中的文本数据录入完成。示例性的,检测文本输入框中文本数据是否录入完毕的方式可以是判断是否插入新的文本框或者图片、超链接以及其它对象等,如果是,则判定当前文本框中的文本数据录入完毕,具体的,操作显示界面中显示有文本框插入按钮、图片插入按钮、超链接插入按钮以及其它用于实现对象插入的按钮等,当检测到上述按钮被点击时,可相应判定文本数据录入完毕。还可以检测到预设的组合按键(如预设为alt+A)被按下时,确定文本数据录入完毕,具体的,当检测到预设的组合按键被按下时,触发和该预设的组合按键绑定的指令,如alt+A的组合按键绑定指令00x16,在alt+A被按下时,生成指令00x16,在判断出00x16指令生成时,确定文本数据录入完毕。还可以是检测到课件页面切换(如 创建新的课件页面)时,确定文本框中的文本数据录入完毕,具体的,操作显示界面中显示有多个课件页面的缩略图,当检测到其中一幅缩略图被点击时,可相应判定文本数据录入完毕。Among them, the completion of text data entry may refer to the completion of the text data entered in the current text box, or the completion of the text data entry in the current courseware page or all pages of the courseware. Exemplarily, the way to detect whether the text data in the text input box has been entered may be judging whether to insert a new text box or picture, hyperlink, and other objects. If so, it is determined that the text data in the current text box has been entered. Specifically, the operation display interface displays a text box insert button, a picture insert button, a hyperlink insert button, and other buttons for inserting objects. When it is detected that the buttons are clicked, it can be determined that the text data entry is completed. It can also detect that the preset combination key (for example, the preset is alt+A) is pressed, and the text data entry is determined to be completed. Specifically, when the preset combination key is detected to be pressed, it triggers and the preset For example, the combination key binding command 00x16 of alt+A, when alt+A is pressed, the command 00x16 is generated, and when it is judged that the 00x16 command is generated, it is determined that the text data input is completed. It can also be that when a courseware page switch is detected (such as creating a new courseware page), it is determined that the text data in the text box is entered. Specifically, there are multiple courseware page thumbnails displayed in the operation display interface. When one of them is detected When a thumbnail is clicked, it can be judged that the text data entry is completed accordingly.
在检测到文本数据录入完毕时,对所述文本数据进行文本识别,依据识别结果确定所述文本数据对应的文本拆分方式。示例性的,当识别出文本数据中包含序号字符(可以是阿拉伯序号、罗马文字序号等)时,可确定对应的文本拆分方式可以是序号标记拆分方式,当识别出文本数据中包含多种字体颜色时,可确定对应的文本拆分方式可以是字体颜色拆分方式,当识别出文本数据中包含有不同字体粗细的文本内容时,可确定对应的文本拆分方式可以是字体粗细拆分方式,当识别出文本数据中包含有不同字体级别的文本内容时,可确定对应的文本拆分方式可以是字体级别拆分方式。When it is detected that the input of the text data is completed, text recognition is performed on the text data, and the text split mode corresponding to the text data is determined according to the recognition result. Exemplarily, when it is recognized that the text data contains serial number characters (which can be Arabic serial numbers, Roman script serial numbers, etc.), it can be determined that the corresponding text splitting method may be the serial number mark splitting method. When it is recognized that the text data contains multiple When selecting different font colors, it can be determined that the corresponding text splitting method can be font color splitting. When it is recognized that the text data contains text content with different font thicknesses, the corresponding text splitting method can be determined to be font thickness splitting. When it is recognized that the text data contains text content of different font levels, it can be determined that the corresponding text splitting method may be the font-level splitting method.
可选的,当检测到文本数据被重新编辑时,在编辑完成后对该文本数据重新确定对应的文本拆分方式并进行文本数据的拆分。Optionally, when it is detected that the text data has been re-edited, after the editing is completed, the text data is re-determined corresponding to the text split mode and the text data is split.
S303、根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本。S303. Split the text data according to the text split mode to obtain at least two sub-texts.
S304、对所述子文本设置动画展示模式。S304: Set an animation display mode for the sub-text.
本实施例提供的技术方案中,在文本数据录入完毕后可依据不同的文本数据内容进行多样化的自动拆分,避免了用户手动拆分造成的拆分效率低下的问题,通过对文本数据的识别以自动确定对应的文本次拆分方式,显著提高了文本数据拆分的灵活性。In the technical solution provided in this embodiment, after the text data is entered, diversified automatic splitting can be performed according to different text data content, which avoids the problem of low splitting efficiency caused by manual splitting by the user. Recognition automatically determines the corresponding text sub-splitting method, which significantly improves the flexibility of text data splitting.
实施例四Example four
图8为本申请实施例四提供的一种文本处理方法的流程图,给出了另一种确定文本拆分方式的具体实例。具体的,参考图8,实施例提供的文本处理方法具体包括:FIG. 8 is a flowchart of a text processing method provided in Embodiment 4 of this application, and gives another specific example of determining a text splitting method. Specifically, referring to FIG. 8, the text processing method provided by the embodiment specifically includes:
S401、在文本输入框中显示录入的文本数据。S401. Display the entered text data in a text input box.
S402、对文本输入框中录入的文本数据进行检测。S402: Detect the text data entered in the text input box.
S403、当检测到所述文本输入框中的文本数据录入完毕时,对所述文本数据进行文本识别,如果依据识别结果得到至少两种文本拆分方式,则依据预设的拆分优先级对所述至少两种拆分方式进行排序,依据排序结果确定所述文本数据对应的文本拆分方式。S403. When it is detected that the input of the text data in the text input box is completed, perform text recognition on the text data, and if at least two text splitting methods are obtained according to the recognition result, perform a text recognition based on a preset splitting priority. The at least two splitting modes are sorted, and the text splitting mode corresponding to the text data is determined according to the sorting result.
其中,在文本识别过程中如果确定出该文本数据同时对应多种文本拆分方式,如识别出文本数据包含序号字符和多种字体颜色时,确定出的文本拆分方式为序号标记拆分和字体颜色拆分两种,此时,依据预设的拆分优先级对序号标记拆分和字体颜色拆分两种拆分方式排序,依据排序结果确定所述文本数据最终对应的文本拆分方式,可选的,还可以直接根据预设的拆分优先级确定优先级最高的拆分方式为当前文本数据对应的文本拆分方式。其中,不同的文本拆分方式对应不同的拆分优先级,示例性的,以文本拆分方式为序号标记拆分、字体颜色拆分、字体粗细拆分和字体级别拆分为例,默认设置的拆分优先级由高至低依次可以是字体级别拆分、字体颜色拆分、序号标记拆分和字体粗细拆分。其中,该预设的拆分优先级可以根据用户的设定而调整。Among them, in the text recognition process, if it is determined that the text data corresponds to multiple text splitting methods at the same time, for example, when it is recognized that the text data contains serial number characters and multiple font colors, the determined text splitting method is serial number mark splitting and There are two types of font color splits. At this time, the serial number mark splitting and font color splitting are sorted according to the preset splitting priority, and the final corresponding text splitting method of the text data is determined according to the sorting result Optionally, the split mode with the highest priority can be directly determined according to the preset split priority as the text split mode corresponding to the current text data. Among them, different text splitting methods correspond to different splitting priorities. Illustratively, the text splitting method is serial number mark splitting, font color splitting, font weight splitting and font level splitting as examples. The default settings are The priority of splitting can be font level splitting, font color splitting, serial number mark splitting, and font weight splitting in descending order. Among them, the preset split priority can be adjusted according to the user's setting.
以上述确定出的文本拆分方式为序号标记拆分和字体颜色拆分两种为例,根据预设的拆分优先级(拆分优先级由高至低依次可以是字体级别拆分、字体颜色拆分、序号标记拆分和字体粗细拆分)可以确定出字体颜色拆分的优先级高于序号标记拆分的优先级,则确定该文本数据的文本拆分方式为字体颜色拆分。Taking the text splitting method determined above as serial number mark splitting and font color splitting as an example, according to the preset splitting priority (the splitting priority from high to low can be font level split, font Color splitting, serial number mark splitting, and font weight splitting) can determine that the priority of font color splitting is higher than that of serial number mark splitting, then the text splitting method of the text data is determined to be font color splitting.
可选的,可以对文本数据采取混合拆分的方式进行文本数据的拆分。示例性的,如图9所示,图9为显示界面第四示意图,文本数据401被拆分为子文本4011、子文本4012、子文本4013、子文本4014和子文本4015,其中子文本4014对应的字体颜色为红色,子文本4015对应的字体颜色为蓝色,子文本4011、子文本4012和子文本4013对应的字体颜色为黑色,根据字体颜色拆分方式对文本数据402进行拆分可以得到三个子文本,其中再对第一个子文本进行序号标记拆分得到拆分后的三个子文本4011、子文本4012 和子文本4013。Optionally, the text data can be split in a mixed split manner. Exemplarily, as shown in Figure 9, Figure 9 is a fourth schematic diagram of the display interface. The text data 401 is split into sub-text 4011, sub-text 4012, sub-text 4013, sub-text 4014, and sub-text 4015, where sub-text 4014 corresponds to The font color of subtext 4015 is red, the font color corresponding to subtext 4015 is blue, the font color corresponding to subtext 4011, subtext 4012, and subtext 4013 are black. Splitting text data 402 according to the font color splitting method can get three Sub-texts, in which the first sub-text is split by the serial number mark to obtain three sub-texts 4011, 4012 and 4013 after the split.
S404、根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本,对所述子文本设置动画展示模式。S404: Split the text data according to the text split mode to obtain at least two sub-texts, and set an animation display mode for the sub-texts.
本实施例提供的技术方案中,在对文本数据进行自动拆分过程中,可根据预设的拆分优先级得到优先级最高的文本拆分方式,示例性的,不同的文本拆分方式在系统内部对应一相应的编号,以文本拆分方式包括序号标记拆分、字体颜色拆分、字体粗细拆分和字体级别拆分为例,序号标记拆分对应编号01、字体颜色拆分对应编号02、字体粗细拆分对应编号03、字体级别拆分对应编号04,预设的拆分优先级由高至低可以是04、02、01和03。示例性的,如确定出的文本拆分方式为序号标记拆分(01)和字体颜色拆分(02)两种,根据优先级排序确定出当前的字体拆分方式为字体颜色拆分(02)。由此,实现了对文本数据进行拆分,避免了拆分结果混乱的情况,提升了文本拆分的智能化程度,可以有效的对文本数据进行拆分得到满足用户需求的子文本。In the technical solution provided in this embodiment, in the process of automatically splitting text data, the text splitting method with the highest priority can be obtained according to the preset splitting priority. Illustratively, the different text splitting methods are The system corresponds to a corresponding number. Take text splitting methods including serial number mark splitting, font color splitting, font thickness splitting and font level splitting as examples, serial number mark splitting corresponds to number 01, font color splitting corresponds to numbering 02. Font weight splitting corresponds to number 03, font level splitting corresponds to number 04, the preset splitting priority can be 04, 02, 01 and 03 from high to low. Exemplarily, for example, the determined text splitting method is serial number mark splitting (01) and font color splitting (02), and the current font splitting method is determined to be font color splitting (02) according to the priority ranking. ). In this way, the text data is split, the result of the split is not confused, the intelligence of the text split is improved, and the text data can be split effectively to obtain sub-texts that meet user needs.
可选的,对所述文本数据进行文本识别,依据识别结果确定所述文本数据对应的文本拆分方式可以包括:对所述文本数据进行文本识别,如果依据识别结果得到至少两种文本拆分方式,则显示拆分选择选项,所述拆分选择选项绑定有对应的文本拆分方式;接收拆分选择选项的选择操作,将所述拆分选择选项绑定的文本拆分方式确定为所述文本数据的文本拆分方式。示例性的,如果识别出文本数据中包含有阿拉伯序号、字体颜色存在两种或两种以上,则确定其包含有序号标记拆分和字体颜色拆分两种文本拆分方式可用,此时弹出选项框,在该选项框中可包含两个按钮选项,分别对应序号标记拆分和字体颜色拆分,如使用下述函数弹出选项框:Optionally, performing text recognition on the text data, and determining the text split mode corresponding to the text data according to the recognition result may include: performing text recognition on the text data, if at least two types of text splitting are obtained according to the recognition result Mode, the split selection option is displayed, and the split selection option is bound with a corresponding text split mode; the selection operation of the split selection option is received, and the text split mode bound to the split selection option is determined as The text split mode of the text data. Exemplarily, if it is recognized that the text data contains Arabic serial numbers and two or more font colors, it is determined that it contains serial number mark splitting and font color splitting. Two text splitting methods are available, and the pop-up Option box, the option box can contain two button options, corresponding to the serial number mark split and font color split, for example, use the following function to pop up the option box:
window.open('page','newwindow','height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=n o,status=no')window.open('page','newwindow','height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=n o, status=no')
两个按钮可分别绑定对应的文本拆分事件,如:The two buttons can be respectively bound to the corresponding text split event, such as:
<button type="submit"id="btn1">btn</button><button type="submit"id="btn1">btn</button>
<button type="submit"id="btn2">btn</button><button type="submit"id="btn2">btn</button>
当按钮被点击时相应的文本拆分事件被触发,即依据该文本拆分方式进行文本数据的拆分,由此,完善了文本处理方法,可以更加准确的根据用户需求实现一键拆分。When the button is clicked, the corresponding text splitting event is triggered, that is, the text data is split according to the text splitting method, thus, the text processing method is improved, and one-click splitting can be achieved more accurately according to user needs.
实施例五Example five
图10为本申请实施例五提供的一种文本处理方法的流程图,给出了一种实现文本拆分过程的实例。具体的,参考图10,实施例提供的文本处理方法具体包括:FIG. 10 is a flowchart of a text processing method provided in Embodiment 5 of the application, and shows an example of implementing a text splitting process. Specifically, referring to FIG. 10, the text processing method provided by the embodiment specifically includes:
S501、在文本输入框中显示录入的文本数据。S501: Display the entered text data in a text input box.
S502、确定所述文本数据对应的文本拆分方式。S502: Determine a text split mode corresponding to the text data.
S503、当确定出的文本拆分方式为标记拆分时,识别所述文本数据中的标记信息,依据所述标记信息在所述文本数据中的位置对文本数据进行拆分得到至少两个子文本。S503. When the determined text splitting method is tag splitting, identify tag information in the text data, and split the text data according to the position of the tag information in the text data to obtain at least two sub-texts .
其中,标记拆分为文本拆分方式中的一种,根据文本数据中的不同标记信息的种类可示例性的分为行标记拆分、序号标记拆分和段落标记拆分,其中,行标记拆分以识别到的行标记信息为拆分依据,序号标记拆分以识别到的序号标记信息为拆分依据,段落标记拆分以识别到的段落标记信息为拆分依据。Among them, mark splitting is one of the text splitting methods. According to the types of different mark information in the text data, it can be exemplarily divided into line mark splitting, serial number mark splitting and paragraph mark splitting. Among them, line mark The splitting is based on the identified line mark information, the serial number mark splitting is based on the identified serial number mark information, and the paragraph mark splitting is based on the identified paragraph mark information.
具体的,当确定文本拆分方式为标记拆分时,识别文本数据中的标记信息,依据标记信息在文本数据中的位置对文本数据进行拆分得到子文本。以行标记拆分方式为例,图11为显示界面第五示意图,行标记拆分方式对应的拆分依据为行标记在文本数据中的位置,如图11所示,文本数据501依据行标记信息(显示界面中隐去了换行符标记,计算机程序内部会进行记录)被拆分为三个子文本,分别为子文本5011、 子文本5012和子文本5013。具体的拆分方法可以是在检测到第一个行标记信息时,将该行标记信息之前的文本数据确定为一个子文本,在检测到第二个行标记信息时,将第一个行标记信息和第二个行标记信息之间的文本数据确定为一个子文本,以此类推,针对最后一个行标记信息,将最后一个行标记信息之后的文本数据确定为一个子文本。Specifically, when it is determined that the text splitting mode is mark splitting, the mark information in the text data is recognized, and the text data is split according to the position of the mark information in the text data to obtain the sub-text. Take the line mark splitting method as an example. Figure 11 is the fifth schematic diagram of the display interface. The split basis corresponding to the line mark splitting method is the position of the line mark in the text data. As shown in Figure 11, the text data 501 is based on the line mark The information (the line break mark is hidden in the display interface and recorded inside the computer program) is divided into three sub-texts, namely sub-text 5011, sub-text 5012, and sub-text 5013. The specific split method may be to determine the text data before the line marking information as a sub-text when the first line marking information is detected, and marking the first line when the second line marking information is detected The text data between the information and the second line marking information is determined as a subtext, and so on, for the last line marking information, the text data after the last line marking information is determined as a subtext.
序号标记拆分和段落标记拆分的具体拆分方式可参考行标记拆分的具体实现过程,此处不再赘述。The specific splitting methods of serial number mark splitting and paragraph mark splitting can refer to the specific implementation process of line mark splitting, which will not be repeated here.
S504、对所述子文本设置动画展示模式。S504: Set an animation display mode for the sub-text.
本实施例提供的技术方案中,可根据文本数据中的标记信息进行文本拆分,将标记信息之间以及首个标记信息之前和最后一个标记信息之后的文本数据确定为子文本,无需用户手动拆分,提高了文本拆分效率。In the technical solution provided by this embodiment, the text can be split according to the mark information in the text data, and the text data between the mark information and the text data before the first mark information and after the last mark information are determined as sub-texts, without the need for the user to manually Split, improve the efficiency of text splitting.
实施例六Example Six
图12为本申请实施例五提供的一种文本处理方法的流程图,给出了一种实现文本拆分过程的实例。参考图12,实施例提供的文本处理方法具体包括:FIG. 12 is a flowchart of a text processing method provided by Embodiment 5 of the application, and shows an example of implementing a text splitting process. Referring to FIG. 12, the text processing method provided by the embodiment specifically includes:
S601、在文本输入框中显示录入的文本数据。S601. Display the entered text data in the text input box.
S602、确定所述文本数据对应的文本拆分方式。S602: Determine a text split mode corresponding to the text data.
S603、当确定出的文本拆分方式为字体颜色拆分时,将所述文本数据中字体颜色连续一致的文本内容确定为子文本。S603: When the determined text splitting mode is font color splitting, determine the text content with continuous and consistent font colors in the text data as sub-texts.
其中,字体颜色拆分方式以字体颜色为拆分依据,示例性的,图13为显示界面第六示意图,如图13所示,其中字母x、字母g和字母f代表不同的文本内容,字母x对应的文本内容的字体颜色为红色,字母g对应的文本内容的字体颜色为蓝色,字母f对应的文本内容的字体颜色为黄色,依据字体颜色对文本数据601进行拆分得到子文本6011、子文本6012和子文本6013。Among them, the font color splitting method is based on the font color. Illustratively, Figure 13 is the sixth schematic diagram of the display interface, as shown in Figure 13, where the letter x, the letter g, and the letter f represent different text content, and the letter The font color of the text content corresponding to x is red, the font color of the text content corresponding to the letter g is blue, and the font color of the text content corresponding to the letter f is yellow. The text data 601 is split according to the font color to obtain the subtext 6011 , Subtext 6012, and subtext 6013.
文本数据录入过程中计算机内部程序会记录每个字符(可以是单个汉字、英文字母、数字等)的属性(如字体颜色、字体大小、字体类型等),通过获取文本数据中每个文本字符的字体颜色字段值,可以确定该文本字符的显示颜色,本实施例中,将文本数据中字体颜色连续一致的文本内容确定为子文本,示例性的,字体颜色为红色的字段值可以是00xx001,字体颜色为蓝色的字段值可以是00xx002,字体颜色为黄色的字段值可以是00xx003,文本数据601中,字母x对应的字体颜色字段值为00xx001,字母g对应的字体颜色字段值为00xx002,字母f对应的字体颜色字段值为00xx003,在文本拆分的具体操作中,将字母x、字母g和字母f各自对应的文本内容确定为一个子文本。In the process of text data entry, the computer's internal program will record the attributes (such as font color, font size, font type, etc.) of each character (can be a single Chinese character, English letter, number, etc.), by obtaining the value of each text character in the text data The font color field value can determine the display color of the text character. In this embodiment, the text content in the text data with a consistent font color is determined as a sub-text. Exemplarily, the field value with a red font color may be 00xx001. The field value for the blue font color can be 00xx002, and the field value for the yellow font color can be 00xx003. In the text data 601, the font color field value corresponding to the letter x is 00xx001, and the font color field value corresponding to the letter g is 00xx002. The font color field value corresponding to the letter f is 00xx003. In the specific operation of text splitting, the text content corresponding to the letter x, the letter g, and the letter f is determined as a sub-text.
S604、对所述子文本设置动画展示模式。S604: Set an animation display mode for the sub-text.
本实施例提供的技术方案中,可根据文本数据的字体颜色对其进行自动拆分,在课件制作过程中,用户仅需关注文本数据的具体颜色格式,无需关注文本数据的拆分,在文本数据录入完毕后可自动实现文本拆分,提高了文本拆分效率。In the technical solution provided by this embodiment, the text data can be automatically split according to the font color of the text data. During the courseware production process, the user only needs to pay attention to the specific color format of the text data, and does not need to pay attention to the splitting of the text data. After data entry is completed, text splitting can be realized automatically, which improves the efficiency of text splitting.
实施例七Example Seven
图14为本申请实施例五提供的一种文本处理方法的流程图,给出了一种实现文本拆分过程的实例。参考图14,实施例提供的文本处理方法具体包括:FIG. 14 is a flowchart of a text processing method provided in Embodiment 5 of this application, and shows an example of implementing a text splitting process. Referring to FIG. 14, the text processing method provided by the embodiment specifically includes:
S701、在文本输入框中显示录入的文本数据。S701. Display the entered text data in a text input box.
S702、确定所述文本数据对应的文本拆分方式。S702: Determine a text split mode corresponding to the text data.
S703、当确定出的文本拆分方式为字体粗细拆分时,依据设置的字体粗细组合方式对所述文本数据进行分组,将每一组确定为一个子文本。S703: When the determined text splitting mode is font thickness splitting, group the text data according to the set font thickness combination mode, and determine each group as a subtext.
图15为显示界面第七示意图,如图15所示,示例性的给出了对文本数据701进行拆分,依据字体粗 细拆分方式得到子文本7011、子文本7012和子文本7013的示意图,其中,粗体字“精品课件库”、“课堂活动-判断对错”、“古诗词定义”和各自下方的细体字被确定为了一个子文本。Figure 15 is a seventh schematic diagram of the display interface. As shown in Figure 15, the text data 701 is exemplarily shown to obtain sub-text 7011, sub-text 7012, and sub-text 7013 according to the font thickness splitting method. , The bold words "excellent courseware library", "class activity-judgment of right or wrong", "definition of ancient poems" and the thin words below each are determined to be a sub-text.
通过获取文本数据中每个文本字符的字体粗细属性值,依据该粗细属性值对文本字符进行分组,如图15所示,将粗体字符和下方相邻的细体字符确定为一组,文本数据701可分为三组子文本。其中,程序内容会相应记录每个文本字符的字体粗细属性,示例性的粗体字符对应的属性值为0xx00001,细体字符对应的属性值为0xx00002,将粗体字符(检测到的第一组属性值为0xx00001的字符)和相邻的细体字符(检测到的第一组属性值为0xx00002的字符)确定为一个子文本,同理得到后续划分出的两个子文本。By obtaining the font thickness attribute value of each text character in the text data, the text characters are grouped according to the thickness attribute value. As shown in Figure 15, the bold characters and the adjacent thin characters below are determined as a group. The data 701 can be divided into three groups of sub-texts. Among them, the program content will record the font thickness attribute of each text character accordingly. The attribute value corresponding to the exemplary bold character is 0xx00001, the attribute value corresponding to the thin character is 0xx00002, and the bold character (the first group detected) The character with the attribute value of 0xx00001) and the adjacent thin characters (the first group of detected characters with the attribute value of 0xx00002) are determined as one sub-text, and the two sub-texts subsequently divided are obtained in the same way.
S704、对所述子文本设置动画展示模式。S704: Set an animation display mode for the sub-text.
本实施例提供的技术方案中,可根据文本数据的字体粗细进行文本拆分,在用户制作完毕课件后,自动实现了文本拆分,拆分结果很好的满足展示需求。In the technical solution provided in this embodiment, text splitting can be performed according to the font thickness of the text data. After the user completes the courseware, the text splitting is automatically realized, and the splitting result satisfies the display requirements well.
实施例八Example eight
图16为本申请实施例五提供的一种文本处理方法的流程图,给出了一种实现文本拆分过程的实例。参考图16,实施例提供的文本处理方法具体包括:FIG. 16 is a flowchart of a text processing method provided in Embodiment 5 of the application, and shows an example of implementing a text splitting process. Referring to FIG. 16, the text processing method provided by the embodiment specifically includes:
S801、在文本输入框中显示录入的文本数据。S801. Display the entered text data in the text input box.
S802、确定所述文本数据对应的文本拆分方式。S802. Determine a text split mode corresponding to the text data.
S803、当确定出的文本拆分方式为字体级别拆分时,依据设置的字体拆分级别对所述文本数据进行分组,将每一组确定为一个子文本。S803: When the determined text split mode is font level splitting, group the text data according to the set font split level, and determine each group as a sub-text.
图17为显示界面第七示意图,如图17所示,示例性的给出了对文本数据801进行拆分,依据字体级别拆分方式得到子文本8011和子文本8012的示意图。其中,文本“新增”、“优化”对应为一级标题,文本“精品课件库”、“课堂活动-判断对错”、“古诗词自定义”对应为二级标题,其余文本内容对应无标题级别。FIG. 17 is a seventh schematic diagram of the display interface. As shown in FIG. 17, a schematic diagram of splitting the text data 801 to obtain the sub-text 8011 and the sub-text 8012 according to the font level splitting method is exemplarily shown. Among them, the texts "new" and "optimization" correspond to the first-level headings, the texts "excellent courseware library", "classroom activities-judging right or wrong", and "customized ancient poems" correspond to the second-level headings, and the remaining text content corresponds to none Title level.
通过获取文本数据中每个文本字符的标题属性值,依据该标题属性值和设置的字体拆分级别对文本字符进行分组。如图18所示,本实施例中该设置的字体拆分级别为一级级别,将一级标题和对应的内容(二级标题内容以及无标题级别的文本内容)确定为一个子文本,得到子文本8011和子文本8012。可选的,该设置的字体拆分级别还可以是二级级别,即将一级标题确定为一个子文本,二级标题和其对应的无标题级别的文本内容确定为一个子文本。By obtaining the title attribute value of each text character in the text data, the text characters are grouped according to the title attribute value and the set font split level. As shown in Figure 18, the font split level set in this embodiment is the first level, and the first level heading and the corresponding content (the second level heading content and the text content of the untitled level) are determined as a sub-text to obtain Sub-text 8011 and sub-text 8012. Optionally, the set font split level can also be a secondary level, that is, the first-level heading is determined as a sub-text, and the second-level heading and its corresponding untitled-level text content are determined as a sub-text.
在一个实施例中,文本数据中的每个文本字符(汉字、英文、阿拉伯数字、换行符、段落符等)均以数组的形式进行存储,数组中的不同元素的值对应文本数据的不同属性,以3*3数组为例,第一行表征该文本字符的字体颜色,如001为红色,002为蓝色,003为绿色等,第二行表征文本字符的标题属性,如100为一级标题,010为二级标题,001为三级标题,200为无标题级别(如正文文本),同理,文本字符的其它属性如是否为粗体等同样通过数组中的特定元素进行标识,具体的数组大小以及不同数组元素表征的文本字符的属性内容可进行编辑设定,此处不做限定。获取文本数据中每个文本字符的标题属性值即获取每个文本字符对应数组的特定元素即可确定该文本字符为第几级标题,进而完成依据标题级别进行文本数据的文本拆分。In one embodiment, each text character (Chinese characters, English, Arabic numerals, line breaks, paragraph characters, etc.) in the text data is stored in the form of an array, and the values of different elements in the array correspond to different attributes of the text data Take a 3*3 array as an example, the first line represents the font color of the text character, such as 001 for red, 002 for blue, 003 for green, etc., and the second line represents the title attribute of the text character, such as 100 for the first level The title, 010 is the second-level title, 001 is the third-level title, and 200 is the untitled level (such as body text). Similarly, other attributes of the text character, such as whether it is bold or not, are also identified by specific elements in the array. The size of the array and the attribute content of the text characters represented by different array elements can be edited and set, and there is no limitation here. Obtaining the title attribute value of each text character in the text data is to obtain the specific element of the array corresponding to each text character to determine which level of the text character is the heading, and then complete the text splitting of the text data according to the heading level.
S804、对所述子文本设置动画展示模式。S804: Set an animation display mode for the sub-text.
本实施例提供的技术方案中,可根据文本数据中文本内容的标题级别进行文本内容的拆分,得到的每个子文本对应设置动画展示效果,显著的提升了课件动画制作的效率,优化了文本处理机制。In the technical solution provided in this embodiment, the text content can be split according to the title level of the text content in the text data, and each sub-text obtained corresponds to an animation display effect, which significantly improves the efficiency of courseware animation production and optimizes the text Processing mechanism.
在上述技术方案的基础上,在根据所述文本拆分方式对所述文本数据进行拆分得到子文本之后,还包括:显示文本划分框,所述文本划分框和所述子文本一一对应。当文本数据拆分完毕后,可以相应的进行 拆分结果的显示,即通过文本划分框将子文本进行划分的方式展示给课件制作人员,课件制作人员可相应对划分得到的子文本进行调整,以满足个性化设置需求。On the basis of the above technical solution, after the text data is split according to the text splitting method to obtain sub-texts, the method further includes: displaying a text division box, the text division box corresponds to the sub-text one-to-one . After the text data is split, the results of the split can be displayed accordingly, that is, the sub-texts are divided into the text division box to show them to the courseware producers, who can adjust the sub-texts obtained accordingly. To meet the needs of personalized settings.
实施例九Example 9
图18为本申请实施例九提供的一种文本处理装置的结构示意图。参考图18,该文本处理装置包括:文本数据显示模块901、拆分方式确定模块902、文本拆分模块903以及子文本动画设置模块904。FIG. 18 is a schematic structural diagram of a text processing apparatus according to Embodiment 9 of this application. Referring to FIG. 18, the text processing apparatus includes: a text data display module 901, a split mode determination module 902, a text split module 903, and a sub-text animation setting module 904.
其中,文本数据显示模块901,用于在文本输入框中显示录入的文本数据;Among them, the text data display module 901 is used to display the entered text data in the text input box;
拆分方式确定模块902,用于确定所述文本数据对应的文本拆分方式,其中,所述文本拆分方式包括标记拆分和字体属性拆分;文本拆分模块903,用于根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本;子文本动画设置模块904,用于对所述子文本设置动画展示模式。The split mode determination module 902 is used to determine the text split mode corresponding to the text data, where the text split mode includes mark split and font attribute split; the text split module 903 is used to The text split method splits the text data to obtain at least two sub-texts; the sub-text animation setting module 904 is configured to set an animation display mode for the sub-text.
本实施例提供的技术方案,通过在文本输入框中显示录入的文本数据,确定所述文本数据对应的文本拆分方式,其中,所述文本拆分方式包括标记拆分和字体属性拆分,根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本,对所述子文本设置动画展示模式的技术方案,解决现有技术中当用户输入大段文本数据后,对其进行动画效果展示时,对该大段文本数据的拆分存在效率低下的问题,实现了对文本数据的多样性自动拆分,优化了文本数据的拆分机制,提高了文本数据的拆分效率以及拆分灵活性,便于高效的进行动画展示。The technical solution provided in this embodiment determines the text splitting method corresponding to the text data by displaying the entered text data in the text input box, wherein the text splitting method includes mark splitting and font attribute splitting, The text data is split according to the text splitting method to obtain at least two sub-texts, and the technical solution of setting the animation display mode for the sub-texts solves the problem that when the user inputs a large section of text data in the prior art, When the animation effect is displayed, the splitting of this large section of text data has a problem of inefficiency. The automatic splitting of the diversity of text data is realized, the splitting mechanism of text data is optimized, and the splitting efficiency of text data is improved And the flexibility of splitting is convenient for efficient animation display.
可选的,该装置还包括:操作接收模块905,用于接收文本拆分操作,所述文本拆分操作用于触发文本数据的拆分;所述文本数据显示模块还用于显示拆分选择按钮,所述拆分选择按钮绑定有对应的文本拆分方式。Optionally, the device further includes: an operation receiving module 905, configured to receive a text splitting operation, the text splitting operation is used to trigger the splitting of text data; the text data display module is also used to display the split selection Button, the split selection button is bound with a corresponding text split mode.
可选的,还包括检测模块906,用于:在确定所述文本数据对应的文本拆分方式之前,对文本输入框中录入的文本数据进行检测;Optionally, it further includes a detection module 906, configured to detect the text data entered in the text input box before determining the text split mode corresponding to the text data;
所述拆分方式确定模块902具体用于:The split mode determining module 902 is specifically configured to:
当检测到所述文本输入框中的文本数据录入完毕时,确定所述文本数据对应的文本拆分方式。When it is detected that the input of the text data in the text input box is completed, the text split mode corresponding to the text data is determined.
可选的,所述拆分方式确定模块902具体用于:Optionally, the split mode determining module 902 is specifically configured to:
对所述文本数据进行文本识别,依据识别结果确定所述文本数据对应的文本拆分方式。Perform text recognition on the text data, and determine the text splitting mode corresponding to the text data according to the recognition result.
可选的,所述拆分方式确定模块902具体用于:Optionally, the split mode determining module 902 is specifically configured to:
对所述文本数据进行文本识别,如果依据识别结果得到至少两种文本拆分方式,则依据预设的拆分优先级对所述至少两种拆分方式进行排序,依据排序结果确定所述文本数据对应的文本拆分方式。Perform text recognition on the text data. If at least two text splitting methods are obtained according to the recognition result, the at least two splitting methods are sorted according to the preset splitting priority, and the text is determined according to the sorting result The text split method corresponding to the data.
可选的,所述拆分方式确定模块902具体用于:Optionally, the split mode determining module 902 is specifically configured to:
对所述文本数据进行文本识别,如果依据识别结果得到至少两种文本拆分方式,则显示拆分选择选项,所述拆分选择选项绑定有对应的文本拆分方式;Perform text recognition on the text data, and if at least two text splitting methods are obtained according to the recognition results, a split selection option is displayed, and the split selection option is bound with a corresponding text splitting method;
所述操作接收模块905具体用于:接收拆分选择选项的选择操作,将所述拆分选择选项绑定的文本拆分方式确定为所述文本数据的文本拆分方式。The operation receiving module 905 is specifically configured to receive a selection operation of a split selection option, and determine the text split mode bound to the split selection option as the text split mode of the text data.
可选的,所述标记拆分包括行标记拆分、序号标记拆分和段落标记拆分中的至少一种,当确定出的文本拆分方式为标记拆分时,所述文本拆分模块903具体用于:Optionally, the mark splitting includes at least one of line mark splitting, serial number mark splitting, and paragraph mark splitting. When the determined text splitting mode is mark splitting, the text splitting module 903 is specifically used for:
识别所述文本数据中的标记信息,依据所述标记信息在所述文本数据中的位置对文本数据进行拆分得到子文本。Identify the mark information in the text data, and split the text data according to the position of the mark information in the text data to obtain sub-texts.
可选的,所述字体属性拆分包括字体颜色拆分,当确定出的文本拆分方式为字体颜色拆分时,所述文本拆分模块903具体用于:Optionally, the font attribute splitting includes font color splitting. When the determined text splitting method is font color splitting, the text splitting module 903 is specifically configured to:
将所述文本数据中字体颜色连续一致的文本内容确定为子文本。The text content with consecutively consistent font colors in the text data is determined as the sub-text.
可选的,所述字体属性拆分包括字体粗细拆分,当确定出的文本拆分方式为字体粗细拆分时,所述文本拆分模块903具体用于:Optionally, the font attribute splitting includes font thickness splitting. When the determined text splitting method is font thickness splitting, the text splitting module 903 is specifically configured to:
依据设置的字体粗细组合方式对所述文本数据进行分组,将每一组确定为一个子文本。The text data is grouped according to the set font thickness combination mode, and each group is determined as a sub-text.
可选的,所述字体属性拆分包括字体级别拆分,当确定出的文本拆分方式为字体级别拆分时,所述文本拆分模块903具体用于:Optionally, the font attribute splitting includes font level splitting. When the determined text splitting method is font level splitting, the text splitting module 903 is specifically configured to:
依据设置的字体拆分级别对所述文本数据进行分组,将每一组确定为一个子文本。The text data is grouped according to the set font split level, and each group is determined as a sub-text.
本实施例提供的文本处理装置可以用于执行上述任意实施例提供的文本处理方法,具备相应的功能和有益效果。The text processing device provided in this embodiment can be used to execute the text processing method provided in any of the foregoing embodiments, and has corresponding functions and beneficial effects.
实施例十Example ten
图19为本申请实施例四提供的一种文本处理设备的结构示意图。该文本处理设备包括:处理器40、存储器41、显示屏42、输入装置43以及输出装置44。该文本处理设备中处理器40的数量可以是一个或者多个,图19中以一个处理器40为例。该文本处理设备中存储器41的数量可以是一个或者多个,图19中以一个存储器41为例。该文本处理设备的处理器40、存储器41、显示屏42、输入装置43以及输出装置44可以通过总线或者其他方式连接,图19中以通过总线连接为例。实施例中,文本处理设备可以是电脑,手机,平板或交互智能平板等。FIG. 19 is a schematic structural diagram of a text processing device provided in Embodiment 4 of this application. The text processing equipment includes a processor 40, a memory 41, a display screen 42, an input device 43, and an output device 44. The number of processors 40 in the text processing device may be one or more. One processor 40 is taken as an example in FIG. 19. The number of memories 41 in the text processing device may be one or more. One memory 41 is taken as an example in FIG. 19. The processor 40, the memory 41, the display screen 42, the input device 43, and the output device 44 of the text processing device may be connected by a bus or other methods. In FIG. 19, a bus connection is taken as an example. In the embodiment, the text processing device may be a computer, a mobile phone, a tablet or an interactive smart tablet, etc.
存储器41作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请任意实施例所述的文本处理设备对应的程序指令/模块(例如,文本处理装置中的文本数据显示模块901、拆分方式确定模块902、文本拆分模块903以及子文本动画设置模块904)。存储器41可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器41可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器41可进一步包括相对于处理器40远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a computer-readable storage medium, the memory 41 can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the text processing device described in any embodiment of this application (for example, the Text data display module 901, split mode determination module 902, text split module 903, and sub-text animation setting module 904). The memory 41 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some examples, the memory 41 may further include a memory remotely provided with respect to the processor 40, and these remote memories may be connected to the device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
显示屏42可以为具有触摸功能的显示屏42,其可以是电容屏、电磁屏或者红外屏。一般而言,显示屏42用于根据处理器40的指示显示数据,例如显示连接节点添加按钮、针对所述目标元素生成的连接线以及位于连接线上的连接节点等,还用于接收作用于显示屏42的触摸操作,并将相应的信号发送至处理器40或其他装置。The display screen 42 may be a display screen 42 with a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen. Generally speaking, the display screen 42 is used to display data according to the instructions of the processor 40, such as displaying the connection node adding button, the connection line generated for the target element, and the connection node located on the connection line, etc., and is also used to receive The touch operation of the display screen 42 sends the corresponding signal to the processor 40 or other devices.
输入装置43可用于接收输入的数字或者字符信息,以及产生与连接节点控制设备的用户设置以及功能控制有关的键信号输入,还可以是用于获取图像的摄像头以及获取音频数据的拾音设备。输出装置44可以包括扬声器等音频设备。需要说明的是,输入装置43和输出装置44的具体组成可以根据实际情况设定。The input device 43 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the connected node control device. It can also be a camera for acquiring images and a pickup device for acquiring audio data. The output device 44 may include audio equipment such as speakers. It should be noted that the specific composition of the input device 43 and the output device 44 can be set according to actual conditions.
处理器40通过运行存储在存储器41中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的文本处理方法。The processor 40 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 41, that is, realizes the above-mentioned text processing method.
上述提供的文本处理设备可用于执行上述任意实施例提供的文本处理方法,具备相应的功能和有益效果。The text processing device provided above can be used to execute the text processing method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
实施例十一Example 11
本申请实施例五还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种文本处理方法,包括:The fifth embodiment of the present application also provides a storage medium containing computer-executable instructions, which are used to execute a text processing method when executed by a computer processor, including:
在文本输入框中显示录入的文本数据;Display the entered text data in the text input box;
确定所述文本数据对应的文本拆分方式,其中,所述文本拆分方式包括标记拆分和字体属性拆分;Determining a text splitting manner corresponding to the text data, wherein the text splitting manner includes mark splitting and font attribute splitting;
根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本;Splitting the text data according to the text splitting manner to obtain at least two sub-texts;
对所述子文本设置动画展示模式。An animation display mode is set for the sub-text.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的连接节点控制方法操作,还可以执行本申请任意实施例所提供的文本处理方法中的相关操作,且具备相应的功能和有益效果。Of course, a storage medium containing computer-executable instructions provided by the embodiments of the present application, and the computer-executable instructions are not limited to the operation of the connection node control method described above, and can also perform text processing provided by any embodiment of the present application. The related operations in the method have corresponding functions and beneficial effects.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是机器人,个人计算机,服务器,或者网络设备等)执行本申请任意实施例所述的文本处理方法。Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented with the help of software and necessary general-purpose hardware, and of course it can also be implemented with hardware, but in many cases the former is a better implementation. . Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk. , Read-Only Memory (ROM), Random Access Memory (RAM), Flash memory (FLASH), hard disk or optical disk, etc., including several instructions to make a computer device (which can be a robot, A personal computer, a server, or a network device, etc.) execute the text processing method described in any embodiment of this application.
值得注意的是,上述文本处理装置中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。It is worth noting that, in the above text processing device, the units and modules included are only divided according to the functional logic, but not limited to the above division, as long as the corresponding function can be realized; in addition, the function of each functional unit The specific names are only for the convenience of distinguishing each other, and are not used to limit the protection scope of this application.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of this application can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if it is implemented by hardware, as in another embodiment, it can be implemented by any one or a combination of the following technologies: discrete logic circuits with logic gates for implementing logic functions on data signals, ASIC with suitable combinational logic gates, programmable gate array (PGA), field programmable gate array (FPGA), etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean specific features described in conjunction with the embodiment or example , The structure, materials, or characteristics are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above-mentioned terms does not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner.

Claims (15)

  1. 一种文本处理方法,包括:A text processing method, including:
    在文本输入框中显示录入的文本数据;Display the entered text data in the text input box;
    确定所述文本数据对应的文本拆分方式,其中,所述文本拆分方式包括标记拆分和字体属性拆分;Determining a text splitting manner corresponding to the text data, wherein the text splitting manner includes mark splitting and font attribute splitting;
    根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本;Splitting the text data according to the text splitting manner to obtain at least two sub-texts;
    对所述子文本设置动画展示模式。An animation display mode is set for the sub-text.
  2. 根据权利要求1所述的方法,其中,在确定所述文本数据对应的文本拆分方式之前,还包括:The method according to claim 1, wherein before determining the text split mode corresponding to the text data, the method further comprises:
    接收文本拆分操作,所述文本拆分操作用于触发所述文本数据的拆分。A text splitting operation is received, and the text splitting operation is used to trigger the splitting of the text data.
  3. 根据权利要求2所述的方法,其中,在接收文本拆分操作之后,还包括:The method according to claim 2, wherein after receiving the text splitting operation, the method further comprises:
    显示拆分选择按钮,所述拆分选择按钮绑定有对应的文本拆分方式;Display a split selection button, and the split selection button is bound with a corresponding text split mode;
    相应的,确定所述文本数据对应的文本拆分方式包括:Correspondingly, determining the text split mode corresponding to the text data includes:
    接收对所述拆分选择按钮的点击操作,将所述点击操作对应的文本拆分方式确定为所述文本数据的文本拆分方式。A click operation on the split selection button is received, and the text split mode corresponding to the click operation is determined as the text split mode of the text data.
  4. 根据权利要求1所述的方法,其中,在确定所述文本数据对应的文本拆分方式之前,还包括:The method according to claim 1, wherein before determining the text split mode corresponding to the text data, the method further comprises:
    对文本输入框中录入的文本数据进行检测;Detect the text data entered in the text input box;
    相应的,所述确定所述文本数据对应的文本拆分方式包括:Correspondingly, the determining the text split mode corresponding to the text data includes:
    当检测到所述文本输入框中的文本数据录入完毕时,确定所述文本数据对应的文本拆分方式。When it is detected that the input of the text data in the text input box is completed, the text split mode corresponding to the text data is determined.
  5. 根据权利要求1或4所述的方法,其中,所述确定所述文本数据对应的文本拆分方式包括:The method according to claim 1 or 4, wherein said determining the text split mode corresponding to the text data comprises:
    对所述文本数据进行文本识别,依据识别结果确定所述文本数据对应的文本拆分方式。Perform text recognition on the text data, and determine the text splitting mode corresponding to the text data according to the recognition result.
  6. 根据权利要求5所述的方法,其中,所述对所述文本数据进行文本识别,依据识别结果确定所述文本数据对应的文本拆分方式包括:The method according to claim 5, wherein the performing text recognition on the text data, and determining the text split mode corresponding to the text data according to the recognition result comprises:
    对所述文本数据进行文本识别,如果依据识别结果得到至少两种文本拆分方式,则依据预设的拆分优先级对所述至少两种拆分方式进行排序,依据排序结果确定所述文本数据对应的文本拆分方式。Perform text recognition on the text data. If at least two text splitting methods are obtained according to the recognition result, the at least two splitting methods are sorted according to the preset splitting priority, and the text is determined according to the sorting result The text split method corresponding to the data.
  7. 根据权利要求5所述的方法,其中,所述对所述文本数据进行文本识别,依据识别结果确定所述文本数据对应的文本拆分方式包括:The method according to claim 5, wherein the performing text recognition on the text data, and determining the text split mode corresponding to the text data according to the recognition result comprises:
    对所述文本数据进行文本识别,如果依据识别结果得到至少两种文本拆分方式,则显示拆分选择选项,所述拆分选择选项绑定有对应的文本拆分方式;Perform text recognition on the text data, and if at least two text splitting methods are obtained according to the recognition results, a split selection option is displayed, and the split selection option is bound with a corresponding text splitting method;
    接收拆分选择选项的选择操作,将所述拆分选择选项绑定的文本拆分方式确定为所述文本数据的文本拆分方式。The selection operation of the split selection option is received, and the text split mode bound to the split selection option is determined as the text split mode of the text data.
  8. 根据权利要求1所述的方法,其中,所述标记拆分包括行标记拆分、序号标记拆分和段落标记拆分中的至少一种,当确定出的文本拆分方式为标记拆分时,所述根据所述文本拆分方式对所述文本数据进行拆分得到子文本包括:The method according to claim 1, wherein the mark splitting includes at least one of line mark splitting, sequence number mark splitting, and paragraph mark splitting, when the determined text splitting method is mark splitting , The splitting the text data according to the text splitting manner to obtain the sub-text includes:
    识别所述文本数据中的标记信息,依据所述标记信息在所述文本数据中的位置对文本数据进行拆分得到子文本。Identify the mark information in the text data, and split the text data according to the position of the mark information in the text data to obtain sub-texts.
  9. 根据权利要求1所述的方法,其中,所述字体属性拆分包括字体颜色拆分,当确定出的文本拆分方式为字体颜色拆分时,所述根据所述文本拆分方式对所述文本数据进行拆分得到子文本包括:The method according to claim 1, wherein said font attribute splitting comprises font color splitting, and when the determined text splitting method is font color splitting, said splitting of said text according to said text splitting method The text data is split to obtain sub-texts including:
    将所述文本数据中字体颜色连续一致的文本内容确定为子文本。The text content with consecutively consistent font colors in the text data is determined as the sub-text.
  10. 根据权利要求1所述的方法,其中,所述字体属性拆分包括字体粗细拆分,当确定出的文本拆分方式为字体粗细拆分时,所述根据所述文本拆分方式对所述文本数据进行拆分得到子文本包括:The method according to claim 1, wherein said font attribute splitting includes font thickness splitting, and when the determined text splitting method is font thickness splitting, said splitting of said text according to said text splitting method The text data is split to obtain sub-texts including:
    依据设置的字体粗细组合方式对所述文本数据进行分组,将每一组确定为一个子文本。The text data is grouped according to the set font thickness combination mode, and each group is determined as a sub-text.
  11. 根据权利要求1所述的方法,其中,所述字体属性拆分包括字体级别拆分,当确定出的文本拆分方式为字体级别拆分时,所述根据所述文本拆分方式对所述文本数据进行拆分得到子文本包括:The method according to claim 1, wherein said font attribute splitting includes font level splitting, and when the determined text splitting method is font level splitting, said splitting of said text according to said text splitting method The text data is split to obtain sub-texts including:
    依据设置的字体拆分级别对所述文本数据进行分组,将每一组确定为一个子文本。The text data is grouped according to the set font split level, and each group is determined as a sub-text.
  12. 一种文本处理装置,包括:A text processing device includes:
    文本数据显示模块,用于在文本输入框中显示录入的文本数据;Text data display module, used to display the entered text data in the text input box;
    拆分方式确定模块,用于确定所述文本数据对应的文本拆分方式,其中,所述文本拆分方式包括标记拆分和字体属性拆分;A split mode determining module, configured to determine a text split mode corresponding to the text data, wherein the text split mode includes mark split and font attribute split;
    文本拆分模块,用于根据所述文本拆分方式对所述文本数据进行拆分得到至少两个子文本;A text splitting module, configured to split the text data according to the text splitting mode to obtain at least two sub-texts;
    子文本动画设置模块,用于对所述子文本设置动画展示模式。The sub-text animation setting module is used to set the animation display mode for the sub-text.
  13. 根据权利要求12所述的文本处理装置,还包括:The text processing device according to claim 12, further comprising:
    操作接收模块,用于接收文本拆分操作,所述文本拆分操作用于触发所述文本数据的拆分;An operation receiving module, configured to receive a text splitting operation, where the text splitting operation is used to trigger the splitting of the text data;
    所述文本数据显示模块还用于显示拆分选择按钮,所述拆分选择按钮绑定有对应的文本拆分方式。The text data display module is also used to display a split selection button, and the split selection button is bound with a corresponding text split mode.
  14. 一种文本处理设备,包括:存储器、显示屏以及一个或多个处理器;A text processing device, including: a memory, a display screen, and one or more processors;
    所述存储器,用于存储一个或多个程序;The memory is used to store one or more programs;
    所述显示屏,用于显示文本输入框中录入的文本数据;The display screen is used to display text data entered in a text input box;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-11任一所述的文本处理方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the text processing method according to any one of claims 1-11.
  15. 一种包含计算机可执行指令的存储介质,其中,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-11任一项所述的文本处理方法。A storage medium containing computer-executable instructions, wherein the computer-executable instructions are used to execute the text processing method according to any one of claims 1-11 when executed by a computer processor.
PCT/CN2019/121744 2019-06-22 2019-11-28 Text processing method, apparatus and device, and storage medium WO2020258717A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910545738.9A CN110287465B (en) 2019-06-22 2019-06-22 Text processing method, device, equipment and storage medium
CN201910545738.9 2019-06-22

Publications (1)

Publication Number Publication Date
WO2020258717A1 true WO2020258717A1 (en) 2020-12-30

Family

ID=68004639

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/121744 WO2020258717A1 (en) 2019-06-22 2019-11-28 Text processing method, apparatus and device, and storage medium

Country Status (2)

Country Link
CN (1) CN110287465B (en)
WO (1) WO2020258717A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287465B (en) * 2019-06-22 2022-04-05 广州视源电子科技股份有限公司 Text processing method, device, equipment and storage medium
CN110825222A (en) * 2019-10-22 2020-02-21 清华大学 Text presentation method of intelligent device and intelligent device
CN111273827B (en) * 2020-01-17 2021-10-22 维沃移动通信有限公司 Text processing method and electronic equipment
CN111507082A (en) * 2020-04-23 2020-08-07 北京奇艺世纪科技有限公司 Text processing method and device, storage medium and electronic device
CN113221507B (en) * 2021-05-28 2022-02-11 掌阅科技股份有限公司 Document editing operation synchronization method, computing device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970745A (en) * 2013-01-27 2014-08-06 上海尤兰达张信息科技有限公司 Method and system for generating cartoon works by network writings in real time
US20150121291A1 (en) * 2012-06-29 2015-04-30 Microsoft Corporation Input Method Editor
CN105335036A (en) * 2014-06-27 2016-02-17 北京搜狗科技发展有限公司 Input interaction method and input method system
CN108874759A (en) * 2017-05-15 2018-11-23 珠海金山办公软件有限公司 A kind of text object processing method, device and electronic equipment
CN110287465A (en) * 2019-06-22 2019-09-27 广州视源电子科技股份有限公司 Text handling method, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164388B (en) * 2011-12-09 2016-07-06 北大方正集团有限公司 In a kind of layout files structured message obtain method and device
CN105047029B (en) * 2015-07-20 2018-02-13 北京大学 A kind of courseware bringing method of automatic Display geometry topic course of solving questions
CN106484667A (en) * 2016-10-13 2017-03-08 广州视源电子科技股份有限公司 The method and device of display data
CN108920128B (en) * 2018-07-12 2021-10-08 思必驰科技股份有限公司 Operation method and system of presentation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150121291A1 (en) * 2012-06-29 2015-04-30 Microsoft Corporation Input Method Editor
CN103970745A (en) * 2013-01-27 2014-08-06 上海尤兰达张信息科技有限公司 Method and system for generating cartoon works by network writings in real time
CN105335036A (en) * 2014-06-27 2016-02-17 北京搜狗科技发展有限公司 Input interaction method and input method system
CN108874759A (en) * 2017-05-15 2018-11-23 珠海金山办公软件有限公司 A kind of text object processing method, device and electronic equipment
CN110287465A (en) * 2019-06-22 2019-09-27 广州视源电子科技股份有限公司 Text handling method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110287465A (en) 2019-09-27
CN110287465B (en) 2022-04-05

Similar Documents

Publication Publication Date Title
WO2020258717A1 (en) Text processing method, apparatus and device, and storage medium
CN108737565B (en) Method and apparatus for sharing presentation data and annotations
US9161238B2 (en) Mobile device monitoring and testing
US10423716B2 (en) Creating multimedia content for animation drawings by synchronizing animation drawings to audio and textual data
US10356364B2 (en) Registering and displaying visual attention metadata in a web video conferencing and seminar system
CN110673777A (en) Online teaching method and device, storage medium and terminal equipment
CN103384871A (en) Device, method, and graphical user interface for manipulating soft keyboards
WO2021258917A1 (en) Intelligent interaction method and device, and storage medium
US7827297B2 (en) Multimedia linking and synchronization method, presentation and editing apparatus
WO2021093623A1 (en) Image splicing method and apparatus, and terminal device
WO2021068412A1 (en) Interaction method and apparatus for intelligent interaction tablet, terminal device, and storage medium
EP2461256A2 (en) Method and apparatus for providing an electronic book service in a mobile device
CN112040142B (en) Method for video authoring on mobile terminal
US9330099B2 (en) Multimedia apparatus and method for providing content
CN108920057B (en) Method, device, equipment and storage medium for controlling connection nodes of electronic whiteboard
WO2015184826A1 (en) Operation processing method and device for electronic drawing board
CN108958731A (en) A kind of Application Program Interface generation method, device, equipment and storage medium
CN109814787B (en) Key information determination method, device, equipment and storage medium
CN111580903A (en) Real-time voting method, device, terminal equipment and storage medium
JP2017084146A (en) Information processing apparatus and information processing program
US8515173B2 (en) Image processing system, image processing method and computer readable medium
CN109191958B (en) Information interaction method, device, terminal and storage medium
CN106933443B (en) Method and device for processing electronic book data and electronic book reader
US20150277747A1 (en) Touch Page Control Method and System
US20220147693A1 (en) Systems and Methods for Generating Documents from Video Content

Legal Events

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

Ref document number: 19935002

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19935002

Country of ref document: EP

Kind code of ref document: A1