CN101295290A - Method for multi-row words layout in row - Google Patents
Method for multi-row words layout in row Download PDFInfo
- Publication number
- CN101295290A CN101295290A CNA2008101147050A CN200810114705A CN101295290A CN 101295290 A CN101295290 A CN 101295290A CN A2008101147050 A CNA2008101147050 A CN A2008101147050A CN 200810114705 A CN200810114705 A CN 200810114705A CN 101295290 A CN101295290 A CN 101295290A
- Authority
- CN
- China
- Prior art keywords
- row
- literal
- word
- composing
- line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Machine Translation (AREA)
Abstract
The invention discloses a method for the typesetting in a plurality of character lines, belonging to the technical field of printing typesetting. In the prior art, the method for typesetting in lines can be realized manually or by a wireless table, which wastes time and effort and the effect is not extremely precise under all situations. The method of the invention is characterized in that characters to be typeset are input in a hand sample editor firstly and then BD typesetting language remarks are inserted; the typesetting parameters are obtained according to the context or the self-definition setting of the user; according to the obtained typesetting parameters, a series of position calculation and displacement correction of the characters to be typeset are carried out to generate large sample files; finally, the large sample files are analysed by a large sample file browser to gain the detailed typesetting effect. The method of the invention can rapidly complete the effect of the typesetting in a plurality of character lines, thus improving the efficiency of typesetting in lines.
Description
Technical field
The invention belongs to field of printing and typesetting technology, be specifically related to the method for setting type in a kind of multirow literal line.
Background technology
At present, in the print publishing industry, when word content being set type processing, the overwhelming majority is with behavior unit's composing literal, in carrying out the multirow literal line, set type when handling like this, must use every row of manually setting type literal, the attributes such as alignment thereof of every row are set, simulate and reach the effect of setting type in the row; Perhaps realize that by form the specific implementation method is as follows:
(1) manually set type: the composing personnel require the input word of respectively composing a piece of writing according to format, and word attribute is set, the alignment thereof of word of respectively composing a piece of writing of setting type in the manual adjustment row;
(2) by tabular matter: the composing personnel insert the form of capable 3 row of N according to line number N, the 1st row and the 3rd row are merged into 1 cell respectively, and the cell attribute is set is align center, each cell of middle column is provided with the text justification mode, and the input word of respectively composing a piece of writing, the boundless box properties of form is set then, at last according to how many adjustment unit lattice width attributes of literal.
Above-mentioned two kinds of shortcomings that realize composition method in the multirow literal lines are: manually composing only is suitable for setting type in the row that total line number is an odd-numbered line, and the form of the text formatting of setting type in row and its front and back literal is not simultaneously, can not realize fully accurately setting type in the row; Tabular matter is then wasted time and energy, and has reduced the efficient of setting type in the row.
For a better understanding of the present invention, now briefly introduce as follows to the BD composition language that the present invention relates to: the BD composition language is Beijing University's electronic publishing system a kind of computerese of the row's of being used for books and periodicals specially, it is the specific language of founder book format system, it is explained by more than 100 and forms, each explains the function that oneself is all arranged, indicate some requirement of composing, and definite reach is arranged; Each note of BD composition language all has one or more parameters to select, corresponding certain function of each parameter; A plurality of notes are united use, can finish the space of a whole page of more complicated and set type.
Summary of the invention
At the defective that exists in the prior art, the purpose of this invention is to provide the method for setting type in a kind of multirow literal line, this method can be rapidly and accurately the multirow literal is done as a whole composing in the row of going arbitrarily, improves the efficient of setting type in the row.
For reaching above purpose, the technical solution used in the present invention is that the method for setting type in a kind of multirow literal line may further comprise the steps:
(1) order input wait to set type literal and symbol in the sample editing machine, between the different row with enter key at interval;
(2) according to the user to the composing effect of requirement, in the sample editing machine, insert the BD composition language and explain, according to the BD composition language explain service regeulations will go in literal to be set type do as a whole marking, generate the sample file;
(3) the BD composition language of resolving in the sample file is explained, and the composing parameter of the literal that obtains to wait in the row to set type after setting type according to this composing parameter, generates the full-page proof file;
(4) the full-page proof file browser is resolved this full-page proof file, obtains concrete composing effect.
Further, the order input described in the step (1) is meant according to from left to right, imports successively from the capable order to low row of height.
Described literal to be set type comprises before the literal of waiting to set type in literal to be set type in the row, the row and literal afterwards, and punctuation mark.
Described symbol is meant book version special character, comprises space character, hard return character and EOF.
Further, the BD composition language described in the step (2) explain comprise in the row (HZ) explain and can with row in explain the note that is used.
Explain in the described row and be meant that opening and closing arc explains, the end of status of annotations in the arc label aspirations and conduct is closed in the beginning of status of annotations during the open arc sign is capable, and open arc is literal to be set type in going with the literal that closes between the arc.
Further, based on context the composing parameter described in the step (3) is or is arranged on parameter in the sample editing machine and the interface is set obtains.
Described process of typeset may further comprise the steps:
1) obtain the first row composing parameter: comprise the word height, word is wide, word space, and row is high, line space, inlet is horizontal, ordinate;
2) composing first row;
3) judge first row end of whether setting type, then change step 4) in this way, as otherwise commentaries on classics step 2);
4) backup lastrow composing parameter obtains next line composing parameter;
5) calculate the downward displacement of this style of writing word, and inlet is horizontal, ordinate;
6) this row of setting type;
7) judge the end of whether setting type of this row, then change step 8) in this way, as otherwise change step 6);
8) this style of writing word is to bottom offset;
9) judge whether all row of literal of waiting to set type in the row all set type and finish, then change step 10) in this way, as otherwise change step 4);
10) wait to set type literal literal before in the row to bottom offset;
11) calculate horizontal, the ordinate of literal inlet after the literal of waiting in the row to set type;
12) set type and to wait to set type literal after the literal in the row.
Further, the detailed process of composing delegation may further comprise the steps step 2) and in the step 7):
1. calculate horizontal stroke, the ordinate of this first word of row, first word of setting type;
2. judge whether this row finishes, and then changes step 4. in this way, as otherwise change step 3.;
3. calculating horizontal stroke, the ordinate of the next word of this row: horizontal ordinate=previous word horizontal ordinate+word is wide+word space, ordinate is identical with previous word ordinate, and the commentaries on classics step is 2. behind this word of setting type;
4. this row is set type and is finished.
In the step 10), the literal literal before of waiting in the row to set type to the computing formula of the displacement of bottom offset is (the literal word height before the line space sum between high sums of row of all row+all row-all row)/2.
Further, respectively compose a piece of writing in the row in the concrete composing effect described in the step (4) alignment thereof of word is left-justify, Right Aligns, align center or distributed.
Further, the left-Aligned method of word that realizes respectively composing a piece of writing in the row is: when input waited to set type literal in the sample editing machine, the BD composition language of insertion was explained to explaining in the row; When setting type, each line entry ordinate is identical, is current ordinate y; Each row outlet horizontal ordinate has been arranged the walkthrough horizontal ordinate x of the next word that obtains after the last character for each row
n, x
n=x
N-1+ (zk+zj) * m
i, x
1=x, x are current horizontal ordinate; The downward displacement d of each row
n=d
N-1+ hj_1+zg_1, d
1=0.Described current horizontal stroke, ordinate are meant the one layout region upper left corner point coordinate of first first word of row; Zk is that word is wide, and zj is a word space, and hj_1 is 0 for the line space of each row with lastrow during first row, and zg_1 is the word height of lastrow literal, is 0 during first row; m
i, n is variable, m
iRepresent the number of words that i is capable, n represents line number, n>2.
The right-aligned method of word that realizes respectively composing a piece of writing in the row is: at first realize the word left-justify of respectively composing a piece of writing in the row, calculate the line width of each row then, each style of writing word is moved right, the displacement that moves deducts the line width of each row for maximum line length in each row in the row.
The method of word align center of realizing respectively composing a piece of writing in the row is: at first realize the word left-justify of respectively composing a piece of writing in the row, calculate the line width of each row then, each style of writing word is moved right, the displacement that moves deducts after line width of each row divided by 2 for maximum line length in each row in the row.
The method of word distributed of realizing respectively composing a piece of writing in the row is: when input waited to set type literal in the sample editing machine, the BD composition language of insertion was explained to explaining in the row and alignment is explained; When setting type, the process of composing delegation literal may further comprise the steps after the word left-justify of respectively composing a piece of writing in realizing going:
1) obtain alignment character-spacing dzj, calculate one's own profession line width wide and one's own profession outlet horizontal ordinate Xc, wherein, wide=dzj* (zk+zj), Xc=x+wide; X is this line entry horizontal ordinate, and zk is that word is wide, and zj is a word space;
2) judge whether one's own profession finishes, then change step 3) in this way, as otherwise obtain following parameter: zk, zj calculates the horizontal ordinate of each literal of one's own profession;
3) judge whether one's own profession is individual character, then step 7) is changeed in move to right (wide-zk)/2 back of individual character in this way, as otherwise change step 4);
4) obtain one's own profession number of words n;
5) k (word of the 1<k<n) k* (wide-n* (zk+zj))/(n-1) that moves to right;
6) the n word moves to right: wide-n*zk-(n-1) * zj;
7) delegation sets type and finishes.
Effect of the present invention is: behind wait in the line of input to set type in the sample editing machine literal and composition language of assisting and the symbol, can convenient, fast and accurately realize the effect of setting type in the multirow literal line having improved the efficient of setting type in the row by coordinate adjustment to wait in the row to set type each row of literal and the word of respectively composing a piece of writing.
Description of drawings
Fig. 1 is the process flow diagram of the method for the invention;
Fig. 2 waits to set type the process flow diagram of text composition in the row in the specific embodiment of the invention;
Fig. 3 imports the content synoptic diagram in the sample editing machine among the embodiment 1;
Fig. 4 is the effect synoptic diagram of embodiment 1;
Fig. 5 imports the content synoptic diagram in the sample editing machine among the embodiment 2;
Fig. 6 is the effect synoptic diagram of embodiment 2;
Fig. 7 imports the content synoptic diagram in the sample editing machine among the embodiment 3;
Fig. 8 is the effect synoptic diagram of embodiment 3.
Embodiment
As shown in Figure 1, the composition method of setting type in a kind of multirow literal line may further comprise the steps.
(1) in the sample editing machine, imports wait to set type literal and symbol (seeing S11) in proper order; Described order input is meant sets type literal by capable, the from left to right successively input capable to hanging down of height with waiting in the row; Described literal to be set type comprises before the literal of waiting to set type in literal to be set type in the row, the row and literal afterwards, and punctuation mark; Described symbol is meant book version special character; Between the different row with enter key 36 at interval.
(2) according to the user to the composing effect of requirement, in the sample editing machine, insert the BD composition language and explain, according to the BD composition language explain service regeulations will go in literal to be set type do as a whole marking, generate sample file (seeing S12).Described BD composition language note comprises the note that HZ (in going) explains and can explain the use that match with HZ, as HT (Chinese body) note 51, DQ (alignment) note 71 etc.Explain in the described row and be meant that opening and closing arc explains, open arc 31 indicates the beginning of status of annotations in the row, closes the end of status of annotations in the arc 34 sign row, and open arc 31 and the literal that closes between the arc 34 are literal to be set type in going.
(3) the BD composition language of resolving in the sample file is explained, and according to context or user the composing parameter of the literal that obtains to wait in the row to set type is set, and after setting type according to this composing parameter, generates full-page proof file (seeing S13).
As shown in Figure 2, the detailed process of composing may further comprise the steps:
1) obtain the first row composing parameter: comprise the word height, word is wide, word space, and row is high, line space, (seeing S201) such as inlet horizontal stroke, ordinates;
2) composing first row (seeing S202);
3) judge first row end (seeing S203) of whether setting type, then change step 4) in this way, as otherwise commentaries on classics step 2);
4) backup lastrow composing parameter obtains next line composing parameter (seeing S204);
5) calculate the downward displacement of colleague's literal, and inlet is horizontal, ordinate (seeing S205);
6) this row (seeing S206) of setting type;
7) judge the end (seeing S207) of whether setting type of this row, then change step 8) in this way, as otherwise change step 6);
8) colleague's literal is to bottom offset (seeing S208);
9) judge whether that all row all set type to finish (seeing S209), then change step 10) in this way, as otherwise change step 4);
10) wait to set type literal literal before in the row to bottom offset (seeing S210);
11) calculate horizontal, the ordinate (seeing S211) of literal inlet after the literal of waiting in the row to set type;
12) set type and to wait to set type literal (seeing S212) after the literal in the row.
Wherein, step 2) and the detailed process of setting type in the step 7) may further comprise the steps:
1. calculate horizontal stroke, the ordinate of this first word of row, first word of setting type;
2. judge whether this row finishes, and then changes step 4. in this way, as otherwise change step 3.;
3. calculating horizontal stroke, the ordinate of the next word of this row: horizontal ordinate=previous word horizontal ordinate+word is wide+word space, ordinate is constant, changes step 2. behind this word of setting type;
4. this row is set type and is finished.
In the step 10), the literal literal before of waiting in the row to set type to the computing formula of the displacement of bottom offset is: (the literal word height before the line space sum between high sums of row of all row+all row-all row)/2.
(4) the full-page proof file browser is resolved this full-page proof file, obtains concrete composing effect (seeing S14), and the alignment thereof of the word of wherein respectively composing a piece of writing in the row comprises left-justify, Right Aligns, align center and distributed.
Embodiment 1
To enter " " Micky Mouse and Donald duck " " iron fan princess " " brave princess Xi Rui " " Finding Nemo " " in the middle of " cartoon: " and " being about to show " with delegation is that example is described in detail the method for the invention.Effect after the composing is identical with the text formatting of its front and back for the form of row Chinese words, and alignment thereof is left-justify, as shown in Figure 4.
At first, the literal " cartoon: " on the literal left side of in the sample editing machine, waiting in the line of input to set type, then according to capable of low row from height, literal to be set type in the order line of input from left to right " " Micky Mouse and Donald duck " " iron fan princess " " brave princess Xi Rui " " Finding Nemo " ", between the different rows with enter key at interval, the literal of literal back of waiting in the last line of input to set type " is about to show ", inserts book version special character simultaneously, as shown in Figure 3.Wherein, 32 is space character, and 33 is the hard return character, and 35 is EOF, and 36 is enter key.
Secondly, the HZ that adds in the BD composition language in the literal of waiting to set type in the row of sample editing machine input explains, according to HZ explain service regeulations will go in literal to be set type do as a whole marking.Described HZ explains to opening and closing arc and explains, and the end of arc label will HZ status of annotations is closed in the beginning of open arc sign HZ status of annotations, and open arc is literal to be set type in going with the literal that closes between the arc.The result of use HZ note mark in the present embodiment " " Micky Mouse and Donald duck " " iron fan princess " " brave princess Xi Rui " " Finding Nemo " " as shown in Figure 3.Wherein, 31 is open arc, and 34 for closing arc.
Once more, start " text is sent a manuscript to the compositor " function in the sample editing machine, the HZ that analyzes in the sample file explains, and according to above obtaining the composing parameter, the back of setting type generates the full-page proof file, and the parameter and the computing formula that relate in the process of typeset are as follows.
(1) according to above or hereinafter obtaining the wide zk of word, word space zj, the high zg of word, the high hg of row, line-spacing hj, current horizontal ordinate x, current ordinate y; Described current horizontal stroke, ordinate are the point coordinate in the one layout region upper left corner of first first word of row, and current horizontal stroke, ordinate are " " " upper left corner point coordinate in the present embodiment.
(2) calculate following parameters according to the above-mentioned parameter that obtains:
Wait in the row to set type each line entry horizontal stroke of literal, ordinate: each line entry horizontal stroke, ordinate are identical, are current horizontal stroke, ordinate x, y.
Each row outlet horizontal ordinate has been arranged the walkthrough horizontal ordinate x of the next word that obtains after the last character for each row
n, x
n=x
N-1+ (zk+zj) * m
i, x
i=x.Each row downward displacement: d
n=d
N-1+ hj_1+zg_1, d
1=0.
Wait in the row to set type the literal word height of literal (being " cartoon: " in the present embodiment) before line space sum-all row between the high sums of row+all row of all row of the displacement dy=of bottom offset before the literal)/2
Wait in the row to set type horizontal, ordinate: the Xc=Max (Xn) of literal inlet after the literal, Yc=y+dy.
Above-mentioned current horizontal stroke, ordinate is meant the one layout region upper left corner point coordinate of first first word of row; Hj_1 is 0 for the line space of each row with lastrow during first row, and zg_1 is the word height of lastrow literal, is 0 during first row; m
i, n is variable, m
iRepresent the number of words that i is capable, n represents line number, n>2,1≤i≤n.
According to the content in the above composing parameter composing sample editing machine, generate the full-page proof file.
At last, the full-page proof file browser is resolved this full-page proof file, obtains concrete composing effect, as shown in Figure 3.
Embodiment 2
The parts different with embodiment 1 are: the composing parameter of the literal of waiting in the row to set type is not based on context to obtain, but according to User Defined acquisition is set, with the form that satisfies the literal of waiting in the row to set type with its before and after the different user's request of text formatting.During specific implementation, can in the sample editing machine, provide User Defined to be provided with and wait to set type text composition bound of parameter face in the row.This interface can comprise parameters such as font that the literal of waiting to set type in the row is set, font size, word space, line space, alignment thereof.
The composing effect that present embodiment obtains as shown in Figure 6, the alignment thereof of composing literal still is left-justify in the row, but first row is bigger than the literal font size of its front with the literal font size of second row, so composing parameter of these two row, can not obtain by context, can the self-defined parameters such as font size, word space, line space that are provided with in interface be set by parameter.During composing, set type according to the parameter that the user is provided with.If the user is not provided with the composing parameter of layout setting delegation in parameter, then the composing parameter of this row is still obtained by context.The BD composition language that inserts in the sample editing machine is explained and is comprised that HZ (in the row) and HT (Chinese body) 51 explain, as shown in Figure 5.
Embodiment 3
Be with the difference of embodiment 1: the composing effect of acquisition as shown in Figure 8, the alignment thereof of the word of respectively composing a piece of writing at once is a distributed.The BD composition language that inserts in the sample editing machine comprises that HZ and DQ (alignment) 71 explain, as shown in Figure 7.
Realize respectively composing a piece of writing in the row after the word left-justify, the process of composing delegation may further comprise the steps:
(1) obtain alignment character-spacing dzj, calculate one's own profession line width wide and one's own profession outlet horizontal ordinate Xc, wherein, wide=dzj* (zk+zj), Xc=x+wide; X is this line entry coordinate; The alignment character-spacing can be provided with in DQ explains, and as shown in Figure 7, also can layout setting be set in parameter;
(2) judge whether one's own profession finishes, then change step (3) in this way, as otherwise obtain following parameter: the wide zk of word, word space zj calculates the horizontal ordinate of each literal of one's own profession;
(3) judge whether one's own profession is individual character, then step (7) is changeed in move to right (wide-zk)/2 back of individual character in this way, as otherwise change step (4);
(4) obtain one's own profession number of words n;
(5) k (word of the 1<k<n) k* (wide-n* (zk+zj))/(n-1) that moves to right;
(6) n words move to right: wide-n*zk-(n-1) * zj;
(7) delegation sets type and finishes.
Embodiment 4
Difference from Example 1 is: the literal Right Aligns of waiting to set type in the composing effect requirements row.Because not having to explain the Right Aligns that uses that matches with HZ in the existing BD composition language explains, therefore on the basis of embodiment 1, by literal to be set type in the left-Aligned row is carried out the coordinate adjustment, each style of writing word suitable distance that moves right can realize right-aligned composing effect.The computation process of the distance that moves to right is: at first calculate and wait to set type each line width of going of literal in the trip, select maximum line width as reference, the displacement that each row moves right equals the line width that maximum line length deducts each row, and the line width maximum row does not move.
Embodiment 5
Difference from Example 1 is: the literal align center of waiting to set type in the composing effect requirements row.Because not having to explain the align center that uses that matches with HZ in the existing BD composition language explains, therefore on the basis of embodiment 1, by literal to be set type in the left-Aligned row is carried out the coordinate adjustment, each style of writing word suitable distance that moves right can realize right-aligned composing effect.The computation process of the distance that moves to right is: at first calculate line width of each row of literal of waiting in the trip to set type, select maximum line width as reference, the displacement that each row moves right equals after line width that maximum line length deducts each row again divided by 2, and the line width maximum row does not move.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to technological innovation scope of the present invention equally.
Claims (14)
1. the method for setting type in the multirow literal line may further comprise the steps:
(1) order input wait to set type literal and symbol in the sample editing machine, between the different row with enter key at interval;
(2) according to the user to the composing effect of requirement, in the sample editing machine, insert the BD composition language and explain, according to the BD composition language explain service regeulations will go in literal to be set type do as a whole marking, generate the sample file;
(3) the BD composition language of resolving in the sample file is explained, and the composing parameter of the literal that obtains to wait in the row to set type after setting type according to this composing parameter, generates the full-page proof file;
(4) the full-page proof file browser is resolved this full-page proof file, obtains the effect of setting type.
2. the method for setting type in a kind of multirow literal line as claimed in claim 1 is characterized in that: the order input described in the step (1) is meant according to from left to right, imports successively from the capable order to low row of height.
3. the method for setting type in a kind of multirow literal line as claimed in claim 1 is characterized in that: the literal to be set type described in the step (1) comprises before the literal of waiting to set type in literal to be set type in the row, the row and literal afterwards, and punctuation mark.
4. the method for setting type in a kind of multirow literal line as claimed in claim 1 is characterized in that: the symbol described in the step (1) is meant book version special character, comprises space character, hard return character and EOF.
5. the method for setting type in a kind of multirow literal line as claimed in claim 1, it is characterized in that: BD composition language described in the step (2) explain comprise explain in the row and can with row in explain the note that is used, explain in the described row and be meant that opening and closing arc explains, the beginning of status of annotations during the open arc sign is capable, close the end of status of annotations in the arc label aspirations and conduct, open arc and the literal that closes between the arc are literal to be set type in the row.
6. the method for setting type in a kind of multirow literal line as claimed in claim 1 is characterized in that: the composing parameter described in the step (3) is based on context to obtain or by parameter the interface is set to obtain.
7. the method for setting type in a kind of multirow literal line as claimed in claim 6 is characterized in that: described parameter is provided with layout setting in the sample editing machine.
8. the method for setting type in a kind of multirow literal line as claimed in claim 1 is characterized in that: the process of typeset described in the step (3) may further comprise the steps:
1) obtain and wait to set type literal first row composing parameter in the row: comprise the word height, word is wide, word space, and row is high, line space, inlet is horizontal, ordinate;
2) composing first row;
3) judge first row end of whether setting type, then change step 4) in this way, as otherwise commentaries on classics step 2);
4) backup lastrow composing parameter obtains next line composing parameter;
5) calculate the downward displacement of this style of writing word, and inlet is horizontal, ordinate;
6) this row of setting type;
7) judge the end of whether setting type of this row, then change step 8) in this way, as otherwise change step 6);
8) this style of writing word is to bottom offset;
9) judge whether all row of literal of waiting to set type in the row all set type and finish, then change step 10) in this way, as otherwise change step 4);
10) wait to set type literal literal before in the row to bottom offset;
11) calculate horizontal, the ordinate of literal inlet after the literal of waiting in the row to set type;
12) set type and to wait to set type literal after the literal in the row.
9. the method for setting type in a kind of multirow literal line as claimed in claim 8 is characterized in that: step 2) and step 7) in the detailed process of composing delegation may further comprise the steps:
1. calculate horizontal stroke, the ordinate of this first word of row, first word of setting type;
2. judge whether this row finishes, and then changes step 4. in this way, as otherwise change step 3.;
3. calculating horizontal stroke, the ordinate of the next word of this row: horizontal ordinate=previous word horizontal ordinate+word is wide+word space, ordinate is identical with previous word ordinate, and the commentaries on classics step is 2. behind this word of setting type;
4. this row is set type and is finished.
10. the method for setting type in a kind of multirow literal line as claimed in claim 8, it is characterized in that, in the step 10), the literal literal before of waiting in the row to set type to the computing formula of the displacement of bottom offset is: (the literal word height before the line space sum between high sums of row of all row+all row-all row)/2.
11. as the method for setting type in described a kind of multirow literal line one of in the claim 1 to 10, it is characterized in that: the alignment thereof of the word of respectively composing a piece of writing in the row in the concrete composing effect described in the step (4) is left-justify, the left-Aligned method of word that realizes respectively composing a piece of writing in the row is: when input waited to set type literal in the sample editing machine, the BD composition language of insertion was explained to explaining in the row; When setting type, each line entry horizontal stroke, ordinate are identical, are current horizontal stroke, ordinate x, y; Each row outlet horizontal ordinate has been arranged the walkthrough horizontal ordinate x of the next word that obtains after the last character for each row
n, x
n=x
N-1+ (zk+zj) * m
i, x
1=x, x are current horizontal ordinate; The downward displacement d of each row
n=d
N-1+ hj_1+zg_1, d
1=0;
Described current horizontal stroke, ordinate are meant the one layout region upper left corner point coordinate of first first word of row; Zk is that word is wide, and zj is a word space, and hj_1 is 0 for the line space of each row with lastrow during first row, and zg_1 is the word height of lastrow literal, is 0 during first row; m
i, n is variable, m
jRepresent the number of words that i is capable, n represents line number, n>2.
12. the method for setting type in a kind of multirow literal line as claimed in claim 11, it is characterized in that: the alignment thereof of the word of respectively composing a piece of writing in the row in the concrete composing effect described in the step (4) is a Right Aligns, the right-aligned method of word that realizes respectively composing a piece of writing in the row is: at first realize the word left-justify of respectively composing a piece of writing in the row, calculate the line width of each row then, each style of writing word is moved right, and the displacement that moves deducts the line width of each row for maximum line length in each row in the row.
13. the method for setting type in a kind of multirow literal line as claimed in claim 11, it is characterized in that: the alignment thereof of the word of respectively composing a piece of writing in the row in the concrete composing effect described in the step (4) is an align center, the method of word align center of realizing respectively composing a piece of writing in the row is: at first realize the word left-justify of respectively composing a piece of writing in the row, calculate the line width of each row then, each style of writing word is moved right, and the displacement that moves deducts after line width of each row divided by 2 for maximum line length in each row in the row.
14. the method for setting type in a kind of multirow literal line as claimed in claim 11, it is characterized in that: the word alignment thereof of respectively composing a piece of writing in the row in the concrete composing effect described in the step (4) is a distributed, the method of word distributed of realizing respectively composing a piece of writing in the row is: when input waited to set type literal in the sample editing machine, the BD composition language of insertion was explained to explaining in the row and alignment is explained; When setting type, the process of composing delegation literal may further comprise the steps after the word left-justify of respectively composing a piece of writing in realizing going:
1) obtain alignment character-spacing dzj, calculate one's own profession line width wide and one's own profession outlet horizontal ordinate Xc, wherein, wide=dzj* (zk+zj), Xc=x+wide; X is this line entry horizontal ordinate, and zk is that word is wide, and zj is a word space;
2) judge whether one's own profession finishes, then change step 3) in this way, as otherwise obtain following parameter: zk, zj calculates the horizontal ordinate of each literal of one's own profession;
3) judge whether one's own profession is individual character, then step 7) is changeed in move to right (wide-zk)/2 back of individual character in this way, as otherwise change step 4);
4) obtain one's own profession number of words n;
5) k (word of the 1<k<n) k* (wide-n* (zk+zj))/(n-1) that moves to right;
6) the n word moves to right: wide-n*zk-(n-1) * zj;
7) delegation sets type and finishes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101147050A CN101295290B (en) | 2008-06-11 | 2008-06-11 | Method for multi-row words layout in row |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101147050A CN101295290B (en) | 2008-06-11 | 2008-06-11 | Method for multi-row words layout in row |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101295290A true CN101295290A (en) | 2008-10-29 |
CN101295290B CN101295290B (en) | 2011-11-09 |
Family
ID=40065582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101147050A Expired - Fee Related CN101295290B (en) | 2008-06-11 | 2008-06-11 | Method for multi-row words layout in row |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101295290B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101526999B (en) * | 2008-11-24 | 2012-05-16 | 北京大学 | Image and character separating and outputting device and method thereof |
CN102103593B (en) * | 2009-12-18 | 2012-10-31 | 北大方正集团有限公司 | Method and system for splitting and typesetting strokes of characters |
CN103186519A (en) * | 2011-12-31 | 2013-07-03 | 北大方正集团有限公司 | Bi-directional typesetting method and device |
CN104410798A (en) * | 2014-11-07 | 2015-03-11 | 北京东方艾迪普科技发展有限公司 | Text feature parameter processing method and equipment |
CN104516868A (en) * | 2013-09-30 | 2015-04-15 | 北大方正集团有限公司 | Layout space streaming restoring method and layout space streaming restoring system |
CN104615340A (en) * | 2015-01-23 | 2015-05-13 | 深圳市金立通信设备有限公司 | Terminal |
CN104615693A (en) * | 2015-01-23 | 2015-05-13 | 深圳市金立通信设备有限公司 | Data display method |
CN104750671A (en) * | 2013-12-25 | 2015-07-01 | 北大方正集团有限公司 | Method and device for inserting bi-directional typesetting character on the basis of inverted sequence of full-page proof |
CN105447181A (en) * | 2015-12-15 | 2016-03-30 | 中智城信息科技(苏州)有限公司 | Method for organizing material simplification brightness coefficient data of illumination design calculation platform |
CN111967228A (en) * | 2020-08-18 | 2020-11-20 | 刘伟 | Method and device for editing joint issuing agency mark |
CN114063938A (en) * | 2020-07-31 | 2022-02-18 | 株式会社理光 | Print data processing apparatus, printing system, and print data processing method |
CN117994170A (en) * | 2024-03-08 | 2024-05-07 | 广州大学 | Shredded paper splicing and recovering method and system based on semantic error correction and association |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7010746B2 (en) * | 2002-07-23 | 2006-03-07 | Xerox Corporation | System and method for constraint-based document generation |
CN100392641C (en) * | 2006-08-16 | 2008-06-04 | 北京北大方正电子有限公司 | Method for implementing automatic typesetting based on cloning block |
CN100435139C (en) * | 2006-10-13 | 2008-11-19 | 北京北大方正电子有限公司 | Method for aligning unit lattice specific symbol |
CN100501722C (en) * | 2007-01-25 | 2009-06-17 | 北京方正国际软件系统有限公司 | Template device of style set for quick formatting layout, and implement method |
CN100501723C (en) * | 2007-01-25 | 2009-06-17 | 北京方正国际软件系统有限公司 | Layout data reusing method based on exhale annotation |
-
2008
- 2008-06-11 CN CN2008101147050A patent/CN101295290B/en not_active Expired - Fee Related
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101526999B (en) * | 2008-11-24 | 2012-05-16 | 北京大学 | Image and character separating and outputting device and method thereof |
CN102103593B (en) * | 2009-12-18 | 2012-10-31 | 北大方正集团有限公司 | Method and system for splitting and typesetting strokes of characters |
US9613005B2 (en) | 2011-12-31 | 2017-04-04 | Peking University Founder Group Co., Ltd. | Method and apparatus for bidirectional typesetting |
CN103186519A (en) * | 2011-12-31 | 2013-07-03 | 北大方正集团有限公司 | Bi-directional typesetting method and device |
WO2013097805A1 (en) * | 2011-12-31 | 2013-07-04 | 北大方正集团有限公司 | Bi-directional typesetting method and device |
CN103186519B (en) * | 2011-12-31 | 2017-04-05 | 北大方正集团有限公司 | Two-way composition method and equipment |
CN104516868A (en) * | 2013-09-30 | 2015-04-15 | 北大方正集团有限公司 | Layout space streaming restoring method and layout space streaming restoring system |
CN104516868B (en) * | 2013-09-30 | 2018-03-06 | 北大方正集团有限公司 | The streaming restoring method and system in a kind of space of a whole page space |
CN104750671A (en) * | 2013-12-25 | 2015-07-01 | 北大方正集团有限公司 | Method and device for inserting bi-directional typesetting character on the basis of inverted sequence of full-page proof |
CN104750671B (en) * | 2013-12-25 | 2019-01-11 | 北大方正集团有限公司 | A kind of two-way typesetting character insertion method and device based on full-page proof inverted sequence |
CN104410798B (en) * | 2014-11-07 | 2017-10-27 | 艾迪普(北京)文化科技股份有限公司 | A kind of method and apparatus of character features parameter processing |
CN104410798A (en) * | 2014-11-07 | 2015-03-11 | 北京东方艾迪普科技发展有限公司 | Text feature parameter processing method and equipment |
CN104615340A (en) * | 2015-01-23 | 2015-05-13 | 深圳市金立通信设备有限公司 | Terminal |
CN104615693A (en) * | 2015-01-23 | 2015-05-13 | 深圳市金立通信设备有限公司 | Data display method |
CN104615340B (en) * | 2015-01-23 | 2019-05-14 | 深圳市金立通信设备有限公司 | A kind of terminal |
CN105447181A (en) * | 2015-12-15 | 2016-03-30 | 中智城信息科技(苏州)有限公司 | Method for organizing material simplification brightness coefficient data of illumination design calculation platform |
CN105447181B (en) * | 2015-12-15 | 2020-06-09 | 中智城信息科技(苏州)有限公司 | Material simplified brightness coefficient data organization method for illumination design computing platform |
CN114063938A (en) * | 2020-07-31 | 2022-02-18 | 株式会社理光 | Print data processing apparatus, printing system, and print data processing method |
CN114063938B (en) * | 2020-07-31 | 2023-10-27 | 株式会社理光 | Print data processing apparatus, print system, and print data processing method |
CN111967228A (en) * | 2020-08-18 | 2020-11-20 | 刘伟 | Method and device for editing joint issuing agency mark |
CN111967228B (en) * | 2020-08-18 | 2024-01-23 | 刘伟 | Editing method and device for joint textbook office mark |
CN117994170A (en) * | 2024-03-08 | 2024-05-07 | 广州大学 | Shredded paper splicing and recovering method and system based on semantic error correction and association |
Also Published As
Publication number | Publication date |
---|---|
CN101295290B (en) | 2011-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101295290B (en) | Method for multi-row words layout in row | |
CN102779118B (en) | Paper typesetting method and system | |
CN105159877B (en) | A kind of across media automatic typesetting systems and its method | |
US7705848B2 (en) | Method of identifying semantic units in an electronic document | |
CN101206639A (en) | Method for indexing complex impression based on PDF | |
CN106294304B (en) | Method for automatically identifying format document annotation and converting format document annotation into streaming document annotation | |
CN101872340A (en) | Typesetting method and device based on format layout template | |
CN109857670B (en) | Test report automatic generation method based on universal template | |
CN104951429A (en) | Recognition method and device for page headers and page footers of format electronic document | |
CN101470698B (en) | Layout method and corresponding system for symbol of sending organizations | |
CN103885731A (en) | Data printing method and device | |
Clausner et al. | Efficient ocr training data generation with aletheia | |
Grätzer | More Math Into LATEX | |
CN103176956B (en) | For the method and apparatus extracting file structure | |
CN113011129A (en) | General DOC (document management interface), DOCX (document data entry) and INDD (input document description) document typesetting engine and method | |
CN101673406B (en) | Method and device for setting font | |
CN101419719B (en) | Generate the method and apparatus of the page | |
CN106406560A (en) | Method and system for outputting vector fonts of mechanical engineering characters in desktop operation system | |
CN102841888A (en) | Rapid typesetting system and method | |
CN104156345A (en) | Method and device for identifying explanatory text in portable document format file | |
CN111179381A (en) | Automatic typesetting method for image and text | |
CN105335346A (en) | PDF (Portable Document Format) document text extracting method and device | |
CN104516866B (en) | The method of typesetting along word | |
CN104424184B (en) | Generate the method and system of font character library | |
CN102693217B (en) | Automatic layout method by table font and paper size analysis |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111109 Termination date: 20170611 |