CN101436305A - Method and apparatus for drafting symbol lace - Google Patents

Method and apparatus for drafting symbol lace Download PDF

Info

Publication number
CN101436305A
CN101436305A CNA2008102397320A CN200810239732A CN101436305A CN 101436305 A CN101436305 A CN 101436305A CN A2008102397320 A CNA2008102397320 A CN A2008102397320A CN 200810239732 A CN200810239732 A CN 200810239732A CN 101436305 A CN101436305 A CN 101436305A
Authority
CN
China
Prior art keywords
base line
line segment
symbol
lace
current base
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008102397320A
Other languages
Chinese (zh)
Other versions
CN101436305B (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.)
Peking University Founder Group 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 CN2008102397320A priority Critical patent/CN101436305B/en
Publication of CN101436305A publication Critical patent/CN101436305A/en
Application granted granted Critical
Publication of CN101436305B publication Critical patent/CN101436305B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for drawing sign lace and a device therefor and relates to the field of typesetting processing technology. The invention solves the problems that the method for realizing character lace through manually adjusting the character position is inconvenient in use and has poor integrated effect. The method for drawing the sign lace comprises the following steps: a baseline is arranged on a type face; and the lace is automatically drawn taking the baseline as criterion. The method is suitable for plane typesetting.

Description

