WO2020186837A1 - Text animation control method and device, storage medium and processor - Google Patents

Text animation control method and device, storage medium and processor Download PDF

Info

Publication number
WO2020186837A1
WO2020186837A1 PCT/CN2019/124816 CN2019124816W WO2020186837A1 WO 2020186837 A1 WO2020186837 A1 WO 2020186837A1 CN 2019124816 W CN2019124816 W CN 2019124816W WO 2020186837 A1 WO2020186837 A1 WO 2020186837A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
animation
target text
target
instruction
Prior art date
Application number
PCT/CN2019/124816
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 WO2020186837A1 publication Critical patent/WO2020186837A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation

Definitions

  • the present disclosure relates to the field of text animation setting, for example, to a text animation control method and device, storage medium and processor.
  • Terminal devices such as interactive smart devices are usually installed with writing applications such as whiteboards or other writing applications.
  • writing applications such as whiteboards or other writing applications.
  • the user can write in the writing interface displayed on the touch screen of the device with a finger or an electromagnetic pen, and can also write by adding a text box Enter text in the interface.
  • the main purpose of the present disclosure is to provide a text animation control method and device, a storage medium and a processor to solve the problem that only batch settings are not flexible enough when setting text animations.
  • a text animation control method which is applied to an electronic whiteboard.
  • the method includes: determining a target text in a text set according to a selected instruction, wherein the target text is a text in the text set Part of the text; receive the animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text; play the animation corresponding to the target text, where the target text is hidden when the animation corresponding to the target text is played, and the text collection
  • the non-target text does not play animation; the target text is displayed after the animation corresponding to the target text is completed.
  • playing the animation corresponding to the target text includes: parsing the animation attribute setting instruction to obtain the animation execution interval of each target text; and playing the animation corresponding to each target text according to the animation execution interval of each target text.
  • the method before receiving the animation attribute setting instruction, further includes: receiving the input text; setting the attributes of the input text, wherein the initial attributes of the input text are the same as the attributes of the previous text by default; according to the determined position The message will display the entered text in the corresponding position.
  • the input text is received through the document manager; the attributes of the input text are set through the attribute manager.
  • the initial attributes of the input text are the same as those of the previous text by default; the input text is displayed in the position information determined by the document manager The corresponding location.
  • the cursor position is updated according to the current text layout; the selection instruction is obtained according to the updated cursor position, where the selected Instructions are used to select the target text in the text collection.
  • receiving an animation attribute setting instruction includes: receiving an animation attribute display instruction; displaying the animation attribute set to be selected in response to the animation attribute display instruction; receiving a click instruction of the target animation attribute in the animation attribute set to be selected; Click the command to determine the target animation properties.
  • a text animation control device applied to an electronic whiteboard.
  • the device includes: a determining unit for determining a target text in a text set according to a selected instruction, wherein, The target text is part of the text in the text set; the first receiving unit is used to receive animation attribute setting instructions, where the animation attribute setting instructions are used to set the animation attributes of the target text; the playback unit is used to play the corresponding Animation, where the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play animation; the first display unit is used to display the target text after the animation corresponding to the target text is played.
  • the playback unit includes: a parsing module, used to parse the animation attribute setting instructions to obtain the animation execution interval of each target text; a playback module, used to play each target text corresponding to the animation execution interval of each target text Animation.
  • the device further includes: a second receiving unit for receiving input text; a setting unit for setting attributes of the input text, wherein the initial attributes of the input text are the same as the attributes of the previous text by default;
  • the second display unit is used to display the input text in a corresponding position according to the determined position information.
  • a storage medium including a stored program, wherein the device where the storage medium is located is controlled to execute the text animation control method of the present disclosure when the program is running.
  • a processor is also provided for running a program, wherein the text animation control method of the present disclosure is executed when the program is running.
  • the embodiment of the present disclosure determines the target text in the text set according to the selected instruction, where the target text is part of the text in the text set; receives an animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text; Play the animation corresponding to the target text, where the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play the animation; the target text is displayed after the animation corresponding to the target text is played.
  • Fig. 1 is a flowchart of a text animation control method according to a first embodiment of the present disclosure
  • Fig. 2 is a flowchart of a text control according to an embodiment of the present disclosure
  • Fig. 3 is a flowchart of a text animation control method according to a second embodiment of the present disclosure.
  • Fig. 4 is a schematic diagram of a text animation control device according to an embodiment of the present disclosure.
  • the embodiment of the present disclosure provides a text animation control method, which is applied to an electronic whiteboard.
  • Fig. 1 is a flowchart of a text animation control method according to the first embodiment of the present disclosure. As shown in Fig. 1, the method includes the following steps:
  • Step S1 Determine the target text in the text set according to the selected instruction, where the target text is part of the text in the text set.
  • the above-mentioned text collection may be a collection of text information generated in a preset area by a user using a custom text control.
  • the text information can be text, numbers, punctuation, and other types of characters.
  • a text control is used to refer to a text input control in which the user can select its placement position and set various attributes of the text.
  • the target text can be selected in the text collection through a preset operation mode.
  • the target text here is the text that needs to be animated.
  • the aforementioned preset operation mode may be that the user circle selects, smears, etc. the text that needs to be animated.
  • the user can input "123456789” through a custom text control, and "123456789” is the above text collection.
  • the text animation control circle the "456", and the selected "456" is the target text in the text collection.
  • Step S2 Receive an animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text.
  • the above animation attribute setting instruction may be generated by user selection information.
  • the device may provide multiple animation types in advance, such as: text jumping, text changing color, text flashing, text twisting, and so on. After the user selects the target text through the selection instruction, the user selects the desired animation type from the multiple animation attributes provided in advance through the animation attribute setting instruction, thereby setting the animation attributes of the target text.
  • the animation attribute setting instructions can not only select multiple animation types provided in advance by the device, but also set parameters in the animation types.
  • This type of text skip is described.
  • you can set various parameters such as the height of the text skip, the interval of each text skip, and the skip duration. Let's take the type of text color change again.
  • Step S3 Play the animation corresponding to the target text, wherein the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play the animation.
  • the animation corresponding to the target text is played, but for the non-target text that is not selected, no animation is played, thereby achieving the effect of setting animations on part of the text in the custom text input control.
  • a rendering process is required, that is, an animation object for the target text needs to be rendered according to the target text and the animation attribute setting instruction. And when the animation object corresponding to the target text is played, in order to achieve a better playback effect, the original target text needs to be hidden before playback.
  • the user inputs "123456789” through a custom text control, and the user selects "456".
  • the user can set the jumping animation through the animation property setting instruction, so the jumping animation set for "456" can be played.
  • the user can continue to select "789” to set the blinking animation, so that "789” will blink according to the instruction.
  • Step S4 Display the target text after the animation corresponding to the target text is played.
  • the target text is displayed. It should be noted that when the target text is displayed, the animation object corresponding to the target text is hidden, so that the target text is clearly displayed.
  • the above text animation control method can be used as a custom text animation implementation method based on a text box.
  • Each text in the text collection of the text box is set as an independent element instead of a text box in the related technology.
  • all the text of the text set can be set individually by receiving the user’s animation attribute setting instruction, and the set target text can be played after the setting is successful.
  • the target text is hidden and only the animation is displayed.
  • the animation disappears and the target text is displayed again.
  • the foregoing embodiment of the present application determines the target text in the text set according to the selected instruction, where the target text is part of the text in the text set; receives an animation attribute setting instruction, wherein the animation attribute setting instruction is used to set the animation attribute of the target text ; Play the animation corresponding to the target text, where the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play the animation; the target text is displayed after the animation corresponding to the target text is played.
  • the above solution realizes the effect of flexibly setting the animation of the text by setting the animation of the selected text in the text collection, thereby solving the problem of not being flexible enough to set the text in batches when setting the text animation, thereby achieving flexible setting of the text
  • the effect of the animation realizes the effect of flexibly setting the animation of the text by setting the animation of the selected text in the text collection, thereby solving the problem of not being flexible enough to set the text in batches when setting the text animation, thereby achieving flexible setting of the text The effect of the animation.
  • a custom text control can be used to customize one from text input, text display, text format setting, text selection effect, text cursor display, etc. Text input controls, and then complete control of the various processes of text editing, text animation is completed on this basis. Therefore, the custom text control is explained first.
  • the custom text control is mainly composed of the following main parts:
  • Attribute Manager used to manage text and paragraph attributes.
  • Document manager used to manage document content, including segment information, paragraph position information, etc.
  • Rendering module used to render the text in the document manager into a visible object.
  • Typesetting and layout module Obtain the position information of the paragraph from the document manager, and typeset the rendering result to the correct position of the text control.
  • FIG. 2 is a flowchart of a text animation control method according to an embodiment of the present disclosure. The following describes several steps of the device executing the above text animation control method with reference to FIG. 2.
  • Step S201 According to the data of the document manager and the attribute manager, a paragraph object is rendered.
  • the above paragraph object is a text collection, and the paragraph object is formed by combining individual words.
  • Step S202 In the paragraph rendering process, the outline of the target text is obtained, and then the animation object of each target text is drawn according to the attributes.
  • the attributes in the above steps are the attributes determined according to the received animation attribute setting instruction.
  • the attribute can be determined according to the instruction, and the animation object corresponding to each character can be drawn according to the determined attribute. It should be noted that the animation object is only drawn for the selected target text.
  • Step S203 hide the original text to prepare for executing text animation.
  • Step S204 Assign animation behavior to each target text animation object, and execute text animation.
  • Step S205 After the animation is over, cover the original text, at this time, the animation object is hidden and the original text is displayed.
  • playing the animation corresponding to the target text may include: parsing the animation attribute setting instruction to obtain the animation execution interval of each target text; and playing the animation corresponding to each target text according to the animation execution interval of the target text.
  • the animation attribute setting of the target text can also include the setting of the animation display time interval corresponding to each text to achieve continuous animation display.
  • the animation execution interval of each target text can be further improved.
  • the user inputs "123456789” through a custom text control, and the user selects "456".
  • the user can set the jumping animation through the animation attribute setting command, and can set the jumping sequence and the jumping time interval of each text. Therefore, after setting the jumping animation for "456", "456" will be based on the set sequence and time interval.
  • the user can continue to select 789 to set the blinking animation. Assuming that the interval of the blinking animation set for 789 is 0 seconds, then the characters 789 will blink at the same time. Based on this solution, the corresponding animation can be set for each text, thereby increasing the user's experience of using text animation.
  • the input text before receiving the animation attribute setting instruction, the input text can be received; the attributes of the input text can be set, wherein the initial attributes of the input text are the same as the attributes of the previous text by default; the input will be input according to the determined position information The text is displayed in the corresponding position.
  • the input text can be received through the document manager; the attributes of the input text can be set through the attribute manager, wherein the initial attributes of the input text are the same as the attributes of the previous text by default;
  • the position information displays the entered text in the corresponding position.
  • Fig. 3 is a flow chart of a text control according to an embodiment of the present disclosure, which will be described in detail below in conjunction with 3. Before receiving animation properties, it is also necessary to obtain a text collection through a custom text control. This step includes:
  • Step S301 The user positions the cursor in the text control and inputs characters.
  • Step S302 After the document manager is processed, after receiving the text input, the document manager adds the text to the current paragraph. If it is deleted or new line, the document manager also manages the corresponding paragraph.
  • Step S303 After the document manager, the attribute manager starts to work.
  • the property manager is responsible for managing the properties of the entire document, such as the vertical alignment of the entire text, the horizontal alignment of each paragraph, the boldness of each text, underline, font size, font attributes, etc.
  • the format of the newly entered text is the same as the previous text by default, and the format of the newly entered paragraph is the same as the previous paragraph by default.
  • the property manager makes the corresponding property changes after the document is changed.
  • Step S304 Render the text.
  • the rendering of the text is carried out in segments.
  • the rendering module starts to work, it will get the paragraph information of the document from the document manager, that is, what text each paragraph has, and then get the paragraph attributes of the paragraph and the text attributes of the text from the attribute manager, and then Start rendering.
  • Step S305 After rendering, the rendered paragraph object can be obtained. At this time, the position information of the paragraph is obtained from the document manager, and the rendered paragraph object is laid out to the correct position according to the position information, which forms the final The visible text.
  • Step S306 After the text layout is completed, the position information in the document manager needs to be updated, the position and size of the cursor, and the selected content also needs to be updated. For example, if you select a piece of content and change the font size to a smaller size, the selected effect will also change accordingly.
  • the above scheme manages the text through the document manager, and manages the attributes of the text through the attribute manager.
  • the attribute manager defaults that the attributes of the newly entered text are the same as the previous text.
  • the document manager can determine the display position of the newly entered text and change the new The entered text is displayed in the corresponding position.
  • the cursor position can be updated according to the current text layout; the selection instruction can be obtained according to the updated cursor position, where, The selection instruction is used to select the target text in the text collection; the target text corresponding to the animation attribute setting instruction is determined according to the selection instruction.
  • the text layout needs to be updated, the cursor position is updated, and then the target text corresponding to the user's selected instruction is determined according to the updated position, and the user's instruction to animate the target text is received.
  • receiving an animation attribute setting instruction may include: receiving an animation attribute display instruction; displaying a set of animation attributes to be selected in response to the animation attribute display instruction; receiving a click instruction of a target animation attribute in the animation attribute set to be selected; Determine the target animation properties according to the click command.
  • the animation attribute display instruction may be triggered by the user triggering a preset animation setting control.
  • the set of animation properties to be selected includes a variety of animation types that allow users to select, and animation parameters that allow users to set.
  • the user can click the animation setting control.
  • the device displays the interface corresponding to the animation attribute set.
  • the interface includes the animation types that allow the user to select, and the animation parameters that the user can set in each animation type. The user selects by clicking on this interface, thereby issuing an animation attribute setting instruction to the device.
  • the user when setting the animation properties of each target text, the user can select from a list of properties. For example, right-click on the animation property setting and display multiple options for selection.
  • Animation attribute list the user can set the target animation attribute for the target text by clicking a certain attribute in the list. This attribute setting method can be convenient for users to use.
  • the embodiment of the present disclosure provides a text animation control device, which is applied to an electronic whiteboard, and the device can be used to execute the text animation control method of the embodiment of the present disclosure.
  • Fig. 4 is a schematic diagram of a text animation control device according to an embodiment of the present disclosure. As shown in Fig. 4, the device includes:
  • the determining unit 40 is configured to determine the target text in the text set according to the selected instruction, where the target text is part of the text in the text set;
  • the first receiving unit 42 is configured to receive an animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text;
  • the playing unit 44 is configured to play the animation corresponding to the target text, wherein the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play the animation;
  • the first display unit 46 is configured to display the target text after the animation corresponding to the target text is played.
  • This embodiment adopts the first receiving unit 10 for receiving an animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text in the text collection, and the target text is part or all of the text collection Text, each text in the text set is set as an independent element; the determination unit ⁇ 20 is used to determine the target text in the text set according to the selected text; the playback unit 30 is used to play the animation corresponding to the target text, where When the animation corresponding to the target text is played, the target text is hidden; the first display unit 40 is used to display the target text after the animation corresponding to the target text is played, which solves the problem that the text can only be set in batches and not flexible enough when the animation is set. Achieve the effect of flexible setting of text animation.
  • the playing unit 30 may include: a parsing module, used to parse the animation attribute setting instructions to obtain the animation execution interval of each target text; a playing module, used to play each target text corresponding to the animation execution interval of the target text Animation.
  • the device may further include: a second receiving unit, configured to receive the inputted text through the document manager before receiving the animation attribute setting instruction; a setting unit, configured to set the inputted text through the attribute manager Attributes, where the initial attributes of the input text are the same as the attributes of the previous text by default; the second display unit is used to display the input text in a corresponding position according to the position information determined by the document manager.
  • the above-mentioned device may further include: an update module, which is used to update the cursor position according to the current text layout after displaying the input text in the corresponding position according to the determined position information;
  • the updated cursor position obtains the selection instruction, where the selection instruction is used to select the target text in the text set.
  • the first receiving unit may include: a first receiving sub-module for receiving an animation attribute display instruction; a response sub-module for displaying a set of animation attributes to be selected in response to the animation attribute display instruction; and a second receiving The sub-module is used to receive the click instruction of the target animation attribute in the animation attribute set to be selected; the determining sub-module is used to determine the target animation attribute according to the click instruction.
  • the text animation control device includes a processor and a memory.
  • the above-mentioned first receiving unit, determining unit, playing unit, first display unit, etc. are all stored as program units in the memory, and the above-mentioned program units stored in the memory are executed by the processor. To realize the corresponding function.
  • the processor contains the kernel, which calls the corresponding program unit from the memory.
  • One or more kernels can be set, and text animation can be flexibly set by adjusting kernel parameters.
  • the memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one Memory chip.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash random access memory
  • the embodiment of the present disclosure provides a storage medium on which a program is stored, and when the program is executed by a processor, the text animation control method is implemented.
  • the embodiment of the present disclosure provides a processor, the processor is configured to run a program, wherein the text animation control method is executed when the program is running.
  • the embodiment of the present disclosure provides a device that includes a processor, a memory, and a program stored on the memory and capable of running on the processor.
  • the processor implements the following steps when executing the program: receiving an animation attribute setting instruction, wherein the animation attribute
  • the setting instruction is used to set the animation properties of the target text in the text collection.
  • the target text is part or all of the text in the text collection.
  • Each text in the text collection is set as an independent element; the text collection is determined according to the animation property setting instructions
  • the target text in the target text; the animation corresponding to the target text is played, where the target text is hidden when the animation corresponding to the target text is played; the target text is displayed after the animation corresponding to the target text is played.
  • the devices in this article can be servers, PCs, PADs, mobile phones, etc.
  • This application also provides a computer program product, which when executed on a data processing device, is suitable for executing a program that initializes the following method steps: receiving an animation attribute setting instruction, where the animation attribute setting instruction is used to Set the animation properties of the target text.
  • the target text is part or all of the text in the text collection. Each text in the text collection is set as an independent element; the target text in the text collection is determined according to the animation attribute setting instruction; the playback target text corresponds to In the animation, the target text is hidden when the animation corresponding to the target text is played; the target text is displayed after the animation corresponding to the target text is played.
  • the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in a computer readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM).
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • this application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure provides a text animation control method and device, a storage medium, and a processor. The method comprises: determining a target text in a text collection according to a selection instruction, wherein the target text is part of the text in the text collection; receiving an animation attribute setting instruction, wherein the animation attribute setting instruction is used for setting animation attributes of the target text; playing back the animation corresponding to the target text, wherein the target text is hidden during the playback of the animation corresponding to the target text, and no animation is played back for non-target text in the text collection; and displaying the target text after playback of the animation corresponding to the target text is completed. By means of the present disclosure, the effect of flexibly setting text animation is achieved.

Description

文本动画控制方法和装置、存储介质和处理器Text animation control method and device, storage medium and processor
本申请要求在2019年3月15日提交中国专利局、申请号为201910199904.4的中国专利申请的优先权,以上申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office with application number 201910199904.4 on March 15, 2019. The entire content of the above application is incorporated into this application by reference.
技术领域Technical field
本公开涉及文本动画设置领域,例如涉及一种文本动画控制方法和装置、存储介质和处理器。The present disclosure relates to the field of text animation setting, for example, to a text animation control method and device, storage medium and processor.
背景技术Background technique
交互智能设备等终端设备通常安装有白板等书写应用或其他书写应用,在这些应用中,用户可以通过手指或电磁笔在设备触摸屏所显示的书写界面中进行书写,还可以通过添加文本框在书写界面中输入文字。Terminal devices such as interactive smart devices are usually installed with writing applications such as whiteboards or other writing applications. In these applications, the user can write in the writing interface displayed on the touch screen of the device with a finger or an electromagnetic pen, and can also write by adding a text box Enter text in the interface.
为了增加文字显示时的趣味性,目前针对文本框中的文字设置动画有如下几个种类:1、设置整体的字号变化;2、设置整体加粗;3、设置整体颜色变化;4、设置整体变高。这些方案虽然在一定程度上增加了文字显示的趣味性,但不能对同一文本框中的文字单独设置不同的动画效果,而且可设置项相对较少,灵活性太差。In order to increase the interest of the text display, there are currently several types of animations for the text in the text box: 1. Set the overall font size change; 2. Set the overall bold; 3. Set the overall color change; 4. Set the overall Becomes high. Although these solutions increase the interest of text display to a certain extent, different animation effects cannot be set separately for the text in the same text box, and there are relatively few items that can be set and the flexibility is too poor.
针对相关技术中对文本进行动画设置时仅能批量设置不够灵活的问题,目前尚未提出有效的解决方案。Aiming at the problem of insufficient flexibility in batch settings for text animation settings in related technologies, no effective solution has yet been proposed.
发明内容Summary of the invention
本公开的主要目的在于提供一种文本动画控制方法和装置、存储介质和处理器,以解决对文本进行动画设置时仅能批量设置不够灵活的问题。The main purpose of the present disclosure is to provide a text animation control method and device, a storage medium and a processor to solve the problem that only batch settings are not flexible enough when setting text animations.
为了实现上述目的,根据本公开的一个方面,提供了一种文本动画控制方法,应用于电子白板,该方法包括:根据选中指令确定文本集合中的目标文本,其中,目标文本为文本集合中的部分文本;接收动画属性设置指令,其中,动画属性设置指令用于对目标文本的动画属性进行设置;播放目标文本对应的动画,其中,在目标文本对应的动画播放时隐藏目标文本,文本集合中的非目标文本不播放动画;在目标文本对应的动画播放完成之后显示目标文本。In order to achieve the above objective, according to one aspect of the present disclosure, a text animation control method is provided, which is applied to an electronic whiteboard. The method includes: determining a target text in a text set according to a selected instruction, wherein the target text is a text in the text set Part of the text; receive the animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text; play the animation corresponding to the target text, where the target text is hidden when the animation corresponding to the target text is played, and the text collection The non-target text does not play animation; the target text is displayed after the animation corresponding to the target text is completed.
在一实施方式中,播放目标文本对应的动画包括:解析动画属性设置指令得到每个目标文本的动画执行间隔;根据每个目标文本的动画执行间隔播放每个目标文本对应的动画。In one embodiment, playing the animation corresponding to the target text includes: parsing the animation attribute setting instruction to obtain the animation execution interval of each target text; and playing the animation corresponding to each target text according to the animation execution interval of each target text.
在一实施方式中,在接收动画属性设置指令之前,方法还包括:接收输入的文字;设置输入的文字的属性,其中,输入的文字的初始属性默认与前一文字的属性相同;根据确定的位置信息将输入的文字显示在对应的位置。通过文档管理器接收输入的文字;通过属性管理器设置输入的文字的属性,其中,输入的文字的初始属性默认与前一文字的属性相同;根据文档管理器确定的位置信息将输入的文字显示在对应的位置。In one embodiment, before receiving the animation attribute setting instruction, the method further includes: receiving the input text; setting the attributes of the input text, wherein the initial attributes of the input text are the same as the attributes of the previous text by default; according to the determined position The message will display the entered text in the corresponding position. The input text is received through the document manager; the attributes of the input text are set through the attribute manager. The initial attributes of the input text are the same as those of the previous text by default; the input text is displayed in the position information determined by the document manager The corresponding location.
在一实施方式中,在根据文档管理器确定的位置信息将输入的文字显示在对应的位置之后,根据当前的文本布局更新光标的位置;根据更新后的光标的位置获取选中指令,其中,选中指令用于对文本集合中的目标文本进行选中。In one embodiment, after displaying the input text at the corresponding position according to the position information determined by the document manager, the cursor position is updated according to the current text layout; the selection instruction is obtained according to the updated cursor position, where the selected Instructions are used to select the target text in the text collection.
在一实施方式中,接收动画属性设置指令包括:接收动画属性显示指令;响应于动画属性显示指令显示待选的动画属性集合;接收对待选的动画属性集合中的目标动画属性的点击指令;根据点击指令确定目标动画属性。In one embodiment, receiving an animation attribute setting instruction includes: receiving an animation attribute display instruction; displaying the animation attribute set to be selected in response to the animation attribute display instruction; receiving a click instruction of the target animation attribute in the animation attribute set to be selected; Click the command to determine the target animation properties.
为了实现上述目的,根据本公开的另一方面,还提供了一种文本动画控制装置,应用于电子白板,该装置包括:确定单元,用于根据选中指令确定文本集合中的目标文本,其中,目标文本为文本集合中的部分文本;第一接收单元,用于接收动画属性设置指令,其中,动画属性设置指令用于对目标文本的动画属性进行设置;播放单元,用于播放目标文本对应的动画,其中,在目标文本对应的动画播放时隐藏目标文本,文本集合中的非目标文本不播放动画;第一显示单元,用于在目标文本对应的动画播放完成之后显示目标文本。In order to achieve the above objective, according to another aspect of the present disclosure, there is also provided a text animation control device applied to an electronic whiteboard. The device includes: a determining unit for determining a target text in a text set according to a selected instruction, wherein, The target text is part of the text in the text set; the first receiving unit is used to receive animation attribute setting instructions, where the animation attribute setting instructions are used to set the animation attributes of the target text; the playback unit is used to play the corresponding Animation, where the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play animation; the first display unit is used to display the target text after the animation corresponding to the target text is played.
在一实施方式中,播放单元包括:解析模块,用于解析动画属性设置指令得到每个目标文本的动画执行间隔;播放模块,用于根据每个目标文本的动画执行间隔播放每个目标文本对应的动画。In one embodiment, the playback unit includes: a parsing module, used to parse the animation attribute setting instructions to obtain the animation execution interval of each target text; a playback module, used to play each target text corresponding to the animation execution interval of each target text Animation.
在一实施方式中,装置还包括:第二接收单元,用于接收输入的文字;设置单元,用于设置输入的文字的属性,其中,输入的文字的初始属性默认与前一文字的属性相同;第二显示单元,用于根据确定的位置信息将输入的文字显示在对应的位置。In an embodiment, the device further includes: a second receiving unit for receiving input text; a setting unit for setting attributes of the input text, wherein the initial attributes of the input text are the same as the attributes of the previous text by default; The second display unit is used to display the input text in a corresponding position according to the determined position information.
为了实现上述目的,根据本公开的另一方面,还提供了一种存储介质包括 存储的程序,其中,在程序运行时控制存储介质所在设备执行本公开的文本动画控制方法。In order to achieve the above objective, according to another aspect of the present disclosure, there is also provided a storage medium including a stored program, wherein the device where the storage medium is located is controlled to execute the text animation control method of the present disclosure when the program is running.
为了实现上述目的,根据本公开的另一方面,还提供了一种处理器用于运行程序,其中,程序运行时执行本公开的文本动画控制方法。In order to achieve the above object, according to another aspect of the present disclosure, a processor is also provided for running a program, wherein the text animation control method of the present disclosure is executed when the program is running.
本公开实施例根据选中指令确定文本集合中的目标文本,其中,目标文本为文本集合中的部分文本;接收动画属性设置指令,其中,动画属性设置指令用于对目标文本的动画属性进行设置;播放目标文本对应的动画,其中,在目标文本对应的动画播放时隐藏目标文本,文本集合中的非目标文本不播放动画;在目标文本对应的动画播放完成之后显示目标文本。上述方案通过对文字集合中选中的文字进行动画设置,实现了对文字的动画灵活进行设置的效果,从而解决了对文本进行动画设置时仅能批量设置不够灵活的问题,进而达到了灵活设置文字动画的效果。The embodiment of the present disclosure determines the target text in the text set according to the selected instruction, where the target text is part of the text in the text set; receives an animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text; Play the animation corresponding to the target text, where the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play the animation; the target text is displayed after the animation corresponding to the target text is played. The above solution realizes the effect of flexibly setting the animation of the text by setting the animation of the selected text in the text collection, thereby solving the problem of not being flexible enough to set the text in batches when setting the text animation, thereby achieving flexible setting of the text The effect of the animation.
附图说明Description of the drawings
构成本公开的一部分的附图用来提供对本公开的进一步理解,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure, and the exemplary embodiments and descriptions of the present disclosure are used to explain the present disclosure, and do not constitute an improper limitation of the present disclosure. In the attached picture:
图1是根据本公开第一实施例的文本动画控制方法的流程图;Fig. 1 is a flowchart of a text animation control method according to a first embodiment of the present disclosure;
图2是根据本公开实施例的文本控件的流程图;Fig. 2 is a flowchart of a text control according to an embodiment of the present disclosure;
图3是根据本公开第二实施例的文本动画控制方法的流程图;以及Fig. 3 is a flowchart of a text animation control method according to a second embodiment of the present disclosure; and
图4是根据本公开实施例的文本动画控制装置的示意图。Fig. 4 is a schematic diagram of a text animation control device according to an embodiment of the present disclosure.
具体实施方式detailed description
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本公开。It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other if there is no conflict. Hereinafter, the present disclosure will be described in detail with reference to the drawings and in conjunction with embodiments.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。In order to enable those skilled in the art to better understand the solution of the application, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all the embodiments.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。 应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances for the purposes of the embodiments of the present application described herein. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to the clearly listed Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.
本公开实施例提供了一种文本动画控制方法,应用于电子白板。The embodiment of the present disclosure provides a text animation control method, which is applied to an electronic whiteboard.
图1是根据本公开第一实施例的文本动画控制方法的流程图,如图1所示,该方法包括以下步骤:Fig. 1 is a flowchart of a text animation control method according to the first embodiment of the present disclosure. As shown in Fig. 1, the method includes the following steps:
步骤S1,根据选中指令确定文本集合中的目标文本,其中,目标文本为文本集合中的部分文本。Step S1: Determine the target text in the text set according to the selected instruction, where the target text is part of the text in the text set.
在一实施方式中,上述文本集合可以是用户使用自定义文本控件在预设区域中生成的文本信息的集合,文本信息可以是文字,也可以是数字、标点等各类字符,其中,自定义文本控件用于指用户能够选择其放置位置,并能够设置其中文字的各种属性的文本输入控件。In one embodiment, the above-mentioned text collection may be a collection of text information generated in a preset area by a user using a custom text control. The text information can be text, numbers, punctuation, and other types of characters. A text control is used to refer to a text input control in which the user can select its placement position and set various attributes of the text.
在上述方案中,可以通过预设的操作方式,在文本集合中选中目标文本。此处的目标文本即为需要对其设置动画的文本。上述预设的操作方式,可以是用户对需要设置动画的文本进行圈选、涂抹等。In the above solution, the target text can be selected in the text collection through a preset operation mode. The target text here is the text that needs to be animated. The aforementioned preset operation mode may be that the user circle selects, smears, etc. the text that needs to be animated.
在一种实施例中,用户可以通过自定义文本控件输入“123456789”,“123456789”即为上述文本集合。用户触发文本动画控件后,圈选其中的“456”,则被选中的“456”即为文本集合中的目标文本。In an embodiment, the user can input "123456789" through a custom text control, and "123456789" is the above text collection. After the user triggers the text animation control, circle the "456", and the selected "456" is the target text in the text collection.
步骤S2:接收动画属性设置指令,其中,动画属性设置指令用于对目标文本的动画属性进行设置。Step S2: Receive an animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text.
在一实施方式中,上述动画属性设置指令可以由用户的选择信息生成。在一种实施例中,设备可以预先提供多种动画类型,例如:文字跳跃、文字变色、文字闪烁、文字扭动等。用户在通过选中指令选中目标文本后,通过动画属性设置指令,在预先提供的多种动画属性中选择需要的动画类型,从而对目标文本的动画属性进行了设置。In one embodiment, the above animation attribute setting instruction may be generated by user selection information. In one embodiment, the device may provide multiple animation types in advance, such as: text jumping, text changing color, text flashing, text twisting, and so on. After the user selects the target text through the selection instruction, the user selects the desired animation type from the multiple animation attributes provided in advance through the animation attribute setting instruction, thereby setting the animation attributes of the target text.
需要说明的是,动画属性设置指令不仅能够选择设备预先提供的多种动画类型,还能够对动画类型中的参数进行设置。以文字跳跃这一类型进行说明,在对目标文本进行文字跳跃的设置时,可以设置文字跳跃的高度、每个文字跳 跃的间隔以及跳跃时长等多种参数。再以文字变色这一类型进行说明,在对目标文本进行文字变色的设置时,可以设置文字变色的多种颜色以及变色频率等。It should be noted that the animation attribute setting instructions can not only select multiple animation types provided in advance by the device, but also set parameters in the animation types. This type of text skip is described. When setting the text skip to the target text, you can set various parameters such as the height of the text skip, the interval of each text skip, and the skip duration. Let's take the type of text color change again. When setting the text color of the target text, you can set the multiple colors of the text color and the color change frequency.
步骤S3:播放目标文本对应的动画,其中,在目标文本对应的动画播放时隐藏目标文本,文本集合中的非目标文本不播放动画。Step S3: Play the animation corresponding to the target text, wherein the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play the animation.
在上述方案中,播放目标文本对应的动画,但对于未被选中的非目标文本,不对其播放动画,从而达到了对自定义文本输入控件中的部分文本进行动画设置的效果。In the above solution, the animation corresponding to the target text is played, but for the non-target text that is not selected, no animation is played, thereby achieving the effect of setting animations on part of the text in the custom text input control.
需要说明的是,在接收到动画属性设置指令后,需要一个渲染的过程,即需要根据目标文本和动画属性设置指令,渲染出针对于目标文本的动画对象。并且在播放目标文本对应的动画对象时,为了达到更好的播放效果,需要在播放前将原目标文本进行隐藏。It should be noted that after receiving the animation attribute setting instruction, a rendering process is required, that is, an animation object for the target text needs to be rendered according to the target text and the animation attribute setting instruction. And when the animation object corresponding to the target text is played, in order to achieve a better playback effect, the original target text needs to be hidden before playback.
在一种实施例中,仍以用户通过自定义文本控件输入“123456789”,用户选中“456”为例。用户可以通过动画属性设置指令设置跳跃动画,因此可以播放针对“456”设置的跳跃动画。在设置完“456”后,用户还可以继续选择“789”进行闪烁动画的设置,从而使得“789”根据指令进行闪烁。In an embodiment, it is still taken as an example that the user inputs "123456789" through a custom text control, and the user selects "456". The user can set the jumping animation through the animation property setting instruction, so the jumping animation set for "456" can be played. After setting "456", the user can continue to select "789" to set the blinking animation, so that "789" will blink according to the instruction.
步骤S4:在目标文本对应的动画播放完成之后显示目标文本。在上述方案中,在播放完目标文本对应的动画后,显示目标文本。需要注意的是,在显示目标文本时,隐藏目标文本对应的动画对象,从而清楚的显示目标文本。Step S4: Display the target text after the animation corresponding to the target text is played. In the above solution, after playing the animation corresponding to the target text, the target text is displayed. It should be noted that when the target text is displayed, the animation object corresponding to the target text is hidden, so that the target text is clearly displayed.
需要说明的是,上述文本动画控制方法可以作为一种基于文本框的自定义文字动画实现方法,文本框的文本集合中每个文本都被设置为独立元素,而不是相关技术中一个文本框中的所有文本作为一个整体元素,这样,通过接收用户的动画属性设置指令,可以将文本集合中的某个或某几个文本的动画属性进行单独设置,设置成功后可以播放设置好的目标文本对应的动画,以实现对文本集合中的每个文本自由设置动画属性,在动画播放时目标文本隐藏只显示动画,当动画播放完毕后动画消失目标文本重新显示。It should be noted that the above text animation control method can be used as a custom text animation implementation method based on a text box. Each text in the text collection of the text box is set as an independent element instead of a text box in the related technology. As an integral element, all the text of the text set can be set individually by receiving the user’s animation attribute setting instruction, and the set target text can be played after the setting is successful. In order to realize the free setting of animation properties for each text in the text collection, when the animation is played, the target text is hidden and only the animation is displayed. When the animation is completed, the animation disappears and the target text is displayed again.
本申请上述实施例根据选中指令确定文本集合中的目标文本,其中,目标文本为文本集合中的部分文本;接收动画属性设置指令,其中,动画属性设置指令用于对目标文本的动画属性进行设置;播放目标文本对应的动画,其中,在目标文本对应的动画播放时隐藏目标文本,文本集合中的非目标文本不播放动画;在目标文本对应的动画播放完成之后显示目标文本。上述方案通过对文 字集合中选中的文字进行动画设置,实现了对文字的动画灵活进行设置的效果,从而解决了对文本进行动画设置时仅能批量设置不够灵活的问题,进而达到了灵活设置文字动画的效果。The foregoing embodiment of the present application determines the target text in the text set according to the selected instruction, where the target text is part of the text in the text set; receives an animation attribute setting instruction, wherein the animation attribute setting instruction is used to set the animation attribute of the target text ; Play the animation corresponding to the target text, where the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play the animation; the target text is displayed after the animation corresponding to the target text is played. The above solution realizes the effect of flexibly setting the animation of the text by setting the animation of the selected text in the text collection, thereby solving the problem of not being flexible enough to set the text in batches when setting the text animation, thereby achieving flexible setting of the text The effect of the animation.
上述实施例的方案可以由智能交互设备执行,在一种实施例中,可以通过自定义文本控件,从文本输入,文本显示,文本格式设置,文本选中效果,文本光标显示等多方面自定义一个文本输入控件,进而完整的控制文本编辑的各个过程,文字动画就是在此基础上完成的。因此首先对自定义文本控件进行说明,自定义文本控件主要由如下几个主要部分组成:The solution of the above embodiment can be executed by a smart interactive device. In one embodiment, a custom text control can be used to customize one from text input, text display, text format setting, text selection effect, text cursor display, etc. Text input controls, and then complete control of the various processes of text editing, text animation is completed on this basis. Therefore, the custom text control is explained first. The custom text control is mainly composed of the following main parts:
a.属性管理器:用于管理文字和段落属性。b.文档管理器:用于管理文档内容,包括分段信息,段落位置信息等。c.渲染模块:用于将文档管理器中的文字渲染成可见的对象。d.排版布局模块:从文档管理器中获取段落的位置信息,并将渲染结果排版布局到文本控件正确的位置上。a. Attribute Manager: used to manage text and paragraph attributes. b. Document manager: used to manage document content, including segment information, paragraph position information, etc. c. Rendering module: used to render the text in the document manager into a visible object. d. Typesetting and layout module: Obtain the position information of the paragraph from the document manager, and typeset the rendering result to the correct position of the text control.
在此基础上,图2是根据本公开实施例的文本动画控制方法的流程图,下面结合图2,对设备执行上述文本动画控制方法的几个步骤进行说明:On this basis, FIG. 2 is a flowchart of a text animation control method according to an embodiment of the present disclosure. The following describes several steps of the device executing the above text animation control method with reference to FIG. 2.
步骤S201:根据文档管理器和属性管理器的数据,渲染出一个段落对象。在一实施方式中,上述段落对象即为文本集合,段落对象是由一个个文字组合而成的。Step S201: According to the data of the document manager and the attribute manager, a paragraph object is rendered. In one embodiment, the above paragraph object is a text collection, and the paragraph object is formed by combining individual words.
步骤S202:在段落渲染过程中,获取到目标文字的轮廓,再根据属性绘制出每个目标文字的动画对象。Step S202: In the paragraph rendering process, the outline of the target text is obtained, and then the animation object of each target text is drawn according to the attributes.
上述步骤中的属性是根据接收到的动画属性设置指令确定的属性。在接收动画属性设置指令后,可以根据该指令确定属性,并依据确定的属性,绘制每个字符对应的动画对象。需要注意的是,仅对选中的目标文本绘制其动画对象。The attributes in the above steps are the attributes determined according to the received animation attribute setting instruction. After receiving the animation attribute setting instruction, the attribute can be determined according to the instruction, and the animation object corresponding to each character can be drawn according to the determined attribute. It should be noted that the animation object is only drawn for the selected target text.
步骤S203:隐藏原始文字,为执行文字动画做准备。Step S203: hide the original text to prepare for executing text animation.
步骤S204:将动画行为赋予每个目标文字动画对象,执行文字动画。Step S204: Assign animation behavior to each target text animation object, and execute text animation.
步骤S205:动画结束后,覆盖在原始文字上,此时隐藏掉动画对象,显示原始文字。Step S205: After the animation is over, cover the original text, at this time, the animation object is hidden and the original text is displayed.
通过上述示例可以得知,本实施例的技术方案实现了选择部分文字设置动画的效果,这些动画除了包含常规的动画,还支持无限扩展,比如,可以对一个文本框中的部分文字设置跳跃动画,设置波纹动画等。It can be known from the above example that the technical solution of this embodiment realizes the effect of selecting some texts to set animations. These animations not only include conventional animations, but also support unlimited expansion. For example, you can set jumping animations for part of the text in a text box. , Set up ripple animation, etc.
作为一种实施方式,播放目标文本对应的动画可以包括:解析动画属性设 置指令得到每个目标文本的动画执行间隔;根据目标文本的动画执行间隔播放每个目标文本对应的动画。As an implementation manner, playing the animation corresponding to the target text may include: parsing the animation attribute setting instruction to obtain the animation execution interval of each target text; and playing the animation corresponding to each target text according to the animation execution interval of the target text.
在上述方案中,对目标文本的动画属性设置还可以包括对应于每个文字的动画显示时间间隔的设置,以实现连续的动画显示,通过对每个目标文本的动画执行间隔进行设置可以进一步提高自定义动画的灵活度,当应用于教学课件等场景下,可以学生对课堂的兴趣度,进而提高产品的用户体验。In the above solution, the animation attribute setting of the target text can also include the setting of the animation display time interval corresponding to each text to achieve continuous animation display. The animation execution interval of each target text can be further improved. The flexibility of custom animations, when applied to teaching courseware and other scenarios, can improve students' interest in the classroom, thereby improving the user experience of the product.
在一种实施例中,仍以用户通过自定义文本控件输入“123456789”,用户选中“456”为例。用户可以通过动画属性设置指令设置跳跃动画,并可以设置每个文字的跳跃顺序和跳跃的时间间隔。因此在针对“456”设置跳跃动画后,“456”根据设置的顺序和时间间隔。In an embodiment, it is still taken as an example that the user inputs "123456789" through a custom text control, and the user selects "456". The user can set the jumping animation through the animation attribute setting command, and can set the jumping sequence and the jumping time interval of each text. Therefore, after setting the jumping animation for "456", "456" will be based on the set sequence and time interval.
在设置完456后,用户可以继续选择789进行闪烁动画的设置,假设对789设置的闪烁动画的间隔是0秒,那么789这几个字符会同时闪烁。基于此方案,可以针对每个文本设置其所对应的动画,从而增加了用户使用文字动画的体验。After setting 456, the user can continue to select 789 to set the blinking animation. Assuming that the interval of the blinking animation set for 789 is 0 seconds, then the characters 789 will blink at the same time. Based on this solution, the corresponding animation can be set for each text, thereby increasing the user's experience of using text animation.
作为一种实施方式,在接收动画属性设置指令之前,可以接收输入的文字;设置输入的文字的属性,其中,输入的文字的初始属性默认与前一文字的属性相同;根据确定的位置信息将输入的文字显示在对应的位置。As an implementation manner, before receiving the animation attribute setting instruction, the input text can be received; the attributes of the input text can be set, wherein the initial attributes of the input text are the same as the attributes of the previous text by default; the input will be input according to the determined position information The text is displayed in the corresponding position.
在一种实施例中,可以通过文档管理器接收输入的文字;通过属性管理器设置输入的文字的属性,其中,输入的文字的初始属性默认与前一文字的属性相同;根据文档管理器确定的位置信息将输入的文字显示在对应的位置。In an embodiment, the input text can be received through the document manager; the attributes of the input text can be set through the attribute manager, wherein the initial attributes of the input text are the same as the attributes of the previous text by default; The position information displays the entered text in the corresponding position.
图3是根据本公开实施例的文本控件的流程图,下面结合3进行详细说明,在接收动画属性之前,还需要首先通过自定义文本控件得到文本集合,该步骤包括:Fig. 3 is a flow chart of a text control according to an embodiment of the present disclosure, which will be described in detail below in conjunction with 3. Before receiving animation properties, it is also necessary to obtain a text collection through a custom text control. This step includes:
步骤S301:用户将光标定位到文本控件中,输入字符。Step S301: The user positions the cursor in the text control and inputs characters.
步骤S302:首先经过文档管理器的处理,文档管理器接收文本输入后,将文本加入到当前段落中,如果是删除或者换行,文档管理器也做相应的段落管理。Step S302: After the document manager is processed, after receiving the text input, the document manager adds the text to the current paragraph. If it is deleted or new line, the document manager also manages the corresponding paragraph.
步骤S303:文档管理器之后,属性管理器开始工作。属性管理器负责管理整个文档的属性,比如整个文本的垂直对齐方式,各个段落的水平对齐方式,每个文字的加粗,下划线,字号,字体属性等。新输入的文字默认与前一个文 字格式相同,新输入的段落默认与前一个段落格式一致。属性管理器在文档改变后,做相应的属性改变。Step S303: After the document manager, the attribute manager starts to work. The property manager is responsible for managing the properties of the entire document, such as the vertical alignment of the entire text, the horizontal alignment of each paragraph, the boldness of each text, underline, font size, font attributes, etc. The format of the newly entered text is the same as the previous text by default, and the format of the newly entered paragraph is the same as the previous paragraph by default. The property manager makes the corresponding property changes after the document is changed.
步骤S304:渲染文字。文字的渲染是按照段进行的。渲染模块开始工作时,会从文档管理器中获取文档的段落信息,即每个段落有哪些文本,再从属性管理器中获取该段落的段落属性和,该段落中的文字的文字属性,然后开始渲染。Step S304: Render the text. The rendering of the text is carried out in segments. When the rendering module starts to work, it will get the paragraph information of the document from the document manager, that is, what text each paragraph has, and then get the paragraph attributes of the paragraph and the text attributes of the text from the attribute manager, and then Start rendering.
步骤S305:经过渲染后,就可以得到渲染后的段落对象,此时从文档管理器中获取段落的位置信息,根据位置信息,把渲染后的段落对象布局到正确的位置上,即形成了最终可见的文本。Step S305: After rendering, the rendered paragraph object can be obtained. At this time, the position information of the paragraph is obtained from the document manager, and the rendered paragraph object is laid out to the correct position according to the position information, which forms the final The visible text.
步骤S306:文本布局完毕后,还需要更新文档管理器中的位置信息,更新光标的位置和大小,同时也需要更新选中的内容。例如,选中一段内容把字号改小,此时选中的效果也要相应变化。Step S306: After the text layout is completed, the position information in the document manager needs to be updated, the position and size of the cursor, and the selected content also needs to be updated. For example, if you select a piece of content and change the font size to a smaller size, the selected effect will also change accordingly.
上述方案通过文档管理器对文字进行管理,通过属性管理器对文字属性进行管理,属性管理器默认新输入的文字的属性与前文相同,文档管理器可以确定新输入的文字的显示位置,将新输入的文字显示在对应位置上。The above scheme manages the text through the document manager, and manages the attributes of the text through the attribute manager. The attribute manager defaults that the attributes of the newly entered text are the same as the previous text. The document manager can determine the display position of the newly entered text and change the new The entered text is displayed in the corresponding position.
作为一种实施方式,在根据文档管理器确定的位置信息将输入的文字显示在对应的位置之后,可以根据当前的文本布局更新光标的位置;根据更新后的光标的位置获取选中指令,其中,选中指令用于对文本集合中的目标文本进行选中;根据选中指令确定动画属性设置指令对应的目标文本。As an implementation manner, after the input text is displayed in the corresponding position according to the position information determined by the document manager, the cursor position can be updated according to the current text layout; the selection instruction can be obtained according to the updated cursor position, where, The selection instruction is used to select the target text in the text collection; the target text corresponding to the animation attribute setting instruction is determined according to the selection instruction.
新输入文字之后,当前的文本布局发生改变,需要更新文本布局,更新光标位置,然后根据更新后的位置确定用户的选中指令对应的目标文本,接收用户对目标文本进行动画设置的指令。After the new text is input, the current text layout changes, the text layout needs to be updated, the cursor position is updated, and then the target text corresponding to the user's selected instruction is determined according to the updated position, and the user's instruction to animate the target text is received.
作为一种实施方式,接收动画属性设置指令可以包括:接收动画属性显示指令;响应于动画属性显示指令显示待选的动画属性集合;接收对待选的动画属性集合中的目标动画属性的点击指令;根据点击指令确定目标动画属性。As an implementation manner, receiving an animation attribute setting instruction may include: receiving an animation attribute display instruction; displaying a set of animation attributes to be selected in response to the animation attribute display instruction; receiving a click instruction of a target animation attribute in the animation attribute set to be selected; Determine the target animation properties according to the click command.
在一实施方式中,动画属性显示指令可以通过用户触发预设的动画设置控件而触发。待选的动画属性集合包括多种允许用户选择的动画类型,以及允许用户设置的动画参数。In one embodiment, the animation attribute display instruction may be triggered by the user triggering a preset animation setting control. The set of animation properties to be selected includes a variety of animation types that allow users to select, and animation parameters that allow users to set.
在一种实施例中,以交互智能设备为例,用户选中目标文本后,可以点击动画设置控件。设备响应动画设置控件的点击,显示动画属性集合对应的界面,该界面包括允许用户选择的动画类型,以及每种动画类型中允许用户设置的动 画参数。用户在该界面中通过点击进行选择,从而向设备发出动画属性设置指令。In an embodiment, taking an interactive smart device as an example, after the user selects the target text, the user can click the animation setting control. In response to the click of the animation setting control, the device displays the interface corresponding to the animation attribute set. The interface includes the animation types that allow the user to select, and the animation parameters that the user can set in each animation type. The user selects by clicking on this interface, thereby issuing an animation attribute setting instruction to the device.
在另一种实施例中,以其他终端为例,用户在设置每个目标文本的动画属性时,可以从属性列表中选择,例如,鼠标右键点击动画属性设置后可以显示多个可供选择的动画属性列表,用户通过点击列表中的某个属性为该目标文本设置目标动画属性,这样的属性设置方式可以方便用户使用。In another embodiment, taking other terminals as an example, when setting the animation properties of each target text, the user can select from a list of properties. For example, right-click on the animation property setting and display multiple options for selection. Animation attribute list, the user can set the target animation attribute for the target text by clicking a certain attribute in the list. This attribute setting method can be convenient for users to use.
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical sequence is shown in the flowchart, in some cases, The steps shown or described can be performed in a different order than here.
本公开实施例提供了一种文本动画控制装置,应用于电子白板,该装置可以用于执行本公开实施例的文本动画控制方法。The embodiment of the present disclosure provides a text animation control device, which is applied to an electronic whiteboard, and the device can be used to execute the text animation control method of the embodiment of the present disclosure.
图4是根据本公开实施例的文本动画控制装置的示意图,如图4所示,该装置包括:Fig. 4 is a schematic diagram of a text animation control device according to an embodiment of the present disclosure. As shown in Fig. 4, the device includes:
确定单元40,用于根据选中指令确定文本集合中的目标文本,其中,目标文本为文本集合中的部分文本;The determining unit 40 is configured to determine the target text in the text set according to the selected instruction, where the target text is part of the text in the text set;
第一接收单元42,用于接收动画属性设置指令,其中,动画属性设置指令用于对目标文本的动画属性进行设置;The first receiving unit 42 is configured to receive an animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text;
播放单元44,用于播放目标文本对应的动画,其中,在目标文本对应的动画播放时隐藏目标文本,文本集合中的非目标文本不播放动画;The playing unit 44 is configured to play the animation corresponding to the target text, wherein the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play the animation;
第一显示单元46,用于在目标文本对应的动画播放完成之后显示目标文本。\该实施例采用第一接收单元10,用于接收动画属性设置指令,其中,动画属性设置指令用于对文本集合中的目标文本的动画属性进行设置,目标文本为文本集合中的部分或全部文本,文本集合中的每个文本被设置为独立元素;确定单元\20,用于根据选中的文本确定文本集合中的目标文本;播放单元30,用于播放目标文本对应的动画,其中,在目标文本对应的动画播放时隐藏目标文本;第一显示单元40,用于在目标文本对应的动画播放完成之后显示目标文本,解决了对文本进行动画设置时仅能批量设置不够灵活的问题,进而达到了灵活设置文字动画的效果。The first display unit 46 is configured to display the target text after the animation corresponding to the target text is played. \This embodiment adopts the first receiving unit 10 for receiving an animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text in the text collection, and the target text is part or all of the text collection Text, each text in the text set is set as an independent element; the determination unit \20 is used to determine the target text in the text set according to the selected text; the playback unit 30 is used to play the animation corresponding to the target text, where When the animation corresponding to the target text is played, the target text is hidden; the first display unit 40 is used to display the target text after the animation corresponding to the target text is played, which solves the problem that the text can only be set in batches and not flexible enough when the animation is set. Achieve the effect of flexible setting of text animation.
在一实施方式中,播放单元30可以包括:解析模块,用于解析动画属性设置指令得到每个目标文本的动画执行间隔;播放模块,用于根据目标文本的 动画执行间隔播放每个目标文本对应的动画。In one embodiment, the playing unit 30 may include: a parsing module, used to parse the animation attribute setting instructions to obtain the animation execution interval of each target text; a playing module, used to play each target text corresponding to the animation execution interval of the target text Animation.
在一实施方式中,该装置还可以包括:第二接收单元,用于在接收动画属性设置指令之前,通过文档管理器接收输入的文字;设置单元,用于通过属性管理器设置输入的文字的属性,其中,输入的文字的初始属性默认与前一文字的属性相同;第二显示单元,用于根据文档管理器确定的位置信息将输入的文字显示在对应的位置。In one embodiment, the device may further include: a second receiving unit, configured to receive the inputted text through the document manager before receiving the animation attribute setting instruction; a setting unit, configured to set the inputted text through the attribute manager Attributes, where the initial attributes of the input text are the same as the attributes of the previous text by default; the second display unit is used to display the input text in a corresponding position according to the position information determined by the document manager.
在一实施方式中,上述装置还可以包括:更新模块,用于在根据确定的位置信息将输入的文字显示在对应的位置之后,根据当前的文本布局更新光标的位置;获取模块,用于根据更新后的光标的位置获取选中指令,其中,选中指令用于对文本集合中的目标文本进行选中。In one embodiment, the above-mentioned device may further include: an update module, which is used to update the cursor position according to the current text layout after displaying the input text in the corresponding position according to the determined position information; The updated cursor position obtains the selection instruction, where the selection instruction is used to select the target text in the text set.
在一实施方式中,第一接收单元可以包括:第一接收子模块,用于接收动画属性显示指令;响应子模块,用于响应于动画属性显示指令显示待选的动画属性集合;第二接收子模块,用于接收对待选的动画属性集合中的目标动画属性的点击指令;确定子模块,用于根据点击指令确定目标动画属性。In an embodiment, the first receiving unit may include: a first receiving sub-module for receiving an animation attribute display instruction; a response sub-module for displaying a set of animation attributes to be selected in response to the animation attribute display instruction; and a second receiving The sub-module is used to receive the click instruction of the target animation attribute in the animation attribute set to be selected; the determining sub-module is used to determine the target animation attribute according to the click instruction.
所述文本动画控制装置包括处理器和存储器,上述第一接收单元、确定单元、播放单元、第一显示单元等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。The text animation control device includes a processor and a memory. The above-mentioned first receiving unit, determining unit, playing unit, first display unit, etc. are all stored as program units in the memory, and the above-mentioned program units stored in the memory are executed by the processor. To realize the corresponding function.
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来灵活设置文本动画。The processor contains the kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and text animation can be flexibly set by adjusting kernel parameters.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。The memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one Memory chip.
本公开实施例提供了一种存储介质,其上存储有程序,该程序被处理器执行时实现所述文本动画控制方法。The embodiment of the present disclosure provides a storage medium on which a program is stored, and when the program is executed by a processor, the text animation control method is implemented.
本公开实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述文本动画控制方法。The embodiment of the present disclosure provides a processor, the processor is configured to run a program, wherein the text animation control method is executed when the program is running.
本公开实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现以下步骤:接收动画属性设置指令,其中,动画属性设置指令用于对文本集合中的目标文本的动画属性进行设置,目标文本为文本集合中的部分或全部文本,文本集合中的每个文 本被设置为独立元素;根据动画属性设置指令确定文本集合中的目标文本;播放目标文本对应的动画,其中,在目标文本对应的动画播放时隐藏目标文本;在目标文本对应的动画播放完成之后显示目标文本。本文中的设备可以是服务器、PC、PAD、手机等。The embodiment of the present disclosure provides a device that includes a processor, a memory, and a program stored on the memory and capable of running on the processor. The processor implements the following steps when executing the program: receiving an animation attribute setting instruction, wherein the animation attribute The setting instruction is used to set the animation properties of the target text in the text collection. The target text is part or all of the text in the text collection. Each text in the text collection is set as an independent element; the text collection is determined according to the animation property setting instructions The target text in the target text; the animation corresponding to the target text is played, where the target text is hidden when the animation corresponding to the target text is played; the target text is displayed after the animation corresponding to the target text is played. The devices in this article can be servers, PCs, PADs, mobile phones, etc.
本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序:接收动画属性设置指令,其中,动画属性设置指令用于对文本集合中的目标文本的动画属性进行设置,目标文本为文本集合中的部分或全部文本,文本集合中的每个文本被设置为独立元素;根据动画属性设置指令确定文本集合中的目标文本;播放目标文本对应的动画,其中,在目标文本对应的动画播放时隐藏目标文本;在目标文本对应的动画播放完成之后显示目标文本。This application also provides a computer program product, which when executed on a data processing device, is suitable for executing a program that initializes the following method steps: receiving an animation attribute setting instruction, where the animation attribute setting instruction is used to Set the animation properties of the target text. The target text is part or all of the text in the text collection. Each text in the text collection is set as an independent element; the target text in the text collection is determined according to the animation attribute setting instruction; the playback target text corresponds to In the animation, the target text is hidden when the animation corresponding to the target text is played; the target text is displayed after the animation corresponding to the target text is played.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and/or block diagrams of methods, equipment (systems), and computer program products according to the embodiments of this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程 或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。The memory may include non-permanent memory in a computer readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, product or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity or equipment that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
以上仅为本申请的实施例而已,并不用于限制本申请。The above are only examples of the application, and are not used to limit the application.

