CN106919548A - A kind of text intelligent arranging methods of exhibiting and device - Google Patents

A kind of text intelligent arranging methods of exhibiting and device Download PDF

Info

Publication number
CN106919548A
CN106919548A CN201710065846.7A CN201710065846A CN106919548A CN 106919548 A CN106919548 A CN 106919548A CN 201710065846 A CN201710065846 A CN 201710065846A CN 106919548 A CN106919548 A CN 106919548A
Authority
CN
China
Prior art keywords
text
page
layout
currently
filled
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.)
Pending
Application number
CN201710065846.7A
Other languages
Chinese (zh)
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.)
FUJIAN RONGJI SOFTWARE Co Ltd
Original Assignee
FUJIAN RONGJI SOFTWARE 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 FUJIAN RONGJI SOFTWARE Co Ltd filed Critical FUJIAN RONGJI SOFTWARE Co Ltd
Priority to CN201710065846.7A priority Critical patent/CN106919548A/en
Publication of CN106919548A publication Critical patent/CN106919548A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

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

A kind of text intelligent arranging methods of exhibiting and device, wherein method comprises the following steps, layout text is treated in reading, each size for treating display area needed for layout text is calculated, is extracted successively according to preset order and is currently treated layout text, judge currently to treat the size of the remaining display area whether layout text exceedes current page, if being judged as YES, then the newly-built page is filled, if being judged as NO, currently will treat that layout text inserts current page.By dynamic configuration page-size and page configuration threshold value such that it is able to which dynamic is adjusted to the page integrated out so that the page for finally automatically generating is beautiful, generous and improves the formation efficiency of the page.

Description

A kind of text intelligent arranging methods of exhibiting and device
Technical field
The present invention relates to computer version editor field, more particularly to a kind of displaying of text intelligent arranging method and dress Put.
Background technology
Representing for traditional tape format text, is usually represented with the order being sequentially overlapped, and is all typesetting in order, Different type-setting modes can not be selected according to different application scenarios, also be exactly to be possible to make during FX displaying Into unnecessary space waste, display effect is uneven.Needing to carry out intelligent typesetting to the size of different texts, rationally using exhibition It is particularly inconvenient during existing space.
The content of the invention
For this reason, it may be necessary to providing a kind of size of different texts carries out intelligent typesetting, can rationally be utilized after intelligent typesetting Represent space so as to reach a method for preferable bandwagon effect,
To achieve the above object, a kind of text intelligent arranging methods of exhibiting is inventor provided, is comprised the following steps, read Layout text is treated, each size for treating display area needed for layout text is calculated, is extracted successively according to preset order and currently is waited to compile Row's text, judges currently to treat the size of the remaining display area whether layout text exceedes current page, if being judged as YES, newly Build the page to be filled, if being judged as NO, currently will treat that layout text inserts current page.
Further, also the overall display area size of each page is set including step.
Specifically, the preset order is extracted to include being extracted according to storage order and currently treats layout text, or, once reading Multiple sorts after after layout text, carrying out treating layout size text, by treating that order extracts current to layout text successively from small to large Treat layout text.
Further, also including step, setting page treatment threshold value;
If also including step after " being judged as YES ", judge that whether the current page that exceedes after layout text is filled processes threshold Value, if it is still yes to judge, just carries out the newly-built page of step and is filled, and otherwise carries out step, and font contracting is carried out to current page Small, adjustment line-spacing, currently will treat that layout text inserts current page.
Further, judge currently also to include step after page treatment threshold value is exceeded after the filling of layout text, judgement is It is no currently to treat that the filling of layout text is preceding less than page treatment threshold value, if the judgment is No, just carry out the newly-built page of step and filled out Fill, be, continue to search for other texts to be filled and meet after filling no more than page treatment threshold value as currently treating layout text, Font diminution, adjustment line-spacing are carried out to current page, currently will treat that layout text inserts current page.
A kind of text intelligent arranging exhibiting device, including read computing module, current extraction module, judge module, filling Module,
The reading computing module treats layout text for reading, calculates each and treats the big of display area needed for layout text Small, the current extraction module is used to be extracted successively according to preset order currently treats layout text, and the judge module is used to sentence Disconnected currently to treat the size whether layout text exceedes the remaining display area of current page, the filling module is used to be judged as The newly-built page is filled when being, is additionally operable to currently to treat that layout text inserts current page when being judged as NO.
Further, also including setting module, the overall display area that the setting module is used to set each page is big It is small.
Specifically, the current extraction module is used to extract includes currently treating layout text, institute according to storage order extraction State reading computing module and be additionally operable to once read multiple after after layout text, carrying out treating that layout size text sorts, it is described current Extraction module be additionally operable to by treat layout text from small to large order successively extract currently treat layout text.
Further, also including threshold value setting module, setting page treatment threshold value;
The judge module is additionally operable to judge current after whether page treatment threshold value is exceeded after the filling of layout text, described to fill out Mold filling block is additionally operable to judge still to be yes above-mentioned, just carries out the newly-built page of step and is filled, and is additionally operable to be judged as NO above-mentioned When, font diminution, adjustment line-spacing are carried out to current page, currently will treat that layout text inserts current page.
Further, also including search module,
The judge module is additionally operable to judging current after page treatment threshold value is exceeded after the filling of layout text that judgement is It is no currently to treat that the filling of layout text is preceding less than page treatment threshold value;
The filling module is additionally operable to, in above-mentioned being judged as NO, just carry out the newly-built page of step and be filled, described to search Module is sought for continuing to search for processing threshold value no more than the page after other texts to be filled meet filling in above-mentioned being judged as YES Layout text is treated as current, and enables filling module that font diminution, adjustment line-spacing are carried out to current page, will currently treat layout Text inserts current page.
Prior art is different from, above-mentioned technical proposal passes through dynamic configuration page-size and page configuration threshold value, so as to Enough dynamics are adjusted to the page integrated out so that the page for finally automatically generating is beautiful, generous and improves the life of the page Into efficiency.
Brief description of the drawings
Fig. 1 is the text intelligent arranging methods of exhibiting flow chart described in the specific embodiment of the invention;
Fig. 2 is the text intelligent arranging exhibiting device module map described in the specific embodiment of the invention.
Description of reference numerals:
200th, computing module is read;
202nd, current extraction module;
204th, judge module;
206th, module is filled;
208th, setting module;
210th, threshold value setting module;
212nd, search module.
Specific embodiment
To describe technology contents, structural feature, the objects and the effects of technical scheme in detail, below in conjunction with specific reality Apply example and coordinate accompanying drawing to be explained in detail.
Fig. 1 is referred to, is text intelligent arranging methods of exhibiting flow chart of the present invention;Comprise the following steps, S100 reads and treats Layout text, calculates each size for treating display area needed for layout text, and S102 is extracted and currently treated successively according to preset order Layout text, S106 judges currently to treat the size of the remaining display area whether layout text exceedes current page, if being judged as It is then to carry out the newly-built pages of step S118 to be filled, if being judged as NO, carrying out step S108 currently will treat that layout text is filled out Enter current page.
Wherein treat that layout text can be the text for showing that size is adjustable and having certain format rule, can be big section text Word, form or picture, the thinking of intelligent arranging are similar to, and are illustrated by taking form as an example herein, such as step S100 from Storage location have read eight forms of T1-T8, and following different types of form is shown in needing to be incorporated into the page, certain table Content in lattice can need voluntarily to fill according to user, and this does not influence thought essence of the invention, and we typically calculate filling Layout size text is treated after content, is shown for layout.
Judge currently to treat the size of the remaining display area whether layout text exceedes current page by S106, if judging It is yes, then carries out the newly-built pages of step S118 and be filled, the display area of the page can be saved, to the text more than page-size This newly-built page shows, to it also avoid being shown by force in the page and show incomplete caused by excessive text.By above-mentioned steps, Solve the problems, such as that layout text shows automatically.
The displaying size of the general page shows size using the acquiescence of paper, certainly in some further embodiments, Also include step, set the overall display area size of each page.So it is set with beneficial to according to actual needs to different The page for affixing one's seal, signing, footnote, title etc., improves practicality of the invention to be left white.
In other specific embodiments, the preset order is extracted to include being extracted according to storage order and currently treats layout Text, or, once read multiple sort after after layout text, carrying out treating layout size text, by treating layout text from small to large Order is extracted currently treat layout text successively.Two kinds of order can be named as sequence in order, synthesis sequence respectively.
In the further embodiment shown in Fig. 1, also including step, S104 setting page treatment threshold values;Also include step Suddenly, S110 judges current after whether page treatment threshold value is exceeded after the filling of layout text, if it is still yes to judge, just carries out step The newly-built pages of S118 are filled, and otherwise carry out step S112, and font diminution, adjustment line-spacing are carried out to current page, and S108 will Currently treat that layout text inserts current page.Page treatment threshold value is the ratio that text size exceedes page totality display area size Example, can need to be adjusted according to actual displayed, in our embodiment, could be arranged to 120%, then be sequentially filled When, after current layout text filling, take up room and do not filled in current page then more than page totality display area 120%, and It is that a newly-built page is filled, if taking page totality display area after filling not above 120%, can be in current page Face is filled, and text is adjusted by adjusting the mode such as text displaying ratio, line-spacing, font size of current page and is being worked as The normal display of the preceding page.By the above method, intelligent typesetting text in the prior art can be preferably solved, improve word and compile Row efficiency and page utilization rate.
Illustrated with specific embodiment below,
1st, obtain:Text T1, T2, T3....Tn of tape format
2nd, the text of one or more tape formats is selected from the text for obtaining to be used to represent
3rd, every page of overall display area size G is set, general area size cannot be less than selected maximum tape format text This default size.Setting page treatment threshold value B;
4th, content of text filling is carried out to the text for selecting;
5th, each display area size needed for tape format text after filling content is calculated;
6th, selection represents scheme
(1) sort in order;
(2) synthesis sequence;
7th, the scheme according to selection is processed
7.1 selections are sorted in order
7.1.1 a Tn is obtained, judges whether there has been the content of filling in Gn, if not entering into step
7.1.1.1, if entering step 7.1.1.2.
7.1.1.1 Tn sizes are calculated, judges whether the size of Tn exceedes the size of overall display area G
If it exceeds overall display area, carries out font diminution, be put into the Tn after adjustment in Gn by line space adjustment, and Trial obtains next text, if next text does not exist, expression has been stuffed entirely with finishing, and filling process terminates.Such as Really next text is present, and produces a new overall display area Gn to be used for the storage of other texts, subsequently into 7.1.1
If no more than overall display area, Tn directly is put into Gn.And trial obtains next text, if next Individual text does not exist, and expression has been stuffed entirely with finishing, and filling process terminates.If next text is present, the text is obtained Carry out 7.1.1
7.1.1.2 (Yn=T1+T2+ ... Tn, Yn are the Tn sizes having been filled with each G to calculate the total size Yn after filling Sum)
Whether Yn exceeds totality viewing area G
If exceeded, judge whether be more than B% (the i.e. Yn-Gn of overall viewing area beyond part>G*B%).
The B% without departing from overall viewing area of Yn after filling, font diminution is carried out to overall display area G, Line space is adjusted, and the scope of regulation is reached, subsequently into step 7.1.1
B% (the i.e. Yn-Gn beyond partially larger than overall viewing area of Yn after filling>G*B%), then one is created New Gn, Tn is put into Gn, subsequently into step 7.1.1
If without departing from, Tn is put into G, and trial obtains next text, if next text does not exist, table Show and be stuffed entirely with finishing, filling process terminates.If next text exists the text of acquirement and enters step 7.1.1, finally the text of layout is shown.
In further embodiment, step S110 judges currently to exceed after the page processes threshold value also after layout text is filled Including step S114, judge whether to process threshold value less than the page before currently treating the filling of layout text, if the judgment is No, just carry out The newly-built pages of step S118 are filled, and are, carry out step S116 and continue to search for not surpassing after other texts to be filled meet filling Cross the page and process threshold value as currently layout text is treated, then just carrying out step S112 carries out font diminution to current page, adjusts Full line is away from S108 currently will treat that layout text inserts current page.Here page treatment threshold value includes that the upper limit also includes lower limit, Such as higher limit is set to 120%, and lower limit is set to 80%, if it is current treat before the filling of layout text the page use space not less than Lower threshold, exceedes upper limit threshold after filling, would not the newly-built page be filled, then find less text and compared Right, it is that, more than the space of 80% utilization rate, by such scheme, further increasing page utilization that current page is filled as far as possible Rate, also improves layout efficiency, preferably solves the problems, such as text layout.
7.2 synthesis sort
7.2.1 each text is ranked up by display size
7.2.2 display area G is filled successively according to order from small to large, is filled to Tn, now had been filled with Total size is Yn.
7.2.3 next unfilled text is judged whether, if that result is not defeated in overall display area Go out to represent, if it has, then calculating the value of Yn+1;
Situation 1:After Tn+1 is filled, the total size Yn+1 having been filled with is less than G, then directly fill, and repeats step 7.2.3
Situation 2:After Tn+1 is filled, the total size Yn+1 having been filled with is more than G and less than (100+B) %G, after filling Total size Yn carry out font diminution, line space adjustment.Repeat step 7.2.3
Situation 3:Before Tn+1 is filled, the total size Yn having been filled with is more than more than Yn+1 after (100-B) %G and filling (100+B) %G, then create a new overall display area Gn, by the fills to new overall display area Gn.Repeat Carry out step 7.2.3.
Situation 4:Before Tn+1 is filled, the total size Yn having been filled with is less than (100-B) %G and Yn after Tn+1 is filled + 1 is more than (100+B) %G, calculates the remaining spaces of its overall display area G, and also unfilled text is found according to result of calculation This, to see if there is and be less than general area (100+B) % after meeting filling
If it has, it to be replaced and fill with the current text for preparing filling
If being less than 100% after the text filling after finding, directly fill, repeat step 7.2.3.
Font diminution, line space adjustment are carried out if greater than 100% pair of whole display area.And create a new totality Viewing area Gn, repeat step 7.2.3.
If not finding the text for meeting size, repeat step 7.2.3.
8th, according to result of calculation, exported in overall display area and represented.
Specific carry into execution a plan A, B is given below to be explained in detail:
In our embodiment, it is assumed that the size T1=300T2=180T3=40T4 of layout text is treated after fills =480T5=400T6=100T7=80T8=250.
Option A:
7.1 selections represent in order
Define page fill factor:
X:Display area can exceed threshold value, X=G*B=500*20%=100
Y:Have been filled with size, Y=T1+T2 ... .Tn
Z:Display area remaining space, Z=Y-G
7.1.1 a Tn is obtained, judges whether there has been the content of filling in Gn, if not entering into step 7.1.1.1, If entering step 7.1.1.2.
7.1.1.1 Tn sizes are calculated, judges whether the size of Tn exceedes the size of overall display area G
If it exceeds overall display area, carries out font diminution, be put into the Tn after adjustment in Gn by line space adjustment, and Trial obtains next text, if next text does not exist, expression has been stuffed entirely with finishing, and filling process terminates.Such as Really next text is present, and produces a new overall display area Gn to be used for the storage of other texts, subsequently into 7.1.1
In this example:If being also not filled by content and Tn in G>500, then perform above step.
If no more than overall display area, Tn directly is put into Gn.And trial obtains next text, if next Individual text does not exist, and expression has been stuffed entirely with finishing, and filling process terminates.If next text is present, the text is obtained Carry out 7.1.1
In this example:If being also not filled by content and Tn in G<500, then perform above step.
7.1.1.2 the total size Yn (Y=T1+T2+ ... Tn) after filling is calculated
Whether Yn exceeds totality viewing area Gn
If exceeded, judge whether be more than B% (the i.e. Y-G of overall viewing area beyond part>G*B%).
The B% without departing from overall viewing area of Yn after filling, font diminution is carried out to overall display area G, Line space is adjusted, and the scope of regulation is reached, subsequently into step 7.1.1
In this example:If having filled content and Yn in G>500, and Z<100.Walked on then performing.
B% (the i.e. Y-G beyond partially larger than overall viewing area of Yn after filling>G*B%), then one is created newly Gn subsequently into step 7.1.1
In this example:If having filled content and Yn in G>500, and Z>100.Walked on then performing.
If without departing from, Tn is put into G, and trial obtains next text, if next text does not exist, table Show and be stuffed entirely with finishing, filling process terminates.If next text is in the presence of the text that will be obtained and enters step 7.1.1
In this example:If having filled content and Yn in G<=500.Walked on then performing.
Filling simulation explanation:
T1=300 is first obtained, due to the content for not having filling in now G1, so into step " 7.1.1.1 ", T1's is big Small is 300, is not above the size of G1, so directly T1 is put into G1.
Continue to obtain T2=180, now data with existing in G1, into step " 7.1.1.2 ".Calculate Y2=T1+T2= 480, without departing from the size of G1, so directly fill.
Continue to obtain T3=40, Y3=T1+T2+T3=520, beyond the size of G1, but can without departing from display area Beyond threshold value 100, so carrying out font diminution to overall display area G1, line space adjustment reaches the scope of regulation, adjusts Whole rear size is 485 (being shown in Table 1).Due to also there is the T being not filled by, a new G2 is now created, for follow-up text Filling.
Continue to obtain T4=480, due to T4<500, so directly filling.
Continue to obtain T5=400, due to T5=400, T4 has been had been filled with G2, therefore enter step " 7.1.1.2 ".Now Y =T4+T5=480+400>500 and beyond part 480+400-500>100, then a new G3 is created, and fill T5.
Continue to obtain T6=100, existing T5, T5+T6=500 in G3<=G, directly fills.
Continue to obtain T7=80, T5 and T6 is had been filled with G3, due to 500+80=580>500, and 580-500=80< 100, then font diminution is carried out to overall display area G, line space is adjusted, and accounting is after reaching the scope adjustment of regulation 490px。
Continue to obtain T8=250, directly fill.
Table 1:Text fills accounting table
8th step:Display area after adjustment is exported, is represented
Option b:
7.2 according to the option b for selecting:It is integrated ordered to represent
Define page fill factor
X:Display area can exceed threshold value, X=G*B=500*20%=100
Y:Have been filled with size, Y=T1+T2 ... Tn
Z:Display area remaining space, Z=Y-G
7.2.1 each text is ranked up by display size
T3 T7 T6 T2 T8 T1 T5 T4
40 80 100 180 250 300 400 500
7.2.2 display area G is filled successively according to order from small to large, is filled to Tn, now had been filled with Total size is Yn.
7.2.3 next unfilled text is judged whether, if that result is not defeated in overall display area Go out to represent, the value if then calculating Yn+1,
Situation 1:After Tn+1 is filled, the total size Yn+1 having been filled with is less than G, then directly fill, and repeats step 7.2.3
It is in this example Yn+1<500.
Situation 2:After Tn+1 is filled, the total size Yn+1 having been filled with is more than G and less than (100+B) %G, after filling Total size Yn carry out font diminution, line space adjustment.Repeat step 7.2.3.
It is in this example 500<Yn+1<600.
Situation 3:Before Tn+1 is filled, the total size Yn having been filled with is more than more than Yn+1 after (100-B) %G and filling (100+B) %G, then create a new overall display area Gn, by the fills to new overall display area Gn.Repeat Carry out step 7.2.3.
It is in this example Yn>400 and Yn+1>600.
Situation 4:Before Tn+1 is filled, the total size Yn having been filled with is less than (100-B) %G and Yn after Tn+1 is filled + 1 is more than (100+B) %G, calculates the remaining spaces of its overall display area G, and also unfilled text is found according to result of calculation This, to see if there is and be less than general area (100+B) % (Yn after meeting filling<400 and Yn+1>600)
If it has, it to be replaced and fill with the current text for preparing filling
If being less than 100% after the text filling after finding, directly fill, repeat step 7.2.3.
Font diminution, line space adjustment are carried out if greater than 100% pair of whole display area.And create a new totality Viewing area Gn, repeat step 7.2.3.
If not finding the text for meeting size, repeat step 7.2.3.
Filling simulation explanation:
First T3=40 is filled, due to Y=40<500, meet situation 1, directly fill.
Continue acquisition T7=80 to be filled, now Y=40+80=120<500, meet situation 1, directly fill.
Continue acquisition T6=100 to be filled, now Y=40+80+100=220<500, meet situation 1, directly fill.
Continue to obtain T1=300, T3+T7+T6+T1=520 is found, due to 500<520<600, meet situation 2, then to filling out Total size Y after filling carries out font diminution, and line space is adjusted, and size is 485px after adjustment
When being filled into T2=180, Y=(T3+T7+T6+T1)+T2=485+180 (carried out font to Y and line space was jumped Adjustment, so T3+T7+T6+T1 is original 520 become 485), after T2 is filled, Y>Y before 600, T2 fillings>400, meet feelings Condition 3, so creating a new G2, is filled in T2 interior.
T5=400 is now filled, in newest G2, the size having been filled with is 180, Yn+1=400+180=580, by In 500<580<600, meet situation 2, then font diminution, line space adjustment, size after adjustment are carried out to the total size Y after filling It is 490px.
T4=480 is continued to fill up, due to 490>400 and 490+480>600, meet situation 3, then a new G3 is created, T4 is filled in interior.
T8=250 is continued to fill up, T4 is had been filled with G3, due to 480+250>600 and 480>400, meet situation 3, then A new G4 is created, T8 is filled in interior.
Table 2:Text fills accounting table.
8th step:Display area after adjustment is exported, is represented.
A kind of text intelligent arranging exhibiting device, including read computing module 200, current extraction module 202, judge module 204th, module 206 is filled,
The reading computing module 200 treats layout text for reading, calculates each and treats display area needed for layout text Size, the current extraction module 202 is used to be extracted successively according to preset order and currently treat layout text, the judge module 204 are used to judge the size for currently treating the remaining display area whether layout text exceedes current page, the filling module 206 It is filled for the newly-built page when being judged as YES, is additionally operable to currently to treat that layout text inserts current page when being judged as NO Face.
Further, also including setting module 208, the setting module 208 is used to set total body display of each page Area size.
Specifically, the current extraction module 202 is used to extract includes currently treating layout text according to storage order extraction, The reading computing module is additionally operable to once read multiple after after layout text, carrying out treating that layout size text sorts, described to work as Preceding extraction module be additionally operable to by treat layout text from small to large order successively extract currently treat layout text.
Further, also including threshold value setting module 210, setting page treatment threshold value;
The judge module 204 is additionally operable to judge that whether the current page that exceedes after layout text is filled processes threshold value, institute State filling module 206 is additionally operable to judge still to be yes above-mentioned, just carry out the newly-built page of step and be filled, be additionally operable to sentence above-mentioned Break for it is no when, current page is carried out font diminution, adjustment line-spacing, currently will treat that layout text inserts current page.
Further, also including search module 212,
The judge module 204 is additionally operable to judging current after page treatment threshold value is exceeded after the filling of layout text, sentences It is disconnected whether currently to treat that the filling of layout text is preceding less than page treatment threshold value;
The filling module 206 is additionally operable to, in above-mentioned being judged as NO, just carry out the newly-built page of step and be filled, described Search module 212 is used to continue to search for being processed no more than the page after other texts to be filled meet filling in above-mentioned being judged as YES Threshold value treats layout text as current, and enables filling module font diminution, adjustment line-spacing are carried out to current page, will currently treat Layout text inserts current page.
Said apparatus pass through dynamic configuration page-size and page configuration threshold value such that it is able to which dynamic is to integrating page out Face is adjusted so that the page for finally automatically generating is beautiful, generous and improves the formation efficiency of the page.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating In any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to Nonexcludability is included, so that process, method, article or terminal device including a series of key elements not only include those Key element, but also other key elements including being not expressly set out, or also include being this process, method, article or end The intrinsic key element of end equipment.In the absence of more restrictions, limited by sentence " including ... " or " including ... " Key element, it is not excluded that also there is other key element in the process including the key element, method, article or terminal device.This Outward, herein, " it is more than ", " being less than ", " exceeding " etc. are interpreted as not including this number;" more than ", " below ", " within " etc. understand It is to include this number.
It should be understood by those skilled in the art that, the various embodiments described above can be provided as method, device or computer program producing Product.These embodiments can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Form.All or part of step in the method that the various embodiments described above are related to can be instructed by program correlation hardware come Complete, described program can be stored in the storage medium that computer equipment can read, for performing the various embodiments described above side All or part of step described in method.The computer equipment, including but not limited to:Personal computer, server, general-purpose computations Machine, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, Wearable Smart machine, vehicle intelligent equipment etc.;Described storage medium, including but not limited to:RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle Deposit, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are with reference to the method according to embodiment, equipment (system) and computer program product Flow chart and/or block diagram are described.It should be understood that every during flow chart and/or block diagram can be realized by computer program instructions The combination of flow and/or square frame in one flow and/or square frame and flow chart and/or block diagram.These computers can be provided Programmed instruction is to the processor of computer equipment producing a machine so that by the finger of the computing device of computer equipment Order is produced for realizing what is specified in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames The device of function.
These computer program instructions may be alternatively stored in the computer that computer equipment can be guided to work in a specific way and set In standby readable memory so that instruction of the storage in the computer equipment readable memory is produced and include the manufacture of command device Product, the command device is realized in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frame middle fingers Fixed function.
These computer program instructions can be also loaded on computer equipment so that performed on a computing device a series of Operating procedure is to produce computer implemented treatment, so that the instruction for performing on a computing device is provided for realizing in flow The step of function of being specified in one flow of figure or multiple one square frame of flow and/or block diagram or multiple square frames.
Although being described to the various embodiments described above, those skilled in the art once know basic wound The property made concept, then can make other change and modification to these embodiments, so embodiments of the invention are the foregoing is only, Not thereby scope of patent protection of the invention, the equivalent structure that every utilization description of the invention and accompanying drawing content are made are limited Or equivalent flow conversion, or other related technical fields are directly or indirectly used in, similarly it is included in patent of the invention Within protection domain.

Claims (10)

1. layout text is treated in a kind of text intelligent arranging methods of exhibiting, it is characterised in that comprise the following steps, reading, calculates each The individual size for treating display area needed for layout text, is extracted and currently treats layout text successively according to preset order, and judgement is currently treated Whether layout text exceedes the size of the remaining display area of current page, if being judged as YES, the newly-built page is filled, if It is judged as NO, then currently will treats that layout text inserts current page.
2. text intelligent arranging methods of exhibiting according to claim 1, it is characterised in that also including step, set each The overall display area size of the page.
3. text intelligent arranging methods of exhibiting according to claim 1, it is characterised in that the preset order is extracted to be included Extracted according to storage order and currently treat layout text, or, once reading multiple is after after layout text, carrying out treating layout size text Sequence, currently layout text is treated by treating that layout text is sequentially extracted successively from small to large.
4. text intelligent arranging methods of exhibiting according to claim 1, it is characterised in that also including step, sets the page Treatment threshold value;
If also including step after " being judged as YES ", judge that whether the current page that exceedes after layout text is filled processes threshold value, if Judge still to be yes, just carry out the newly-built page of step and be filled, otherwise carry out step, font diminution is carried out to current page, is adjusted Full line is away from currently treating that layout text inserts current page.
5. text intelligent arranging methods of exhibiting according to claim 4, it is characterised in that
Judge currently also to include step after page treatment threshold value is exceeded after the filling of layout text, judge whether currently to treat that layout is literary Threshold value is processed less than the page before this filling, if the judgment is No, the newly-built page of step is just carried out and is filled, be to continue to search for Other texts to be filled process threshold value as currently layout text is treated after meeting filling no more than the page, and word is carried out to current page Body reduces, adjustment line-spacing, currently will treat that layout text inserts current page.
6. a kind of text intelligent arranging exhibiting device, it is characterised in that including reading computing module, current extraction module, judgement Module, filling module,
The reading computing module treats layout text for reading, calculates each size for treating display area needed for layout text, The current extraction module is used to be extracted successively according to preset order currently treats layout text, and the judge module is used to judge to work as Before treat layout text whether exceed current page remaining display area size, the filling module be used for when being judged as YES The newly-built page is filled, and is additionally operable to currently to treat that layout text inserts current page when being judged as NO.
7. text intelligent arranging exhibiting device according to claim 6, it is characterised in that described also including setting module Setting module is used to set the overall display area size of each page.
8. text intelligent arranging exhibiting device according to claim 6, it is characterised in that the current extraction module is used for Extract include according to storage order extract it is current treats layout text, the reading computing module is additionally operable to once to read multiple to be waited to compile After row's text, treat that layout size text sorts, the current extraction module is additionally operable to by treating that layout text is suitable from small to large Sequence is extracted currently treat layout text successively.
9. text intelligent arranging exhibiting device according to claim 6, it is characterised in that also including threshold value setting module, Setting page treatment threshold value;
The judge module is additionally operable to judge that whether the current page that exceedes after layout text is filled processes threshold value, the fill mould Block is additionally operable to judge still to be yes above-mentioned, just carries out the newly-built page of step and is filled, and is additionally operable in above-mentioned being judged as NO, right Current page carries out font diminution, adjustment line-spacing, currently will treat that layout text inserts current page.
10. text intelligent arranging exhibiting device according to claim 9, it is characterised in that also including search module;
The judge module is additionally operable to judging current after page treatment threshold value is exceeded after the filling of layout text, judges whether to work as Before treat layout text filling before less than the page process threshold value;
The filling module is additionally operable to, in above-mentioned being judged as NO, just carry out the newly-built page of step and be filled, the search mould Block is used to continue to search for processing threshold value conduct no more than the page after other texts to be filled meet filling in above-mentioned being judged as YES Layout text is currently treated, and enables filling module that font diminution, adjustment line-spacing are carried out to current page, currently will treat layout text Insert current page.
CN201710065846.7A 2017-02-06 2017-02-06 A kind of text intelligent arranging methods of exhibiting and device Pending CN106919548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710065846.7A CN106919548A (en) 2017-02-06 2017-02-06 A kind of text intelligent arranging methods of exhibiting and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710065846.7A CN106919548A (en) 2017-02-06 2017-02-06 A kind of text intelligent arranging methods of exhibiting and device