Method and device for drawing symbol lace
Technical Field
The invention relates to the technical field of typesetting processing, in particular to a method and a device for drawing a symbol lace.
Background
In the fields of plane design, advertisement production, commercial printing, typesetting and the like, the function of the character lace is often used for enriching the artistic effect of the layout, namely, the lace effect is made by adding a circle of characters at the margin or the edge of a pattern.
In the process of implementing the above-mentioned character adding lace, the inventor finds that the prior art has at least the following problems:
at present, common software cannot provide the function of a character lace, the effect of realizing the character lace is mainly realized by manually adjusting the position of characters, the use is inconvenient, the relative positions of the characters are difficult to keep consistent, and the overall effect is influenced.
Disclosure of Invention
In order to solve the problems of inconvenient use and poor overall effect caused by manually adjusting the character position to realize the character lace, the embodiment of the invention provides a method for drawing the character lace.
A method of drawing a character lace, comprising:
setting a base line on a layout;
based on the baseline, the lace is automatically drawn.
The embodiment of the invention also provides a device for drawing the symbol lace.
An apparatus for drawing a symbol lace, comprising:
the base line setting module is used for setting a base line on the layout;
and the lace drawing module is used for automatically drawing the lace by taking the base line set by the base line setting module as a standard.
The method and the device for drawing the symbol lace provided by the embodiment of the invention firstly set a base line, then automatically draw the symbol lace according to the position of the base line, specifically determine the starting and ending position and the symbol interval of the drawing lace according to whether the connection of two adjacent base line segments is smooth, and then draw the symbol lace. The problems of inconvenient use and poor overall effect caused by manually adjusting the character position to realize the character lace are solved.
Drawings
FIG. 1 is a flowchart of a method for drawing a symbol lace according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for drawing a symbol lace according to a second embodiment of the present invention;
FIG. 3 is a schematic view of a baseline shape according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of a symbol lace drawn according to a second embodiment of the present invention;
FIG. 5 is a flowchart of a method for drawing a symbol lace according to a third embodiment of the present invention;
FIG. 6 is a schematic view of a baseline shape according to a third embodiment of the present invention;
FIG. 7 is a diagram illustrating a symbol lace drawn according to a third embodiment of the present invention;
FIG. 8 is a flowchart illustrating a method for drawing a symbol lace according to a fourth embodiment of the present invention;
FIG. 9 is a schematic view of a baseline shape according to a fourth embodiment of the present invention;
FIG. 10 is a diagram illustrating a symbol lace drawn according to a fourth embodiment of the present invention;
FIG. 11 is a flowchart of a method for drawing a symbol lace according to a fifth embodiment of the present invention;
FIG. 12 is a schematic view of a baseline shape in accordance with a fifth embodiment of the present invention;
FIG. 13 is a diagram illustrating a symbol lace drawn according to a fifth embodiment of the present invention;
fig. 14 is a schematic structural diagram of an apparatus for drawing a symbol lace according to an embodiment of the present invention;
fig. 15 is an internal configuration diagram of the lace drawing module in fig. 14.
Detailed Description
In order to solve the problems of inconvenient use and poor overall effect caused by manually adjusting the character position to realize the character lace, the embodiment of the invention provides a method for drawing the symbol lace.
A method for drawing a symbol lace according to an embodiment of the present invention, as shown in fig. 1, includes:
step 101, setting a baseline on a layout;
and 102, automatically drawing the lace by taking the base line as a standard.
The method and the device for drawing the symbol lace provided by the embodiment of the invention firstly set a base line, then automatically draw the symbol lace according to the position of the base line, specifically determine the starting and ending position and the symbol interval of the drawing lace according to whether the connection of two adjacent base line segments is smooth, and then draw the symbol lace. The problems of inconvenient use and poor overall effect caused by manually adjusting the character position to realize the character lace are solved.
A method for drawing a symbol lace according to a second embodiment of the present invention is described below with reference to the accompanying drawings, where the method for drawing a symbol lace includes:
as shown in fig. 2, step 201, setting a baseline on the layout;
in the step, the position of the base line is manually input, specifically, the information of the base line is input; the base line comprises a direct line, a broken line and a curve; for polylines, the baseline data is composed of a number of nodes; for a curve, the baseline data is composed of a number of nodes and control points. The nodes are the endpoints of the straight line segments in the polyline and the endpoints of the curved line segments in the curve. Control points are information points describing the radian of each curve segment in the curve.
In the embodiment of the invention, the base line is a straight line.
Step 202, inputting a symbol used by the lace;
in this step, the symbol used by the lace is manually input, and the symbol may be a character or a special symbol. For example, character a is entered, with font of doutum and font size of three.
Step 203, determining a current base line segment;
in this step, taking three nodes on the baseline as an example, as shown in fig. 3, the three nodes are respectively a node 1, a node 2 and a node 3; selecting the node 2 and the node 3 as a starting point and an end point respectively, and determining the current base line segment; the previous baseline segment is determined by node 1 and node 2.
Step 204, judging whether the connection is smooth or not;
in this step, it is determined whether the connection between the current baseline segment and the previous baseline segment is smooth, and the determination criterion specifically includes:
judging the angle of the connection angle between the current base line segment and the previous base line segment, wherein the connection angle takes the intersection point of the current base line segment and the previous base line segment as a vertex, and the vertex is the starting point of the current base line segment or the end point of the previous base line segment; when the connection angle is 180 degrees, the connection between the current base line segment and the previous base line segment is smooth; when the included angle is not 180 degrees, the connection between the current base line segment and the previous base line segment is not smooth;
and if the current base line segment is the first base line segment of the base line, judging that the connection between the current base line segment and the previous base line segment is not smooth.
When the current base line segment and the previous base line segment are both straight line segments, the connection angle is the included angle between the current base line segment and the previous base line segment; or,
when the current base line segment and the previous base line segment are both curve segments, the connection angle is an included angle between a front control line of the current base line segment and a rear control line of the previous base line segment; a front control line of the current base line segment is specifically a tangent of the current base line segment at the intersection point; a rear control line of the previous base line segment is specifically a tangent of the previous base line segment at the intersection point; or,
when the current base line segment is a straight line segment and the previous base line segment is a curve segment, the connection angle is an included angle between the current base line segment and a rear control line of the previous base line segment; or,
and when the current base line segment is a curve segment and the previous base line segment is a straight line segment, the connection angle is the included angle between the previous control line of the current base line segment and the previous base line segment.
In the embodiment of the invention, the current baseline segment and the previous baseline segment are straight segments and are on the same straight line, so that the connection is considered to be smooth.
Step 205, determining the starting and ending positions of the symbol lace drawn on the current base line segment;
in this step, according to the judgment result of whether the connection is smooth in step 204, the starting position of the drawing symbol lace is determined, and the method for determining the starting position specifically includes: if the connection is smooth, drawing the initial position of the symbol lace on the current base line segment, and extending the position of the starting point of the current base line segment by half symbol width forwards;
and if the connection is not smooth, drawing the starting position of the symbol lace on the current base line segment as the starting point of the current base line segment.
In the embodiment of the invention, the connection between the current base line segment and the previous base line segment is smooth, so that the initial position of the drawn symbol lace is the position of extending backwards by half the symbol width from the starting point of the current base line segment, namely the node 2.
After the initial position of the drawing symbol lace is determined, the termination position of the drawing symbol lace needs to be determined, and the method for determining the termination position specifically comprises the following steps:
if the current base line segment is the last base line segment of the base line, drawing a termination point of a symbol lace on the current base line segment, wherein the termination point is the end point of the current base line segment;
and if the current base line segment is not the last base line segment of the base line, drawing a termination point of the symbol lace on the current base line segment, and extending the termination point of the current base line segment backwards by half the symbol width.
In the embodiment of the invention, the current base line segment is the last base line segment of the base line, so that the terminal point of the current base line segment, namely the node 3, is taken as the terminal point for drawing the symbol lace.
Step 206, calculating a symbol interval according to the starting and stopping positions and the symbol width;
in this step, a symbol interval, which is a length of a base line between centers of two adjacent symbols, is calculated based on the starting and ending positions of the drawn symbol lace obtained in step 205 and the symbol width determined by the font size set in step 202.
In general, the symbol interval is the same as the word width, or a symbol interval range or the number of symbols inserted into the current base line segment may be manually set, and the symbol interval may be further calculated by the system according to the manually set range or the number of symbols inserted into the current base line segment.
Step 207, filling symbols in the base line segment;
in this step, according to the start-stop position and the symbol interval, filling symbols in the baseline segment, wherein the symbol center is on the baseline, and the vertical center line of the symbols is perpendicular to the baseline.
Fig. 4 shows a symbol lace drawn by the method for drawing a symbol lace according to the embodiment of the present invention.
The base line segment determined by the node 1 and the node 2 is taken as the current base line segment, and the process of drawing the symbol lace for the current base line segment is the same as the process, and is not repeated.
The method and the device for drawing the symbol lace provided by the embodiment of the invention firstly set a base line, then automatically draw the symbol lace according to the position of the base line, specifically determine the starting and ending position and the symbol interval of the drawing lace according to whether the connection of two adjacent base line segments is smooth, and then draw the symbol lace. The problems of inconvenient use and poor overall effect caused by manually adjusting the character position to realize the character lace are solved.
A method for drawing a symbol lace according to a third embodiment of the present invention is described below with reference to the accompanying drawings, where the method for drawing a symbol lace includes:
as shown in fig. 5, step 501, setting a baseline on the layout;
in the step, the baseline position is manually input, specifically baseline information is input; such as node position, arc of curve, etc. In the embodiment of the invention, the base line is an arc.
Step 502, inputting a symbol used by a lace;
in this step, the symbol used by the lace is manually input, and the symbol may be a character or a special symbol. For example, character a is entered, with font of doutum and font size of three.
Step 503, determining the current base line segment;
in this step, taking three nodes on the baseline as an example, as shown in fig. 6, the three nodes are respectively node 1, node 2 and node 3; selecting the node 2 and the node 3 as a starting point and an end point respectively, and determining the current base line segment; the previous baseline segment is determined by node 1 and node 2.
Step 504, judging whether the connection is smooth;
in this step, it is determined whether the connection between the current baseline segment and the previous baseline segment is smooth, and the determination criterion is the same as the determination criterion in the second embodiment of the present invention.
In the embodiment of the invention, the current base line segment and the previous base line segment are both curve segments, and the rear control line of the previous base line segment is the tangent of the previous base line segment at the node 2; the front control line of the current base segment is the tangent of the current base segment at node 2. Because the base line of the embodiment of the invention is a section of circular arc, the included angle between the rear control line of the previous base line segment and the front control line of the current base line segment is 180 degrees, and the connection is considered to be smooth.
Step 505, determining the starting and ending positions of the symbol lace drawn on the current base line segment;
in this step, the starting position of the draw symbol lace is determined based on the result of the judgment of whether the connection is smooth in step 504, and the method of determining the starting position is the same as the method described in the second embodiment of the present invention.
In the embodiment of the invention, the connection between the current base line segment and the previous base line segment is smooth, so that the initial position of the drawn symbol lace is the position of extending backwards by half the symbol width from the starting point of the current base line segment, namely the node 2.
After the start position of the drawing symbol lace is determined, the end position of the drawing symbol lace needs to be determined, and the method for determining the end position is the same as that in the second embodiment of the present invention.
In the embodiment of the invention, the current base line segment is the last base line segment of the base line, so that the terminal point of the current base line segment, namely the node 3, is taken as the terminal point for drawing the symbol lace.
Step 506, calculating a symbol interval according to the starting and stopping positions and the symbol width;
in this step, a symbol interval, which is a length of a base line between centers of two adjacent symbols, is calculated based on the starting and ending position of the drawn symbol lace obtained in step 505 and the symbol width determined by the font size set in step 502.
In general, the symbol interval is the same as the word width, or a symbol interval range or the number of symbols inserted into the current base line segment may be manually set, and the symbol interval may be further calculated by the system according to the manually set range or the number of symbols inserted into the current base line segment.
Step 507, filling symbols into the base line segment;
in this step, according to the start-stop position and the symbol interval, filling symbols in the baseline segment, wherein the symbol center is on the baseline, and the vertical center line of the symbols is perpendicular to the baseline.
Fig. 7 shows a symbol lace drawn by the method for drawing a symbol lace according to the embodiment of the present invention.
The base line segment determined by the node 1 and the node 2 is taken as the current base line segment, and the process of drawing the symbol lace for the current base line segment is the same as the process, and is not repeated.
The method and the device for drawing the symbol lace provided by the embodiment of the invention firstly set a base line, then automatically draw the symbol lace according to the position of the base line, specifically determine the starting and ending position and the symbol interval of the drawing lace according to whether the connection of two adjacent base line segments is smooth, and then draw the symbol lace. The problems of inconvenient use and poor overall effect caused by manually adjusting the character position to realize the character lace are solved.
A method for drawing a symbol lace according to a fourth embodiment of the present invention is described below with reference to the accompanying drawings, where the method for drawing a symbol lace includes:
as shown in fig. 8, step 801, setting a baseline on the layout;
in the step, the baseline position is manually input, specifically baseline information is input; such as node position, arc of curve, etc. In the embodiment of the invention, the base line is a broken line which is composed of two straight line segments, the two straight line segments have a common endpoint, and the two straight line segments have a 90-degree included angle at the endpoint.
Step 802, inputting a symbol used by a lace;
in this step, the symbol used by the lace is manually input, and the symbol may be a character or a special symbol. For example, character a is entered, with font of doutum and font size of three.
Step 803, determining the current baseline segment;
in this step, taking three nodes on the baseline as an example, as shown in fig. 9, the three nodes are node 1, node 2 and node 3 respectively; selecting the node 2 and the node 3 as a starting point and an end point respectively, and determining the current base line segment; the previous baseline segment is determined by node 1 and node 2.
Step 804, judging whether the connection is smooth;
in this step, it is determined whether the connection between the current baseline segment and the previous baseline segment is smooth, and the determination criterion is the same as that in the first embodiment of the present invention.
In the embodiment of the invention, the current base line segment and the previous base line segment are straight line segments, and the included angle is 90 degrees, so that the connection is not smooth.
Step 805, determining the starting and ending positions of the symbol lace drawn on the current base line segment;
in this step, the start position of the drawing symbol lace is determined based on the result of the judgment of whether the connection is smooth in step 804, and the method of determining the start position is the same as that in the second embodiment of the present invention.
In the embodiment of the invention, the connection between the current base line segment and the previous base line segment is not smooth, so that the initial position of the drawing symbol lace is the starting point of the current base line segment, namely the node 2.
After the start position of the drawing symbol lace is determined, the end position of the drawing symbol lace needs to be determined, and the method for determining the end position is the same as that in the second embodiment of the present invention.
In the embodiment of the invention, the current base line segment is the last base line segment of the base line, so that the terminal point of the current base line segment, namely the node 3, is taken as the terminal point for drawing the symbol lace.
Step 806, calculating a symbol interval according to the starting and stopping positions and the symbol width;
in this step, a symbol interval is calculated according to the starting and ending position of the drawn symbol lace obtained in step 805 and the symbol width determined by the font size set in step 802, where the symbol interval is the length of the base line between the centers of two adjacent symbols.
In general, the symbol interval is the same as the word width, or a symbol interval range or the number of symbols inserted into the current base line segment may be manually set, and the symbol interval may be further calculated by the system according to the manually set range or the number of symbols inserted into the current base line segment.
Step 807, filling symbols into the baseline segment;
in this step, according to the start-stop position and the symbol interval, filling symbols in the baseline segment, wherein the symbol center is on the baseline, and the vertical center line of the symbols is perpendicular to the baseline.
Fig. 10 shows a symbol lace drawn by the method for drawing a symbol lace according to the embodiment of the present invention.
The base line segment determined by the node 1 and the node 2 is taken as the current base line segment, and the process of drawing the symbol lace for the current base line segment is the same as the process, and is not repeated.
The method for drawing the symbol lace provided by the embodiment of the invention comprises the steps of firstly setting a base line, then automatically drawing the symbol lace according to the position of the base line, specifically determining the starting and ending positions and the symbol intervals of filling in the lace according to whether the connection of two adjacent base line segments is smooth, and then filling in the symbols. The problems of inconvenient use and poor overall effect caused by manually adjusting the character position to realize the character lace are solved.
A method for drawing a symbol lace according to a fifth embodiment of the present invention is described below with reference to the accompanying drawings, where the method for drawing a symbol lace includes:
as shown in fig. 11, step 1101, setting a baseline on the layout;
in the step, the baseline position is manually input, specifically baseline information is input; such as node position, arc of curve, etc. In the embodiment of the present invention, the base line is a curve, and the curve is composed of two straight line segments forming an angle of 90 degrees with each other and an arc, as shown in fig. 12.
Step 1102, inputting a symbol used by a lace;
in this step, the symbol used by the lace is manually input, and the symbol may be a character or a special symbol. For example, character a is entered, with font of doutum and font size of three.
Step 1103, determining a current base line segment;
in this step, taking three nodes on the baseline as an example, as shown in fig. 12, the three nodes are node 1, node 2, node 3, and node 4, respectively; selecting the node 2 and the node 3 as a starting point and an end point respectively, and determining the current base line segment; the previous baseline segment is determined by node 1 and node 2.
Step 1104, judging whether the connection is smooth;
in this step, it is determined whether the connection between the current baseline segment and the previous baseline segment is smooth, and the determination criterion is the same as that in the first embodiment of the present invention.
In the embodiment of the invention, the current base line segment is a curve segment, the previous base line segment is a straight line segment, and the included angle between the previous base line segment and the previous control line of the current base line segment is 180 degrees, so that the connection is considered to be smooth.
Step 1105, determining the starting and ending position of the symbol lace drawn on the current base line segment;
in this step, the start position of the draw symbol lace is determined based on the result of the determination of whether the connection is smooth in step 1104, and the method of determining the start position is the same as that in the second embodiment of the present invention.
In the embodiment of the invention, the connection between the current base line segment and the previous base line segment is smooth, so that the initial position of the drawn symbol lace is the position of extending backwards by half the symbol width from the starting point of the current base line segment, namely the node 2.
After the start position of the drawing symbol lace is determined, the end position of the drawing symbol lace needs to be determined, and the method for determining the end position is the same as that in the second embodiment of the present invention.
In the embodiment of the present invention, the current base line segment is not the last base line segment of the base line, so that the position of the current base line segment, i.e. the node 3, which extends backwards by half the symbol width is taken as the termination point of drawing the symbol lace.
Step 1106, calculating a symbol interval according to the starting and stopping positions and the symbol width;
in this step, a symbol interval is calculated according to the starting and ending position of the drawn symbol lace obtained in step 1105 and the symbol width determined by the font size set in step 1102, where the symbol interval is the length of the base line between the centers of two adjacent symbols.
In general, the symbol interval is the same as the word width, or a symbol interval range or the number of symbols inserted into the current base line segment may be manually set, and the symbol interval may be further calculated by the system according to the manually set range or the number of symbols inserted into the current base line segment.
Step 1107, filling symbols into the base line segment;
in this step, according to the start-stop position and the symbol interval, filling symbols in the baseline segment, wherein the symbol center is on the baseline, and the vertical center line of the symbols is perpendicular to the baseline.
Step 1108, judging whether symbols have been filled in all baselines;
in this step, whether the baseline is completely filled with symbols is judged, and if the baseline is completely filled, namely the current baseline segment is the last baseline segment of the baseline, the symbol lace is drawn; if the current base line segment is not the last base line segment of the baseline, the next base line segment is selected as the current base line segment, and the steps 1104 to 1107 are repeated until the baseline is completely filled with symbols.
The process of drawing the symbol lace for the current base line segment by taking the base line segment determined by the node 1 and the node 2 as the current base line segment or taking the base line segment determined by the node 3 and the node 4 as the current base line segment is the same as the process, and the description is omitted.
Fig. 13 shows a symbol lace drawn by the method for drawing a symbol lace according to the embodiment of the present invention.
The method and the device for drawing the symbol lace provided by the embodiment of the invention firstly set a base line, then automatically draw the symbol lace according to the position of the base line, specifically determine the starting and ending position and the symbol interval of the drawing lace according to whether the connection of two adjacent base line segments is smooth, and then draw the symbol lace. The problems of inconvenient use and poor overall effect caused by manually adjusting the character position to realize the character lace are solved.
The embodiment of the invention also provides a device for drawing the symbol lace.
An apparatus for drawing a symbol lace, as shown in fig. 14, comprising:
a baseline setting module 1401 for setting a baseline on a layout;
and a lace drawing module 1402 for automatically drawing a lace based on the baseline set by the baseline setting module.
When drawing a symbol lace, firstly, a baseline setting module 1401 determines a baseline position, specifically, inputs baseline information, and the baseline information includes a node position, a curve radian and the like; the baseline can be the periphery of the page or a self-defined line in the page.
After the baseline setting module 1401 finishes setting the baseline, the lace drawing module 1402 fills symbols according to the position of the baseline to complete the lace; the symbols can be characters or special symbols; the baseline setting module 1401 first determines the current baseline segment; further determining the starting and ending positions of drawing the symbol lace on the current base line segment; then, calculating a symbol interval according to the starting position, the ending position and the symbol width; finally, filling symbols into the base line segment according to the starting and stopping positions and the symbol intervals; the symbol center is on the base line, and the symbol vertical center line is perpendicular to the base line.
Further, the internal structure of the lace drawing module 1402 is shown in fig. 15, and includes:
a baseline segment dividing unit 14021 for dividing the baseline into at least two baseline segments;
a start-stop position determination unit 14022 for determining the start-stop position of the symbol lace on the current base line segment;
a symbol interval calculating unit 14023, configured to calculate a symbol interval according to the start-stop position and the symbol width determined by the start-stop position determining unit 14022, where the symbol interval is a baseline length between two adjacent symbol centers;
a lace output unit 14024, configured to fill the symbol on the base line segment according to the start-stop position determined by the start-stop position determining unit 14022 and the symbol interval calculated by the symbol interval calculating unit 14023, where the symbol center is on the base line and the symbol vertical center line is perpendicular to the base line.
The device firstly sets a base line, then automatically draws the symbol lace according to the position of the base line, specifically determines the starting and ending position and the symbol interval of the drawing lace according to whether the connection of two adjacent base line segments is smooth, and then draws the symbol lace. The problems of inconvenient use and poor overall effect caused by manually adjusting the character position to realize the character lace are solved.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of drawing a symbol lace, comprising:
setting a base line on a layout;
based on the baseline, the lace is automatically drawn.
2. The method for drawing a symbol lace according to claim 1, wherein the setting of the baseline on the layout is information on an input baseline, and the information includes nodes and control points; the base line comprises at least one base line segment, and the nodes are end points of the base line segment; when the base line segment is a curve segment, the control points are used for describing the radian of the base line segment.
3. The method for drawing a symbol lace according to claim 1, wherein the step of automatically drawing a lace based on the base line comprises:
dividing the baseline into at least two baseline segments;
determining the starting and ending positions of the symbol lace on the current base line segment;
calculating a symbol interval according to the starting and stopping position and the symbol width, wherein the symbol interval is the length of a base line between two adjacent symbol centers, and the symbol interval is the length of the base line between the two adjacent symbol centers;
and filling symbols on the base line segment according to the starting and stopping positions and the symbol intervals, wherein the symbol center is on the base line, and the vertical center line of the symbols is perpendicular to the base line.
4. The method for drawing a symbol lace according to claim 3, wherein the step of determining the start-stop position of the symbol lace on the current base line segment comprises:
judging whether the connection between the current base line segment and the previous base line segment is smooth or not;
if the connection is smooth, the starting position of the symbol lace on the current base line segment is a position of extending half symbol width forward from the starting point of the current base line segment;
if the connection is not smooth, the starting position of the symbol lace on the current base line segment is the starting point of the current base line segment;
if the current base line segment is the last base line segment of the base line, the termination point of the symbol lace on the current base line segment is the end point of the current base line segment;
and if the current base line segment is not the last base line segment of the base line, the ending point of the symbol lace on the current base line segment is a position of extending the ending point of the current base line segment backwards by half symbol width.
5. The method for drawing a symbol lace according to claim 4, wherein the judging whether the connection between the current base line segment and the previous base line segment is smooth is specifically:
judging a connection angle between the current base line segment and the previous base line segment, wherein the connection angle takes the intersection point of the current base line segment and the previous base line segment as a vertex; when the connection angle is 180 degrees, the connection between the current base line segment and the previous base line segment is smooth; when the included angle is not 180 degrees, the connection between the current base line segment and the previous base line segment is not smooth;
and if the current base line segment is the first base line segment of the base line, judging that the connection between the current base line segment and the previous base line segment is not smooth.
6. Method for drawing symbol laces according to claim 5, characterized in that said connection angles are in particular:
when the current base line segment and the previous base line segment are both straight line segments, the connection angle is the included angle between the current base line segment and the previous base line segment; or,
when the current base line segment and the previous base line segment are both curve segments, the connection angle is an included angle between a front control line of the current base line segment and a rear control line of the previous base line segment; a front control line of the current base line segment is specifically a tangent of the current base line segment at the intersection point; a rear control line of the previous base line segment is specifically a tangent of the previous base line segment at the intersection point; or,
when the current base line segment is a straight line segment and the previous base line segment is a curve segment, the connection angle is an included angle between the current base line segment and a rear control line of the previous base line segment; or,
and when the current base line segment is a curve segment and the previous base line segment is a straight line segment, the connection angle is the included angle between the previous control line of the current base line segment and the previous base line segment.
7. The method for drawing a symbol lace according to claim 3, wherein the symbol width is manually set to be in a range of less than the current base line segment length and more than 0.
8. The method for drawing a symbol lace according to claim 1, wherein the symbols include letter symbols and special symbols.
9. An apparatus for drawing a symbol lace, comprising:
the base line setting module is used for setting a base line on the layout;
and the lace drawing module is used for automatically drawing the lace by taking the base line set by the base line setting module as a standard.
10. The apparatus for drawing a symbol lace according to claim 9, wherein the lace drawing module comprises:
a baseline segment dividing unit for dividing the baseline into at least two baseline segments;
the starting and stopping position determining unit is used for determining the starting and stopping positions of the symbol lace on the current base line segment;
the symbol interval calculation unit is used for calculating a symbol interval according to the starting and stopping position and the symbol width determined by the starting and stopping position determination unit, wherein the symbol interval is the length of a base line between the centers of two adjacent symbols;
and the lace output unit is used for filling symbols into the base line segment according to the starting and stopping positions determined by the starting and stopping position determination unit and the symbol intervals calculated by the symbol interval calculation unit, wherein the symbol center is on the base line, and the vertical center line of the symbols is perpendicular to the base line.
CN2008102397320A 2008-12-16 2008-12-16 Method and apparatus for drafting symbol lace Expired - Fee Related CN101436305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102397320A CN101436305B (en) 2008-12-16 2008-12-16 Method and apparatus for drafting symbol lace

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102397320A CN101436305B (en) 2008-12-16 2008-12-16 Method and apparatus for drafting symbol lace

