CN108279964A - The implementation method and device that text control, mask for copy editor render - Google Patents
The implementation method and device that text control, mask for copy editor render Download PDFInfo
- Publication number
- CN108279964A CN108279964A CN201810053788.0A CN201810053788A CN108279964A CN 108279964 A CN108279964 A CN 108279964A CN 201810053788 A CN201810053788 A CN 201810053788A CN 108279964 A CN108279964 A CN 108279964A
- Authority
- CN
- China
- Prior art keywords
- text
- mask
- rendering
- target text
- edit box
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
- Document Processing Apparatus (AREA)
Abstract
The implementation method and device rendered the invention discloses text control, the mask for copy editor.The implementation method includes:It is triggering into after mask drafting interface, is monitoring cursor mobile target text chosen in current edit box;Determine the area information of the relatively described current edit box of each target text;Based on the area information of each target text, mask rendering is carried out in each target text.Using this method, it can simply and effectively realize and the mask of arbitrary word in current edit box is rendered, preferably improve user experience of the manuscript editing tool in copy editor and demonstration on the basis of the current edit box that self-defined structure text control is presented.
Description
Technical field
The present invention relates to computer application technology, the more particularly, to text control, mask of copy editor renders
Implementation method and device.
Background technology
The PowerPoint software (PowerPoint, PPT) of manuscript editing tool such as Microsoft, be a people work and
Commonly used office software in study, user, which is based on manuscript editing tool, can carry out manuscript editing, and can be by the content of editor
Other people are showed, in currently a popular intelligent tutoring blank, similar manuscript editing tool is also installed, it can be for instructor
To the content of courses into edlin and displaying.
Usually, when carrying out manuscript editing, the editor of word segment tends to rely on text control in manuscript editing tool,
Text control is equivalent to the feature card that text editing operations are carried out in manuscript editing tool, and in practical operation, user needs
Be equivalent to is being to carry out copy editor in copy editor's frame of support, and user usually has to edited word with text control
Carry out the demand that word mask is blocked.But it currently forms text control used by text edit box often to set with integral form
Meter, thus current word mask realization are all based on all words in entire text edit box, can not accomplish to be directed to text
Segment word setting mask in edit box is blocked, if user merely desires to shield portions word, the operation that can be carried out is to add again
An other elements are added to directly overlay on the word to be blocked of text edit box, to simulate the mask for segment word.
But when the required word blocked is more and distribution relatively disperses, the operation of mask setting is carried out based on aforesaid way
To be quite cumbersome, and will influence user experience of the manuscript editing tool in copy editor and demonstration.
Invention content
The implementation method and device rendered an embodiment of the present invention provides text control, the mask for copy editor, energy
Enough simply and effectively realize renders the mask of edited arbitrary word.
In a first aspect, an embodiment of the present invention provides a kind of text controls for copy editor, including:Text input group
Part, text control assembly and text render component;
The text input component receives the input letter that external trigger generates for the interactive interface as copy editor
Breath and operational order;
The text-processing component, the input information editor for being received according to the text input component form to be presented
Word is additionally operable to analyze the form to be presented for determining received operational order;
The text render component, for rendering the word to be presented based on given renderer property and presenting in real time;
Be additionally operable to respond each operational order and in real time by it is corresponding it is to be presented in the form of render and present.
Second aspect, an embodiment of the present invention provides the implementation methods that a kind of mask renders, including:
It is triggering into after mask drafting interface, is monitoring cursor mobile target text chosen in current edit box;
Determine the area information of each relatively current edit box of the target text, wherein the current edit box is this hair
The appearance form of the text control that bright first aspect embodiment provides on the screen;
Based on the area information of each target text, mask rendering is carried out in each target text.
The third aspect, an embodiment of the present invention provides the realization devices that a kind of mask renders, including:
Information monitors module, for triggering into after mask drafting interface, monitors cursor and is moved in current edit box
The target text chosen;
Information determination module, the area information for determining each relatively current edit box of the target text, wherein described
Current edit box is the appearance form of the text control that provides of first aspect present invention embodiment on the screen;
Mask rendering module is used for the area information based on each target text, is carried out in each target text
Mask renders.
Fourth aspect, an embodiment of the present invention provides a kind of smart machines, including:
One or more processors;
Storage device, for store first aspect present invention embodiment offer text control, be additionally operable to storage one or
Multiple programs;
The text control is executed by one or more of processors so that one or more of processors realize text
Word editor;
One or more of programs are executed by one or more of processors so that one or more of processors
Realize the implementation method that the mask provided such as second aspect of the present invention embodiment renders.
5th aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence realizes copy editor and/or realizes the mask provided such as second aspect of the present invention embodiment when the program is executed by processor
The implementation method of rendering.
In the implementation method and device that are rendered in above-mentioned text control, mask for copy editor, what mask rendered
It is embodied as:It is triggering into after mask drafting interface, is monitoring cursor mobile target text chosen in current edit box;Then
Determine the area information of the relatively current edit box of each target text;Finally according to the area information of each target text, each described
Mask rendering is carried out in target text.Above-mentioned technical proposal, the current edit box that can be presented in self-defined structure text control
On the basis of, it simply and effectively realizes and the mask of arbitrary word in current edit box is rendered, preferably improve manuscript editing
User experience of the tool in copy editor and demonstration.
Description of the drawings
Fig. 1 is a kind of structural schematic diagram for text control for copy editor that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram for the implementation method that a kind of mask provided by Embodiment 2 of the present invention renders;
Fig. 3 is the structure diagram for the realization device that a kind of mask that the embodiment of the present invention three provides renders;
Fig. 4 is a kind of hardware architecture diagram for smart machine that the embodiment of the present invention four provides.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of structural schematic diagram for text control for copy editor that the embodiment of the present invention one provides.This article
This control can realize copy editor as the feature card in manuscript editing tool.As shown in Figure 1, text control includes:
Text input component 11, text control assembly 12 and text render component 13;
Text input component 11 receives the input information that external trigger generates for the interactive interface as copy editor
And operational order;
Text-processing component 12, the input information editor for being received according to the text input component form text to be presented
Word is additionally operable to analyze the form to be presented for determining received operational order;
Text render component 13, for rendering the word to be presented based on given renderer property and presenting in real time;Also
For respond each operational order and in real time by it is corresponding it is to be presented in the form of render present.
It should be noted that the application background for the text control that the present embodiment one provides can be regarded as:It is existing into style of writing
The text control of word editor is usually a whole control, if after completing an existing text control design, it is believed that its
The type that the function that can be carried out during copy editor renders item also determines therewith, can not flexibly increase work(in follow-up use
Item can be rendered also to will be unable to increase, based on the above issues, one is present embodiments provided and embody text control, the text by different level
Control can dynamically increase required function while carrying out copy editor and render item.
Specifically, text control provided in this embodiment mainly include text input component 11, text-processing component 12 with
And 13 3 level regions of text render component, and above three component is the relationship for including layer by layer as seen from Figure 1,
In, text input component 11 is provided the outermost layer of text control by the present embodiment, is equivalent to a container, enclosed inside
Text-processing component 12 and text render component 13, thus text input component 11 be equivalent to one and uniformly entering for extraneous
Mouthful, specifically the interactive interface as copy editor, the input information to receive external trigger generation (such as can receive user to keyboard
Triggering response come obtain keyboard input character, keyboard can be soft keyboard or hardware keyboards) and operational order (as can receive
The operational order of user's triggering, the operational order are generally produced by user by touch or the click carried out by mouse or dragging
It is raw).
Meanwhile text-processing component 12 is equivalent to the middle layer of the provided text control of the present embodiment, and it is defeated to be encapsulated in text
Enter the content of component 11, and its inside encapsulates text render component 13 again, specifically, it is defeated which can obtain text in real time
Enter the input information or operational order that component 11 is received, the component is with regard to being responsible for handling the information obtained later, such as
Corresponding word to be presented is formed according to input information processing (only to form word but can't word be directly presented on screen
On), it for another example handles and determines that actually corresponding mode to be presented illustratively is actually subjected to realize operational order according to operational order
Function it is different, correspond to and determine that mode to be presented there is difference, such as carried out in the operational order that click generates to mouse
When processing, it can determine that the display location to be presented when mouse is clicked for another example refers in the operation generated to the dragging of mouse
When order is handled, can determine when mouse drag to be presented chooses effect region etc..
In addition, text render component 13 is equivalent to the innermost layer region of the provided text control of the present embodiment, need to illustrate
, practical in text render component specifically to encapsulate function rendering item needed for copy editor, each function rendering item master
It is responsible for that edited word render processing accordingly and corresponding rendering treatment effect is presented in real time to be e.g. responsible for word
The function of presentation renders item can be to the word to be presented of formation based on given renderer property (such as font color, font size
And font format etc.) carry out word rendering and present in real time, also such as, sound can be passed through by being responsible for the function rendering item that cursor is presented
It answers mouse to click corresponding operational order and cursor is subjected to rendering presentation at determining display location to be presented, for another example, bear
The function that duty chooses effect to present, which renders item, to choose effect in determining by responding the corresponding operational order of mouse drag
To be presented effect region is chosen to carry out rendering presentation by determining.
Further, text render component 13, including the rendering layer collection rendered for realizing different function that is set up in parallel
It closes;The rendering layer set includes word mask rendering layer, further includes following at least one:Rendering layer is presented in word, cursor is in
Existing rendering layer chooses effect that rendering layer is presented.
In the present embodiment, can increasing the desired various functions rendering item realized in text render component 13, it is specific
Realization is equivalent to encapsulates the corresponding function rendering layer of various functions rendering item in text render component 13, and is believed that each function
It is presentation layer arranged side by side between rendering layer.One of its goals is to realize word mask effect for text control provided in this embodiment
Presentation, as a result, in text render component 13 for realize word mask, be equivalent to need increase word mask function render
, you can think to include actually the word mask rendering layer for realizing word mask effect in text render component 13.This
Outside, can also include the rendering layer realized other functions and rendered in the text render component 13 of the present embodiment, as wash with watercolours is presented in word
Dye layer, cursor are presented rendering layer, choose effect that rendering layer is presented.
It should be noted that ensure that word mask effect always embodies=be presented on the top layer of screen, the present embodiment
The mask display priority highest of word mask rendering layer can preferably be set.
Further, text control further includes:
Text managemant component, the word to be presented for being formed to editor carry out attribute management, include described wait for be formed
The renderer property of the display format and display location of word is presented;
Rendering data component, for the word to be presented after rendering is packaged with current rendering data to be formed it is new
Rendering data, using new rendering data as the processing of text-processing component basis.
Include above-mentioned text input component 11, text control it should be noted that being removed in text control provided in this embodiment
Except these interactive components of component 12 and text render component 13 processed, text managemant component and rendering data component are further comprised.
Specifically, when carrying out copy editor based on text control provided in this embodiment, it will be treated based on text render component 13 and be in
Existing word carries out before rendering presentation, it is also necessary to carry out attribute management to the word to be presented that editor is formed, that is, need to manage true
Fixed display format, display location and affiliated editor's paragraph etc. with presentation word, these are all equivalent to word to be presented
Renderer property can be formed by text managemant component, the management based on above-mentioned text managemant component to word to be presented, text
Render component 13 can by with present word correctly editor position with selected display format correctly at it is existing on the screen.
It is understood that when carrying out the design of text managemant component, appropriate data structure can be set for it, with basis
Designed data structure realizes the management of word attribute, illustratively, when carrying out copy editor, often frequently into
Insertion, deletion and the search operation of row paragraph, thus the present embodiment preferably set data knot of the red black tree as paragraph management
Structure is a kind of data structure of ultrahigh in efficiency since the time complexity of the data structure in the worst cases is O (log n),
Fluency when therefore can ensure a large amount of text editings and render, can improve the user experience of text editing.
In addition, based on text render component 13 to word to be presented carry out present or by operational order in the form of to be presented into
Row render after, the present embodiment have also been devised rendering data component by the text data newly rendered with the rendering data of formation again
It is packaged, forms new rendering data, it is appreciated that the rendering data formed can feed back to text-processing component
12 data processing basis as text-processing, on above-mentioned data processing basis, text-processing component 12 can be again to text
The input information or operational order that this input module newly receives are handled, and e.g., can obtain new word to be presented, Yi Jixin
Cursor or choose effect etc..
The text control that the embodiment of the present invention one provides realizes text volume compared with existing used text control
The layering of component needed for volume is related to, and the design of this layer-stepping can ensure that each of text control part all artificially controls,
Function needed for text editing can dynamically be increased under the premise of not influencing text editing and render item, to enhance
The flexibility of text editing improves the user experience of text editing.
Embodiment two
Fig. 2 is the flow diagram for the implementation method that a kind of mask provided by Embodiment 2 of the present invention renders, and this method is suitable
The case where for carrying out mask Rendering operations to the word in text edit box, the realization device that this method can be rendered by mask
It executes, wherein the device can be by software and or hardware realization, and is typically integrated in the smart machine with manuscript editing tool
On.
In the present embodiment, the smart machine, which can be specifically mobile phone, tablet computer, notebook etc., has manuscript editing
The Intelligent mobile equipment of function can also be the fixed electronic equipment with manuscript editing function such as desktop computer.
It should be noted that the realization that mask renders in the present embodiment specifically still relies on text control, but the present embodiment
Interaction level based on text editing carries out method elaboration, and text control is in alternation of bed mask body in the form of text edit box
It presents.Specifically, the application background of the present embodiment can be regarded as in a new document page of manuscript editing tool, can be with
A text edit box is presented after triggering text editing, it is possible thereby to carry out copy editor and presentation in text edit box
Cursor position and choose effect etc..The present embodiment is equivalent in text edit box (the text control for having text mask rendering function
Part) in realize mask render.
As shown in Fig. 2, the implementation method that a kind of mask provided by Embodiment 2 of the present invention renders, specifically includes following behaviour
Make:
S201, it is triggering into after mask drafting interface, is monitoring cursor mobile target text chosen in current edit box
Word.
Specifically, the current edit box can be equivalent to the presentation of the current text control for carrying out copy editor on the screen
Form, wherein the text control is the text control that above-described embodiment one provides.The present embodiment is by the text in text control
Mask is rendered function and is embodied in the form of function button or shortcut key in interactive level, to be formed so that user's triggering mask renders
The operational order that mask renders.
The triggering that this step can render mask according to user function button enters mask drafting interface, then
Monitoring users, to the operation of cursor, describe from bottom angle in current edit box, can regard the text input in text control as
Component (is equivalent to light to the reception of cursor moving operation and text-processing component to the form to be presented of cursor moving operation
Mark movement actually chooses position) determination.The word that cursor movement is chosen is denoted as target text by this implementation, also is understood as waiting for
Carry out the word of mask rendering.
S202, the area information for determining the relatively described current edit box of each target text.
It is understood that due to carrying out copy editor in current edit box, it is equivalent to and is carried dependent on above-described embodiment
The text control of confession realizes copy editor, therefore, while monitoring cursor movement determines target text, also accordingly determines
The coordinate information and area information that a target text occupies relative to text control, this step are equivalent in above-mentioned steps
On the basis of directly acquired coordinate information and area information of each target text relative to current edit box, the present embodiment can be by it
Coordinate information and area information are preferably area information.
Specifically, the area information of each relatively current edit box of target text of the determination, including:
Obtain relative co-ordinate information of each target text relative to the current edit box;According to each target text
The long width values that word occupies in the current edit box determine area surface of each target text in the current edit box
Product;Each relative co-ordinate information and each region area are identified as corresponding target text and are equivalent to the current edit box
Area information.
In the present embodiment, the area information for each target text chosen when cursor moves in current edit box
It is indicated with the data structure using setting, illustratively, the parameter information for including in preset data structure can be with
Have:x;y;Width and height, wherein x expressions individually choose relatively horizontal seat of the word relative to the current edit box upper left corner
Mark;Y expressions individually choose opposite ordinate of the word relative to the current edit box upper left corner;Width expressions individually choose word
The width value of corresponding selected areas;Height expressions individually choose the length value of selected areas corresponding to word (to also correspond to
Height value).Thus, it is believed that the area information corresponding to each target text that this step is obtained is practical using above-mentioned data knot
Configuration formula indicates.
S203, the area information based on each target text carry out mask rendering in each target text.
It is described from bottom angle, the text render component that the mask rendering that this step carries out actually is equivalent to text control is complete
At mask render, specifically, the word mask rendering layer that is based primarily upon in text render component realizes the operation of this step,
Word mask rendering layer realizes that the operating process that mask renders can be described as:Word mask rendering layer gets each target text
Area information, analysis obtain the coordinate information and area information that area information includes, thereby determine that out the wash with watercolours of each target text
Region is contaminated, and selected color is drawn in rendering region.
Further, the area information based on each target text, mask is carried out in each target text
It renders, including:According to the relative co-ordinate information and region area of each target text, determines and correspond to each target text
Practical rendering region;Color covering is carried out to each practical region that renders based on selected mask rendered color, and in institute
It states and is presented in real time on current screen.
In the present embodiment, it is practical corresponding in word mask rendering layer to can be regarded as target text for the practical rendering region
Rendering region, the mask rendered color in the present embodiment can be the white of acquiescence, can also be artificial selected color, and can
With know when carry out the color of mask covering and be often presented on the top layers of other rendering effects of word, it is each to be achieved in word
Comprehensive covering of kind information.
The present embodiment advanced optimizes the operation for increasing S204 on the basis of above method step, as shown in Fig. 2,
After S203, further include:
After S204, triggering enter presentation pattern, monitor that cursor is in the position area rendered with mask on screen
When domain, the mask removed on the band of position renders.
In the present embodiment, it is believed that the operation of above-mentioned S201 to S203 specifically realizes under text edit mode, according to
Above-mentioned setting carries out the target text at mask rendering still in the form of the Mengcheng that color covers after entering presentation pattern
It presents, but under the manuscript demo mode, if user is clicked by cursor on some position for having color covering,
Operation based on this step can listen to triggering of the user by cursor to the arbitrary word with mask rendering effect, and root
It can determine that user specifically triggers the band of position of which target text according to the trigger position of cursor on the screen, thus this step
Suddenly color on the band of position corresponding to the target text can be removed to cover, to which the target text under making color cover can be with
It presents in real time.Wherein, this step carries out manuscript with specific reference to user to the triggering of demo function button or demo function shortcut key
Demo mode.
The implementation method that a kind of mask provided by Embodiment 2 of the present invention renders is being triggered into after mask drafting interface,
Monitor cursor mobile target text chosen in current edit box;Then the area of each relatively current edit box of target text is determined
Domain information;Finally according to the area information of each target text, mask rendering is carried out in each target text.Above-mentioned technical side
Case can simply and effectively be realized to working as pre-editing on the basis of the current edit box that self-defined structure text control is presented
The mask of arbitrary word renders in frame, preferably improves user experience of the manuscript editing tool in copy editor and demonstration.
Embodiment three
Fig. 3 is the structure diagram for the realization device that a kind of mask that the embodiment of the present invention three provides renders, which is applicable in
In carry out mask Rendering operations to the word in text edit box the case where, wherein the device can be real by software and/or hardware
It is existing, and be typically integrated on the smart machine with manuscript editing tool.As shown in figure 3, the device includes:Information monitors module
31, information determination module 32 and mask rendering module.
Wherein, information monitors module 31, for triggering into after mask drafting interface, monitors cursor in current edit box
The target text that middle movement is chosen;
Information determination module 32, the area information for determining each relatively current edit box of the target text, wherein institute
It is the appearance form of the text control that provides of the embodiment of the present invention one on the screen to state current edit box;
Mask rendering module 33 is used for the area information based on each target text, enterprising in each target text
Row mask renders.
In the present embodiment, which monitors module 31 by information first and is triggering into after mask drafting interface, prison
Listen cursor mobile target text chosen in current edit box;Then each target text is determined by information determination module 32
The area information of the relatively current edit box of word;Finally by region letter of the mask rendering module 33 based on each target text
Breath carries out mask rendering in each target text.
The embodiment of the present invention three provide a kind of mask render realization device, can be in self-defined structure text control
On the basis of existing current edit box, simply and effectively realizes and the mask of arbitrary word in current edit box is rendered, preferably
Improve user experience of the manuscript editing tool in copy editor and demonstration.
Further, information determination module 31 are specifically used for:
Obtain relative co-ordinate information of each target text relative to the current edit box;According to each target text
The long width values that word occupies in the current edit box determine area surface of each target text in the current edit box
Product;Each relative co-ordinate information and each region area are identified as corresponding target text and are equivalent to the current edit box
Area information.
Further, mask rendering module 32, is specifically used for:
According to the relative co-ordinate information and region area of each target text, determine corresponding to each target text
It is practical to render region;Color covering is carried out to each practical region that renders based on selected mask rendered color, and described
It is presented in real time on current screen.
Further, which further includes:
Mask remove module 34 monitors that cursor is in have on screen and covers for triggering into after presentation pattern
When the band of position that layer renders, the mask removed on the band of position renders.
Example IV
Fig. 4 is a kind of hardware architecture diagram for smart machine that the embodiment of the present invention four provides, as shown in figure 4, this hair
The smart machine that bright example IV provides, including:Processor 41 and storage device 42.Processor in the smart machine can be
One or more, in Fig. 4 by taking a processor 41 as an example, processor 41 and storage device 42 in the smart machine also by
Bus or other modes connect, in Fig. 4 for being connected by bus.
Storage device 42 in the smart machine is used as a kind of computer readable storage medium, can be used for storing one or more
A program, described program can be software program (such as above-described embodiment provide text control), computer executable program with
And module, if the corresponding program instruction/module of implementation method that mask renders in the embodiment of the present invention is (for example, attached shown in Fig. 3
Module in the realization device that mask renders, including:Information monitors module 31, information determination module 32 and mask and renders mould
Block).Processor 41 is by running the text control provided such as above-described embodiment of storage in the storage device, to realize word
Editor;Meanwhile processor 41 is stored in software program, instruction and module in storage device 42 by operation, to execute
The implementation method that mask renders in above method embodiment is realized in the various function application of smart machine and data processing.
Storage device 42 may include storing program area and storage data field, wherein storing program area can storage program area,
Application program needed at least one function;Storage data field can be stored uses created data etc. (as above according to equipment
State mask color and the area information etc. in embodiment).In addition, storage device 42 may include high-speed random access memory,
Can also include nonvolatile memory, for example, at least a disk memory, flush memory device or other nonvolatile solid states
Memory device.In some instances, storage device 42 can further comprise the memory remotely located relative to processor 41, this
A little remote memories can pass through network connection to equipment.The example of above-mentioned network includes but not limited to internet, enterprises
Net, LAN, mobile radio communication and combinations thereof.
Also, when one or more included program of above-mentioned smart machine is held by one or more of processors 41
When row, program proceeds as follows:
It is triggering into after mask drafting interface, is monitoring cursor mobile target text chosen in current edit box,
In, the appearance form of text control that the current edit box is provided by the embodiment of the present invention one on the screen;Determine each institute
State the area information of the relatively described current edit box of target text;Based on the area information of each target text, each described
Mask rendering is carried out in target text.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium, it is stored thereon with computer program, it should
Program can be text control, and when text control is executed by processor, editor and the presentation of word may be implemented;The program is also
The application program that can be the implementation method that two provided mask of embodiment renders can when the application program is executed by processor
To realize implementation method that mask renders, this method includes:It is triggering into after mask drafting interface, is monitoring cursor and compiled currently
Collect the mobile target text chosen in frame, wherein the text control that the current edit box is provided by the embodiment of the present invention one
Appearance form on the screen;Determine the area information of the relatively described current edit box of each target text;Based on each described
The area information of target text carries out mask rendering in each target text.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases
Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art
Part can be expressed in the form of software products, which can be stored in computer readable storage medium
In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes the method described in each embodiment of the present invention.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of text control for copy editor, which is characterized in that including:Text input component, text control assembly and
Text render component;
The text input component, for interactive interface as copy editor, receive external trigger generation input information and
Operational order;
The text-processing component, the input information editor for being received according to the text input component form text to be presented
Word is additionally operable to analyze the form to be presented for determining received operational order;
The text render component, for rendering the word to be presented based on given renderer property and presenting in real time;Also use
In respond each operational order and in real time by it is corresponding it is to be presented in the form of render presentation.
2. text control according to claim 1, which is characterized in that the text render component, including be set up in parallel
The rendering layer set rendered for realizing different function;
The rendering layer set includes word mask rendering layer, further includes following at least one:Rendering layer is presented in word, cursor is in
Existing rendering layer chooses effect that rendering layer is presented.
3. text control according to claim 1, which is characterized in that further include:
Text managemant component, the word to be presented for being formed to editor carry out attribute management, include described to be presented to be formed
The display format of word and the renderer property of display location;
Rendering data component, for the word to be presented after rendering to be packaged to form new rendering with current rendering data
Data, using new rendering data as the processing of text-processing component basis.
4. the implementation method that a kind of mask renders, which is characterized in that including:
It is triggering into after mask drafting interface, is monitoring cursor mobile target text chosen in current edit box, wherein institute
It is the appearance form of any text controls of claim 1-3 on the screen to state current edit box;
Determine the area information of the relatively described current edit box of each target text;
Based on the area information of each target text, mask rendering is carried out in each target text.
5. according to the method described in claim 4, it is characterized in that, each relatively current edit box of target text of the determination
Area information, including:
Obtain relative co-ordinate information of each target text relative to the current edit box;
According to the long width values that each target text occupies in the current edit box, determine each target text described
Region area in current edit box;
It each relative co-ordinate information and each region area is identified as corresponding target text is equivalent to described to work as pre-editing
The area information of frame.
6. according to the method described in claim 5, it is characterized in that, the area information based on each target text,
Mask rendering is carried out in each target text, including:
According to the relative co-ordinate information and region area of each target text, the reality corresponding to each target text is determined
Render region;
Color covering is carried out to each practical region that renders based on selected mask rendered color, and on the current screen
It presents in real time.
7. according to the method described in claim 4, it is characterized in that, further including:
After triggering enters presentation pattern, when monitoring that cursor is in the band of position with mask rendering on screen, remove
Mask on the band of position renders.
8. the realization device that a kind of mask renders, which is characterized in that including:
Information monitors module, for triggering into after mask drafting interface, monitors cursor movement in current edit box and chooses
Target text;
Information determination module, the area information for determining each relatively current edit box of the target text, wherein described current
Edit box is the appearance form of any text controls of claim 1-3 on the screen;
Mask rendering module is used for the area information based on each target text, mask is carried out in each target text
It renders.
9. a kind of smart machine, which is characterized in that including:
One or more processors;
Storage device is additionally operable to storage claim 1-3 any one of them text controls, is additionally operable to store one or more journeys
Sequence;
The text control is executed by one or more of processors so that one or more of processors realize that word is compiled
Volume;
One or more of programs are executed by one or more of processors so that one or more of processors are realized
The implementation method that mask as described in any one of claim 4-7 renders.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Copy editor is realized when execution and/or realizes the implementation method that the mask as described in any one of claim 4-7 renders.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810053788.0A CN108279964B (en) | 2018-01-19 | 2018-01-19 | Method and device for realizing covering layer rendering, intelligent equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810053788.0A CN108279964B (en) | 2018-01-19 | 2018-01-19 | Method and device for realizing covering layer rendering, intelligent equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108279964A true CN108279964A (en) | 2018-07-13 |
CN108279964B CN108279964B (en) | 2021-09-10 |
Family
ID=62804184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810053788.0A Active CN108279964B (en) | 2018-01-19 | 2018-01-19 | Method and device for realizing covering layer rendering, intelligent equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108279964B (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108958876A (en) * | 2018-07-23 | 2018-12-07 | 郑州云海信息技术有限公司 | The display methods and device of browser page |
CN109145272A (en) * | 2018-07-27 | 2019-01-04 | 广州视源电子科技股份有限公司 | Text rendering and layout method, device, equipment and storage medium |
CN109375972A (en) * | 2018-09-17 | 2019-02-22 | 广州视源电子科技股份有限公司 | Method, apparatus, computer equipment and the storage medium of multielement layout |
CN109657220A (en) * | 2018-12-11 | 2019-04-19 | 万兴科技股份有限公司 | The online editing method, apparatus and electronic equipment of PDF document |
CN111241643A (en) * | 2020-02-11 | 2020-06-05 | 广东三维家信息科技有限公司 | Method and device for machining polygonal cabinet and electronic equipment |
WO2020186837A1 (en) * | 2019-03-15 | 2020-09-24 | 广州视源电子科技股份有限公司 | Text animation control method and device, storage medium and processor |
CN111723316A (en) * | 2019-03-22 | 2020-09-29 | 阿里巴巴集团控股有限公司 | Character string rendering method and device, terminal equipment and computer storage medium |
CN111782311A (en) * | 2020-05-11 | 2020-10-16 | 完美世界(北京)软件科技发展有限公司 | Rendering method, device, equipment and readable medium |
CN111857491A (en) * | 2020-08-06 | 2020-10-30 | 泰山信息科技有限公司 | Method, equipment and storage medium for implementing filter for selecting content of word processing software |
CN112579050A (en) * | 2019-09-27 | 2021-03-30 | 罗克韦尔自动化技术公司 | Task-based configuration rendering context |
CN112862945A (en) * | 2019-11-27 | 2021-05-28 | 北京沃东天骏信息技术有限公司 | Record generation method and device |
CN113535046A (en) * | 2021-07-23 | 2021-10-22 | 北京光启元数字科技有限公司 | Text component editing method, device, equipment and readable medium |
CN113705156A (en) * | 2021-08-30 | 2021-11-26 | 上海哔哩哔哩科技有限公司 | Character processing method and device |
WO2023045923A1 (en) * | 2021-09-24 | 2023-03-30 | 维沃移动通信有限公司 | Text editing method and apparatus, and electronic device |
CN116302257A (en) * | 2023-02-28 | 2023-06-23 | 南京索图科技有限公司 | Method for realizing text editing box supporting drop-down selection of multiple groups of words |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1285337A2 (en) * | 1999-11-02 | 2003-02-26 | Canal+ Technologies | Displaying graphical objects |
US20060036946A1 (en) * | 2004-08-16 | 2006-02-16 | Microsoft Corporation | Floating command object |
CN102819325A (en) * | 2012-07-21 | 2012-12-12 | 上海量明科技发展有限公司 | Input method and system for obtaining a plurality of character presenting effects |
CN104050155A (en) * | 2014-07-01 | 2014-09-17 | 西安诺瓦电子科技有限公司 | Text editing device and method |
CN104111787A (en) * | 2013-04-18 | 2014-10-22 | 三星电子(中国)研发中心 | Method and device for realizing text editing on touch screen interface |
CN104142911A (en) * | 2013-05-08 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Text information inputting method and device |
WO2014187202A1 (en) * | 2013-12-18 | 2014-11-27 | 中兴通讯股份有限公司 | Method, device, terminal, and computer storage medium for implementing webpage layout |
CN104636321A (en) * | 2015-02-28 | 2015-05-20 | 广东欧珀移动通信有限公司 | Text display method and text display device |
CN105760153A (en) * | 2016-01-27 | 2016-07-13 | 努比亚技术有限公司 | Text extracting device and method |
CN106911833A (en) * | 2015-12-21 | 2017-06-30 | 北京奇虎科技有限公司 | A kind of data processing method and device |
-
2018
- 2018-01-19 CN CN201810053788.0A patent/CN108279964B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1285337A2 (en) * | 1999-11-02 | 2003-02-26 | Canal+ Technologies | Displaying graphical objects |
US20060036946A1 (en) * | 2004-08-16 | 2006-02-16 | Microsoft Corporation | Floating command object |
CN102819325A (en) * | 2012-07-21 | 2012-12-12 | 上海量明科技发展有限公司 | Input method and system for obtaining a plurality of character presenting effects |
CN104111787A (en) * | 2013-04-18 | 2014-10-22 | 三星电子(中国)研发中心 | Method and device for realizing text editing on touch screen interface |
CN104142911A (en) * | 2013-05-08 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Text information inputting method and device |
WO2014187202A1 (en) * | 2013-12-18 | 2014-11-27 | 中兴通讯股份有限公司 | Method, device, terminal, and computer storage medium for implementing webpage layout |
CN104050155A (en) * | 2014-07-01 | 2014-09-17 | 西安诺瓦电子科技有限公司 | Text editing device and method |
CN104636321A (en) * | 2015-02-28 | 2015-05-20 | 广东欧珀移动通信有限公司 | Text display method and text display device |
CN106911833A (en) * | 2015-12-21 | 2017-06-30 | 北京奇虎科技有限公司 | A kind of data processing method and device |
CN105760153A (en) * | 2016-01-27 | 2016-07-13 | 努比亚技术有限公司 | Text extracting device and method |
Non-Patent Citations (1)
Title |
---|
RUI70854: "如何用AE创建文字蒙版(遮罩)", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/59703552D9F4AE8FC107404D.HTML》 * |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108958876A (en) * | 2018-07-23 | 2018-12-07 | 郑州云海信息技术有限公司 | The display methods and device of browser page |
CN109145272A (en) * | 2018-07-27 | 2019-01-04 | 广州视源电子科技股份有限公司 | Text rendering and layout method, device, equipment and storage medium |
CN109145272B (en) * | 2018-07-27 | 2022-09-16 | 广州视源电子科技股份有限公司 | Text rendering and layout method, device, equipment and storage medium |
CN109375972A (en) * | 2018-09-17 | 2019-02-22 | 广州视源电子科技股份有限公司 | Method, apparatus, computer equipment and the storage medium of multielement layout |
CN109657220A (en) * | 2018-12-11 | 2019-04-19 | 万兴科技股份有限公司 | The online editing method, apparatus and electronic equipment of PDF document |
WO2020186837A1 (en) * | 2019-03-15 | 2020-09-24 | 广州视源电子科技股份有限公司 | Text animation control method and device, storage medium and processor |
CN111723316B (en) * | 2019-03-22 | 2024-06-04 | 阿里巴巴集团控股有限公司 | Character string rendering method and device, terminal equipment and computer storage medium |
CN111723316A (en) * | 2019-03-22 | 2020-09-29 | 阿里巴巴集团控股有限公司 | Character string rendering method and device, terminal equipment and computer storage medium |
CN112579050B (en) * | 2019-09-27 | 2024-01-30 | 罗克韦尔自动化技术公司 | Industrial application development system, industrial automation project development method and medium |
CN112579050A (en) * | 2019-09-27 | 2021-03-30 | 罗克韦尔自动化技术公司 | Task-based configuration rendering context |
CN112862945A (en) * | 2019-11-27 | 2021-05-28 | 北京沃东天骏信息技术有限公司 | Record generation method and device |
CN111241643B (en) * | 2020-02-11 | 2023-05-09 | 广东三维家信息科技有限公司 | Processing method and device of polygonal cabinet body and electronic equipment |
CN111241643A (en) * | 2020-02-11 | 2020-06-05 | 广东三维家信息科技有限公司 | Method and device for machining polygonal cabinet and electronic equipment |
CN111782311A (en) * | 2020-05-11 | 2020-10-16 | 完美世界(北京)软件科技发展有限公司 | Rendering method, device, equipment and readable medium |
CN111857491B (en) * | 2020-08-06 | 2022-01-11 | 泰山信息科技有限公司 | Method, equipment and storage medium for implementing filter for selecting content of word processing software |
CN111857491A (en) * | 2020-08-06 | 2020-10-30 | 泰山信息科技有限公司 | Method, equipment and storage medium for implementing filter for selecting content of word processing software |
CN113535046A (en) * | 2021-07-23 | 2021-10-22 | 北京光启元数字科技有限公司 | Text component editing method, device, equipment and readable medium |
CN113535046B (en) * | 2021-07-23 | 2024-06-18 | 腾讯云计算(北京)有限责任公司 | Text component editing method, device, equipment and readable medium |
CN113705156A (en) * | 2021-08-30 | 2021-11-26 | 上海哔哩哔哩科技有限公司 | Character processing method and device |
WO2023045923A1 (en) * | 2021-09-24 | 2023-03-30 | 维沃移动通信有限公司 | Text editing method and apparatus, and electronic device |
CN116302257A (en) * | 2023-02-28 | 2023-06-23 | 南京索图科技有限公司 | Method for realizing text editing box supporting drop-down selection of multiple groups of words |
CN116302257B (en) * | 2023-02-28 | 2024-04-30 | 南京索图科技有限公司 | Method for realizing text editing box supporting drop-down selection of multiple groups of words |
Also Published As
Publication number | Publication date |
---|---|
CN108279964B (en) | 2021-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108279964A (en) | The implementation method and device that text control, mask for copy editor render | |
US8751945B1 (en) | Environment for responsive graphical designs | |
US7320109B1 (en) | Dynamic user interface | |
US10592211B2 (en) | Generation of application behaviors | |
US11068642B2 (en) | Multi-view masters for graphical designs | |
US7928991B2 (en) | Color scheme-compatible color selection with hue preservation | |
US9946806B2 (en) | Exporting responsive designs from a graphical design tool | |
CN107992304A (en) | A kind of method and apparatus for generating display interface | |
CN111881662A (en) | Form generation method, device, processing equipment and storage medium | |
CN113655999B (en) | Page control rendering method, device, equipment and storage medium | |
DE112011103173T5 (en) | Transitional view on a portable electronic device | |
CN104915186B (en) | A kind of method and apparatus making the page | |
CN111857717A (en) | UI editing method, device, equipment and computer readable storage medium | |
CN107315595A (en) | A kind of method of desktop layouts, device and user terminal | |
CN111936966A (en) | Design system for creating graphical content | |
CN112685025A (en) | Method and system for quickly building front-end page | |
CN109976632A (en) | Text animation control methods and device, storage medium and processor | |
CN106126254A (en) | A kind of association look squarely interface game editing system and method | |
CN102467327A (en) | Method for generating and editing gesture object and operation method of audio data | |
CN104216626B (en) | A kind of image acquiring method and electronic equipment | |
Van de Broek et al. | Perspective Chapter: Evolution of User Interface and User Experience in Mobile Augmented and Virtual Reality Applications | |
Ling et al. | Enhance the usability of cartographic visualization system by user-centered interface design | |
Lee | Direct manipulation of graph-based decision models | |
LUJAN | ENABLING THE GENERATION OF USER INTERFACES FOR PERSONALISED IOT APPLICATIONS FOR NON-DESIGNERS | |
CN117649460A (en) | Mask operation method and equipment, storage medium and terminal thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |