CN101419714A - Interactive document typesetting method based on quick sketch - Google Patents
Interactive document typesetting method based on quick sketch Download PDFInfo
- Publication number
- CN101419714A CN101419714A CNA2008101217462A CN200810121746A CN101419714A CN 101419714 A CN101419714 A CN 101419714A CN A2008101217462 A CNA2008101217462 A CN A2008101217462A CN 200810121746 A CN200810121746 A CN 200810121746A CN 101419714 A CN101419714 A CN 101419714A
- Authority
- CN
- China
- Prior art keywords
- document
- stroke
- sketch
- user
- literal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000002452 interceptive effect Effects 0.000 title claims abstract description 13
- 238000013461 design Methods 0.000 claims abstract description 19
- 230000008569 process Effects 0.000 claims description 19
- 230000000694 effects Effects 0.000 claims description 13
- 238000012217 deletion Methods 0.000 claims description 9
- 230000037430 deletion Effects 0.000 claims description 9
- 238000004422 calculation algorithm Methods 0.000 claims description 3
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 3
- 239000000203 mixture Substances 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 239000004744 fabric Substances 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000012938 design process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004816 latex Substances 0.000 description 1
- 229920000126 latex Polymers 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The invention discloses an interactive document typesetting method based on draft sketch. The method comprises the following steps: (1) a user draws and modifies a draft which is used for guiding the design and editing of the document typesetting in a sketch way; (2) a layout is generated for the document typesetting based on the draft sketched by the user; (3) the user modifies the layout for the document typesetting by the way of drawing sketch strokes; (4). the user selects words and images by drawing the sketch strokes in an electronic document, and then determines positions of the selected words and images placed in a document layout by drawing the sketch strokes in the document layout, and fills the selected words and images in a designated bounding box of the document layout; (5) the document layout is optimized; and (6) the user modifies the document typesetting by drawing the sketch strokes. The method for the document typesetting by the sketch strokes causes the document typesetting work to be more suitable for the habit of using pens and paper by the user, thus being more humanized, simple and easily learned.
Description
Technical field
The present invention relates to the human-computer interaction technology of document typesetting design, relate in particular to a method of carrying out the document typesetting design based on the literary sketch stroke.
Background technology
But document typesetting is one uses general loaded down with trivial details work, existing document typesetting instrument mainly comprises two kinds, a kind of is the composing instrument of What You See Is What You Get type, the user can operate composing with management document by the graphic interface that system provides, the Word of Microsoft and PowerPoint are the composing instruments of most typical What You See Is What You Get, for this class composing instrument, the user is difficult to specified documents composing scheme, in addition, the user also needs to specify one by one the style of literal, picture, icon, also can not set type to document automatically certainly; Another kind of instrument needs the user to write script to finish the document typesetting process, and the shortcoming of this type-setting mode is the user can not see composing in writing the process of script a effect, also needs to be grasped this script in addition.Latex is exactly typical composing instrument based on script.In recent years, there are a lot of scientists to be devoted to the research of document automatic typesetting, by Charles Jacobs, Wilmot Li, Evan Schrier, adaptive document layout (the AdaptiveGrid-Based Document Layout) system that David Bargeron and David Salesin proposed in 2003 based on grid.All be regarded as stream at this system's Chinese version and picture, the user determines the template of document by script, the composing meeting of literal and picture subsequently generates automatically, the author has also defined the quality that a series of function is estimated the composing effect, and the composing effect is optimized, the shortcoming of this method is that the user needs to be grasped the skill of writing script.
User interface based on quick sketch also is current hot research field, and to be Takeo Igarashi in 2003 propose in " a kind of design tool of the 3 D auto shape based on quick sketch " (Teddy:A Sketching Interface for 3D Freeform Design) foremost user interface based on quick sketch passes through the instrument that two-dimentional stroke is carried out the 3 D auto shape.In 2002, Anabela Caetano has proposed the system of a JavaSketchIt by name in " the use quick sketch carries out the problem in the user-interface design " (JavaSketchIt:Issues in Sketching theLook of User Interface) literary composition, the mode of supporting the user to retouch by picture element in this system is carried out user interface design, and the shortcoming of this system is that system can only discern a spot of stroke shape.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, a kind of interactive document typesetting method based on quick sketch that meets user operation habits more is provided.
Interactive document typesetting method based on quick sketch comprises the steps:
1) user draws and revises sketch in the mode of literary sketch, and this sketch is used to instruct the design and the editor of document typesetting;
2) sketch according to user's literary sketch generates the layout that is used for document typesetting;
3) user makes amendment to the layout of document typesetting by the mode of drawing the literary sketch stroke;
4) user selects literal and picture by draw the literary sketch stroke in electronic document, the user determines that by draw the literary sketch stroke in document layout figure the literal chosen and picture are placed on the position among the document layout figure, are filled in literal and the picture of choosing in the bounding box of document layout figure appointment subsequently;
5) document layout is optimized;
6) user revises document typesetting by picture literary sketch stroke.
Described user draws and revises sketch in the mode of literary sketch, and this sketch is used to instruct the design and the editing steps of document typesetting:
(a) user is by drawing the sketch that the literary sketch stroke is drawn the document typesetting layout freely;
(b) draw the speed of drawing stroke in the process of literary sketch stroke according to the user and direction the user and detect the polygon that occurs in the process of the sketch that the user draws, all strokes of forming a closed polygon are regarded as an integral body;
(c) user draws the operation stroke of given shape, and that the operation stroke comprises is mobile, deletion, rotation and fill text and the bounding box of picture, and one or more literary sketch stroke in the document typesetting designing draft is deleted, moved and the operation of rotation;
(d) draw in the process of literary sketch stroke the user, whether the literary sketch stroke trajectory shape of drawing by user relatively identical with the shape of operating stroke, detects the operation stroke whether occurred, if the operation stroke, then operate according to step (c);
The described step that generates the layout that is used for document typesetting according to the sketch of user's literary sketch:
(e) draw detected each polygonal area in the process of literary sketch stroke according to the formula estimation of calculating area of a polygon the user, when polygonal area greater than a critical value A
_ thresholdThe time, then this polygon is represented the bounding box of literal and picture;
(f) for detected polygon, cross on the polygon uppermost point and nethermost point and make horizontal line, cross leftmost point and rightmost point is made perpendicular line, the zone of four linescan cameras is polygonal minimum boundary rectangle, and this rectangle is the bounding box of document layout figure Chinese words and picture;
(g) one by one the gentle vertical line of border water that is communicated with among the document layout figure, do not belong to the white space in any literal and the picture bounding box is coupled together, the polygon of each connection is all represented the bounding box of a literal and picture;
The step that described user makes amendment to the layout of document typesetting by the mode of drawing the literary sketch stroke:
(h) user draws free stroke and operation stroke on document layout figure;
(i) draw in the process of literary sketch stroke the user, whether the literary sketch stroke trajectory shape by relatively user's drafting is identical with the shape of operation stroke, detect and the operation stroke whether occurred, if the operation stroke, then operate, be presented on the screen in real time to the effect that document layout figure adjusts by the operation stroke according to step (c);
Described user selects literal and picture by draw the literary sketch stroke in electronic document, the user determines that by draw the literary sketch stroke in document layout figure the literal chosen and picture are placed on the position among the document layout figure subsequently, the step in the bounding box that the literal chosen and picture are filled in document layout figure appointment:
(j) open literal paragraph and the picture that detects behind the electronic document in the document, all document elements except that literal all are considered as picture, and the minimum rectangle of surrounding picture is the bounding box of picture, and the minimum rectangle of encirclement literal paragraph is the bounding box of literal;
(k) user selects literal and picture in the cofree drafting literary sketch of electronic document stroke, and which bounding box the coordinate of the literary sketch stroke of drawing according to the user determines stroke in, and literal in these bounding boxes and picture are exactly literal and the picture of being chosen by the user;
(l) user draws on document layout figure literal and picture is placed on an operation stroke in the specific border frame, and system determines to fill the bounding box of literal and picture according to the position of this operation stroke
(m) according to the size adjustment character script size of bounding box selected on document layout figure and the size of picture, make literal and picture that all are selected can be placed in the chosen bounding box;
The described step that document layout is optimized:
(n) distance of all top margins from the document coboundary of aliging is H ± d
hBounding box, and adjust level interval between these bounding boxes, the level interval between per two bounding boxes is equated;
(o) all left sides of aliging are W ± d apart from the distance of document left margin
wBounding box, and adjust vertical interval between these bounding boxes, the vertical interval between per two bounding boxes is equated;
(p) area for institute's bounding box in the document typesetting design surpasses A
Threshold, literal outnumber C
ThresholdThe literal bounding box, its font size must be consistent, use greedy algorithm to select font size in these literal bounding boxes, make literal in these literal bounding boxes in bounding box, and the literal in the bounding box just in time to fill up the number of whole bounding box maximum;
Described user revises the step of the composing of document by picture literary sketch stroke:
(q) user freely draws the literary sketch stroke on the document typesetting layout, relatively the user draws the shape of the operation stroke that defines among the shape of track of stroke and the present invention, identify the operation stroke and carry out corresponding operation according to the definition of operation stroke, the effect of the document typesetting layout being adjusted by the operation stroke is presented on the screen in real time;
(r) adjust the size of bounding box according to user's strokes drawn, and the size of literal and picture in the bounding box, and adjusted result is presented on the screen;
(s) adjust the size and the font size of literal bounding box according to the degree of uniformity of the font size in the different boundary frame in the document typesetting layout, make that the font size in all text bounding boxes is enough approaching except title;
(t) spacing between the adjustment bounding box makes the spacing between all bounding boxes even.
The beneficial effect that the present invention has is that the user can carry out the design and the modification of document typesetting by the literary sketch stroke, literary sketch stroke by identification user drafting, the literary sketch stroke can be converted into document layout figure, the user selectes literal and the picture in the electronic document by the literary sketch stroke and is filled among the document layout figure subsequently, solved existing copy frequent in the document typesetting process and the taping process of carrying out, by optimizing document layout, solved the problem that needs the attribute of manual adjustment literal and picture in the existing document typesetting instrument, in addition, the user is free to draw document layout figure and by drawing the literary sketch stroke document layout is made amendment, this characteristic meets the human use pen and the operating habit of paper more, makes document typesetting design process hommization and rapid and convenient more.
Description of drawings
Fig. 1 fundamental diagram;
The document typesetting designing draft that Fig. 2 user draws;
Fig. 3 (a) move operation stroke synoptic diagram;
Fig. 3 (b) deletion action stroke synoptic diagram;
Fig. 3 (c) rotary manipulation stroke synoptic diagram;
Fig. 3 (d) fills the operation stroke synoptic diagram of bounding box;
Fig. 4 (a) draws the move operation stroke on sketch;
Result behind the polygon on the mobile sketch of Fig. 4 (b);
Fig. 5 (a) draws the rotary manipulation stroke on document layout figure;
The result of the picture among Fig. 5 (b) rotation document layout figure;
Draw free stroke on the width of cloth picture of Fig. 6 (a) in two width of cloth pictures and choose this picture;
Fig. 6 (b) draws the operation stroke of filling bounding box on document layout figure;
Fig. 6 (c) picture is filled in the result among the document layout figure;
Fig. 7 (a) draws the deletion action stroke on the picture of document layout figure;
Effect behind the picture among Fig. 7 (b) deletion document layout figure;
The effect of the polygonal meshization that Fig. 8 will draw out by stroke;
Fig. 9 determines the method for the polygonal extraneous rectangle drawing out by stroke;
Effect before Figure 10 (a) document layout figure optimization;
Effect after Figure 10 (b) document layout figure optimization.
Embodiment
The interactive document typesetting method that the present invention proposes based on quick sketch, it is described in detail as follows in conjunction with the accompanying drawings:
Principle of work of the present invention may further comprise the steps as shown in Figure 1:
1. the user draws and revises sketch in the mode of literary sketch, and this sketch is used to instruct the design and the editing steps of document typesetting:
(a) user is by drawing the sketch that the literary sketch stroke is drawn the document typesetting layout freely, and the sketch that the user draws as shown in Figure 2;
(b) draw in the process of literary sketch stroke the user, in " polygonal identification in the user interface based on the literary sketch stroke " (Polygon Recognition in Sketch-Based Interface withImmediate and Continuous Feedback) literary composition, discern polygonal method according to Peter Agar, speed can be far smaller than the speed when drawing straight line when the user draws the turning, therefore draw the speed of stroke and direction according to the user and detect turning in the polygon that occurs in the process of the sketch that the user draws, thereby the identification polygon, all strokes of forming a closed polygon are regarded as an integral body;
(c) user draws the operation stroke of given shape, the operation stroke comprises mobile, deletion, the bounding box of rotation and filling text and picture, to the operation stroke definition as shown in Figure 3, Fig. 3 (a) is the move operation stroke, if the move operation stroke is in a polygon, perhaps intersect with polygon, then whole polygon moves to the point at the terminal place of arrow under the prerequisite that keeps shape invariance, if the move operation stroke is not in any polygon, any stroke of also getting along well intersects, then do not do any operation, if and the move operation stroke intersects is not to belong to polygonal stroke, under the prerequisite of the shape invariance that then that all and move operation stroke is crossing stroke maintenance is original, move to the position at the terminal place of arrow; Fig. 3 (b) is the deletion action stroke, when the deletion action stroke when polygon is inner, delete whole polygon, otherwise, the polygonal limit that all and deletion stroke intersect or independently stroke can be deleted, Fig. 3 (c) is the rotary manipulation stroke, if the rotary manipulation stroke is in polygon inside, perhaps intersect with a polygonal limit or many limits, then polygon can revolve along the direction of rotation stroke arrow and turn 90 degrees, if rotary manipulation stroke and independently free stroke intersect, then the free stroke that intersects of all and rotary manipulation stroke is revolved along the direction of arrow under the prerequisite that keeps shape invariance and is turn 90 degrees, Fig. 3 (d) is the operation stroke of filling text and picture bounding box, one or more literary sketch stroke in the document typesetting designing draft is deleted, the operation of moving and rotating, the example that carries out move operation by the literary sketch stroke as shown in Figure 4, the example that is rotated operation by the literary sketch stroke as shown in Figure 5, choose picture by the literary sketch stroke, be filled into then in the bounding box operation as shown in Figure 6, the operation of deleting picture by the literary sketch stroke is as shown in Figure 7;
(d) draw in the process of literary sketch stroke the user, adopted Anabela Caetano in " by the problem in the outward appearance of literary sketch stroke design user interface " (JavaSketchIt:Issues in Sketching the Look ofUser Interfaces) literary composition, to propose, whether the literary sketch stroke trajectory shape by relatively user's drafting is identical with the shape of operation stroke, detect and the operation stroke whether occurred, if the operation stroke, then operate according to step (c);
2. generate the step of the layout that is used for document typesetting according to the sketch of user's literary sketch:
(e) estimation is drawn detected each polygonal area in the process of literary sketch stroke the user, when polygonal area greater than a critical value A
_ thresholdThe time, then this polygon is represented the bounding box of literal and picture.The method of estimation area of a polygon is: with polygon P gridding, at the intersection point between per two lines on the grid all is a summit on the grid, as shown in Figure 8, for the point on each polygon finds summit the most contiguous with it on the grid, using line segment to couple together on these summits goes into a new polygon P ', P ' is by a series of square, triangle and trapezoidal composition, subsequently according to square, the formula of triangle and trapezoidal reference area calculates the area of polygon P ', is the approximate area of polygon P;
(f) for detected polygon, cross on the polygon uppermost point and nethermost point and make horizontal line, cross leftmost point and rightmost point is made perpendicular line, article four, the zone of linescan camera is polygonal minimum boundary rectangle, this rectangle is the bounding box of document layout figure Chinese words and picture, as shown in Figure 9;
(g) one by one the gentle vertical line of border water that is communicated with among the document layout figure, do not belong to the white space in any literal and the picture bounding box is coupled together, the polygon of each connection is all represented the bounding box of a literal and picture;
3. user's step of the layout of document typesetting being made amendment by the mode of drawing the literary sketch stroke:
(h) user draws free stroke and operation stroke on document layout figure;
(i) draw in the process of literary sketch stroke the user, adopted Anabela Caetano in " by the problem in the outward appearance of literary sketch stroke design user interface " (JavaSketchIt:Issues in Sketching the Look ofUser Interfaces) literary composition, to propose, whether the literary sketch stroke trajectory shape by relatively user's drafting is identical with the shape of operation stroke, detect and the operation stroke whether occurred, if the operation stroke, then operate, be presented on the screen in real time to the effect that document layout figure adjusts by the operation stroke according to step (c);
4. the user selects literal and picture by draw the literary sketch stroke in electronic document, the user determines that by draw the literary sketch stroke in document layout figure the literal chosen and picture are placed on the position among the document layout figure subsequently, the step in the bounding box that the literal chosen and picture are filled in document layout figure appointment:
(j) open literal paragraph and the picture that detects behind the electronic document in the document, all document elements except that literal all are considered as picture, and the minimum rectangle of surrounding picture is the bounding box of picture, and the minimum rectangle of encirclement literal paragraph is the bounding box of literal;
(k) user selects literal and picture in the cofree drafting literary sketch of electronic document stroke, and which bounding box the coordinate of the literary sketch stroke of drawing according to the user determines stroke in, and literal in these bounding boxes and picture are exactly literal and the picture of being chosen by the user.Judge the literary sketch stroke whether the method in polygon be, at the several points of getting of the first-class interval of literary sketch stroke, cross each point to ray of arbitrarily angled work, be even number as if intersection point number sum with each bar limit of polygon, then this point is outside polygon, otherwise in polygon;
(l) user draws on document layout figure literal and picture is placed on an operation stroke in the specific border frame, and system determines to fill the bounding box of literal and picture according to the position of this operation stroke
(m) according to the size adjustment character script size of bounding box selected on document layout figure and the size of picture, make literal and picture that all are selected can be placed in the chosen bounding box, the method of determining character script size in the text bounding box is: the method for determining the font size of bounding box Chinese words according to the shape of bounding box is to use vectorial V
BoundingBox={ Area, P
Topleft, P
BottomrightCome the attribute of descriptive text bounding box, wherein Area represents the area of bounding box, P
TopleftSummit above the expression bounding box left side, P
BottomrightFixed point below expression the right is used vectorial V
Font={ fontsize, number_of_words} represents word attribute, wherein fontsize represents the font size in the text bounding box, and number_of_words represents the number of character in the literal, and the mapping relations between text bounding box and the font size are fontsize=F (V
BoundingBox, number_of_words),, determine F by the method for machine learning, therefore when given passage, can calculate font size according to the area and the position of bounding box;
5. the step that document layout is optimized:
(n) distance of all top margins from the document coboundary of aliging is H ± d
hBounding box, and adjust level interval between these bounding boxes, the level interval between per two bounding boxes is equated;
(o) all left sides of aliging are W ± d apart from the distance of document left margin
wBounding box, and adjust vertical interval between these bounding boxes, the vertical interval between per two bounding boxes is equated;
(p) area for institute's bounding box in the document typesetting design surpasses A
Threshold, literal outnumber C
ThresholdThe literal bounding box, its font size must be consistent, use greedy algorithm is selected the font size in these literal bounding boxes, make literal in these literal bounding boxes in bounding box, and the number that the literal in the bounding box just in time fills up whole bounding box is maximum, before document layout is optimized and the result after optimizing as shown in figure 10;
6. the user revises the step of the composing of document by picture literary sketch stroke:
(q) user freely draws the literary sketch stroke on the document typesetting layout, adopted Anabela Caetano in " by the problem in the outward appearance of literary sketch stroke design user interface " (JavaSketchIt:Issues inSketching the Look of User Interfaces) literary composition, to propose, whether the literary sketch stroke trajectory shape by relatively user's drafting is identical with the shape of operation stroke, detect and the operation stroke whether occurred, if the operation stroke, then operate, be presented on the screen in real time to the effect that document layout figure adjusts by the operation stroke according to step (c);
(r) adjust the size of bounding box according to user's strokes drawn, and the size of interior literal of bounding box and picture, determine the size of literal in each bounding box according to the method for font size in definite text bounding box of describing in the step (m), processing for picture is, big or small equal proportion scaling pictures according to the picture bounding box, under the prerequisite that does not change the picture length breadth ratio, picture is placed on the central authorities of picture bounding box, subsequently adjusted result is presented on the screen;
(s) adjust the size and the font size of literal bounding box according to the degree of uniformity of the font size in the different boundary frame in the document typesetting layout, make that the font size in all text bounding boxes is enough approaching except title;
(t) spacing between the adjustment bounding box makes the spacing between all bounding boxes even.
Claims (7)
1. the interactive document typesetting method based on quick sketch is characterized in that comprising the steps:
1) user draws and revises sketch in the mode of literary sketch, and this sketch is used to instruct the design and the editor of document typesetting;
2) sketch according to user's literary sketch generates the layout that is used for document typesetting;
3) user makes amendment to the layout of document typesetting by the mode of drawing the literary sketch stroke;
4) user selects literal and picture by draw the literary sketch stroke in electronic document, the user determines that by draw the literary sketch stroke in document layout figure the literal chosen and picture are placed on the position among the document layout figure, are filled in literal and the picture of choosing in the bounding box of document layout figure appointment subsequently;
5) document layout is optimized;
6) user revises document typesetting by picture literary sketch stroke.
2. a kind of interactive document typesetting method based on quick sketch according to claim 1 is characterized in that described user draws and revise sketch in the mode of literary sketch, and this sketch is used to instruct the design and the editing steps of document typesetting:
(a) user is by drawing the sketch that the literary sketch stroke is drawn the document typesetting layout freely;
(b) draw the speed of drawing stroke in the process of literary sketch stroke according to the user and direction the user and detect the polygon that occurs in the process of the sketch that the user draws, all strokes of forming a closed polygon are regarded as an integral body;
(c) user draws the operation stroke of given shape, and that the operation stroke comprises is mobile, deletion, rotation and fill text and the bounding box of picture, and one or more literary sketch stroke in the document typesetting designing draft is deleted, moved and the operation of rotation;
(d) draw in the process of literary sketch stroke the user, whether the literary sketch stroke trajectory shape of drawing by user relatively identical with the shape of operating stroke, detects the operation stroke whether occurred, if the operation stroke, then operate according to step (c);
3. a kind of interactive document typesetting method based on quick sketch according to claim 1 is characterized in that the described step that generates the layout that is used for document typesetting according to the sketch of user's literary sketch:
(e) draw detected each polygonal area in the process of literary sketch stroke according to the formula estimation of calculating area of a polygon the user, when polygonal area greater than a critical value A_
ThresholdThe time, then this polygon is represented the bounding box of literal and picture;
(f) for detected polygon, cross on the polygon uppermost point and nethermost point and make horizontal line, cross leftmost point and rightmost point is made perpendicular line, the zone of four linescan cameras is polygonal minimum boundary rectangle, and this rectangle is the bounding box of document layout figure Chinese words and picture;
(g) one by one the gentle vertical line of border water that is communicated with among the document layout figure, do not belong to the white space in any literal and the picture bounding box is coupled together, the polygon of each connection is all represented the bounding box of a literal and picture;
4. a kind of interactive document typesetting method based on quick sketch according to claim 1 is characterized in that the step that described user makes amendment to the layout of document typesetting by the mode of drawing the literary sketch stroke:
(h) user draws free stroke and operation stroke on document layout figure;
(i) draw in the process of literary sketch stroke the user, whether the literary sketch stroke trajectory shape by relatively user's drafting is identical with the shape of operation stroke, detect and the operation stroke whether occurred, if the operation stroke, then operate, be presented on the screen in real time to the effect that document layout figure adjusts by the operation stroke according to step (c);
5. a kind of interactive document typesetting method according to claim 1 based on quick sketch, it is characterized in that described user selects literal and picture by draw the literary sketch stroke in electronic document, the user determines that by draw the literary sketch stroke in document layout figure the literal chosen and picture are placed on the position among the document layout figure subsequently, the step in the bounding box that the literal chosen and picture are filled in document layout figure appointment:
(j) open literal paragraph and the picture that detects behind the electronic document in the document, all document elements except that literal all are considered as picture, and the minimum rectangle of surrounding picture is the bounding box of picture, and the minimum rectangle of encirclement literal paragraph is the bounding box of literal;
(k) user selects literal and picture in the cofree drafting literary sketch of electronic document stroke, and which bounding box the coordinate of the literary sketch stroke of drawing according to the user determines stroke in, and literal in these bounding boxes and picture are exactly literal and the picture of being chosen by the user;
(1) user draws on document layout figure literal and picture is placed on an operation stroke in the specific border frame, and system determines to fill the bounding box of literal and picture according to the position of this operation stroke
(m) according to the size adjustment character script size of bounding box selected on document layout figure and the size of picture, make literal and picture that all are selected can be placed in the chosen bounding box;
6. a kind of interactive document typesetting method based on quick sketch according to claim 1 is characterized in that the described step that document layout is optimized:
(n) distance of all top margins from the document coboundary of aliging is H ± d
hBounding box, and adjust level interval between these bounding boxes, the level interval between per two bounding boxes is equated;
(o) all left sides of aliging are W ± d apart from the distance of document left margin
wBounding box, and adjust vertical interval between these bounding boxes, the vertical interval between per two bounding boxes is equated;
(p) area for institute's bounding box in the document typesetting design surpasses A
Thresh.Ld, literal outnumber C
Thresh.LdThe literal bounding box, its font size must be consistent, use greedy algorithm to select font size in these literal bounding boxes, make literal in these literal bounding boxes in bounding box, and the literal in the bounding box just in time to fill up the number of whole bounding box maximum;
7. a kind of interactive document typesetting method based on quick sketch according to claim 1 is characterized in that described user revises the step of the composing of document by picture literary sketch stroke:
(q) user freely draws the literary sketch stroke on the document typesetting layout, relatively the user draws the shape of the operation stroke that defines among the shape of track of stroke and the present invention, identify the operation stroke and carry out corresponding operation according to the definition of operation stroke, the effect of the document typesetting layout being adjusted by the operation stroke is presented on the screen in real time;
(r) adjust the size of bounding box according to user's strokes drawn, and the size of literal and picture in the bounding box, and adjusted result is presented on the screen;
(s) adjust the size and the font size of literal bounding box according to the degree of uniformity of the font size in the different boundary frame in the document typesetting layout, make that the font size in all text bounding boxes is enough approaching except title;
(t) spacing between the adjustment bounding box makes the spacing between all bounding boxes even.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101217462A CN101419714A (en) | 2008-10-27 | 2008-10-27 | Interactive document typesetting method based on quick sketch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101217462A CN101419714A (en) | 2008-10-27 | 2008-10-27 | Interactive document typesetting method based on quick sketch |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101419714A true CN101419714A (en) | 2009-04-29 |
Family
ID=40630492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008101217462A Pending CN101419714A (en) | 2008-10-27 | 2008-10-27 | Interactive document typesetting method based on quick sketch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101419714A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722898A (en) * | 2012-05-23 | 2012-10-10 | 华为软件技术有限公司 | Connection wire compiling method and graph compiling device |
CN109375972A (en) * | 2018-09-17 | 2019-02-22 | 广州视源电子科技股份有限公司 | Method, apparatus, computer device and storage medium for multi-element layout |
CN110045840A (en) * | 2019-04-15 | 2019-07-23 | 广州视源电子科技股份有限公司 | Writing track association method and device, terminal equipment and storage medium |
CN111382552A (en) * | 2020-03-11 | 2020-07-07 | 北大方正集团有限公司 | Typesetting processing method, device, equipment and storage medium |
CN111857495A (en) * | 2020-06-30 | 2020-10-30 | 海尔优家智能科技(北京)有限公司 | Information display method, information display device, storage medium, and electronic device |
CN113157166A (en) * | 2021-05-20 | 2021-07-23 | 读书郎教育科技有限公司 | Method for realizing self-adaptive note taking by intelligent terminal, storage medium and electronic equipment |
WO2023044913A1 (en) * | 2021-09-27 | 2023-03-30 | 京东方科技集团股份有限公司 | Graph drawing method and apparatus, and computer-readable storage medium |
-
2008
- 2008-10-27 CN CNA2008101217462A patent/CN101419714A/en active Pending
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722898A (en) * | 2012-05-23 | 2012-10-10 | 华为软件技术有限公司 | Connection wire compiling method and graph compiling device |
CN102722898B (en) * | 2012-05-23 | 2015-07-08 | 华为软件技术有限公司 | Connection wire compiling method and graph compiling device |
CN109375972A (en) * | 2018-09-17 | 2019-02-22 | 广州视源电子科技股份有限公司 | Method, apparatus, computer device and storage medium for multi-element layout |
CN110045840A (en) * | 2019-04-15 | 2019-07-23 | 广州视源电子科技股份有限公司 | Writing track association method and device, terminal equipment and storage medium |
CN110045840B (en) * | 2019-04-15 | 2023-07-18 | 广州视源电子科技股份有限公司 | Writing track association method, device, terminal equipment and storage medium |
CN111382552A (en) * | 2020-03-11 | 2020-07-07 | 北大方正集团有限公司 | Typesetting processing method, device, equipment and storage medium |
CN111382552B (en) * | 2020-03-11 | 2022-05-10 | 北大方正集团有限公司 | Typesetting processing method, device, equipment and storage medium |
CN111857495A (en) * | 2020-06-30 | 2020-10-30 | 海尔优家智能科技(北京)有限公司 | Information display method, information display device, storage medium, and electronic device |
CN113157166A (en) * | 2021-05-20 | 2021-07-23 | 读书郎教育科技有限公司 | Method for realizing self-adaptive note taking by intelligent terminal, storage medium and electronic equipment |
CN113157166B (en) * | 2021-05-20 | 2022-03-29 | 读书郎教育科技有限公司 | Method for realizing self-adaptive note taking by intelligent terminal, storage medium and electronic equipment |
WO2023044913A1 (en) * | 2021-09-27 | 2023-03-30 | 京东方科技集团股份有限公司 | Graph drawing method and apparatus, and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101419714A (en) | Interactive document typesetting method based on quick sketch | |
US9141134B2 (en) | Utilization of temporal and spatial parameters to enhance the writing capability of an electronic device | |
DE69428675T2 (en) | Apparatus and method for supporting an implicit structuring of free-form lists, overviews, texts, tables and diagrams in an input system and editing system based on hand signals | |
WO2019140987A1 (en) | Table control method, device, apparatus, and storage medium | |
CN101393647B (en) | Document typesetting method based on friendly customer interaction | |
US5889523A (en) | Method and apparatus for dynamically grouping a plurality of graphic objects | |
US5880743A (en) | Apparatus and method for implementing visual animation illustrating results of interactive editing operations | |
Song et al. | ModelCraft: capturing freehand annotations and edits on physical 3D models | |
US5231698A (en) | Script/binary-encoded-character processing method and system | |
CN108255489B (en) | Front-end interface code generation method and device, electronic equipment and storage medium | |
CN108304132B (en) | Graph display method, device, equipment and storage medium | |
JP2018533782A (en) | Digital notebook taking system and method | |
US11061529B2 (en) | Generating contextual guides | |
US7428711B2 (en) | Glow highlighting as an ink attribute | |
WO1992016900A1 (en) | Script/binary-encoded-character processing method and system with moving space insertion mode | |
JP2003303047A (en) | Image input and display system, usage of user interface as well as product including computer usable medium | |
JPH07160827A (en) | Handwritten stroke editing device and method therefor | |
CN105183338A (en) | Object processing method | |
CN102929524A (en) | Page content selecting method and device | |
Johnson et al. | Sketch it, make it: sketching precise drawings for laser cutting | |
US20140210944A1 (en) | Method and apparatus for converting 2d video to 3d video | |
CN106934839B (en) | Automatic cutting method and device for CAD vector diagram | |
US9465785B2 (en) | Methods and apparatus for comic creation | |
CN112799583B (en) | Point location schematic drawing system based on android platform | |
CN109509240A (en) | A kind of smart machine display methods, readable storage medium storing program for executing and smart machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20090429 |