CN103186518B - Containing composition method and the system of footnote document - Google Patents

Containing composition method and the system of footnote document Download PDF

Info

Publication number
CN103186518B
CN103186518B CN201110458288.3A CN201110458288A CN103186518B CN 103186518 B CN103186518 B CN 103186518B CN 201110458288 A CN201110458288 A CN 201110458288A CN 103186518 B CN103186518 B CN 103186518B
Authority
CN
China
Prior art keywords
footnote
block
typesetting
text
text block
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.)
Expired - Fee Related
Application number
CN201110458288.3A
Other languages
Chinese (zh)
Other versions
CN103186518A (en
Inventor
王斌
杨雷鸣
王全鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201110458288.3A priority Critical patent/CN103186518B/en
Publication of CN103186518A publication Critical patent/CN103186518A/en
Application granted granted Critical
Publication of CN103186518B publication Critical patent/CN103186518B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention provides a kind of composition method containing footnote document and system, belong to typesetting system field, it can solve the problem that the existing typesetting technique containing footnote document can not realize layout of a page without columns typesetting.Composition method containing footnote document of the present invention comprises text typesetting and footnote typesetting, have in the row that footnote typesetting in the end enters during footer mark and be initiated, it comprises: the footnote content corresponding with footer mark is entered the footnote block corresponding with text block, and the height of corresponding increase footnote block; Judge whether text block and footnote block overlap, and if it is carry out backtracking typesetting; Delete the row and subsequent full content that overlap with footnote block in text block first hurdle, reduce text block height to not overlapping with footnote block, by deleted content again typesetting in the text block highly reduced.Composing system containing footnote document of the present invention comprises the processing unit corresponding with the step of said method.The present invention can be used for the multicolumn typesetting containing footnote document.

Description

Containing composition method and the system of footnote document
Technical field
The invention belongs to typesetting system field, be specifically related to a kind of composition method containing footnote document and system.
Background technology
" footnote " is the note explained body matter be positioned at below text.When typesetting (such as generating full-page proof by sample) is carried out to the document containing footnote, corresponding text block and footnote block are set usually in character block.Wherein " character block " referring to one piece of continuous print, for entering the region of the content of same document, one page can be used as a character block, to available one piece of spaces of a whole page such as newpapers and periodicals as a character block to books; " text block " refers to the region for entering body matter (referring to the body matter of article), it is rectangle, along with the increase of the content entered wherein, text block height increases, and expand downwards (its lower edge declines gradually in other words) from character block upper end gradually, until meet with footnote block upper edge, body matter afterwards can be discharged in next character block or text block; " footnote block " refers to the region for entering footnote content, it is rectangle, is positioned at bottom character block, below text block, along with the increase entering wherein content, footnote tile height increases, and to character block upper end expansion (its upper edge raises gradually in other words); Obviously, footnote block should be corresponding with text block, and the footnote content corresponding to footer mark namely in certain text block should be arranged in the footnote block below it.Certainly, except text block and footnote block, other content also can be comprised in character block, as margin, header, footer, title block etc.
The existing composition method containing footnote document comprises " text typesetting " process, enter line by line in text block 1 by text, and often enter a line and all check in this row and whether have footer mark (namely in figure subscript form 1., 2., 3. mark) entering in process.When there being footer mark in certain row, then cause " footnote typesetting " process, footnote typesetting comprises:
If now also corresponding with this text block 1 footnote block 2, then bottom character block, set up footnote block 2, if now have footnote block 2, skip this step and directly enter next step;
Footnote content to be entered in this footnote block 2 and the height of corresponding increase footnote block 2, namely keep footnote block 2 height to adapt with its content, and footnote block 2 is positioned at bottom character block, below text block 1 all the time;
Footnote typesetting completes, and proceeds text typesetting, until run into next footer mark again cause footnote typesetting.
Certainly, also may there is the situation finding that footnote block 2 is arranged not in footnote typesetting, even footnote content be entered footnote block 2 and footnote block 2 will be caused overlapping with text block 1.Such as, as shown in Figure 1, last column text enter rear text block 1 connected with footnote block 2 or distance very near, if now the footnote content that footnote in this row is 3. corresponding is entered footnote block 2, then footnote block 2 highly must also will increase (namely will rise in its upper edge), thus cause footnote block 2 overlapping with text block 1, cause form chaotic.Therefore, as shown in Figure 2, need the last column of deleting text block 1 in this case, this row text (and footer mark) is moved in next character block or text block 1, corresponding footnote content is also discharged in the footnote block 2 corresponding with next character block or text block 1, to ensure not only can not cause form confusion but also footer mark can be made to be positioned at corresponding position with footnote content; Certainly, one section of blank can be left after such typesetting in current character block.
As shown in Figure 3, when having multiple hurdle 91,92 in a character block, the existing composition method containing footnote document is in each hurdle 91,92, arrange a text block 1 and a corresponding footnote block 2, in other words each hurdle 91,92 " regarding as " character block is processed.
Inventor finds that in prior art, at least there are the following problems: when text block 1 is divided into multiple hurdle 91,92, existing composition method can only arrange independent footnote block 2 bottom every hurdle 91,92, and can not be arranged on the layout of a page without columns footnote block transversely crossing over multiple hurdle 91,92.If this is because use layout of a page without columns footnote block, then when there is footer mark in Hou Lan (as the second hurdle 92), in footnote block 2, enter footnote content will inevitably make footnote block 2 highly increase, but the text block 1 now in the first hurdle 91 typesetting completes, its lower edge is inevitable adjacent with footnote block 2 upper edge (otherwise body matter can not be discharged in the text block 1 on the second hurdle 92), therefore the increase of footnote block 2 height can cause form chaotic.That is, the existing composition method containing footnote document cannot in, if use layout of a page without columns footnote block, then having in any hurdle 92 except the first hurdle 91 during footer mark all to cause form chaotic, therefore the existing composition method containing footnote document can not carry out the typesetting of layout of a page without columns footnote, can only carry out the typesetting of subfield footnote, but this typesetting form is single, and not meeting the reading habit of books (especially Chinese books) etc., the inconvenience of typesetting result uses.
Summary of the invention
Technical matters to be solved by this invention comprises, and can only carry out the problem of subfield footnote typesetting for the composition method containing footnote document of the prior art, provides a kind of composition method containing footnote document realizing the typesetting of layout of a page without columns footnote.
The technical scheme that solution the technology of the present invention problem adopts is a kind of composition method containing footnote document, comprise text typesetting and footnote typesetting, described text typesetting comprises and in the text block of character block, enters body matter line by line also detect in the row finally entered whether have footer mark; Footnote typesetting has during footer mark and is initiated in the described row finally entered, and it comprises:
Step 01, the footnote content corresponding with described footer mark is entered the footnote block corresponding with described text block, and the height of corresponding increase footnote block; Wherein, described text block is divided at least two hurdles in the horizontal, and described footnote block is positioned at bottom described character block, below text block, and it crosses over whole hurdles of described text block in the horizontal;
Step 02, judge whether described text block and footnote block overlap, if yes then enter step 03, if otherwise continue text typesetting;
Step 03, delete the row and subsequent full content that overlap with footnote block in described text block first hurdle, reduce text block height to not overlapping with footnote block, by the typesetting again of described deleted content in the text block of highly reduction.
In a text block, there is multiple hurdle containing in the composition method of footnote document due to of the present invention, and by content after this again typesetting (recalling typesetting) the part that can overlap from the first hurdle when footnote block and text block overlap, no matter therefore where there is footer mark, it all can ensure that the result of footnote typesetting is correct, form can not be caused chaotic, therefore the typesetting of layout of a page without columns footnote can be realized, type-setting mode is various, cut the reading habit that typesetting result meets books etc., easy to use.
Preferably, described step 01 comprises:
Step 01-1, judge whether the footnote block corresponding with described text block, if otherwise enter step 01-2, if it is directly enter step 01-3;
Step 01-2, set up the footnote block corresponding with described text block;
Step 01-3, the footnote content corresponding with described footer mark entered described with the corresponding footnote block of text block, and the height of corresponding increase footnote block.
Further preferably, described step 01-3 comprises:
Step 01-3-1, increase the height of described footnote block to maximal value;
Step 01-3-2, the footnote content corresponding with described footer mark is entered in described footnote block;
Step 01-3-3, reduce described footnote block height to can just be accommodated therein footnote content.
Further preferably,
Described step 01-3-1 is specially: raise the upper edge of described footnote block to increase the height of described footnote block to maximal value;
Described step 01-3-3 is specially: the lower edge raising described footnote block with the height reducing footnote block to can just be accommodated therein footnote content, and described footnote block is moved downward to extreme lower position.
Preferably, described step 02 is specially: the position relationship analyzing described footnote block upper edge and described text block lower edge; If described footnote block upper edge is equal to or less than described text block lower edge, then judge that described text block and footnote block do not overlap, continue text typesetting; If described footnote block upper edge is higher than described text block lower edge, then judges that described text block and footnote block overlap, enter step 03.
Preferably, described step 03 comprises:
Step 03-1, delete the row that overlaps with footnote block in described text block first hurdle with and subsequent full content, and using the content of described deletion stored in buffer memory as backtracking typesetting content;
Step 03-2, reduction text block height be not to overlapping with footnote block;
Step 03-3, according to the backtracking typesetting content stored in described buffer memory, highly reduce text block in by the typesetting again of described deleted part.
Preferably, in described step 03, described footnote block and footnote content wherein remain constant.
Preferably, described footnote typesetting, after step 03, also comprises: step 04, judgement cause the position of the footer mark of described footnote typesetting; If described footer mark still comes in current text block, continue text typesetting; If described footer mark is discharged in next text block, then current text block and corresponding footnote block are reduced to the situation before described footnote typesetting, delete the row at footer mark place described in current text block, and from this row, continue text typesetting in next text block.
Technical matters to be solved by this invention also comprises, and can only carry out the problem of subfield footnote typesetting for the composing system containing footnote document of the prior art, provides a kind of composing system containing footnote document realizing the typesetting of layout of a page without columns footnote.
The technical scheme that solution the technology of the present invention problem adopts is a kind of composing system containing footnote document, comprise text typesetting unit and footnote typesetting unit, described text typesetting unit is used for entering body matter line by line in the text block of character block, and detects in the row finally entered whether have footer mark; Described footnote typesetting unit comprises:
Footnote module unit, for creating footnote block, the height of adjustment footnote block, and the footnote content corresponding with footer mark is entered in footnote block; Wherein, described text block is divided at least two hurdles in the horizontal, and described footnote block is positioned at bottom described character block, below text block, and it crosses over whole hurdles of described text block in the horizontal;
Judging unit, for judging whether described text block and footnote block overlap;
Backtracking typesetting unit, for deleting the row and subsequent full content that overlap with footnote block in text block first hurdle when described text block and footnote block overlap, reduce the height of text block to not overlapping with footnote block, and by the typesetting again of described deleted content in the text block highly reduced.
Have the unit corresponding with the step of above-mentioned composition method due to of the present invention containing in the composing system of footnote document, therefore it can realize the typesetting of layout of a page without columns footnote, and type-setting mode is various, and typesetting result meets the reading habit of books etc., easy to use.
Preferably, described footnote module unit also comprises buffer unit, and it is for storing at least one following content:
Time before starting footnote typesetting, the full detail of described text block and corresponding footnote block;
Time before deleting the row and subsequent full content overlapped with footnote block in text block first hurdle, the composition information of described deleted content;
Time before deleting the row and subsequent full content overlapped with footnote block in text block first hurdle, the full detail of described footnote block.
The present invention is specially adapted to the multicolumn typesetting containing footnote document.
Accompanying drawing explanation
Fig. 1 is the typesetting result schematic diagram of the existing composition method containing footnote document before the footer mark of process last column;
Fig. 2 is the typesetting result schematic diagram of the existing composition method containing footnote document after the footer mark of process last column;
Fig. 3 is the typesetting result schematic diagram of existing multicolumn composition method;
Fig. 4 is a middle typesetting result schematic diagram of the composition method containing footnote document of embodiments of the invention 2;
Fig. 5 is the situation schematic diagram of composition method when text block and footnote block overlap containing footnote document of embodiments of the invention 2;
Fig. 6 is the situation schematic diagram of composition method in backtracking process of typeset containing footnote document of embodiments of the invention 2;
Fig. 7 is the typesetting result schematic diagram of composition method after backtracking typesetting completes containing footnote document of embodiments of the invention 2;
Fig. 8 is the schematic flow sheet of the composition method containing footnote document of embodiments of the invention 2.
Embodiment
For making those skilled in the art understand technical scheme of the present invention better, below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
Embodiment 1:
The present embodiment provides a kind of composition method containing footnote document, comprises text typesetting and footnote typesetting, and described text typesetting comprises and in the text block of character block, enters body matter line by line also detect in the row finally entered whether have footer mark; Footnote typesetting has during footer mark and is initiated in the described row finally entered, and it comprises:
Step 01, the footnote content corresponding with described footer mark is entered the footnote block corresponding with described text block, and the height of corresponding increase footnote block; Wherein, described text block is divided at least two hurdles in the horizontal, and described footnote block is positioned at bottom described character block, below text block, and it crosses over whole hurdles of described text block in the horizontal;
Step 02, judge whether described text block and footnote block overlap, if yes then enter step 03, if otherwise continue text typesetting;
Step 03, delete the row and subsequent full content that overlap with footnote block in described text block first hurdle, reduce text block height to not overlapping with footnote block, by the typesetting again of described deleted content in the text block of highly reduction.
Because containing in the composition method of footnote document of the present embodiment has multiple hurdle in a text block, and by content after this again typesetting (recalling typesetting) the part that can overlap from the first hurdle when footnote block and text block overlap, no matter therefore where there is footer mark, it all can ensure that the result of footnote typesetting is correct, form can not be caused chaotic, therefore the typesetting of layout of a page without columns footnote can be realized, type-setting mode is various, cut the reading habit that typesetting result meets books etc., easy to use.
Embodiment 2:
As shown in Figures 4 to 7, the present embodiment provides a kind of composition method containing footnote document, and it comprises text typesetting and footnote composition step.Wherein, text typesetting is step S100, footnote typesetting be step S101 to step S104, step S103 for backtracking typesetting.
S100, text typesetting, namely in the text block 1 of character block, body matter is entered line by line, and detect in the row finally entered whether have footer mark at any time, as then do not continued text typesetting, enter next line text, if any then entering step S101, namely cause the footnote process of typeset that step S101 to step S104 describes.Wherein, text block 1 is divided at least two hurdles 91,92 in the horizontal; Text typesetting by hurdle 91,92, line by line from top to bottom carry out (different according to text type, transversely typesetting can be arranged from left to right, also can arrange from right to left), entering next group 92 after one hurdle 91 is booked (is the first hurdle 91 with what be booked at first, Russia is the second hurdle 92, third column etc. successively afterwards), enter next text block 1 after last hurdle 92 is booked and continue typesetting.In the process of typeset on the first hurdle 91 of a text block 1, text block 1 increases (namely lower edge moves down gradually) highly gradually, and in the process of typeset on other hurdle 92 afterwards, text block 1 height can no longer change (except during backtracking typesetting).
S101, the footnote content corresponding with the footer mark footer mark of this footnote typesetting (guide send out) is entered the footnote block 2 corresponding with text block 1, and the height of corresponding increase footnote block 2; This footnote block 2 is positioned at bottom character block, below text block 1, and its whole hurdles crossing over text block 1 in the horizontal (are layout of a page without columns footnote, as shown in Figure 4).This step detailed process can comprise:
Whether S1011, judgement now have the footnote block 2 (namely judge current text block 1 below whether have footnote block 2) corresponding with text block 1, if otherwise enter step S1012, if it is directly enter step S1013.
S1012, set up the footnote block 2 corresponding with text block 1; Namely new footnote block 2 is set up when not having footnote block 2.
S1013, the footnote content corresponding with footer mark to be entered with text block 1 in corresponding footnote block 2, and the height of corresponding increase footnote block 2.The bottom of footnote block 2 is added by footnote content, and the inevitable corresponding rising of the height of footnote block 2.
Preferably, this step (step S1013) can be undertaken by following process: increase the height of footnote block 2 to maximal value, it raises preferably by by the upper edge of footnote block 2 to increase the height of footnote block 2 to maximal value, in footnote block 2, existing content also can together raise (it may be temporarily overlapping with text block 1, but do not affect final typesetting result) simultaneously; Enter in footnote block 2 by the footnote content corresponding with footer mark afterwards, namely in footnote block 2, add content, because now footnote block 2 is highly maximum, therefore footnote content can add wherein certainly; The height reducing footnote block 2 to can just be accommodated therein footnote content, its be preferably the lower edge that first raises footnote block 2 with the height reducing footnote block 2 to can just be accommodated therein footnote content, afterwards footnote block 2 entirety is moved downward to extreme lower position.Because the content in footnote block 2 is typesetting from the top down, therefore the method for above-mentioned increase footnote block 2 height can ensure that the content that need increase must correct entering in footnote block 2, and footnote block 2 finally can be got back to again bottom character block.
Certainly, the height increasing footnote block 2 also can be undertaken by other method, such as, can increase the height of footnote block 2 gradually by behavior unit, often increase a line and then enter corresponding footnote content wherein, if can be drained, height control completes, as can not be then increased a line again and continue to enter.Because the concrete grammar of the height increasing footnote block 2 is various, just no longer it is described in detail one by one at this.
S102, judge whether text block 1 and footnote block 2 overlap, if yes then enter step S103 (namely recalling composition step), if otherwise continue text typesetting (namely getting back to step S100).That is, because footnote content is entered footnote block 2 rear foot castable 2 highly must increase, so time it likely overlaps (as shown in Figure 5) with the body matter that typesetting completes, backtracking typesetting will be carried out to body matter if overlapped.
Concrete, the position relationship by analyzing footnote block 2 upper edge and text block 1 lower edge in this step judges whether text block 1 and footnote block 2 overlap; If footnote block 2 upper edge is equal to or less than text block 1 lower edge, then judges that text block 1 and footnote block 2 do not overlap, continue the text typesetting of step S100; If footnote block 2 upper edge is higher than text block 1 lower edge, then judges that text block 1 and footnote block 2 overlap, enter step S103 and carry out backtracking typesetting.
S103, backtracking typesetting, namely delete the row overlapped with footnote block 2 in text block 1 first hurdle 91 and subsequent full content (namely in text block 1 except the content on the top on the first hurdle 91, other content is all deleted), reduce text block 1 height to not overlapping with footnote block 2 (as shown in Figure 6), by deleted content again typesetting (as shown in Figure 7) in the text block 1 highly reduced.
Because footnote block 2 is layouts of a page without columns, and text block 1 first hurdle 91 must be booked at first, therefore once footnote block 2 and text block 1 overlap, text block 1 first hurdle 91 content bottom (is generally last column, if but the footnote content once entered is more, also may be multirow) will inevitably be overlapping with footnote content; Therefore the content that at this moment the first lower end, hurdle 91 should be overlapped is deleted and again entered the second row upper end, and the form of the second hurdle 92 and the complete content of whole typesettings afterwards all will inevitably change thus.Therefore, the row overlapped with footnote block 2 in text block 1 first hurdle 91 and subsequent content is needed all to delete, reduce the height (even if its lower edge is moved) of text block 1 again, afterwards deleted content is entered again in the text block 1 highly reduced.Because in backtracking process of typeset, text block 1 is highly defined constant, and the height of footnote block 2 also can not continue to raise (because footnote corresponding in the content of typesetting again was all once discharged in footnote block 2), therefore, recall typesetting complete after footnote block 2 must be overlapping again with text block 1.
Preferably, this step S103 specifically can comprise:
S1031, delete the row that overlaps with footnote block 2 in text block 1 first hurdle 91 with and subsequent full content, and using the content of deleting stored in buffer memory as recalling typesetting content.That is, the content of deletion is stored in buffer memory for subsequent use.
S1032, reduction text block 1 height be not to overlapping with footnote block 2.
S1033, according to the backtracking typesetting content stored in buffer memory, highly reduce text block 1 in by deleted part again typesetting.That is, in the process of backtracking typesetting, be not really carry out a typesetting completely again, but utilize buffer memory, content (backtracking typesetting content) typesetted before carries out typesetting.Such as, if the width on each hurdle is equal, and only have last column deleted in the first hurdle 91, then when recalling typesetting can directly by the last column " movement " on former first hurdle 91 to the second top, hurdle 92, and the second meaningful entirety in Central Plains, hurdle 92 " moves down " a line; If also have more hurdle, then can continue the top of the last two rows " movement " on the second hurdle 92 to third column, the meaningful entirety in third column Central Plains " moves down ", and by that analogy.
Obviously, this backtracking composition method of buffer memory that utilizes can reduce backtracking time of typesetting and operand.
Preferably, in step s 103, footnote block 2 and footnote content are wherein remained constant (such as being realized by buffer memory).Footnote in fact typesetting in above-mentioned deleted content (namely needing the content of carrying out typesetting again) completes, and for layout of a page without columns footnote, even if concrete column number, line number etc. after backtracking typesetting residing for footer mark change, corresponding footnote block 2 and footnote content also need not convert; Therefore, in backtracking process of typeset, can not reprocessing footnote, namely footnote block 2 is kept and footnote content is constant (such as can be stored in buffer memory by the situation of the footnote block 2 before backtracking typesetting and footnote content, read again after backtracking typesetting), thus reduce time and the operand of backtracking typesetting.
Certainly, if do not use above-mentioned preferred backtracking composition method, and really re-starting typesetting (certainly text block 1 highly must keep the size after reducing) now all completely to deleted content and corresponding footnote, is also feasible.
S104, preferred, judge the position causing the footer mark of this footnote process of typeset; If this footer mark still comes in current text block 1, continue text typesetting; If it is discharged in next text block 1, then current text block 1 and corresponding footnote block 2 are reduced to the situation before footnote typesetting, delete the row (row be namely finally discharged into) at footer mark place, and from this row, continue text typesetting in next text block 1.
Obviously, in backtracking typesetting, due to the height reduction of current text block 1, therefore its content that can hold will inevitably reduce, if and the footer mark location comparison causing this footnote typesetting (namely cause this backtracking typesetting) rearward the bottom of a hurdle (such as in the end), then after backtracking typesetting, it may be discharged in next text block 1 (text block 1 of such as next character block), but footer mark and footnote content will be caused like this to be in respectively in not corresponding text block 1 and footnote block 2.Therefore, after backtracking typesetting, first can judge the position of the footer mark causing footnote typesetting, if it is still come in current text block 1, then continue text typesetting (namely starting to enter the next line that this footer mark is expert at), if this footer mark is discharged in next text block 1, then should by text block 1, footnote block 2 is reduced to the situation before footnote typesetting all completely (by text block 1, the height of footnote block 2, position, contents etc. are all reduced, it realizes by buffer memory), delete the row (last column namely entered in text process of typeset before this) at this footer mark place again, afterwards in next text block 1, from just now deleted row (i.e. the row at this footer mark place), continue text typesetting, namely just now deleted row and corresponding footnote content are entered in next text block 1 and footnote block 2 (obvious respectively, last footnote during above-mentioned reduction in footnote block 2 also can be deleted, because its revert to footnote typesetting start before state, now only in text block 1, have footer mark and without corresponding footnote content in footnote block 2).Certainly, similar with existing method, now can leave one section of blank in current character block; With existing method unlike, also comprise in the process of step S104 reduction current text block 1, footnote block 2 process.
Embodiment 3:
The present embodiment provides a kind of composing system containing footnote document, comprises text typesetting unit and footnote typesetting unit.
Wherein, text typesetting unit is used for entering body matter line by line in the text block of character block, and detects in the row finally entered whether have footer mark.
Footnote typesetting unit comprises:
Footnote module unit, for creating footnote block, the height of adjustment footnote block, and the footnote content corresponding with footer mark is entered in footnote block; Wherein, text block is divided at least two hurdles in the horizontal, and footnote block is positioned at bottom character block, below text block, and it crosses over whole hurdles of text block in the horizontal.
Judging unit, for judging whether text block and footnote block overlap.
Backtracking typesetting unit, for deleting the row and subsequent full content that overlap with footnote block in text block first hurdle when text block and footnote block overlap, reduce the height of text block to not overlapping with footnote block, and by deleted content again typesetting in the text block highly reduced.
Preferably, footnote module unit also comprises buffer unit, and it is for storing at least one following content: time before starting footnote typesetting, the full detail (height, position, content etc. of text block, footnote block) of text block and corresponding footnote block; Time before deleting the row and subsequent full content overlapped with footnote block in text block first hurdle, the composition information (i.e. above-mentioned backtracking composition information) of deleted content; Time before deleting the row and subsequent full content overlapped with footnote block in text block first hurdle, the full detail of footnote block.
Because containing in the composing system of footnote document of the present embodiment has the unit corresponding with the step of above-mentioned composition method, therefore it can realize the typesetting of layout of a page without columns footnote, and type-setting mode is various, and typesetting result meets the reading habit of books etc., easy to use.
Obviously, the various embodiments described above also can carry out many changes containing the composition method of footnote document and system; Such as: judge the step of text block column number by increasing, above-mentioned composition method is also applicable to the text block of not subfield, namely not subfield time by existing conventional method typesetting, press above-mentioned method typesetting during subfield; The known steps in other existing composition method also can be comprised, as the typesetting to header, footer etc. in composition method; The specific algorithm of each step in composition method, process can be different; Each unit in composing system can be independently parts, and also accessible site is integrated (being such as integrated into a processor and a storer); Also other conventional components can be comprised, as display, input control device, power supply, shell etc. in composing system.
Be understandable that, the illustrative embodiments that above embodiment is only used to principle of the present invention is described and adopts, but the present invention is not limited thereto.For those skilled in the art, without departing from the spirit and substance in the present invention, can make various modification and improvement, these modification and improvement are also considered as protection scope of the present invention.

Claims (10)

1. containing the composition method of footnote document, comprise text typesetting and footnote typesetting, described text typesetting comprises and in the text block of character block, enters body matter line by line also detect in the row finally entered whether have footer mark; Footnote typesetting has during footer mark and is initiated in the described row finally entered, and it is characterized in that, described footnote typesetting comprises:
Step 01, the footnote content corresponding with described footer mark is entered the footnote block corresponding with described text block, and the height of corresponding increase footnote block; Wherein, described text block is divided at least two hurdles in the horizontal, and described footnote block is positioned at bottom described character block, below text block, and it crosses over whole hurdles of described text block in the horizontal;
Step 02, judge whether described text block and footnote block overlap, if yes then enter step 03, if otherwise continue text typesetting;
Step 03, delete the row and subsequent full content that overlap with footnote block in described text block first hurdle, reduce text block height to not overlapping with footnote block, by the typesetting again of described deleted content in the text block of highly reduction.
2. the composition method containing footnote document according to claim 1, it is characterized in that, described step 01 comprises:
Step 01-1, judge whether the footnote block corresponding with described text block, if otherwise enter step 01-2, if it is directly enter step 01-3;
Step 01-2, set up the footnote block corresponding with described text block;
Step 01-3, the footnote content corresponding with described footer mark entered described with the corresponding footnote block of text block, and the height of corresponding increase footnote block.
3. the composition method containing footnote document according to claim 2, it is characterized in that, described step 01-3 comprises:
Step 01-3-1, increase the height of described footnote block to maximal value;
Step 01-3-2, the footnote content corresponding with described footer mark is entered in described footnote block;
Step 01-3-3, reduce described footnote block height to can just be accommodated therein footnote content.
4. the composition method containing footnote document according to claim 3, is characterized in that,
Described step 01-3-1 is specially: raise the upper edge of described footnote block to increase the height of described footnote block to maximal value;
Described step 01-3-3 is specially: the lower edge raising described footnote block with the height reducing footnote block to can just be accommodated therein footnote content, and described footnote block is moved downward to extreme lower position.
5. the composition method containing footnote document according to claim 1, it is characterized in that, described step 02 is specially:
Analyze the position relationship of described footnote block upper edge and described text block lower edge; If described footnote block upper edge is equal to or less than described text block lower edge, then judge that described text block and footnote block do not overlap, continue text typesetting; If described footnote block upper edge is higher than described text block lower edge, then judges that described text block and footnote block overlap, enter step 03.
6. the composition method containing footnote document according to claim 1, it is characterized in that, described step 03 comprises:
Step 03-1, delete the row that overlaps with footnote block in described text block first hurdle with and subsequent full content, and using the content of described deletion stored in buffer memory as backtracking typesetting content;
Step 03-2, reduction text block height be not to overlapping with footnote block;
Step 03-3, according to the backtracking typesetting content stored in described buffer memory, highly reduce text block in by the typesetting again of described deleted part.
7. the composition method containing footnote document according to claim 1, is characterized in that,
In described step 03, described footnote block and footnote content wherein remain constant.
8. the composition method containing footnote document as claimed in any of claims 1 to 7, it is characterized in that, described footnote typesetting, after step 03, also comprises:
Step 04, judgement cause the position of the footer mark of described footnote typesetting; If described footer mark still comes in current text block, continue text typesetting; If described footer mark is discharged in next text block, then current text block and corresponding footnote block are reduced to the situation before described footnote typesetting, delete the row at footer mark place described in current text block, and from this row, continue text typesetting in next text block.
9. the composing system containing footnote document, comprise text typesetting unit and footnote typesetting unit, described text typesetting unit is used for entering body matter line by line in the text block of character block, and detect in the row finally entered whether have footer mark, have during footer mark in the row that described footnote typesetting unit in the end enters and be initiated, it is characterized in that, described footnote typesetting unit comprises:
Footnote module unit, for creating footnote block, the height of adjustment footnote block, and the footnote content corresponding with footer mark is entered in footnote block; Wherein, described text block is divided at least two hurdles in the horizontal, and described footnote block is positioned at bottom described character block, below text block, and it crosses over whole hurdles of described text block in the horizontal;
Judging unit, for judging whether described text block and footnote block overlap;
Backtracking typesetting unit, for deleting the row and subsequent full content that overlap with footnote block in text block first hurdle when described text block and footnote block overlap, reduce the height of text block to not overlapping with footnote block, and by the typesetting again of described deleted content in the text block highly reduced.
10. the composing system containing footnote document according to claim 9, it is characterized in that, described footnote module unit also comprises buffer unit, and it is for storing at least one following content:
Time before starting footnote typesetting, the full detail of described text block and corresponding footnote block;
Time before deleting the row and subsequent full content overlapped with footnote block in text block first hurdle, the composition information of described deleted content;
Time before deleting the row and subsequent full content overlapped with footnote block in text block first hurdle, the full detail of described footnote block.
CN201110458288.3A 2011-12-31 2011-12-31 Containing composition method and the system of footnote document Expired - Fee Related CN103186518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110458288.3A CN103186518B (en) 2011-12-31 2011-12-31 Containing composition method and the system of footnote document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110458288.3A CN103186518B (en) 2011-12-31 2011-12-31 Containing composition method and the system of footnote document

Publications (2)

Publication Number Publication Date
CN103186518A CN103186518A (en) 2013-07-03
CN103186518B true CN103186518B (en) 2015-12-02

Family

ID=48677689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110458288.3A Expired - Fee Related CN103186518B (en) 2011-12-31 2011-12-31 Containing composition method and the system of footnote document

Country Status (1)

Country Link
CN (1) CN103186518B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572605B (en) * 2013-10-16 2019-03-08 北大方正集团有限公司 The implementation method and device of footnote typesetting
CN108153718B (en) * 2016-12-06 2022-11-15 方正国际软件(北京)有限公司 Typesetting method and device for footnote-containing document
CN111090980A (en) * 2019-12-18 2020-05-01 北大方正集团有限公司 PDF file generation method, computer equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908942A (en) * 2006-08-28 2007-02-07 李博航 Webpage content typesetting technique
CN102147791A (en) * 2011-04-02 2011-08-10 数字时代出版设计有限公司 Automatic book typesetting method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7472340B2 (en) * 2004-12-20 2008-12-30 Microsoft Corporation Method and computer-readable medium for generating a multiple column layout
US7698637B2 (en) * 2005-01-10 2010-04-13 Microsoft Corporation Method and computer readable medium for laying out footnotes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908942A (en) * 2006-08-28 2007-02-07 李博航 Webpage content typesetting technique
CN102147791A (en) * 2011-04-02 2011-08-10 数字时代出版设计有限公司 Automatic book typesetting method and system

Also Published As

Publication number Publication date
CN103186518A (en) 2013-07-03

Similar Documents

Publication Publication Date Title
CN102339275B (en) Comment processing method and device for electronic book
US8553015B2 (en) Electronic device and information processing method
US9275017B2 (en) Methods, systems, and media for guiding user reading on a screen
JP5826299B2 (en) Rebuilding lists in a document
CN105069060B (en) HTML document paging typesetting method
JP5545286B2 (en) Electronic document display apparatus, image processing apparatus, image output method, and program
CN103092822A (en) Method and device for adding annotations in electronic document
CN103186518B (en) Containing composition method and the system of footnote document
CN102929846B (en) A kind of method processing long text and device
CN102722476A (en) A method and device for marking electronic documents
CN1936882A (en) Paging form data-processing method and system
CN105808110B (en) Table display method and display device
US20110113318A1 (en) Information processing device, method, and computer-readable recording medium recording program
JP5880152B2 (en) Document creation support program and document creation support apparatus
KR101768899B1 (en) Electronic document editing device capable of inserting memo in paragraph and operating method thereof
CN105389112B (en) Display method for writing on user terminal and user terminal
CN105373526A (en) Blank region processing method and system for electronic document
CN101286146A (en) Typesetting method and system
JP2014021694A (en) Portable information terminal, table display method for portable information terminal and table display program for portable information terminal
CN112328926B (en) Text paragraph folding and unfolding method based on webpage
JP2006236277A (en) Content display device, content display program, and recording medium recording content display program
JP6550713B2 (en) Text display device, program and control method
JP5864316B2 (en) Document speed reading support device
CN104572605A (en) Footnote typesetting implementation method and device
KR101328557B1 (en) Character input apparatus having expanded edit function

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220620

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District, Cheng Fu Road, No. 298, Zhongguancun Fangzheng building, 5 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

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