CN110188326A - Rich text generation method, device, computer equipment and storage medium - Google Patents

Rich text generation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110188326A
CN110188326A CN201810153559.6A CN201810153559A CN110188326A CN 110188326 A CN110188326 A CN 110188326A CN 201810153559 A CN201810153559 A CN 201810153559A CN 110188326 A CN110188326 A CN 110188326A
Authority
CN
China
Prior art keywords
text
node
current
text node
processed
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
Application number
CN201810153559.6A
Other languages
Chinese (zh)
Other versions
CN110188326B (en
Inventor
朱必灯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Menggu Interactive Network Co Ltd
Original Assignee
Shenzhen Menggu Interactive Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Menggu Interactive Network Co Ltd filed Critical Shenzhen Menggu Interactive Network Co Ltd
Priority to CN201810153559.6A priority Critical patent/CN110188326B/en
Publication of CN110188326A publication Critical patent/CN110188326A/en
Application granted granted Critical
Publication of CN110188326B publication Critical patent/CN110188326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

This application involves a kind of rich text generation method, device, computer equipment and storage mediums.The described method includes: obtaining text to be processed, the text to be processed includes predetermined symbol, obtains the corresponding text parameter information of the predetermined symbol, generates particular text according to the text parameter information, the text to be processed is parsed according to the predetermined symbol, obtains plain text;Corresponding plain text node is generated according to the plain text, corresponding particular text node is generated according to the particular text;The plain text node and the particular text node are arranged in default layout interface according to default placement rule, obtain rich text.It can be improved the efficiency for generating rich text using this method.

Description

Rich text generation method, device, computer equipment and storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of rich text generation method, device, computer equipment And storage medium.
Background technique
Rich text refers on the basis of plain text, supports to carry out size, position, color etc. to specific certain texts Adjustment, these prominent specific characters, function of in addition also supporting that both pictures and texts are excellent.
The included UIRichText of cocos2d-x (the mobile 2D game frame of open source) engine supports the volume of rich text at present Operation is collected, however needs to be arranged the parameter of the coordinate of node when editing the rich text, setting coordinate parameters are cumbersome inefficient, need The setting that parameter could be completed by repeatedly debugging, under causing the efficiency for generating rich text very low.And for a large amount of text And the processing of multilingual is to enter a new line automatically, is if desired entered a new line, and is needed in the position that rich text enters a new line addition line feed Symbol, the workload when method to enter a new line in this is realized is very high, and maintenance cost is very high, and the efficiency for generating rich text is very low Under.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of rich text that can be improved rich text formation efficiency Generation method, device, computer equipment and storage medium.
A kind of rich text generation method, which comprises
Text to be processed is obtained, text to be processed includes predetermined symbol;
The corresponding text parameter information of predetermined symbol is obtained, particular text is generated according to text parameter information, according to default Symbol resolution text to be processed, obtains plain text;
Corresponding plain text node is generated according to plain text, corresponding particular text section is generated according to particular text Point;
Plain text node and particular text node are arranged in default layout interface according to default placement rule, obtained Rich text.
Text to be processed is obtained in one of the embodiments, comprising:
Urtext is obtained, specific character or picture in urtext are obtained;
Specific character or picture are substituted for predetermined symbol, obtain text to be processed.
Text to be processed is parsed according to predetermined symbol in one of the embodiments, obtains plain text, comprising:
Text to be processed is read according to paragraph sequence;
If the text to be processed before obtaining predetermined symbol is as common text when reading predetermined symbol in previous paragraphs This, obtains the corresponding particular text of predetermined symbol, plain text and particular text is successively saved in queue;Or
If obtaining when previous paragraphs do not read predetermined symbol and working as the corresponding plain text of previous paragraphs, by plain text Successively it is saved in queue;
The step of reading text to be processed according to paragraph sequence is returned, is completed until by Reading text to be processed.
Plain text node and particular text node are arranged according to default placement rule in one of the embodiments, In default layout interface, rich text is obtained, comprising:
Current text node is obtained, calculates whether current text node needs to enter a new line, current text node is plain text Node or particular text node;
If it is not, the last one text node in default layout interface current line is then obtained, by current text node with last One text node carries out layout setting of right-justifying as node is relied on;
If so, calculating line feed position, current text node is separated by first part's text node according to line feed position With second part text node, the last one text node and first text node in default layout interface current line are obtained, First part's text node is subjected to layout setting of right-justifying using the last one text node as node is relied on, by second Point text node keep left pair as relying on node using first text node in the next line for presetting layout interface current line Neat layout setting;
It returns and obtains current text node, calculate whether current text node needs the step of entering a new line, until will be all general Logical text node and particular text node are provided in default layout interface, obtain rich text.
Plain text node and particular text node are arranged according to default placement rule in one of the embodiments, In default layout interface, rich text is obtained, comprising:
The size and the corresponding initial position parameters information of current text node for obtaining current text node, according to working as The corresponding initial position parameters information of the size and current text node of preceding text node calculates initial coordinate position;
Final coordinate position is calculated according to initial coordinate position and default fine tuning parameter information, current text node is arranged In default layout interface final coordinate position;
Return to the size and the corresponding initial position parameters information of current text node for obtaining current text node Step obtains Fu Wen until being provided with all plain text nodes and particular text node layout in default layout interface This.
Calculate whether current text node needs to enter a new line in one of the embodiments, comprising:
Residue length in current text node's length and current line is calculated, if current text node's length is beyond in current line Residue length then needs to enter a new line, and otherwise, does not need to enter a new line;Or
Number of characters can be distributed by calculating residue in current text node character number and current line, if current text node character number Number of characters can be distributed greater than residue in current line, then needs to enter a new line, otherwise, does not need to enter a new line.
Plain text node and particular text node are being arranged according to default placement rule in one of the embodiments, In default layout interface, after obtaining rich text, further includes:
When particular text node is dynamic change text node, the corresponding handle of particular text node is generated, according to sentence Handle updates dynamic change text node.
A kind of rich text generating means, described device include:
Text obtains module, and for obtaining text to be processed, text to be processed includes predetermined symbol;
Text resolution module is generated for obtaining the corresponding text parameter information of predetermined symbol according to text parameter information Particular text parses text to be processed according to predetermined symbol, obtains plain text;
Node generation module is generated for generating corresponding plain text node according to plain text according to particular text Corresponding particular text node;
Rich text obtains module, for plain text node and particular text node to be arranged according to default placement rule In default layout interface, rich text is obtained.
A kind of computer equipment, including memory, processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
Text to be processed is obtained, text to be processed includes predetermined symbol;
The corresponding text parameter information of predetermined symbol is obtained, particular text is generated according to text parameter information, according to default Symbol resolution text to be processed, obtains plain text;
Corresponding plain text node is generated according to plain text, corresponding particular text section is generated according to particular text Point;
Plain text node and particular text node are arranged in default layout interface according to default placement rule, obtained Rich text.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
Text to be processed is obtained, text to be processed includes predetermined symbol;
The corresponding text parameter information of predetermined symbol is obtained, particular text is generated according to text parameter information, according to default Symbol resolution text to be processed, obtains plain text;
Corresponding plain text node is generated according to plain text, corresponding particular text section is generated according to particular text Point;
Plain text node and particular text node are arranged in default layout interface according to default placement rule, obtained Rich text.
Above-mentioned rich text generation method, device, computer equipment and storage medium, by obtaining text to be processed, wait locate Managing text includes predetermined symbol.The corresponding text parameter information of predetermined symbol is obtained, specific text is generated according to text parameter information This, parses text to be processed according to predetermined symbol, obtains plain text.Corresponding plain text section is generated according to plain text Point generates corresponding particular text node according to particular text.By plain text node and particular text node according to default cloth Office's rule setting obtains rich text in default layout interface, and coordinate ginseng could be obtained by needing not move through repeatedly artificial debugging Counting and not needing the artificial line feed symbol that goes to add can be obtained by rich text, improve rich text formation efficiency.
Detailed description of the invention
Fig. 1 is the applied environment figure of rich text generation method in one embodiment;
Fig. 2 is the flow diagram of rich text generation method in one embodiment;
Fig. 3 is to obtain the flow diagram of text to be processed in one embodiment;
Fig. 4 is the flow diagram that text to be processed is parsed in one embodiment;
Fig. 5 is to obtain the flow diagram of rich text in one embodiment;
Fig. 6 is to obtain the flow diagram of rich text in another embodiment;
Fig. 7 is the schematic diagram of the rich text generated in one specifically embodiment;
Fig. 8 is the structural block diagram of rich text generating means in one embodiment;
Fig. 9 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Rich text generation method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, terminal 102 are communicated with server 104 by network by network.Server 104 obtains text to be processed, and text to be processed includes Predetermined symbol, server 104 obtain the corresponding text parameter information of predetermined symbol, generate specific text according to text parameter information This, parses text to be processed according to predetermined symbol, obtains plain text.Server 104 generates corresponding general according to plain text Logical text node generates corresponding particular text node according to particular text.Server 104 is by plain text node and specific text This section point is arranged in default layout interface according to default placement rule, obtains rich text, then server 104 can will obtain Rich text terminal 102 is passed to by network, terminal 102 receives the rich text and simultaneously shows.Wherein, terminal 102 can with but not It is limited to be various personal computers, laptop, smart phone, tablet computer and portable wearable device, server 104 It can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, as shown in Fig. 2, providing a kind of rich text generation method, it is applied in Fig. 1 in this way Server for be illustrated, comprising the following steps:
S202, obtains text to be processed, and text to be processed includes predetermined symbol.
Specifically, text to be processed is in advance to be substituted for the text for needing to do specially treated in urtext or picture The text obtained after predetermined symbol.Predetermined symbol can be arbitrary different from the text or picture for needing to do specially treated Symbol, such as predetermined symbol can be " # ", " * " etc..Text to be processed is got, which includes default Symbol.
S204, obtains the corresponding text parameter information of predetermined symbol, generates particular text according to text parameter information, according to Predetermined symbol parses text to be processed, obtains plain text.
Wherein, text parameter information be in advance by need to do specially treated text or picture parameter setting it is good, should Parameter can be the particular content of the text or picture that need to do specially treated, color, height, font size size, picture name With picture size etc..Particular text is specifically will be in the text or picture by specially treated that rich text is shown.
Specifically, the corresponding text parameter information of predetermined symbol in the text to be processed pre-set is got, according to Text parameter information generates particular text.Then text to be processed is parsed according to predetermined symbol, be exactly read except predetermined symbol with Outer text, just obtains plain text.Such as: predetermined symbol is " * * ", and text parameter information refers in the corresponding text of * * Holding is " 20 ", and color is red, font size size is the Song typeface 5.Then the particular text obtained is that " 20 " (20 color is red Color, font size size are the Song typeface 5).
It in one embodiment, further include the button for needing to do specially treated, the ginseng of choice box etc. in text parameter information Number information.
S206, generates corresponding plain text node according to plain text, generates corresponding specific text according to particular text This node.
Wherein, the node in the application refers to each element shown in default layout interface, such as: it can be one Picture can be a button, can be passage etc..
Corresponding plain text node is generated according to plain text according to the content order of text to be processed, according to specific text The corresponding particular text node of this generation.
Plain text node and particular text node are arranged according to default placement rule in default layout interface S208 In, obtain rich text.
Wherein, default placement rule, which can be, is arranged rule according to nine grids layout character, refers to current object of reference On the basis of, the position of present node be arranged in the upper left of the object of reference, left, lower-left, in it is upper, placed in the middle, under, upper right, the right side Neutralize the position of bottom right nine.It can also be and placement rule is set according to by introducing dependence node, refer to that the position of node can Setting is laid out to select other nodes as object of reference.
Specifically, by plain text node and particular text node according to text to be processed content order successively according still further to Default placement rule setting is in default layout interface, when all plain text node and particular text node are all set up At just having obtained rich text.
In above-described embodiment, by obtaining text to be processed, text to be processed includes predetermined symbol.Obtain predetermined symbol pair The text parameter information answered, generates particular text according to text parameter information, parses text to be processed according to predetermined symbol, obtains Plain text.Corresponding plain text node is generated according to plain text, corresponding particular text section is generated according to particular text Point.Plain text node and particular text node are arranged in default layout interface according to default placement rule, obtain Fu Wen This, needing not move through repeatedly artificial debugging could obtain coordinate parameters and not need artificial to go to add the symbol that enters a new line Rich text is obtained, rich text formation efficiency is improved.
In one embodiment, as shown in figure 3, step S202, that is, obtain text to be processed, comprising steps of
S302 obtains urtext, obtains specific character or picture in urtext.
Specifically, urtext refers to the text that will generate rich text, obtains in urtext when generating rich text Need to do specially treated text or picture be specific character perhaps the picture specific character or picture can have it is multiple. Such as: urtext is " we have 20 people ", wherein " 20 " are specific character.
Specific character or picture are substituted for predetermined symbol by S304, obtain text to be processed.
Specifically, all specific characters or picture in urtext are substituted for predetermined symbol, just obtained to Handle text.
In the above-described embodiments by urtext specific character or picture be substituted for predetermined symbol, obtain to be processed Text is improved and is being generated so that being that can specify those texts or picture needs to do special processing generating rich text Efficiency when rich text.
In one embodiment, as shown in figure 4, parsing text to be processed according to predetermined symbol, plain text is obtained, including Step:
S402 reads text to be processed according to paragraph sequence.
Specifically, the content in text to be processed is formed in the form of paragraph under normal circumstances, according to paragraph sequence Text to be processed is read, i.e., is read out in the sequencing that reading text to be processed is paragraph.
Whether S404, judgement read predetermined symbol when previous paragraphs.
Specifically, when reading when previous paragraphs, judge whether to read at the predetermined symbol position in previous paragraphs, if reading It gets at the predetermined symbol position in previous paragraphs, thens follow the steps S404B, if not reading default symbol in working as previous paragraphs Number, then follow the steps S404A.
S404B, obtain predetermined symbol before text to be processed be used as plain text, acquisition predetermined symbol it is corresponding specific Plain text and particular text are successively saved in queue by text.
Specifically, using the content of text to be processed before predetermined symbol position in previous paragraphs as plain text, then Get the corresponding particular text in predetermined symbol position, then by plain text and particular text be successively saved in queue by It is successively saved in queue according to the sequence of content of text to be processed, then proceedes to read after the previous paragraphs predetermined symbol position Text to be processed, until when previous paragraphs read complete.Such as: when previous paragraphs are " family accommodate up to * members of * ", When reading " * * ", " family accommodates up to " is used as plain text, by " * * " corresponding particular text " 30 (colors For red, the font size size position Song typeface 5) ", it then proceedes to read, " position member " is used as plain text, the queue saved at this time It is { " family accommodates up to ", " 30 ", " position member " }.
S404A is obtained and is worked as the corresponding plain text of previous paragraphs, plain text is successively saved in queue.
Specifically, if in the previous paragraphs Non-precondition symbol, it is using reading when previous paragraphs are as plain text, this is general Logical text is successively saved in queue according to the sequence of content of text to be processed.Such as: when previous paragraphs are " rank and files ", then will " rank and file " is saved in queue as plain text.If have in queue at this time " family accommodates up to ", " 30 ", " position member " }, the queue then obtained is { " family accommodates up to ", " 30 ", " position member " " rank and file " }.
S406, judges whether text to be processed reads completion.
Specifically, judge whether text to be processed reads completion, that is, judge whether for text to be processed to be all saved in In queue, if text to be processed is not saved in queue all, return step S402 is executed, that is, reads text to be processed When next paragraph of previous paragraphs in this.If text to be processed is all saved in queue, parses text to be processed and complete.
It in one embodiment, can be by obtained plain text and particular text with XML (Extensible Markup Language, extensible markup language) format saved.
In the above-described embodiments, by reading text to be processed according to paragraph sequence;If default when being read in previous paragraphs When symbol, the text to be processed before acquisition predetermined symbol obtains the corresponding particular text of predetermined symbol as plain text, will Plain text and particular text are successively saved in queue;If when previous paragraphs do not read predetermined symbol, acquisition is worked as Plain text is successively saved in queue by the corresponding plain text of previous paragraphs;It returns and reads text to be processed according to paragraph sequence This step of, completes until by Reading text to be processed.Realize the parsing to text to be processed, be allowed to clear plain text and Particular text improves the efficiency for generating rich text in order to generate corresponding node.
In one embodiment, as shown in figure 5, step S208, i.e., by plain text node and particular text node according to Default placement rule setting obtains rich text in default layout interface, comprising steps of
S502 obtains current text node, and current text node is plain text node or particular text node.
Specifically, current text node is got, wherein current text node can be plain text node, can also be with It is particular text node.
S504, calculates whether current text node needs to enter a new line.
Specifically, calculate whether current text node can be arranged in current line, if can be arranged in current line, It does not need then to enter a new line, thens follow the steps S504A, if current text node can not be arranged completely in current line, illustrate to need It enters a new line, thens follow the steps S504B.
S504A obtains the last one text node in default layout interface current line, by current text node with last A text node carries out layout setting of right-justifying as node is relied on.
Specifically, the last one text node in default layout interface current line is obtained, by current text node with last One text node carries out layout setting of right-justifying as node is relied on, and is exactly by the setting of current text node in default layout After interface current line the last one text node and with the last one text node flush right.
In one embodiment, if not having text node in current line, directly current text node is arranged default The most left place of layout interface current line.
S504B, calculate line feed position, according to line feed position by current text node be separated into first part's text node and Second part text node obtains the last one text node and first text node in default layout interface current line, will First part's text node carries out layout setting of right-justifying using the last one text node as node is relied on, by second part Text node carries out align left using first text node as next line of the node in default layout interface current line is relied on Layout setting.
Wherein, first part's text node is the part for the current text node that be arranged in current line, second Dividing text node is the part for the current text node that be arranged in the next line of current line.
Specifically, line feed position is calculated, the spaced-apart locations of current text node are exactly calculated.It will be worked as according to spaced-apart locations Preceding text section point is separated, and first part's text node and second part text node are obtained.Then by first part's text Node is configured in current line according to the method for step S504A, that is, obtains the last one in default layout interface current line Text node sets first part's text node using the last one text node as the node layout that right-justify is relied on It sets.Then first text node in default layout interface current line is obtained again, by second part text node with first text This node carries out align left layout setting as next line of the node in default layout interface current line is relied on.
In one embodiment, second part text node is being preset using first text node as node is relied on The next line of layout interface current line carries out before align left layout setting, it is also necessary to whether calculate second part text node It needs to enter a new line.When second part text node needs to enter a new line in the next line of current line, then return step S504B is held Row, until separate after second part text node do not need to enter a new line, then will not need line feed second part text node with First text node carries out align left layout setting as next line of the node in default layout interface current line is relied on.
In one embodiment, default line feed position is obtained, current text node is separated according to default line feed position.Wherein Default line feed position refers to the difference according to language, presets line feed position, which can be on specifically text point.
S506, judges whether all plain text nodes and particular text node are provided in default layout interface, if It is to obtain rich text, otherwise return step S502 is executed.
Specifically, it is just obtained if all plain text nodes and particular text node are all disposed in default layout interface Otherwise rich text continues to execute step S502.
In the above-described embodiments, by introduce rely on node placement rule so that do not needed when generating rich text through Cross repeatedly artificial debugging could obtain coordinate parameters and do not need it is artificial remove to add the symbol that enters a new line and can be obtained by rich text, Improve rich text formation efficiency.
In one embodiment, as shown in fig. 6, step S208, by plain text node and particular text node according to pre- If placement rule setting obtains rich text in default layout interface, comprising steps of
S602 obtains the size and the corresponding initial position parameters information of current text node of current text node, Initial coordinate position is calculated according to the size of current text node and the corresponding initial position parameters information of current text node It sets.
Wherein, the size of current text node includes the length and width and anchor point of current text node, and anchor point refers to a section Point arrives corresponding coordinate position when position is arranged with which point setting of the node.Initial position parameters information refers to pre- The nine grids layout parameter information first set can directly set current text node according to the nine grids layout parameter information It sets in specific location, without knowing specific location coordinate value, for example, specific location as (121.5,128.5) is sat Scale value.
Specifically, the size and the corresponding initial position parameters letter of current text node of current text node are obtained Breath is calculated according to the corresponding nine grids layout parameter information of the size current text node of current text node in default cloth Initial coordinate position in office interface.For example nine grids layout parameter information is upper left, the size of current text node is It is wide by 5, long 10, anchor point is the upper left corner.Generally in the coordinate system of layout interface, the lower left corner is origin, presets the width of layout interface 20, a length of 50.The initial coordinate position then obtained is that width is 20, a length of 0.
In one embodiment, when being laid out setting, the size of current text node is obtained, obtaining ought be above The coordinate system of this node obtains the coordinate system for relying on node or father node, and wherein father node, which refers to, refers to the upper of a node Grade node.The coordinate system of front nodal point is converted into rely on the coordinate system of node or father node.For example, if the anchor of current text node The coordinate of anchor point is then converted into relying on node or father node by point at (0.5,0.5) in current text nodal coordinate system Coordinate system.I.e. anchor point has different coordinates in different coordinate systems, carries out coordinate system and is converted to anchor point in dependence node Or the coordinate in father node coordinate system.
S604 calculates final coordinate position according to initial coordinate position and default fine tuning parameter information, by current text section Point is arranged in default layout interface final coordinate position.
Wherein, presetting fine tuning parameter information includes paces parameter information and offset parameter information, wherein paces parameter information The distance of how many paces of present node itself size can be moved, offset parameter information refers in default layout interface Under how many distance moved left and right.
Specifically, final coordinate position is calculated according to initial coordinate position and default fine tuning parameter information, it then will be current Text node is arranged in default layout interface final coordinate position.
S606, judges whether all plain text nodes and particular text node layout set up in default layout interface At if then obtaining rich text, otherwise return step S602 is executed.
Specifically, it is just obtained if all plain text nodes and particular text node are all disposed in default layout interface Otherwise rich text continues to execute step S602.
In above-described embodiment, by the size and the corresponding initial bit of current text node that obtain current text node Parameter information is set, is calculated according to the size of current text node and the corresponding initial position parameters information of current text node Initial coordinate position calculates final coordinate position according to initial coordinate position and default fine tuning parameter information, by current text section Point is arranged in default layout interface final coordinate position, if all plain text nodes and particular text node are all disposed within pre- If just having obtained rich text in layout interface.So that needing not move through repeatedly artificial debugging when generating rich text could obtain Coordinate parameters and do not need it is artificial go addition line feed symbol to can be obtained by rich text, improve rich text formation efficiency.
In one embodiment, calculate whether current text node needs to enter a new line, comprising:
Residue length in current text node's length and current line is calculated, if current text node's length is beyond in current line Residue length then needs to enter a new line, and otherwise, does not need to enter a new line.
Specifically, the remaining length for distributing current text node in current text node's length and current line is calculated, Current text node's length then needs to enter a new line, otherwise, does not need to enter a new line beyond residue length in current line.
In one embodiment, calculate whether current text node needs to enter a new line, comprising:
Number of characters can be distributed by calculating residue in current text node character number and current line, if current text node character number Number of characters can be distributed greater than residue in current line, then needs to enter a new line, otherwise, does not need to enter a new line.
Specifically, when only handling a kind of language or multilingual font size unanimous circumstances, current text is calculated Residue can distribute number of characters in node character number and current line, if current text node character number is greater than residue in current line and can divide It with number of characters, then needs to enter a new line, otherwise, does not need to enter a new line.
In the above-described embodiments, it is remained in the length or number of characters and corresponding current line by calculating current text node If it is remaining can allocated length perhaps number of characters current text node's length beyond residue length or current text node in current line Number of characters, which is greater than residue in current line, can distribute number of characters, then needs to enter a new line, otherwise, do not need to enter a new line, without artificial Go addition line feed symbol, improve generate rich text efficiency.
In one embodiment, after step S208, i.e., by plain text node and particular text node according to pre- If placement rule setting after obtaining rich text, further comprises the steps of: in default layout interface
When particular text node is dynamic change text node, the corresponding handle of particular text node is generated, according to sentence Handle updates dynamic change text node.
Specifically, dynamic change text node refers to the node for needing to carry out dynamic refresh, such as: dynamic change text Node is time change parameter.The corresponding handle of particular text node is generated at this time, and dynamic change text is updated according to handle Node.
In the above-described embodiments, when particular text node is dynamic change text node, particular text node is generated Corresponding handle updates dynamic change text node according to handle, so that the rich text generated can satisfy different demands.
In one specifically embodiment, there are many activities or function playing method, in game in order to allow player to understand phase The playing method and rule for answering function then need to show the relevant interface of help document.Help document is all often long length Text, and at this time wish to give top priority to what is the most important in long length, then need to do for some text fonts or color Prominent processing, or insert pictures facilitate player to understand in a large amount of texts, then needing a flexible rich text just to answer It is right.The text for needing to do specially treated in urtext or picture etc. are substituted for preset symbol first, obtained to be processed Text.The corresponding text parameter information of predetermined symbol for obtaining every place's replacement, sets predetermined symbol in text parameter information It is corresponding by parameter to be shown such as particular content, color, height, font size size, picture name etc..By text to be processed It is parsed with text parameter information, text to be processed is read according to paragraph sequence, when reading predetermined symbol, by default symbol Text to be processed before number, which is cut away, to be stored in a queue, obtains predetermined symbol pair according still further to the word order of different language The text parameter information answered obtains particular text according to text parameter information, which is also stored in just stored it is pre- If successively being analogized in the queue of the text to be processed before symbol, until entire text is split and is stored in queue It completes.Node is sequentially generated according to the queue, and calculates whether present node length needs to cut, or obtains default line feed Position is cut, for example when rich text language is Thai just needs default line feed to cut position.If not needing to cut, by the node Layout of right-justifying is carried out using the last one node in current line as node is relied on, the portion that needs enter a new line if it need to enter a new line Point be to rely on next lower-left alignment that node is done by current line to be laid out with first node of current line.And so on, directly It is provided with to all nodes to be all laid out, has just obtained rich text.Such as: the rich text of Yao Shengcheng can be such as Fig. 7 institute The rich text shown, wherein not having in dotted line frame labelled is plain text node, and labelled in dotted line frame is particular text section Point such as: label 702 identify 30, label 704 identify 1, label 706 identify 2 and label 708 identify 10.All labels The color of the font of mark is red.It should be noted that be the existing of not dotted line frame in the rich text generated, What dotted line frame was arranged merely for convenience of description.
It should be understood that although each step in the flow chart of Fig. 2-6 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-6 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 8, providing a kind of rich text generating means 800, comprising: text obtains mould Block 802, text resolution module 804, node generation module 806 and rich text obtain module 808, in which:
Text obtains module 802, and for obtaining text to be processed, text to be processed includes predetermined symbol;
Text resolution module 804, it is raw according to text parameter information for obtaining the corresponding text parameter information of predetermined symbol At particular text, text to be processed is parsed according to predetermined symbol, obtains plain text;
Node generation module 806, it is raw according to particular text for generating corresponding plain text node according to plain text At corresponding particular text node;
Rich text obtains module 808, for setting plain text node and particular text node according to default placement rule It sets in default layout interface, obtains rich text.
In the above-described embodiments, module 802 is obtained by text and obtains text to be processed, pass through text resolution module 804 Text to be processed is parsed to obtain plain text, and obtains text parameter information and obtains particular text.Mould is generated in node Corresponding node is generated according to plain text and particular text in block 806, finally obtaining module 808 in rich text will be common Text node and particular text node are arranged in default layout interface according to default placement rule, obtain rich text, realize Node coordinate parameter can be got and not need artificial addition to be gone to enter a new line symbol just by needing not move through repeatedly artificial debugging Available rich text improves rich text formation efficiency.
In one embodiment, text obtains module 802, comprising:
Urtext obtains module, for obtaining urtext, obtains specific character or picture in urtext;
Replacement module obtains text to be processed for specific character or picture to be substituted for predetermined symbol.
In one embodiment, text resolution module 804, comprising:
Read module, for reading text to be processed according to paragraph sequence;
Text preserving module, if for when reading predetermined symbol in previous paragraphs, obtain predetermined symbol before wait locate Text is managed as plain text, the corresponding particular text of predetermined symbol is obtained, plain text and particular text is successively saved in In queue;Or
Plain text preserving module, if obtaining for when previous paragraphs do not read predetermined symbol when previous paragraphs are corresponding Plain text, plain text is successively saved in queue;
It reads and completes module, for returning to the step of reading text to be processed according to paragraph sequence, until by text to be processed This reading is completed.
In one embodiment, rich text obtains module 808, comprising:
Enter a new line judgment module, for obtaining current text node, calculates whether current text node needs to enter a new line, when above This node is plain text node or particular text node;
It does not enter a new line and is laid out setup module, be used for if it is not, then obtaining the last one text section in default layout interface current line Current text node is carried out layout setting of right-justifying using the last one text node as node is relied on by point;
Line feed is laid out setup module, is used for if so, calculating line feed position, divides current text node according to line feed position It is divided into first part's text node and second part text node, obtains the last one text section in default layout interface current line First part's text node keep right pair by point and first text node using the last one text node as dependence node Neat layout setting, by second part text node using first text node as dependence node in default layout interface current line Next line carry out align left layout setting;
Rich text obtains module, obtains current text node for returning, calculates whether current text node needs to enter a new line The step of, until being provided with all plain text nodes and particular text node in default layout interface, obtain rich text.
In one embodiment, rich text obtains module 808, comprising:
Initial coordinate computing module, the size and current text node for obtaining current text node are corresponding just Beginning position parameter data, according to the size of current text node and the corresponding initial position parameters information of current text node Calculate initial coordinate position;
Final coordinate calculation module, for calculating final coordinate position according to initial coordinate position and default fine tuning parameter information It sets, current text node is arranged in default layout interface final coordinate position;
Rich text generation module, the size and current text node for returning to acquisition current text node are corresponding The step of initial position parameters information, until by all plain text nodes and particular text node layout in default layout interface It is provided with, obtains rich text.
In one embodiment, enter a new line judgment module, comprising:
Length computation module, for calculating residue length in current text node's length and current line, if current text section Point length then needs to enter a new line, otherwise, does not need to enter a new line beyond residue length in current line;Or
Number of characters computing module can distribute number of characters for calculating residue in current text node character number and current line, If current text node character number, which is greater than residue in current line, can distribute number of characters, needs to enter a new line, otherwise, do not need to enter a new line.
In one embodiment, rich text generating means 800, further includes:
Dynamic change text node update module, for generating when particular text node is dynamic change text node The corresponding handle of particular text node updates dynamic change text node according to handle.
Specific about rich text generating means limits the restriction that may refer to above for rich text generation method, This is repeated no more.Modules in above-mentioned rich text generating means can come fully or partially through software, hardware and combinations thereof It realizes.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with software Form is stored in the memory in computer equipment, executes the corresponding operation of the above modules in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, be also possible to Terminal, internal structure chart can be as shown in Figure 9.The computer equipment includes the processor connected by system bus, storage Device, network interface, display screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability. The memory of the computer equipment includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with behaviour Make system and computer program.The built-in storage is the operation of the operating system and computer program in non-volatile memory medium Environment is provided.The network interface of the computer equipment is used to communicate with external terminal by network connection.The computer program To realize a kind of rich text generation method when being executed by processor.The display screen of the computer equipment can be liquid crystal display or Person's electric ink display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to count Key, trace ball or the Trackpad being arranged on machine equipment shell are calculated, can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 9, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, which performs the steps of when executing computer program obtains text to be processed, and text to be processed includes Predetermined symbol;The corresponding text parameter information of predetermined symbol is obtained, particular text is generated according to text parameter information, according to default Symbol resolution text to be processed, obtains plain text;Corresponding plain text node is generated according to plain text, according to specific text The corresponding particular text node of this generation;Plain text node and particular text node are arranged according to default placement rule pre- If in layout interface, obtaining rich text.
In one embodiment, following steps are also realized when processor executes computer program, comprising: obtain original text This, obtains specific character or picture in urtext;Specific character or picture are substituted for predetermined symbol, obtained wait locate Manage text.
In one embodiment, following steps are also realized when processor executes computer program, comprising: according to paragraph sequence Read text to be processed;If obtaining the text conduct to be processed before predetermined symbol when reading predetermined symbol in previous paragraphs Plain text obtains the corresponding particular text of predetermined symbol, plain text and particular text is successively saved in queue;Or If obtaining when previous paragraphs do not read predetermined symbol and working as the corresponding plain text of previous paragraphs, plain text is successively saved Into queue;The step of reading text to be processed according to paragraph sequence is returned, is completed until by Reading text to be processed.
In one embodiment, following steps are also realized when processor executes computer program, comprising: obtain current text Node, calculates whether current text node needs to enter a new line, and current text node is plain text node or particular text node; If it is not, the last one text node in default layout interface current line is then obtained, by current text node with the last one text Node carries out layout setting of right-justifying as node is relied on;If so, line feed position is calculated, it ought be above according to line feed position This node is separated into first part's text node and second part text node, obtains last in default layout interface current line A text node and first text node, by first part's text node using the last one text node as rely on node into Row, which is right-justify, is laid out setting, and second part text node is being preset layout circle using first text node as node is relied on The next line of face current line carries out align left layout setting;It returns and obtains current text node, calculating current text node is It is no to need the step of entering a new line, until all plain text nodes and particular text node are provided in default layout interface, Obtain rich text.
In one embodiment, following steps are also realized when processor executes computer program, comprising: obtain current text The corresponding initial position parameters information of size and current text node of node, according to the size of current text node Initial position parameters information corresponding with current text node calculates initial coordinate position;According to initial coordinate position and preset micro- It adjusts parameter information to calculate final coordinate position, current text node is arranged in default layout interface final coordinate position;It returns The step of obtaining the size and current text node corresponding initial position parameters information of current text node, until by institute There are plain text node and particular text node layout to be provided in default layout interface, obtains rich text.
In one embodiment, following steps are also realized when processor executes computer program, comprising: calculate current text Residue length in node's length and current line, if current text node's length needs to enter a new line beyond residue length in current line, Otherwise, it does not need to enter a new line;Or residue can distribute number of characters in calculating current text node character number and current line, if ought be above This node character number, which is greater than residue in current line, can distribute number of characters, then needs to enter a new line, otherwise, do not need to enter a new line.
In one embodiment, following steps are also realized when processor executes computer program, further includes: work as particular text When node is dynamic change text node, the corresponding handle of particular text node is generated, dynamic change text is updated according to handle Node.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor obtains text to be processed, and text to be processed includes predetermined symbol;It obtains pre- If the corresponding text parameter information of symbol, particular text is generated according to text parameter information, is parsed according to predetermined symbol to be processed Text obtains plain text;Corresponding plain text node is generated according to plain text, corresponding spy is generated according to particular text Determine text node;Plain text node and particular text node are arranged in default layout interface according to default placement rule, Obtain rich text.
In one embodiment, following steps are also realized when computer program is executed by processor, comprising: obtain original text This, obtains specific character or picture in urtext;Specific character or picture are substituted for predetermined symbol, obtained wait locate Manage text.
In one embodiment, following steps are also realized when computer program is executed by processor, comprising: suitable according to paragraph Sequence reads text to be processed;If the text to be processed before obtaining predetermined symbol is made when reading predetermined symbol in previous paragraphs For plain text, the corresponding particular text of predetermined symbol is obtained, plain text and particular text are successively saved in queue;Or If person when previous paragraphs do not read predetermined symbol, obtains and works as the corresponding plain text of previous paragraphs, plain text is successively protected It is stored in queue;The step of reading text to be processed according to paragraph sequence is returned, is completed until by Reading text to be processed.
In one embodiment, following steps are also realized when computer program is executed by processor, comprising: acquisition ought be above This node, calculates whether current text node needs to enter a new line, and current text node is plain text node or particular text section Point;If it is not, the last one text node in default layout interface current line is then obtained, by current text node with the last one text This node carries out layout setting of right-justifying as node is relied on;If so, line feed position is calculated, it will be current according to line feed position Text node is separated into first part's text node and second part text node, obtains last in default layout interface current line One text node and first text node, by first part's text node using the last one text node as dependence node Layout setting of right-justifying is carried out, second part text node is being preset into layout using first text node as node is relied on The next line of interface current line carries out align left layout setting;It returns and obtains current text node, calculate current text node Whether is needed the step of entering a new line, until setting up all plain text nodes and particular text node in default layout interface At obtaining rich text.
In one embodiment, following steps are also realized when computer program is executed by processor, comprising: acquisition ought be above The corresponding initial position parameters information of size and current text node of this node, the size according to current text node are big Small initial position parameters information corresponding with current text node calculates initial coordinate position;According to initial coordinate position and preset It finely tunes parameter information and calculates final coordinate position, current text node is arranged in default layout interface final coordinate position;It returns The step of returning the size for obtaining current text node and current text node corresponding initial position parameters information, until will All plain text nodes and particular text node layout are provided in default layout interface, obtain rich text.
In one embodiment, following steps are also realized when computer program is executed by processor, comprising: calculating ought be above Residue length in this node's length and current line, if current text node's length needs to change beyond residue length in current line Row, otherwise, does not need to enter a new line;Or residue can distribute number of characters in calculating current text node character number and current line, if working as Preceding text section point character number, which is greater than residue in current line, can distribute number of characters, then needs to enter a new line, otherwise, do not need to enter a new line.
In one embodiment, following steps are also realized when computer program is executed by processor, further includes: when specific text When this node is dynamic change text node, the corresponding handle of particular text node is generated, dynamic change text is updated according to handle This node.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of rich text generation method, which comprises
Text to be processed is obtained, the text to be processed includes predetermined symbol;
The corresponding text parameter information of the predetermined symbol is obtained, particular text is generated according to the text parameter information, according to The predetermined symbol parses the text to be processed, obtains plain text;
Corresponding plain text node is generated according to the plain text, corresponding particular text is generated according to the particular text Node;
The plain text node and the particular text node are arranged in default layout interface according to default placement rule, Obtain rich text.
2. the method according to claim 1, wherein described obtain text to be processed, comprising:
Urtext is obtained, the specific character or picture in the urtext are obtained;
The specific character or picture are substituted for predetermined symbol, obtain text to be processed.
3. the method according to claim 1, wherein parse the text to be processed according to the predetermined symbol, Obtain plain text, comprising:
The text to be processed is read according to paragraph sequence;
If the text to be processed before obtaining the predetermined symbol is as common text when reading predetermined symbol in previous paragraphs This, obtains the corresponding particular text of the predetermined symbol, the plain text and the particular text is successively saved in queue In;Or
If when previous paragraphs do not read predetermined symbol, acquisition is described to work as the corresponding plain text of previous paragraphs, will be described common Text is successively saved in queue;
The step of reading the text to be processed according to paragraph sequence is returned, is completed until by the Reading text to be processed.
4. the method according to claim 1, wherein described by the plain text node and the particular text Node is arranged in default layout interface according to default placement rule, obtains rich text, comprising:
Current text node is obtained, calculates whether the current text node needs to enter a new line, the current text node is described Plain text node or the particular text node;
If it is not, the last one text node in default layout interface current line is then obtained, by the current text node with last One text node carries out layout setting of right-justifying as node is relied on;
If so, calculating line feed position, the current text node is separated by first part's text according to the line feed position Node and second part text node obtain the last one text node and first text section in default layout interface current line Point sets first part's text node using the last one described text node as the node layout that right-justify is relied on It sets, the second part text node is worked as using first text node as dependence node in the default layout interface Forward next line carries out align left layout setting;
It returns and obtains current text node, calculate whether current text node needs the step of entering a new line, until will be all described general Logical text node and the particular text node are provided in default layout interface, obtain rich text.
5. the method according to claim 1, wherein described by the plain text node and the particular text Node is arranged in default layout interface according to default placement rule, obtains rich text, comprising:
The size and the corresponding initial position parameters information of the current text node for obtaining current text node, according to institute The size and the corresponding initial position parameters information of the current text node for stating current text node calculate initial coordinate Position;
Final coordinate position is calculated according to the initial coordinate position and default fine tuning parameter information, by the current text node It is arranged in default layout interface final coordinate position;
Return to the size and the corresponding initial position parameters information of the current text node for obtaining current text node Step, until all plain text nodes and the particular text node layout are provided in default layout interface, Obtain rich text.
6. according to the method described in claim 3, it is characterized in that, described calculate whether the current text node needs to change Row, comprising:
Residue length in current text node's length and current line is calculated, if the current text node's length is beyond described current Residue length in row then needs to enter a new line, and otherwise, does not need to enter a new line;Or
Number of characters can be distributed by calculating residue in current text node character number and current line, if the current text node character number Number of characters can be distributed greater than residue in the current line, then needs to enter a new line, otherwise, does not need to enter a new line.
7. the method according to claim 1, wherein described by the plain text node and the specific text This section point is arranged in default layout interface according to default placement rule, after obtaining rich text, further includes:
When the particular text node is dynamic change text node, the corresponding handle of the particular text node, root are generated The dynamic change text node is updated according to the handle.
8. a kind of rich text generating means, which is characterized in that described device includes:
Text obtains module, and for obtaining text to be processed, the text to be processed includes predetermined symbol;
Text resolution module, for obtaining the corresponding text parameter information of the predetermined symbol, according to the text parameter information Particular text is generated, the text to be processed is parsed according to the predetermined symbol, obtains plain text;
Node generation module, for generating corresponding plain text node according to the plain text, according to the particular text Generate corresponding particular text node;
Rich text obtains module, for setting the plain text node and the particular text node according to default placement rule It sets in default layout interface, obtains rich text.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201810153559.6A 2018-02-22 2018-02-22 Rich text generating method, rich text generating device, computer equipment and storage medium Active CN110188326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810153559.6A CN110188326B (en) 2018-02-22 2018-02-22 Rich text generating method, rich text generating device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810153559.6A CN110188326B (en) 2018-02-22 2018-02-22 Rich text generating method, rich text generating device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110188326A true CN110188326A (en) 2019-08-30
CN110188326B CN110188326B (en) 2023-08-11