Claims (10)

  1. 一种文本动画控制方法,应用于电子白板,包括:A text animation control method, applied to an electronic whiteboard, including:
    根据选中指令确定文本集合中的目标文本,其中,所述目标文本为文本集合中的部分文本;Determine the target text in the text set according to the selected instruction, where the target text is part of the text in the text set;
    接收动画属性设置指令,其中,所述动画属性设置指令用于对所述目标文本的动画属性进行设置;Receiving an animation attribute setting instruction, where the animation attribute setting instruction is used to set the animation attribute of the target text;
    播放所述目标文本对应的动画,其中,在所述目标文本对应的动画播放时隐藏所述目标文本,文本集合中的非目标文本不播放动画;Playing the animation corresponding to the target text, wherein the target text is hidden when the animation corresponding to the target text is played, and the animation is not played for non-target texts in the text set;
    在所述目标文本对应的动画播放完成之后显示所述目标文本。The target text is displayed after the animation corresponding to the target text is played.
  2. 根据权利要求1所述的方法,其中,播放所述目标文本对应的动画包括:The method according to claim 1, wherein playing the animation corresponding to the target text comprises:
    解析所述动画属性设置指令得到每个目标文本的动画执行间隔;Parse the animation attribute setting instruction to obtain the animation execution interval of each target text;
    根据每个目标文本的动画执行间隔播放每个目标文本对应的动画。Play the animation corresponding to each target text according to the animation execution interval of each target text.
  3. 根据权利要求1所述的方法,在接收动画属性设置指令之前,所述方法还包括:The method according to claim 1, before receiving the animation attribute setting instruction, the method further comprises:
    接收输入的文字;Receive input text;
    设置输入的文字的属性,其中,输入的文字的初始属性默认与前一文字的属性相同;Set the attributes of the input text, where the initial attributes of the input text are the same as the attributes of the previous text by default;
    根据确定的位置信息将所述输入的文字显示在对应的位置。According to the determined position information, the input text is displayed in the corresponding position.
  4. 根据权利要求3所述的方法,其中,在根据确定的位置信息将所述输入的文字显示在对应的位置之后,所述方法还包括:The method according to claim 3, wherein, after displaying the input text in a corresponding position according to the determined position information, the method further comprises:
    根据当前的文本布局更新光标的位置;Update the cursor position according to the current text layout;
    根据更新后的光标的位置获取所述选中指令,其中,所述选中指令用于对 文本集合中的目标文本进行选中。The selection instruction is acquired according to the updated cursor position, where the selection instruction is used to select the target text in the text set.
  5. 根据权利要求1所述的方法,其中,接收动画属性设置指令包括:The method according to claim 1, wherein receiving an animation attribute setting instruction comprises:
    接收动画属性显示指令;Receive animation attribute display instructions;
    响应于所述动画属性显示指令显示待选的动画属性集合;Displaying a set of animation attributes to be selected in response to the animation attribute display instruction;
    接收对所述待选的动画属性集合中的目标动画属性的点击指令;Receiving a click instruction on the target animation attribute in the to-be-selected animation attribute set;
    根据所述点击指令确定目标动画属性。Determine the target animation attribute according to the click instruction.
  6. 一种文本动画控制装置,应用于电子白板,包括:A text animation control device applied to an electronic whiteboard, including:
    确定单元,用于根据选中指令确定文本集合中的目标文本,其中,所述目标文本为文本集合中的部分文本;The determining unit is configured to determine the target text in the text set according to the selected instruction, wherein the target text is part of the text in the text set;
    第一接收单元,用于接收动画属性设置指令,其中,所述动画属性设置指令用于对所述目标文本的动画属性进行设置;The first receiving unit is configured to receive an animation attribute setting instruction, wherein the animation attribute setting instruction is used to set the animation attribute of the target text;
    播放单元,用于播放所述目标文本对应的动画,其中,在所述目标文本对应的动画播放时隐藏所述目标文本,文本集合中的非目标文本不播放动画;A playing unit, configured to play the animation corresponding to the target text, wherein the target text is hidden when the animation corresponding to the target text is played, and the non-target text in the text set does not play the animation;
    第一显示单元,用于在所述目标文本对应的动画播放完成之后显示所述目标文本。The first display unit is configured to display the target text after the animation corresponding to the target text is played.
  7. 根据权利要求6所述的装置,其中,所述播放单元包括:The device according to claim 6, wherein the playing unit comprises:
    解析模块,用于解析所述动画属性设置指令得到每个目标文本的动画执行间隔;A parsing module for parsing the animation attribute setting instruction to obtain the animation execution interval of each target text;
    播放模块,用于根据每个目标文本的动画执行间隔播放每个目标文本对应的动画。The playing module is used to play the animation corresponding to each target text according to the animation execution interval of each target text.
  8. 根据权利要求6所述的装置,所述装置还包括:The device according to claim 6, the device further comprising:
    第二接收单元,用于接收输入的文字;The second receiving unit is used to receive the input text;
    设置单元,用于设置输入的文字的属性,其中,输入的文字的初始属性默认与前一文字的属性相同;The setting unit is used to set the attributes of the input text, where the initial attributes of the input text are the same as the attributes of the previous text by default;
    第二显示单元,用于根据确定的位置信息将所述输入的文字显示在对应的位置。The second display unit is configured to display the input text in a corresponding position according to the determined position information.
  9. 一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行权利要求1至5中任意一项所述的文本动画控制方法。A storage medium, the storage medium including a stored program, wherein the device where the storage medium is located is controlled to execute the text animation control method according to any one of claims 1 to 5 when the program is running.
  10. 一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至5中任意一项所述的文本动画控制方法。A processor configured to run a program, wherein the program executes the text animation control method according to any one of claims 1 to 5 when the program is running.