Publications (2)

Publication Number Publication Date
CN101436305A true CN101436305A (en) 2009-05-20
CN101436305B CN101436305B (en) 2012-07-04

Family

ID=40710735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102397320A Expired - Fee Related CN101436305B (en) 2008-12-16 2008-12-16 Method and apparatus for drafting symbol lace

Country Status (1)

Country Link
CN (1) CN101436305B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103231581A (en) * 2013-04-08 2013-08-07 三峡大学 Digit representation method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0769761A1 (en) * 1995-10-12 1997-04-23 Schablonentechnik Kufstein Aktiengesellschaft Method for generating patterns
CN100481131C (en) * 2006-01-10 2009-04-22 英业达股份有限公司 Image editing system and method
CN101021840A (en) * 2007-03-21 2007-08-22 金蝶软件(中国)有限公司 Electronic form unit grid drawing method and apparatus
CN101149838B (en) * 2007-11-09 2010-06-02 北大方正集团有限公司 Layout image frame generation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103231581A (en) * 2013-04-08 2013-08-07 三峡大学 Digit representation method
CN103231581B (en) * 2013-04-08 2014-12-31 三峡大学 Digit representation method used for machining

Also Published As

Publication number Publication date
CN101436305B (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN108090400B (en) Image text recognition method and device
WO2019154197A1 (en) Electronic book handwritten note display method, computing device and computer storage medium
CN105761048A (en) Electronic seal affixing method and system with cross-page seal function
CN107797752B (en) Handwriting presenting method and device, interactive intelligent panel and storage medium
KR20150099936A (en) Method and apparatus for applying an alternate font for maintaining document layout
CN106445904A (en) Page typesetting method and device
WO2007098013A1 (en) Applying effects to a merged text path
CN105224540A (en) Page composing method and device
CN101964048A (en) Character recognition method and system
CN106297477B (en) A kind of method and device generating digitlization copybook
CN104516868B (en) The streaming restoring method and system in a kind of space of a whole page space
CN110175539B (en) Character creating method and device, terminal equipment and readable storage medium
CN112184852A (en) Auxiliary drawing method and device based on virtual imaging, storage medium and electronic device
CN101436305B (en) Method and apparatus for drafting symbol lace
CN107562331A (en) Display method, device and equipment of handwritten characters and storage medium
CN113436298A (en) Method, device and related components for automatically generating Chinese character stroke order animation
CN112052647B (en) Document editing method and device, electronic equipment and readable storage medium
CN112148199A (en) Handwriting implementation method and device in electronic equipment
CN115796178A (en) Data processing method, device and equipment
CN110766997A (en) Copy display method, device and storage medium
CN105487684B (en) The output intent of Chinese-character phonetic letter character and the output device of Chinese-character phonetic letter character
CN106598934A (en) Electronic book data display method and device, and terminal equipment
CN112765506A (en) Page text content display method, device, equipment and storage medium
CN111063005A (en) Handwriting processing method and device
EP3614279A1 (en) A method and a device for displaying text with a proportional font

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120704

Termination date: 20191216