Family

ID=67704598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810153559.6A Active CN110188326B (en) 2018-02-22 2018-02-22 Rich text generating method, rich text generating device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110188326B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230281379A1 (en) * 2022-03-04 2023-09-07 Adobe Inc. Automatic detection and removal of typesetting errors in electronic documents

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001084253A (en) * 1999-09-10 2001-03-30 Dream Technologies Kk Device and method for preparing inter-document link
US6381620B1 (en) * 1997-12-10 2002-04-30 Matsushita Electric Industrial Co., Ltd. Rich text medium displaying method and picture information providing system using calculated average reformatting time for multimedia objects
US20090064280A1 (en) * 2007-09-05 2009-03-05 Oracle International Corporation Framework for delegating roles in human resources erp systems
CN102799592A (en) * 2011-05-26 2012-11-28 腾讯科技(深圳)有限公司 Parsing method and system of rich text document
CN103530407A (en) * 2013-10-25 2014-01-22 中国农业银行股份有限公司 Method and device for generating rich text document
CN104462029A (en) * 2013-09-18 2015-03-25 北京新媒传信科技有限公司 Method and system for rich text display in intelligent terminal
CN106547560A (en) * 2016-11-01 2017-03-29 福建星网锐捷通讯股份有限公司 Text based on Android system and other component mixing method and devices
CN106776552A (en) * 2016-12-06 2017-05-31 掌阅科技股份有限公司 File identification method, device, server and computer-readable storage medium
WO2018000655A1 (en) * 2016-06-28 2018-01-04 乐视控股(北京)有限公司 Rich text editing method, apparatus, mobile terminal and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6381620B1 (en) * 1997-12-10 2002-04-30 Matsushita Electric Industrial Co., Ltd. Rich text medium displaying method and picture information providing system using calculated average reformatting time for multimedia objects
JP2001084253A (en) * 1999-09-10 2001-03-30 Dream Technologies Kk Device and method for preparing inter-document link
US20090064280A1 (en) * 2007-09-05 2009-03-05 Oracle International Corporation Framework for delegating roles in human resources erp systems
CN102799592A (en) * 2011-05-26 2012-11-28 腾讯科技(深圳)有限公司 Parsing method and system of rich text document
CN104462029A (en) * 2013-09-18 2015-03-25 北京新媒传信科技有限公司 Method and system for rich text display in intelligent terminal
CN103530407A (en) * 2013-10-25 2014-01-22 中国农业银行股份有限公司 Method and device for generating rich text document
WO2018000655A1 (en) * 2016-06-28 2018-01-04 乐视控股(北京)有限公司 Rich text editing method, apparatus, mobile terminal and electronic device
CN106547560A (en) * 2016-11-01 2017-03-29 福建星网锐捷通讯股份有限公司 Text based on Android system and other component mixing method and devices
CN106776552A (en) * 2016-12-06 2017-05-31 掌阅科技股份有限公司 File identification method, device, server and computer-readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230281379A1 (en) * 2022-03-04 2023-09-07 Adobe Inc. Automatic detection and removal of typesetting errors in electronic documents
US11853688B2 (en) * 2022-03-04 2023-12-26 Adobe Inc. Automatic detection and removal of typesetting errors in electronic documents