PCT/CN2019/124816 2019-03-15 2019-12-12 Text animation control method and device, storage medium and processor WO2020186837A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910199904.4 2019-03-15
CN201910199904.4A CN109976632A (en) 2019-03-15 2019-03-15 Text animation control methods and device, storage medium and processor

Publications (1)

Publication Number Publication Date
WO2020186837A1 true WO2020186837A1 (en) 2020-09-24

Family

ID=67079098

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/124816 WO2020186837A1 (en) 2019-03-15 2019-12-12 Text animation control method and device, storage medium and processor

Country Status (2)

Country Link
CN (1) CN109976632A (en)
WO (1) WO2020186837A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976632A (en) * 2019-03-15 2019-07-05 广州视源电子科技股份有限公司 Text animation control methods and device, storage medium and processor
CN111046198B (en) * 2019-11-29 2022-03-29 腾讯科技(深圳)有限公司 Information processing method, device, equipment and storage medium
CN113011130A (en) * 2021-02-20 2021-06-22 安徽文香科技有限公司 Character animation editing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170111869A (en) * 2016-03-30 2017-10-12 (주) 엔피홀딩스 Touch pannel and touch sensitive apparatus using the same and electronic white board
CN108230428A (en) * 2017-12-29 2018-06-29 掌阅科技股份有限公司 E-book rendering method, electronic equipment and storage medium based on augmented reality
CN108279964A (en) * 2018-01-19 2018-07-13 广州视源电子科技股份有限公司 The implementation method and device that text control, mask for copy editor render
CN108958861A (en) * 2018-06-14 2018-12-07 广州视源电子科技股份有限公司 Object displaying method, equipment and storage medium based on text control
CN109308345A (en) * 2017-07-26 2019-02-05 珠海金山办公软件有限公司 A kind of character displaying method, device, electronic equipment and storage medium
CN109976632A (en) * 2019-03-15 2019-07-05 广州视源电子科技股份有限公司 Text animation control methods and device, storage medium and processor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08212206A (en) * 1995-02-08 1996-08-20 Hitachi Ltd Document generation device
CN102156613A (en) * 2011-03-29 2011-08-17 汉王科技股份有限公司 Display method and device thereof for presentations
CN104636321B (en) * 2015-02-28 2018-01-16 广东欧珀移动通信有限公司 Text display method and device
CN106447751A (en) * 2016-10-09 2017-02-22 广州视睿电子科技有限公司 Character display method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170111869A (en) * 2016-03-30 2017-10-12 (주) 엔피홀딩스 Touch pannel and touch sensitive apparatus using the same and electronic white board
CN109308345A (en) * 2017-07-26 2019-02-05 珠海金山办公软件有限公司 A kind of character displaying method, device, electronic equipment and storage medium
CN108230428A (en) * 2017-12-29 2018-06-29 掌阅科技股份有限公司 E-book rendering method, electronic equipment and storage medium based on augmented reality
CN108279964A (en) * 2018-01-19 2018-07-13 广州视源电子科技股份有限公司 The implementation method and device that text control, mask for copy editor render
CN108958861A (en) * 2018-06-14 2018-12-07 广州视源电子科技股份有限公司 Object displaying method, equipment and storage medium based on text control
CN109976632A (en) * 2019-03-15 2019-07-05 广州视源电子科技股份有限公司 Text animation control methods and device, storage medium and processor