Publications (1)

Publication Number Publication Date
CN106919548A true CN106919548A (en) 2017-07-04

Family

ID=59453412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710065846.7A Pending CN106919548A (en) 2017-02-06 2017-02-06 A kind of text intelligent arranging methods of exhibiting and device

Country Status (1)

Country Link
CN (1) CN106919548A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846109A (en) * 2018-06-22 2018-11-20 广州中康资讯股份有限公司 A kind of the file guiding system and method for achievable intelligent paging
CN110705234A (en) * 2019-09-05 2020-01-17 电信科学技术第十研究所有限公司 Self-adaptive typesetting and paging method and device for system form
CN111581939A (en) * 2020-05-11 2020-08-25 广东小天才科技有限公司 Method and device for typesetting questions, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013418A (en) * 2007-02-15 2007-08-08 北京大学 Auto-adaptive typesetting method for word in textbox
CN101369264A (en) * 2008-10-14 2009-02-18 北京大学 Automatic typesetting method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013418A (en) * 2007-02-15 2007-08-08 北京大学 Auto-adaptive typesetting method for word in textbox
CN101369264A (en) * 2008-10-14 2009-02-18 北京大学 Automatic typesetting method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846109A (en) * 2018-06-22 2018-11-20 广州中康资讯股份有限公司 A kind of the file guiding system and method for achievable intelligent paging
CN110705234A (en) * 2019-09-05 2020-01-17 电信科学技术第十研究所有限公司 Self-adaptive typesetting and paging method and device for system form
CN111581939A (en) * 2020-05-11 2020-08-25 广东小天才科技有限公司 Method and device for typesetting questions, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US8601361B2 (en) Automatically populating and/or generating tables using data extracted from files
CN106919548A (en) A kind of text intelligent arranging methods of exhibiting and device
CN109492182B (en) Page generation method and device, page display system and storage medium
CN105159877B (en) A kind of across media automatic typesetting systems and its method
CN104573070B (en) A kind of Text Clustering Method for mixing length text set
WO2013013335A1 (en) Automated document composition using clusters
CN103970726A (en) Image-text typesetting implementation method and device
CN108073562A (en) Publication processing method and processing device based on cloud platform
CN104461548B (en) The adding method and device of code snippet
JP4143234B2 (en) Document classification apparatus, document classification method, and storage medium
JP2008197990A (en) Document edit device, program, and storage medium
CN107832374A (en) Construction method, electronic installation and the storage medium in standard knowledge storehouse
CN104484451B (en) The extracting method and device of Webpage information
CN111695701A (en) System for realizing data set construction processing based on federal learning and construction generation method thereof
CN106776527A (en) The display methods of electronic book data, device and terminal device
CN110457668A (en) Simplify the sheet disposal method and system based on B/S framework of user&#39;s operation
CN103092630B (en) Interface data output unit and interface data output intent
CN103488619B (en) Method and device for processing document file
CN112347742B (en) Method for generating document image set based on deep learning
CN110110270B (en) Parallel processing generation method and device for large genealogy lineage diagram
CN105701071B (en) A kind of document header footer method of adjustment and device
CN114118029A (en) Image processing method, device, equipment and storage medium
DE10257436A1 (en) Customized/personalized document production method for customer at point-of-need, involves merging data of customer with intelligent template to create intelligent document
CN103413115B (en) A kind of nonlinear images feature selection approach based on data manifold distribution
US20140013214A1 (en) Method and System of Populating a Space

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170704

RJ01 Rejection of invention patent application after publication