Also Published As

Publication number Publication date
CN110188326B (en) 2023-08-11

Similar Documents

Publication Publication Date Title
TWI663553B (en) Method and device for generating contract
US20160098250A1 (en) Application prototyping tool
CN111898049B (en) Table implementation method and device, computer terminal equipment and storage medium
CN105183475A (en) Method and system for customizing individuality pages of portal website by user himself
CN103150302B (en) A kind of composition method and device
US20160328389A1 (en) System for supporting multiple languages in webtoons
CN104239305A (en) Electronic document generating and displaying method and apparatus
CN108255566B (en) Data entry optimization processing method and device, computer equipment and storage medium
CN104915186B (en) A kind of method and apparatus making the page
CN104504214A (en) Electrical schematic diagram generation method
CN111276110B (en) Character display method and device and electronic equipment
CN109933751A (en) Graphic rendering method, apparatus, computer readable storage medium and computer equipment
CN111062186B (en) Text processing method, device, computer equipment and storage medium
CN111258434A (en) Method, device, equipment and storage medium for inserting pictures into chat interface
CN110188326A (en) Rich text generation method, device, computer equipment and storage medium
CN101436309B (en) Method and apparatus for modifying formula operator
CN106201255A (en) A kind of information processing method and electronic equipment
CN109343915A (en) Picture list shows method, apparatus, terminal device and storage medium
CN109660852A (en) Video previewing method, storage medium, equipment and system before recorded video publication
CN101231633A (en) Layout method and apparatus containing nest frame object
CN111597151A (en) File generation method and device, computer equipment and storage medium
CN111062194A (en) Document processing method and device, computer equipment and readable storage medium
CN112558957B (en) Method and device for generating webpage form, electronic equipment and readable storage medium
CN108766513A (en) A kind of wisdom health medical treatment data structured processing system
CN113011148A (en) Method, device, equipment and medium for automatically outputting file with specified format

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