Also Published As

Publication number Publication date
CN109976632A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
US11412292B2 (en) Video processing method, video processing device, and storage medium
US20210182948A1 (en) Product browsing method and apparatus, device and storage medium
WO2020186837A1 (en) Text animation control method and device, storage medium and processor
KR101213809B1 (en) electronic document style matrix
CN109005283B (en) Method, device, terminal and storage medium for displaying notification message
CN107728905B (en) Bullet screen display method and device and storage medium
US10318629B2 (en) Adaptive content rendering for optimizing page layout
CN112114734B (en) Online document display method, device, terminal and storage medium
US20110285727A1 (en) Animation transition engine
US20230117213A1 (en) Page display method and electronic device
WO2021157595A1 (en) Content creation assistance system
KR101831802B1 (en) Method and apparatus for producing a virtual reality content for at least one sequence
CN112035195A (en) Application interface display method and device, electronic equipment and storage medium
CN111290680B (en) List display method, device, terminal and storage medium
CN106204695B (en) Editing method and device of 3D animation
CN110377220B (en) Instruction response method and device, storage medium and electronic equipment
US20140325404A1 (en) Generating Screen Data
JP6409429B2 (en) Direct video correction system and program for text, strokes and images
WO2022237083A1 (en) Information display method and apparatus, and terminal, storage medium and computer program product
KR102280805B1 (en) Device
US20180089877A1 (en) Method and apparatus for producing virtual reality content
CN114546173A (en) Electronic whiteboard, writing acceleration method and system thereof, and storage medium
US11450043B2 (en) Element association and modification
US10963141B2 (en) Smart multi-touch layout control for mobile devices
WO2024065097A1 (en) Blackboard-writing content display method, electronic device, and storage medium

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: 19920305

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: 19920305

Country of ref document: EP

Kind code of ref document: A1