CN110287465B - Text processing method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN110287465B
CN110287465B CN201910545738.9A CN201910545738A CN110287465B CN 110287465 B CN110287465 B CN 110287465B CN 201910545738 A CN201910545738 A CN 201910545738A CN 110287465 B CN110287465 B CN 110287465B
Authority
CN
China
Prior art keywords
text
splitting
text data
mode
font
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910545738.9A
Other languages
Chinese (zh)
Other versions
CN110287465A (en
Inventor
林德熙
邓启亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910545738.9A priority Critical patent/CN110287465B/en
Publication of CN110287465A publication Critical patent/CN110287465A/en
Priority to PCT/CN2019/121744 priority patent/WO2020258717A1/en
Application granted granted Critical
Publication of CN110287465B publication Critical patent/CN110287465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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

The invention discloses a text processing method, a device, equipment and a storage medium, wherein the method comprises the steps of displaying input text data in a text input box; determining a text splitting mode corresponding to the text data, 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; the method and the device have the advantages that the animation display mode is set for the sub-texts, the problem that in the prior art, when the animation effect display is carried out on the large-section text data after the user inputs the large-section text data, the splitting of the large-section text data is low in efficiency can be solved, the splitting efficiency of the text data is improved, and the efficient animation display is convenient.

Description

Text processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of text production technologies, and in particular, to a text processing method, apparatus, device, and storage medium.
Background
At present, various intelligent devices are widely applied to daily life and work of people. Generally, various types of application software are installed in the intelligent device to meet the actual requirements of people in different fields. For example, text editing software can meet writing and recording requirements of users, courseware editing software can meet teaching courseware making requirements of users, drawing editing software can meet drawing requirements of users, and the like.
Generally speaking, for courseware editing software, a user can enter text data during use, and the text data can be displayed with animation effect during display. In the process of implementing the invention, the inventor finds that the prior art has the following defects: when a user inputs a large section of text data and displays the animation effect, the splitting of the large section of text data has the problem of low efficiency.
Disclosure of Invention
In view of this, embodiments of the present invention provide a text processing method, apparatus, device, and storage medium, which improve the splitting efficiency of text data and facilitate efficient animation display.
In a first aspect, an embodiment of the present invention provides a text processing method, including:
displaying the entered text data in a text entry box;
determining a text splitting mode corresponding to the text data, 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;
and setting an animation display mode for the sub-text.
Optionally, before determining the text splitting manner corresponding to the text data, the method further includes:
and receiving a text splitting operation, wherein the text splitting operation is used for triggering the splitting of the text data.
Optionally, after receiving the text splitting operation, the method further includes:
displaying a splitting selection button, wherein the splitting selection button is bound with a corresponding text splitting mode;
correspondingly, determining the text splitting mode corresponding to the text data comprises:
and receiving a click operation on the splitting selection button, and determining a text splitting mode corresponding to the click operation as a text splitting mode of the text data.
Optionally, before determining the text splitting manner corresponding to the text data, the method further includes:
detecting text data input in the text input box;
correspondingly, the determining the text splitting mode corresponding to the text data includes:
and when the text data in the text input box is detected to be completely entered, determining a text splitting mode corresponding to the text data.
Optionally, the determining a text splitting manner corresponding to the text data includes:
and performing text recognition on the text data, and determining a text splitting mode corresponding to the text data according to a recognition result.
Optionally, the performing text recognition on the text data, and determining a text splitting manner corresponding to the text data according to a recognition result includes:
and performing text recognition on the text data, if at least two text splitting modes are obtained according to the recognition result, sequencing the at least two splitting modes according to a preset splitting priority, and determining the text splitting mode corresponding to the text data according to the sequencing result.
Optionally, the performing text recognition on the text data, and determining a text splitting manner corresponding to the text data according to a recognition result includes:
performing text recognition on the text data, and if at least two text splitting modes are obtained according to a recognition result, displaying splitting selection options, wherein the splitting selection options are bound with the corresponding text splitting modes;
and receiving the selection operation of splitting selection options, and determining the text splitting mode bound by the splitting selection options as the text splitting mode of the text data.
Optionally, the tag splitting includes at least one of line tag splitting, sequence number tag splitting and paragraph tag splitting, and when the determined text splitting manner is the tag splitting manner, splitting the text data according to the text splitting manner to obtain sub-texts includes:
and identifying marking information in the text data, and splitting the text data according to the position of the marking information in the text data to obtain a sub-text.
Optionally, the splitting of the font attribute includes splitting of font color, and when the determined text splitting mode is splitting of font color, the splitting of the text data according to the text splitting mode to obtain sub-texts includes:
and determining the text content with continuous and consistent font colors in the text data as a sub text.
Optionally, the font attribute splitting includes font thickness splitting, and when the determined text splitting mode is font thickness splitting, splitting the text data according to the text splitting mode to obtain a subfile includes:
and grouping the text data according to a set font weight combination mode, and determining each group as a sub-text.
Optionally, the splitting of the font attribute includes splitting of a font level, and when the determined text splitting manner is splitting of the font level, the splitting of the text data according to the text splitting manner to obtain a subfile includes:
and grouping the text data according to the set font splitting level, and determining each group as a sub-text.
In a second aspect, an embodiment of the present invention further provides a text processing apparatus, including:
the text data display module is used for displaying the input text data in the text input box;
the splitting mode determining module is used for determining a text splitting mode corresponding to the text data, wherein the text splitting mode comprises a mark splitting mode and a font attribute splitting mode;
the text splitting module is used for splitting the text data according to the text splitting mode to obtain at least two sub-texts;
and the sub-text animation setting module is used for setting an animation display mode for the sub-text.
Optionally, the text processing apparatus further includes:
the operation receiving module is used for receiving a text splitting operation, and the text splitting operation is used for triggering the splitting of the text data;
the text data display module is also used for displaying a splitting selection button, and the splitting selection button is bound with a corresponding text splitting mode.
In a third aspect, an embodiment of the present invention further provides a text processing apparatus, including: a memory, a display screen, and one or more processors;
the memory for storing one or more programs;
the display screen is used for displaying the text data input in the text input box;
when executed by the one or more processors, cause the one or more processors to implement the text processing method of the first aspect.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the text processing method according to the first aspect.
According to the text processing method, the text processing device, the text processing equipment and the storage medium, the text splitting mode corresponding to the text data is determined by displaying the entered text data in the text input box, wherein the text splitting mode comprises mark splitting and font attribute splitting, the text data is split according to the text splitting mode to obtain at least two sub-texts, and the technical scheme of the animation display mode is set for the sub-texts.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a text processing method according to an embodiment of the present invention;
FIG. 2 is a first schematic view of a display interface;
FIG. 3 is a second schematic view of a display interface;
FIG. 4 is a flowchart of a text processing method according to a second embodiment of the present invention
FIG. 5 is a third schematic view of a display interface;
FIG. 6 is a fourth diagram of a display interface;
fig. 7 is a flowchart of a text processing method according to a third embodiment of the present invention;
fig. 8 is a flowchart of a text processing method according to a fourth embodiment of the present invention;
FIG. 9 is a fourth diagram of a display interface;
fig. 10 is a flowchart of a text processing method according to a fifth embodiment of the present invention;
FIG. 11 is a fifth diagram of a display interface;
fig. 12 is a flowchart of a text processing method according to a sixth embodiment of the present invention;
FIG. 13 is a sixth schematic view of a display interface;
fig. 14 is a flowchart of a text processing method according to a seventh embodiment of the present invention;
FIG. 15 is a seventh schematic view of a display interface;
fig. 16 is a flowchart of a text processing method according to an eighth embodiment of the present invention;
FIG. 17 is an eighth schematic view of a display interface;
fig. 18 is a schematic structural diagram of a text processing apparatus according to a tenth embodiment of the present invention;
fig. 19 is a schematic structural diagram of a text processing apparatus according to an eleventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of a text processing method according to an embodiment of the present invention. The text processing method provided in the embodiments may be executed by a text processing device, the text processing device may be implemented by software and/or hardware, and the text processing device may be formed by two or more physical entities or may be formed by one physical entity. Generally speaking, the text processing device has a courseware making function, and the text processing device may be a computer, a mobile phone, a tablet or an intelligent interactive tablet.
For the convenience of understanding, the intelligent interactive tablet is exemplarily described as the text processing device in the embodiment. The intelligent interactive panel can be an integrated device which controls the content displayed on the display panel and realizes man-machine interaction operation through a touch technology, and integrates one or more functions of a projector, an electronic whiteboard, a curtain, a sound box, a television, a video conference terminal and the like. In general, the display screen of the smart interactive tablet may be a capacitive screen, a resistive screen, or an electromagnetic screen. The user can perform touch operation on the intelligent interaction panel through a finger or a touch pen.
Furthermore, the intelligent interactive tablet is provided with application software carried by an operating system, and is also provided with application software downloaded from a third-party device or a server, wherein the specific type and content of the application software can be set according to the actual situation, and the application software has courseware making and courseware demonstration functions. The user can use the courseware making function to make courseware, such as inputting text data in each courseware, inserting pictures, adding hyperlinks to set display animations and the like, and can correspondingly perform the courseware showing function after the courseware making is completed.
Specifically, referring to fig. 1, the method specifically includes:
and S101, displaying the entered text data in a text input box.
In the course of making courseware, the text input box can input and display text data, for example, the text input box can be displayed in a rectangular frame body form in a courseware page when the text data is not input, and one or more text input boxes can be included in one courseware page to display the input text data. The text input box can be automatically created when the current courseware page is created, and can also be created according to the received text box creating instruction.
The entered text data may be text data entered by text entry software (such as a five-stroke input method), or text data in a sticky board copied according to a "paste" instruction. The text data is displayed in a text entry box. Optionally, the text input box is explicitly displayed when no text data is entered, that is, a specific solid border is displayed, and after the text data is entered, the text input box may be hidden accordingly.
The text data may be character data of different national languages, such as chinese character data, english character data, japanese character data, and the like, and also includes numeric numbers, punctuation marks, and the like, that is, the text data may be any character which is entered by text entry software or copied and pasted by a pasting board.
And S102, determining a text splitting mode corresponding to the text data.
The different text data correspond to different text splitting modes, for example, the different text splitting modes include mark splitting and font attribute splitting, where the mark splitting may include at least one of line mark splitting, serial number mark splitting and paragraph mark splitting, and the font attribute splitting includes at least one of font color splitting, font thickness splitting and font level splitting. Different text data refers to different text data attributes including color, thickness, level, etc. of fonts in the text data and different text data contents including specific contents of each character, and the text data is composed of one or more entered characters.
Due to different input text data, different splitting modes exist for the text data, and the implementation process for determining the text splitting mode corresponding to the text data can be automatically obtained by identifying the text content in the text data or can be determined according to the detected text splitting mode selected for use.
For example, when the text data includes a serial number character (which may be an arabic serial number, a roman letter serial number, or the like), the corresponding text splitting manner may be a serial number mark splitting manner, when the text data includes a plurality of font colors, the corresponding text splitting manner may be a font color splitting manner, when the text data includes text contents with different font weights, the corresponding text splitting manner may be a font weight splitting manner, and when the text data includes text contents with different font weights, the corresponding text splitting manner may be a font level splitting manner.
S103, splitting the text data according to the text splitting mode to obtain at least two sub-texts.
After the text splitting mode corresponding to the text data is determined, the text data is split according to the text splitting mode to obtain one or more subfiles. In the prior art, a splitting mode for text data is single, a fixed splitting mode is generally used for splitting the text data, for example, for a large segment of text data, the text data is split according to lines, that is, each line of the text data is split into one sub-text, if the text data comprises a plurality of paragraphs, each paragraph is split into one sub-text, the flexibility is poor, meanwhile, a producer possibly enters a large segment of text data without an explicit format in a courseware making process is ignored, at this time, the accurate splitting of the text data cannot be completed by adopting the existing splitting mode, and if the sub-text is required to be obtained, a user needs to manually split the text data.
For example, a method for automatically obtaining a corresponding text split mode by recognizing text content is taken as an example for explanation. When the text data splitting process is started, performing character recognition on the text content of the text data, wherein the text data content is as shown in fig. 2, fig. 2 is a first schematic diagram of a display interface, performing character recognition on the text data 101 to obtain "serial number characters" (arabic serial numbers 1, 2, and 3) and "character characters" (aaaaaaaaaaaa, bbbbbbbbbb, and ccccccc, wherein a, b, and c are specific text contents such as chinese characters, english words, and the like in the actual courseware making process, when recognizing that the text data 101 contains an ordered number character, determining that the text splitting mode corresponding to the text data 101 is a serial number splitting mode, determining the serial number character and the subsequent character characters as a sub-text, and the split sub-text is as shown in fig. 3, fig. 3 is a second schematic diagram of a display interface, as shown in fig. 3, the text data 101 is split to obtain sub-texts 1011, and 3, Subfile 1012 and subfile 1013.
And S104, setting an animation display mode for the sub-text.
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, wherein the animation display mode is a mode for performing animation display in the course of the courseware demonstration, such as animation display modes of "flying in", "slowly entering", "shutter", and the like. The animation display mode corresponding to the sub-text is automatically allocated and generated after the sub-text is split, and meanwhile, the animation display mode can be manually set by a user for modification, taking fig. 3 as an example, the animation display mode set by the sub-text 1011 can be 'fly-in', the animation display mode corresponding to the sub-text 1012 can be 'blind window', and the animation display mode corresponding to the sub-text 1013 can be 'slow fly-in'.
The animation display refers to displaying contents edited by courseware in an animation mode in the demonstration process, for example, contents which are edited in the courseware making process are displayed in the display interface by flying into the center of the display interface from one side of the display interface or in the display interface with a specific animation effect.
Optionally, the method further includes an animation display process after setting an animation display mode for the sub-texts, where the animation display process may be to perform animation display on the sub-texts on the current courseware page after the sub-texts are completely detached, or may be to perform animation display on the sub-texts on the courseware page sequentially when each page of the courseware page is displayed in the course of the courseware demonstration (for example, after clicking a "start teaching" button). The step of sequentially performing animation display on each subfile refers to performing animation display on a next subfile at preset time intervals after the animation display of the subfile is completed or after a courseware demonstration instruction (such as an instruction triggered by clicking any position in a display interface) is detected, the animation display sequence of the subfile can be the sequence of splitting text data to obtain the subfile, as shown in fig. 3, the text data 101 is split to obtain the subfile 1011, the subfile 1012 and the subfile 1013, and in the animation display process, the subfile 1011, the subfile 1012 and the subfile 1013 are sequentially displayed.
It should be noted that, performing animation display on each sub-text in sequence does not say that the animation of each sub-text is set to have a certain display sequence, but performs corresponding animation display according to the time parameter set in the animation display mode, and the specific animation display sequence is actually based on the relative sequence relationship of the time parameters of the plurality of sub-texts. For example, the playing time set in the animation display mode of the three sub-texts is the same, and based on the time sequence rule, the three sub-texts are actually displayed at the same time; for another example, the time parameter set in the sub-text 1011 in fig. 3 is earliest, the sub-text 1012 and the sub-text 1013 are set to be animated 1 second after the sub-text 1011 is displayed, and then the sub-text 1012 and the sub-text 1013 are animated 1 second after the sub-text 1011 is displayed.
In a specific implementation process, the sub-texts may be only used as a display mode in a viewing state, that is, after the plurality of sub-texts are obtained by splitting, splitting effect display is performed, and the sub-texts are presented in a sub-text mode when the courseware is played. When text data needs to be edited, through preset editing trigger operations (for example, double clicking of a left mouse button, right clicking of a pop-up menu, left clicking confirmation, triggering through touch operation on an intelligent interactive flat plate and the like), the sub-texts are combined into the initial text data and are displayed in a text input box as a whole. On the basis of the operation of entering the editing state after splitting, the method can further recover to the previous sub-text splitting mode after confirming that the editing of the text data is finished; of course, the splitting may also be performed according to a newly confirmed splitting manner.
According to the technical scheme, the splitting mode of the input text data is determined, the text data is split according to the splitting mode, the animation display mode is set, the problem that the splitting mode of the text data is single in the prior art is solved, and the flexibility of splitting the text data and the text processing efficiency are improved.
Example two
Fig. 4 is a flowchart of a text processing method according to a second embodiment of the present invention, and shows a specific example of determining a text splitting manner. Specifically, referring to fig. 4, the text processing method provided in the embodiment specifically includes:
s201, displaying the entered text data in a text input box.
S202, receiving a text splitting operation, wherein the text splitting operation is used for triggering the splitting of text data.
The text splitting operation may be an operation event detected when a preset button displayed in the display interface is clicked. As shown in fig. 5, fig. 5 is a third schematic view of a display interface, a preset button 201 is displayed at the lower right of the text data 101, when it is detected that the preset button 201 is clicked, splitting of the text data is triggered after a text splitting operation is received, and the text data 101 is split to obtain a sub-text. The display position of the preset button in the display interface and the specific graphic display mode are not limited, and the preset button may be displayed at any position of the display interface in any mode, for example, displayed at any position around the text data 101 in the form of a floating button.
And S203, displaying a splitting selection button, wherein the splitting selection button is bound with a corresponding text splitting mode.
After splitting of the text data is triggered, a group of splitting selection buttons is correspondingly displayed on the display interface, where each splitting selection button is bound with a corresponding text splitting manner, as shown in fig. 6, fig. 6 is a fourth schematic view of the display interface, and after a text splitting operation is received, a group of splitting selection buttons is displayed, where an exemplary group of splitting selection buttons includes 4 buttons (a button 2021, a button 2022, a button 2023, and a button 2024), where each button corresponds to one splitting manner. Optionally, the split selection button may also be displayed in a form of a form list, and a specific display manner and a display form thereof are not limited.
S204, receiving a click operation of a splitting selection button, and determining a text splitting mode corresponding to the click operation as a text splitting mode of the text data.
Each split selection button is correspondingly bound with a text splitting mode, illustratively, the text splitting mode comprises four types of splitting modes including sequence number mark splitting, font color splitting, font thickness splitting and font level splitting, the sequence number mark splitting in the button 2021 and the splitting mode is bound, the font color splitting in the button 2022 and the splitting mode is bound, the font thickness splitting in the button 2023 and the splitting mode is bound, and the font level splitting in the button 2024 and the splitting mode is bound. And if the button 2023 is detected to be clicked, determining that the splitting mode of the text data of the current courseware page is font thickness splitting. Optionally, a corresponding annotation character may be displayed in each button, and the content of the annotation character is a text splitting manner correspondingly bound to the button.
S205, splitting the text data according to the text splitting mode to obtain at least two sub-texts.
S206, setting an animation display mode for the sub-text.
In the technical scheme provided by the embodiment, after the text splitting operation is received, the splitting selection button is displayed through the display interface, a user can click the splitting selection button according to the actual requirement of the user, wherein different splitting selection buttons correspond to a text splitting mode, so that the flexibility of text data splitting is improved, the user does not need to manually split the text data, and the text splitting efficiency is improved.
EXAMPLE III
Fig. 7 is a flowchart of a text processing method according to a third embodiment of the present invention, which shows another specific example of determining a text splitting manner. Specifically, referring to fig. 7, the text processing method provided in the embodiment specifically includes:
and S301, displaying the entered text data in the text input box.
S302, detecting text data input in a text input box, when detecting that the text data input in the text input box is finished, performing text recognition on the text data, and determining a text splitting mode corresponding to the text data according to a recognition result.
The text input box can be used for inputting and displaying text data, and when the text data is detected to be completely input, the text splitting mode corresponding to the text data is correspondingly determined.
The completion of the 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 the pages of courseware. For example, the manner of detecting whether the entry of the text data in the text input box is completed may be to determine whether to insert a new text box or a picture, a hyperlink, other objects, and the like, and if so, determine that the entry of the text data in the current text box is completed. The text data entry completion can also be determined when a preset combination key (for example, preset alt + a) is pressed, specifically, when the preset combination key is pressed, a command bound with the preset combination key is triggered, for example, a combination key binding command 00x16 of alt + a is pressed, when alt + a is pressed, a command 00x16 is generated, and when the command 00x16 is determined to be generated, the text data entry completion is determined. The method can also be used for determining that the text data entry in the text box is finished when detecting the switching of courseware pages (such as creating a new courseware page), specifically, thumbnails of a plurality of courseware pages are displayed in the operation display interface, and when detecting that one of the thumbnails is clicked, the text data entry can be correspondingly determined to be finished.
And when the text data is detected to be completely input, performing text recognition on the text data, and determining a text splitting mode corresponding to the text data according to a recognition result. For example, when the text data is identified to include a sequence number character (which may be an arabic sequence number, a roman letter sequence number, or the like), it may be determined that the corresponding text splitting manner may be a sequence number mark splitting manner, when the text data is identified to include multiple font colors, it may be determined that the corresponding text splitting manner may be a font color splitting manner, when the text data is identified to include text contents with different font weights, it may be determined that the corresponding text splitting manner may be a font weight splitting manner, and when the text data is identified to include text contents with different font levels, it may be determined that the corresponding text splitting manner may be a font level splitting manner.
Optionally, when it is detected that the text data is edited again, after the editing is completed, the corresponding text splitting manner is determined again for the text data, and the text data is split.
S303, splitting the text data according to the text splitting mode to obtain at least two sub-texts.
S304, setting an animation display mode for the sub-text.
In the technical scheme provided by the embodiment, after the text data is recorded, diversified automatic splitting can be performed according to different text data contents, the problem of low splitting efficiency caused by manual splitting of a user is avoided, and the corresponding text secondary splitting mode is automatically determined through identification of the text data, so that the flexibility of text data splitting is remarkably improved.
Example four
Fig. 8 is a flowchart of a text processing method according to a fourth embodiment of the present invention, and shows another specific example of determining a text splitting manner. Specifically, referring to fig. 8, the text processing method provided in the embodiment specifically includes:
s401, displaying the entered text data in a text input box.
S402, detecting the text data input in the text input box.
S403, when the text data in the text input box is detected to be completely input, performing text recognition on the text data, if at least two text splitting modes are obtained according to the recognition result, sequencing the at least two splitting modes according to a preset splitting priority, and determining the text splitting mode corresponding to the text data according to the sequencing result.
If the text data is determined to simultaneously correspond to multiple text splitting modes in the text recognition process, if the text data is recognized to contain serial number characters and multiple font colors, the determined text splitting modes are serial number mark splitting and font color splitting, at the moment, the two splitting modes of the serial number mark splitting and the font color splitting are sequenced according to preset splitting priority, the text splitting mode finally corresponding to the text data is determined according to a sequencing result, and optionally, the splitting mode with the highest priority can be directly determined according to the preset splitting priority to be the text splitting mode corresponding to the current text data. The different text splitting modes correspond to different splitting priorities, illustratively, the text splitting mode is taken as sequence number marking splitting, font color splitting, font thickness splitting and font level splitting, and the default set splitting priority can be the font level splitting, the font color splitting, the sequence number marking splitting and the font thickness splitting from high to low. The preset splitting priority can be adjusted according to the setting of a user.
Taking the determined text splitting mode as two modes of serial number mark splitting and font color splitting as an example, according to preset splitting priorities (the splitting priorities can be font level splitting, font color splitting, serial number mark splitting and font thickness splitting in sequence from high to low), it can be determined that the priority of font color splitting is higher than that of serial number mark splitting, and then it is determined that the text splitting mode of the text data is font color splitting.
Optionally, the text data may be split in a hybrid splitting manner. Exemplarily, as shown in fig. 9, fig. 9 is a fourth schematic diagram of a display interface, the text data 401 is split into a subfile 4011, a subfile 4012, a subfile 4013, a subfile 4014 and a subfile 4015, a font color corresponding to the subfile 4014 is red, a font color corresponding to the subfile 4015 is blue, font colors corresponding to the subfile 4011, the subfile 4012 and the subfile 4013 are black, the text data 402 is split according to a font color splitting mode to obtain three subfiles, wherein the first subfile is further split into sequence numbers to obtain three split subfiles 4011, 4012 and 4013.
S404, splitting the text data according to the text splitting mode to obtain at least two sub-texts, and setting an animation display mode for the sub-texts.
In the technical scheme provided by this embodiment, in the process of automatically splitting text data, a text splitting manner with the highest priority can be obtained according to a preset splitting priority, illustratively, different text splitting manners correspond to a corresponding number inside the system, the text splitting manner includes, for example, a serial number mark split, a font color split, a font thickness split, and a font level split, the serial number mark split corresponds to number 01, the font color split corresponds to number 02, the font thickness split corresponds to number 03, and the font level split corresponds to number 04, and the preset splitting priority may be 04, 02, 01, and 03 from high to low. Illustratively, if the determined text splitting mode is serial number mark splitting (01) and font color splitting (02), the current font splitting mode is determined to be font color splitting (02) according to the priority sequence. Therefore, the text data is split, the condition of disordered splitting results is avoided, the intelligent degree of text splitting is improved, and the text data can be effectively split to obtain the sub-text meeting the user requirements.
Optionally, performing text recognition on the text data, and determining a text splitting manner corresponding to the text data according to a recognition result may include: performing text recognition on the text data, and if at least two text splitting modes are obtained according to a recognition result, displaying splitting selection options, wherein the splitting selection options are bound with the corresponding text splitting modes; and receiving the selection operation of splitting selection options, and determining the text splitting mode bound by the splitting selection options as the text splitting mode of the text data. For example, if it is identified that the text data includes an arabic number and two or more font colors, it is determined that two text splitting manners including a serial number mark split and a font color split are available, and at this time, an option box pops up, and the option box may include two button options corresponding to the serial number mark split and the font color split, respectively, for example, the following function is used to pop up the option box:
window.open('page','newwindow','height=100,width=400,top=0,left=0,toolb ar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')
the two buttons can respectively bind corresponding text splitting events, such as:
<buttontype="submit"id="btn1">btn</button>
<buttontype="submit"id="btn2">btn</button>
when the button is clicked, the corresponding text splitting event is triggered, namely the text data is split according to the text splitting mode, so that the text processing method is perfected, and the one-key splitting can be more accurately realized according to the user requirements.
EXAMPLE five
Fig. 10 is a flowchart of a text processing method according to a fifth embodiment of the present invention, which shows an example of implementing a text splitting process. Specifically, referring to fig. 10, the text processing method provided in the embodiment specifically includes:
and S501, displaying the entered text data in the text input box.
And S502, determining a text splitting mode corresponding to the text data.
S503, when the determined text splitting mode is the mark splitting mode, identifying mark information in the text data, and splitting the text data according to the position of the mark information in the text data to obtain at least two sub texts.
The mark splitting is one of text splitting modes, and exemplary splitting can be divided into line mark splitting, serial number mark splitting and paragraph mark splitting according to the types of different mark information in the text data, wherein the line mark splitting takes the identified line mark information as a splitting basis, the serial number mark splitting takes the identified serial number mark information as a splitting basis, and the paragraph mark splitting takes the identified paragraph mark information as a splitting basis.
Specifically, when the text splitting mode is determined to be label splitting, the label information in the text data is identified, and the text data is split according to the position of the label information in the text data to obtain the sub-text. Taking a line mark splitting manner as an example, fig. 11 is a fifth schematic diagram of a display interface, where the splitting corresponding to the line mark splitting manner is based on the position of a line mark in text data, as shown in fig. 11, the text data 501 is split into three sub-texts according to line mark information (a line change symbol mark is hidden in the display interface, and a record is performed inside a computer program), which are a sub-text 5011, a sub-text 5012, and a sub-text 5013 respectively. The specific splitting method may be that when the first line marking information is detected, the text data before the line marking information is determined as a sub-text, when the second line marking information is detected, the text data between the first line marking information and the second line marking information is determined as a sub-text, and so on, and for the last line marking information, the text data after the last line marking information is determined as a sub-text.
The specific splitting modes of the sequence number marked splitting and the paragraph marked splitting can refer to the specific implementation process of the line marked splitting, and are not described herein again.
S504, setting an animation display mode for the sub-text.
In the technical scheme provided by the embodiment, the text splitting can be performed according to the mark information in the text data, the text data between the mark information and before the first mark information and after the last mark information is determined as the sub-text, the text data does not need to be split manually by a user, and the text splitting efficiency is improved.
EXAMPLE six
Fig. 12 is a flowchart of a text processing method according to a fifth embodiment of the present invention, which provides an example of implementing a text splitting process. Specifically, referring to fig. 12, the text processing method provided in the embodiment specifically includes:
s601, displaying the entered text data in the text input box.
And S602, determining a text splitting mode corresponding to the text data.
And S603, when the determined text splitting mode is font color splitting, determining the text content with continuous and consistent font colors in the text data as a sub-text.
The font color splitting mode is based on the font color, exemplarily, fig. 13 is a sixth schematic diagram of the display interface, as shown in fig. 13, where the letter x, the letter g, and the letter f represent different text contents, the font color of the text content corresponding to the letter 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, and the text data 601 is split according to the font colors to obtain the subfile 6011, the subfile 6012, and the subfile 6013.
Specifically, in the text data entry process, the computer internal program records attributes (such as font color, font size, font type, and the like) of each character (which may be a single chinese character, an english letter, a number, and the like), and determines the display color of each text character by obtaining a font color field value of each text character in the text data, in this embodiment, text content in which the font colors in the text data are continuously consistent is determined as a sub-text, for example, a field value with a font color of red may be 00xx001, a field value with a font color of blue may be 00xx002, a field value with a font color of yellow may be 00xx003, in the text data 601, a font color field value corresponding to a letter x is 00xx001, a font color field value corresponding to a letter g is 00xx002, a font color field value corresponding to a letter f is 00xx003, in a specific operation of text splitting, and determining the text content corresponding to the letter x, the letter g and the letter f as a sub-text.
And S604, setting an animation display mode for the sub-text.
According to the technical scheme, the text data can be automatically split according to the font color of the text data, in the courseware making process, a user only needs to pay attention to the specific color format of the text data, the splitting of the text data is not needed, the text splitting can be automatically realized after the text data is completely input, and the text splitting efficiency is improved.
EXAMPLE seven
Fig. 14 is a flowchart of a text processing method according to a fifth embodiment of the present invention, which provides an example of implementing a text splitting process. Specifically, referring to fig. 14, the text processing method provided in the embodiment specifically includes:
and S701, displaying the entered text data in the text input box.
And S702, determining a text splitting mode corresponding to the text data.
And S703, when the determined text splitting mode is font weight splitting, grouping the text data according to a set font weight combination mode, and determining each group as a sub-text.
Fig. 15 is a seventh schematic view of the display interface, and as shown in fig. 15, the text data 701 is exemplarily split to obtain the subfiles 7011, 7012 and 7013 according to the font thickness splitting manner, where the bold characters "top class library", "classroom activity-judgment right and wrong", "ancient poetry definition" and the respective lower fine characters are determined as a piece of sub-text.
Specifically, by obtaining a font thickness attribute value of each text character in the text data and grouping the text characters according to the thickness attribute value, as shown in fig. 15, the bold characters and the adjacent fine characters below are determined as a group, and the text data 701 can be divided into three groups of sub-texts. The program content records font thickness attributes of each text character, the attribute value corresponding to an exemplary bold character is 0xx00001, the attribute value corresponding to a fine character is 0xx00002, the bold character (the first group of detected characters with the attribute value of 0xx 00001) and the adjacent fine character (the first group of detected characters with the attribute value of 0xx 00002) are determined as one sub-text, and two sub-texts which are subsequently divided are obtained in the same way.
And S704, setting an animation display mode for the sub-text.
According to the technical scheme, the text can be split according to the font thickness of the text data, the text can be automatically split after the user makes the courseware, and the splitting result can well meet the display requirement.
Example eight
Fig. 16 is a flowchart of a text processing method according to a fifth embodiment of the present invention, which shows an example of implementing a text splitting process. Specifically, referring to fig. 16, the text processing method provided in the embodiment specifically includes:
and S801, displaying the entered text data in a text input box.
S802, determining a text splitting mode corresponding to the text data.
And S803, when the determined text splitting mode is font level splitting, grouping the text data according to the set font splitting level, and determining each group as a sub-text.
Fig. 17 is a seventh schematic diagram of the display interface, and as shown in fig. 17, a schematic diagram of splitting the text data 801 to obtain the sub-texts 8011 and 8012 according to a font-level splitting manner is exemplarily shown. The texts are newly added and optimized, the texts are a first-level title, the texts are a fine class library, the classroom activity-judgment right-wrong and the ancient poetry self-definition, and the rest of the text contents correspond to a no-title level.
Specifically, the text characters are grouped according to the title attribute value and the set font splitting level by acquiring the title attribute value of each text character in the text data. As shown in fig. 18, the font splitting level set in this embodiment is a primary level, and a primary title and corresponding contents (a secondary title content and a text content without a title level) are determined as one sub-text, so as to obtain a sub-text 8011 and a sub-text 8012. Optionally, the set font splitting level may also be a secondary level, that is, the primary title is determined as one sub-text, and the secondary title and the text content without the title level corresponding thereto are determined as one sub-text.
In one embodiment, each text character (chinese character, english, arabic numeral, line feed character, paragraph character, etc.) in the text data is stored in an array form, values of different elements in the array correspond to different attributes of the text data, taking a 3 × 3 array as an example, a first line represents a font color of the text character, such as 001 is red, 002 is blue, 003 is green, etc., a second line represents a title attribute of the text character, such as 100 is a first-level title, 010 is a second-level title, 001 is a third-level title, and 200 is a no-title level (such as text), and similarly, other attributes of the text character, such as whether it is bold, etc., are identified by a specific element in the array, and a specific array size and attribute contents of the text character represented by different array elements can be edited and set, which is not limited herein. And obtaining the title attribute value of each text character in the text data, namely obtaining the specific element of the array corresponding to each text character, so that the text character can be determined to be the title of the second level, and the text splitting of the text data according to the title level is further completed.
And S804, setting an animation display mode for the sub-text.
In the technical scheme provided by the embodiment, the text content can be split according to the title level of the text content in the text data, and the animation display effect is correspondingly set for each obtained subfile, so that the efficiency of courseware animation production is remarkably improved, and the text processing mechanism is optimized.
On the basis of the above technical solution, after the text data is split according to the text splitting manner to obtain the subfile, the method further includes: and displaying a text division box, wherein the text division box is in one-to-one correspondence with the subfolders. After the text data is split, the split result can be correspondingly displayed, namely, the mode of dividing the subfiles through the text division frame is displayed for courseware makers, and the courseware makers can correspondingly adjust the subfiles obtained through division so as to meet the requirement of personalized setting.
Example nine
Fig. 18 is a schematic structural diagram of a text processing apparatus according to a ninth embodiment of the present invention. Referring to fig. 18, the text processing apparatus includes: the system comprises a text data display module 901, a splitting mode determining module 902, a text splitting module 903 and a sub-text animation setting module 904.
The text data display module 901 is configured to display the entered text data in a text input box;
a splitting mode determining module 902, configured to determine a text splitting mode corresponding to the text data, where the text splitting mode includes a mark splitting mode and a font attribute splitting mode; the text splitting module 903 is configured to split the text data according to the text splitting manner to obtain at least two sub-texts; and a sub-text animation setting module 904, configured to set an animation display mode for the sub-text.
According to the technical scheme provided by the embodiment, the text splitting mode corresponding to the text data is determined by displaying the entered text data in the text input box, wherein the text splitting mode comprises mark splitting and font attribute splitting, the text data is split according to the text splitting mode to obtain at least two sub-texts, and the sub-texts are set in the animation display mode.
Optionally, the apparatus further comprises: an operation receiving module 905, configured to receive a text splitting operation, where the text splitting operation is used to trigger splitting of text data; the text data display module is also used for displaying a splitting selection button, and the splitting selection button is bound with a corresponding text splitting mode.
Optionally, the apparatus further includes a detecting module 906, configured to: detecting the text data input in the text input box before determining the text splitting mode corresponding to the text data;
the splitting manner determining module 902 is specifically configured to:
and when the text data in the text input box is detected to be completely entered, determining a text splitting mode corresponding to the text data.
Optionally, the splitting manner determining module 902 is specifically configured to:
and performing text recognition on the text data, and determining a text splitting mode corresponding to the text data according to a recognition result.
Optionally, the splitting manner determining module 902 is specifically configured to:
and performing text recognition on the text data, if at least two text splitting modes are obtained according to the recognition result, sequencing the at least two splitting modes according to a preset splitting priority, and determining the text splitting mode corresponding to the text data according to the sequencing result.
Optionally, the splitting manner determining module 902 is specifically configured to:
performing text recognition on the text data, and if at least two text splitting modes are obtained according to a recognition result, displaying splitting selection options, wherein the splitting selection options are bound with the corresponding text splitting modes;
the operation receiving module 905 is specifically configured to: and receiving the selection operation of splitting selection options, and determining the text splitting mode bound by the splitting selection options as the text splitting 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, and when the determined text splitting manner is mark splitting, the text splitting module 903 is specifically configured to:
and identifying marking information in the text data, and splitting the text data according to the position of the marking information in the text data to obtain a sub-text.
Optionally, the font attribute splitting includes font color splitting, and when the determined text splitting manner is font color splitting, the text splitting module 903 is specifically configured to:
and determining the text content with continuous and consistent font colors in the text data as a sub text.
Optionally, the font attribute splitting includes font thickness splitting, and when the determined text splitting manner is font thickness splitting, the text splitting module 903 is specifically configured to:
and grouping the text data according to a set font weight combination mode, and determining each group as a sub-text.
Optionally, the font attribute splitting includes font level splitting, and when the determined text splitting manner is font level splitting, the text splitting module 903 is specifically configured to:
and grouping the text data according to the set font splitting level, and determining each group as a sub-text.
The text processing device provided by the embodiment can be used for executing the text processing method provided by any of the above embodiments, and has corresponding functions and beneficial effects.
Example ten
Fig. 19 is a schematic structural diagram of a text processing apparatus according to a fourth embodiment of the present invention. The text processing apparatus includes: a processor 40, a memory 41, a display 42, an input device 43, and an output device 44. The number of the processors 40 in the text processing device may be one or more, and one processor 40 is illustrated in fig. 19 as an example. The number of the memories 41 in the text processing device may be one or more, and one memory 41 is illustrated in fig. 19 as an example. The processor 40, the memory 41, the display 42, the input device 43, and the output device 44 of the text processing apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 19. In an embodiment, the text processing device may be a computer, a mobile phone, a tablet, an interactive smart tablet, or the like.
The memory 41 is used as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the text processing apparatus according to any embodiment of the present invention (for example, the text data display module 901, the splitting manner determination module 902, the text splitting module 903, and the sub-text animation setting module 904 in the text processing apparatus). The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 41 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 41 may further include memory located remotely from processor 40, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The display screen 42 may be a touch-enabled display screen 42, which may be a capacitive screen, an electromagnetic screen, or an infrared screen. In general, the display screen 42 is used for displaying data according to instructions of the processor 40, such as displaying a connection node adding button, a connection line generated for the target element, a connection node located on the connection line, and the like, and is also used for receiving a touch operation applied to the display screen 42 and sending a corresponding signal to the processor 40 or other devices.
The input means 43 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the connected node control apparatus, and may also be a camera for acquiring images and a sound pickup apparatus for acquiring audio data. The output device 44 may include an audio device such as a speaker. 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 of the device and data processing, i.e., implements the text processing method described above, by executing software programs, instructions, and modules stored in the memory 41.
The text processing device provided by the above can be used for executing the text processing method provided by any of the above embodiments, and has corresponding functions and advantages.
EXAMPLE eleven
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a text processing method, including:
displaying the entered text data in a text entry box;
determining a text splitting mode corresponding to the text data, 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;
and setting an animation display mode for the sub-text.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present invention is not limited to the operations of the connection node control method described above, and may also perform related operations in the text processing method provided in any embodiment of the present invention, and has corresponding functions and advantages.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a robot, a personal computer, a server, or a network device) to execute the text processing method according to any embodiment of the present invention.
It should be noted that, in the text processing apparatus, the units and modules included in the text processing apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. A method of text processing, comprising:
displaying the entered text data in a text entry box;
detecting text data input in a text input box, determining a text splitting mode corresponding to the text data when the text data input in the text input box is detected to be finished, wherein the text splitting mode is automatically obtained by identifying text contents in the text data, if the text data contains serial number characters, the text splitting mode is determined to be a serial number mark splitting mode, if the text data contains text contents with different font thicknesses, the text splitting mode is determined to be a font thickness splitting mode, if the text data contains text contents with different levels, the text splitting mode is determined to be font level splitting, and if at least two text splitting modes are obtained according to an identification result, the at least two splitting modes are sequenced according to preset splitting priority levels, determining a text splitting mode corresponding to the text data according to the sorting result, wherein the text splitting mode comprises mark splitting and font attribute splitting, and the splitting priority comprises font level splitting, font color splitting, serial number mark splitting and font thickness splitting in sequence from high to low; the text splitting mode comprises a mixed splitting mode;
splitting the text data according to the text splitting mode to obtain at least two sub-texts;
and setting an animation display mode for the sub-text, and performing animation display on the sub-text according to the animation display mode.
2. The method according to claim 1, before determining a text splitting manner corresponding to the text data, further comprising:
and receiving a text splitting operation, wherein the text splitting operation is used for triggering the splitting of the text data.
3. The method of claim 2, after receiving the text splitting operation, further comprising:
displaying a splitting selection button, wherein the splitting selection button is bound with a corresponding text splitting mode;
correspondingly, determining the text splitting mode corresponding to the text data comprises:
and receiving a click operation on the splitting selection button, and determining a text splitting mode corresponding to the click operation as a text splitting mode of the text data.
4. The method of claim 1, wherein the performing text recognition on the text data and determining a text splitting manner corresponding to the text data according to a recognition result comprises:
performing text recognition on the text data, and if at least two text splitting modes are obtained according to a recognition result, displaying splitting selection options, wherein the splitting selection options are bound with the corresponding text splitting modes;
and receiving the selection operation of splitting selection options, and determining the text splitting mode bound by the splitting selection options as the text splitting mode of the text data.
5. The method according to claim 1, wherein the tag splitting includes at least one of line tag splitting, sequence number tag splitting, and paragraph tag splitting, and when the determined text splitting manner is tag splitting, the splitting the text data according to the text splitting manner to obtain sub-texts includes:
and identifying marking information in the text data, and splitting the text data according to the position of the marking information in the text data to obtain a sub-text.
6. The method according to claim 1, wherein the font attribute splitting includes font color splitting, and when the determined text splitting manner is font color splitting, the splitting the text data according to the text splitting manner to obtain sub-texts includes:
and determining the text content with continuous and consistent font colors in the text data as a sub text.
7. The method according to claim 1, wherein the font property splitting includes font thickness splitting, and when the determined text splitting manner is font thickness splitting, the splitting the text data according to the text splitting manner to obtain sub-texts includes:
and grouping the text data according to a set font weight combination mode, and determining each group as a sub-text.
8. The method according to claim 1, wherein the font attribute splitting includes font level splitting, and when the determined text splitting manner is font level splitting, the splitting the text data according to the text splitting manner to obtain sub-texts includes:
and grouping the text data according to the set font splitting level, and determining each group as a sub-text.
9. A text processing apparatus, comprising:
the text data display module is used for displaying the input text data in the text input box;
a splitting mode determining module, configured to detect text data entered in a text input box, and when it is detected that the text data entered in the text input box is completed, determine a text splitting mode corresponding to the text data, where the text splitting mode is automatically obtained by identifying text content in the text data, if the text data is identified to contain serial number characters, the text splitting mode is determined to be a serial number mark splitting mode, if the text data is identified to contain text content with different font thicknesses, the text splitting mode is determined to be a font thickness splitting mode, if the text data is identified to contain text content with different levels, the text splitting mode is determined to be a font level splitting mode, and if at least two text splitting modes are obtained according to an identification result, the at least two splitting modes are ordered according to a preset splitting priority level, determining a text splitting mode corresponding to the text data according to the sorting result, wherein the text splitting mode comprises mark splitting and font attribute splitting, and the splitting priority comprises font level splitting, font color splitting, serial number mark splitting and font thickness splitting in sequence from high to low; the text splitting mode comprises a mixed splitting mode;
the text splitting module is used for splitting the text data according to the text splitting mode to obtain at least two sub-texts;
and the sub-text animation setting module is used for setting an animation display mode for the sub-text and performing animation display on the sub-text according to the animation display mode.
10. The text processing apparatus according to claim 9, further comprising:
the operation receiving module is used for receiving a text splitting operation, and the text splitting operation is used for triggering the splitting of the text data;
the text data display module is also used for displaying a splitting selection button, and the splitting selection button is bound with a corresponding text splitting mode.
11. A text processing apparatus characterized by comprising: a memory, a display screen, and one or more processors;
the memory for storing one or more programs;
the display screen is used for displaying the text data input in the text input box;
when executed by the one or more processors, cause the one or more processors to implement the text processing method of any of claims 1-8.
12. A storage medium containing computer-executable instructions for performing the text processing method of any of claims 1-8 when executed by a computer processor.
CN201910545738.9A 2019-06-22 2019-06-22 Text processing method, device, equipment and storage medium Active CN110287465B (en)

Priority Applications (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
PCT/CN2019/121744 WO2020258717A1 (en) 2019-06-22 2019-11-28 Text processing method, apparatus and device, and storage medium

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN110287465A CN110287465A (en) 2019-09-27
CN110287465B true CN110287465B (en) 2022-04-05

Family

ID=68004639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910545738.9A Active CN110287465B (en) 2019-06-22 2019-06-22 Text processing method, device, equipment 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105047029A (en) * 2015-07-20 2015-11-11 北京大学 Courseware generating method used for automatically demonstrating geometry problem solving process
CN106484667A (en) * 2016-10-13 2017-03-08 广州视源电子科技股份有限公司 The method and device of display data
CN108920128A (en) * 2018-07-12 2018-11-30 苏州思必驰信息科技有限公司 The operating method and system of PowerPoint

Family Cites Families (6)

* 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
WO2014000251A1 (en) * 2012-06-29 2014-01-03 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
CN110287465B (en) * 2019-06-22 2022-04-05 广州视源电子科技股份有限公司 Text processing method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105047029A (en) * 2015-07-20 2015-11-11 北京大学 Courseware generating method used for automatically demonstrating geometry problem solving process
CN106484667A (en) * 2016-10-13 2017-03-08 广州视源电子科技股份有限公司 The method and device of display data
CN108920128A (en) * 2018-07-12 2018-11-30 苏州思必驰信息科技有限公司 The operating method and system of PowerPoint

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
插件给力PPT动画制作;马震安;《电脑爱好者》;20160901;第56-57页 *

Also Published As

Publication number Publication date
WO2020258717A1 (en) 2020-12-30
CN110287465A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN110287465B (en) Text processing method, device, equipment and storage medium
CN106776514B (en) Annotating method and device
US7334026B2 (en) Collaborative remote operation of computer programs
CN107426403B (en) Mobile terminal
US8930814B2 (en) Digital comic editor, method and non-transitory computer-readable medium
CN104756484A (en) Information processing device, reproduction state control method, and program
CN103384896A (en) Digital comic editing device and method therefor
CN104462039A (en) Annotation generating method and device
CN108920057B (en) Method, device, equipment and storage medium for controlling connection nodes of electronic whiteboard
CN111159975B (en) Display method and device
WO2023030122A1 (en) Information reply method and apparatus, and electronic device, readable storage medium and program product
CN111580903B (en) Real-time voting method, device, terminal equipment and storage medium
CN113934356A (en) Display operation method, device, equipment and storage medium of intelligent interactive panel
CN109814787B (en) Key information determination method, device, equipment and storage medium
CN107506033A (en) Control method, device, intelligent instructional device and the storage medium of presentation of information
CN110019862B (en) Courseware recommendation method, device, equipment and storage medium
EP3096249B1 (en) Method and apparatus for indexing and searching the colour of graphic elements
WO2023093809A1 (en) File editing processing method and apparatus, and electronic device
CN106933443B (en) Method and device for processing electronic book data and electronic book reader
CN112988005B (en) Method for automatically loading captions
US20150277747A1 (en) Touch Page Control Method and System
CN113436297A (en) Picture processing method and electronic equipment
CN102915654A (en) Digital document processing method and electronic reading device
CN113177026A (en) Live-action-screen learning note management method based on teaching video
CN111901659B (en) Information acquisition method and electronic equipment

Legal Events

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