CN102033855B - Method and system for typesetting characters of various fonts and same code value - Google Patents

Method and system for typesetting characters of various fonts and same code value Download PDF

Info

Publication number
CN102033855B
CN102033855B CN2009100930809A CN200910093080A CN102033855B CN 102033855 B CN102033855 B CN 102033855B CN 2009100930809 A CN2009100930809 A CN 2009100930809A CN 200910093080 A CN200910093080 A CN 200910093080A CN 102033855 B CN102033855 B CN 102033855B
Authority
CN
China
Prior art keywords
literal
outer rim
type
central point
rate
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
CN2009100930809A
Other languages
Chinese (zh)
Other versions
CN102033855A (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.)
Founder International Beijing Co Ltd
Original Assignee
Founder International Beijing 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 Founder International Beijing Co Ltd filed Critical Founder International Beijing Co Ltd
Priority to CN2009100930809A priority Critical patent/CN102033855B/en
Publication of CN102033855A publication Critical patent/CN102033855A/en
Application granted granted Critical
Publication of CN102033855B publication Critical patent/CN102033855B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method and a system for typesetting characters of various fonts and the same code value, which belong to the technical field of typesetting. When the conventional method and system are used for typesetting the characters of various fonts and the same code value, the sizes and the positions of the characters generally do not meet the typesetting requirement and the typesetting is difficult to adjust, so that the typesetting effect is influenced. In the method and the system, the characters which do not meet the typesetting requirement are marked, character emphasis rate in configured file is determined, and the sizes and the positions of the characters which do not meet the typesetting requirement are automatically adjusted through the character emphasis rate; and fine adjustment can also be directly performed on the characters on a layout if the characters do not completely meet the typesetting requirement yet after the adjustment, so that the best typesetting effect is achieved. The method and the system are particularly suitable for the typesetting of Japanese characters.

Description

The character typesetting method of the identical code value of multiple font and system
Technical field
The invention belongs to typesetting system field, be specifically related to character typesetting method and the system of the identical code value of one kind of multiple fonts, be specially adapted to the occasion that japanese type is set type.
Background technology
In the text composition field, when the text composition of the identical code value of multiple font, it is unequal to tend to occur the font size that the different literal of code value same font shows, the problems such as position skew of font in the standard one layout region had a strong impact on the composing effect.The reason that produces this problem is: literal code value and font have been fixed when font manufacturer makes font, because different fonts is to be made by different font manufacturers, even therefore identical for different font code values, also there is certain difference in the size of text font, and the position in the standard one layout region also may produce difference.
For the problems referred to above, present solution is: when the text composition effect that certain font occurs does not meet the demands, revise font by font manufacturer and realize the requirement of setting type.This method both can have been adjusted the size of font, also can adjust the position of font, but cost was higher, and the production firm of different fonts is different, and feasibility is lower in the practical operation, and practicality is poor.
For the problem of the position skew of font in the standard one layout region, when setting type, can also realize the display position adjustment by the adjustment of Pitch amount.By the display position that Pitch amount can the partial adjustment literal is set in the font, but can only adjust in a direction of text composition, can not realize directive adjustment, for example, if literal is horizontal composing, then the pitch amount can only be carried out the adjustment of left and right direction, and can not adjust the demonstration size of text font.Although this method has good ageing, can not satisfy the composing demand fully.
Summary of the invention
For the defective that exists in the prior art, the purpose of this invention is to provide character typesetting method and the system of the identical code value of one kind of multiple fonts.The method and system do not meet the literal that requires of setting type after can the text composition to the identical code value of multiple font and adjust quickly and easily, also have simultaneously practicality and ageing.
To achieve these goals, the technical solution used in the present invention is as follows:
The character typesetting method of the identical code value of one kind of multiple fonts may further comprise the steps:
(1) unified typesetting format in the space of a whole page is set;
(2) literal of the identical code value of multiple font is set type under unified typesetting format, do not require the difference of literal to carry out mark to meeting to set type;
(3) determine that all do not meet to set type in the space of a whole page and require the literal of literal to emphasize rate, be recorded in the configuration file; The described rate of emphasizing refers to the adjustment rate to literal;
(4) read configuration file, emphasize that according to the literal of determining in the configuration file rate does not require literal to re-start composing to meeting to set type.
Aforesaid character typesetting method, not meeting described in the step (2) sets type requires the difference of literal to comprise that literal is bigger than normal, less than normal, take back, take over, on the upper side and on the lower side.
Aforesaid character typesetting method, the process of carrying out mark described in the step (2) to not meeting the difference require literal of setting type may further comprise the steps:
1. determine the outer rim of all literal in the space of a whole page;
2. the outer rim of each literal is set type that the outer rim of literal compares when requiring with meeting; If the outer rim of literal sets type that the outer rim size of literal equates when requiring with meeting, then this literal is not carried out mark; The outer rim size of literal when requiring is bigger than normal with this word marking then if the outer rim size of literal is greater-than match set type; If the outer rim size of literal is less than normal with this word marking then less than the outer rim size that meets the literal when requiring of setting type;
3. determine the central point of each literal outer rim, judge that each literal outer rim central point and this Chinese character close the position relationship between the outer rim central point of composing position when requiring; If literal outer rim central point and this Chinese character are closed and set type that the outer rim central point of position overlaps when requiring, then this literal is not carried out mark; If literal outer rim central point closes just the going up of outer rim central point, just lower, positive left or positive right of the position when requiring of setting type in this Chinese character, then with this word marking on the upper side, on the lower side, take back or take over; If literal outer rim central point closes outer rim central point upper left of the position when requiring of setting type in this Chinese character, then with this word marking for take back with on the upper side; If literal outer rim central point closes outer rim central point upper right of the position when requiring of setting type in this Chinese character, then with this word marking for take over on the upper side; If literal outer rim central point is in the lower-left that this Chinese character is closed the outer rim central point of position when requiring of setting type, then with this word marking for take back with on the lower side; If literal outer rim central point is in the bottom right that this Chinese character is closed the outer rim central point of position when requiring of setting type, then with this word marking for take over on the lower side.
Aforesaid character typesetting method, wherein, outer rim is the outer rim that comprises the minimum rectangular area of literal, central point for to the outer rim left and right margins from equate, the point that equates of back gauge up and down.
Aforesaid character typesetting method, in the step (3), literal emphasizes that rate comprises the size of literal and the adjustment of position.
Aforesaid character typesetting method wherein, is determined automatically that all do not meet to set type in the space of a whole page to require the literal of literal to emphasize rate.Its method is: bigger than normal or less than normal for literal, according to the outer rim of literal with meet the dimension difference of the outer rim of literal of setting type when requiring and determine the ratio that the character size needs are adjusted; For the skew of the position of literal, close distance between the outer rim central point of the position when requiring of setting type according to literal outer rim central point in this Chinese character, determine respectively literal in the horizontal direction with the adjustment distance of vertical direction.
Aforesaid character typesetting method, wherein, determining that needing to adjust literal emphasizes in the process of rate, character size difference threshold value and text point difference threshold value are set respectively, if the outer rim of literal sets type that the dimension difference of the outer rim of literal is not more than character size difference threshold value when requiring with meeting, then the size of this literal is not adjusted; If the distance that literal outer rim central point closes between the outer rim central point of the position when requiring of setting type in this Chinese character is not more than text point difference threshold value, then the position of this literal is not adjusted.
Aforesaid character typesetting method wherein, manually arranges in the space of a whole page all and does not meet to set type and require the literal of literal to emphasize rate.
Aforesaid character typesetting method, in the step (4), emphasize that according to literal rate not may further comprise the steps meeting the process that requires literal to re-start composing of setting type:
1. obtaining all from configuration file does not meet to set type and requires the literal of literal to emphasize rate;
2. literal is emphasized that the rate parameter conversion becomes coordinate system parameter current on the space of a whole page;
3. according to the coordinate system parameter after converting literal is adjusted.
Aforesaid character typesetting method, in the step (4), to do not meet set type require literal to re-start composing after, if still do not meet the composing requirement, then directly on the space of a whole page, do not require the size of literal and position to finely tune to meeting to set type.
The character laydown system of the identical code value of one kind of multiple fonts comprises with lower module: for the page format that typesetting format unified in the space of a whole page is set module is set; For the type-setting module that the literal of the identical code value of multiple font is set type under unified typesetting format; Be used for showing the display module of type-setting module composing effect; Be used for carrying out not meeting the difference that requires literal of setting type the mark module of mark, described do not meet to set type require the difference of literal to comprise that literal is bigger than normal, less than normal, take back, take over, on the upper side and on the lower side; And be used for to determine that all do not meet to set type in the space of a whole page and require the rate of emphasizing of literal, and it is recorded to the rate of emphasizing determination module in the configuration file; The described rate of emphasizing refers to the adjustment rate to literal;
Wherein, type-setting module also is used for reading configuration file, emphasizes that according to the literal of determining in the configuration file rate does not require literal to re-start composing to meeting to set type; Display module also is used for the show tags module to not meeting the effect after the difference that requires literal of setting type is carried out mark.
Aforesaid character laydown system, this system also comprise for when type-setting module according to after emphasizing that literal that the rate of emphasizing that the rate determination module is determined is set type again to needs is set type, the fine setting module of in the composing effect that display module shows, finely tuning still not meeting the literal that requires of setting type.
The method of the invention and system, do not carry out mark to meeting the literal that requires of setting type, and rate emphasized in definite literal in configuration file, emphasize that by literal rate has realized not requiring the automatic adjustment of literal to meeting to set type, do not rely on different font manufacturers, convenient and swift, have good practicality.And, adopt the method for the invention and system, additionally do not increase the difficulty of setting type, improved the application of setting type; Can also immediately see the composing effect, have good actual effect; Can also according to the composing effect to finely tuning not in full conformity with the literal that requires of setting type, make the composing effect reach best.
Description of drawings
Fig. 1 is the structured flowchart of the character laydown system preferred implementation of the identical code value of multiple font of the present invention;
Fig. 2 is the method flow synoptic diagram that adopts system shown in Figure 1 that the literal of the identical code value of multiple font is set type in the embodiment;
Fig. 3 is the method flow synoptic diagram that carries out mark in the embodiment to not meeting the difference require literal of setting type;
Fig. 4 is to not meeting the method flow synoptic diagram of setting type and requiring literal again to set type in the embodiment;
Fig. 5 a is the synoptic diagram that among the embodiment 1 top literal is carried out mark, and Fig. 5 b is the effect synoptic diagram after among the embodiment 1 top literal being set type again;
Fig. 6 a is the synoptic diagram that among the embodiment 2 top literal is carried out mark, and Fig. 6 b is the effect synoptic diagram after among the embodiment 2 top literal being set type again;
Fig. 7 a is the synoptic diagram that among the embodiment 3 top literal utilization fine setting module is carried out amplifieroperation, and Fig. 7 b is the synoptic diagram that among the embodiment 3 top literal utilization fine setting module is carried out shift left operation.
Embodiment
Describe the present invention below in conjunction with embodiment and accompanying drawing.
Fig. 1 is the structured flowchart of the character laydown system preferred implementation of the identical code value of multiple font of the present invention.This system comprises that page format arranges module 11, type-setting module 12, display module 13, mark module 14 and emphasizes rate determination module 15.
Page format arranges module 11 and is connected with type-setting module 12, is used for arranging the unified typesetting format of the whole space of a whole page.Type-setting module 12 arranges module 11, display module 13 and is connected that rate determination module 15 is connected with page format, be used for according to page format the typesetting format that module 11 arranges being set the literal of the identical code value of multiple font is set type, and be used for according to emphasizing that the literal that the rates of emphasizing that rate determination module 15 is determined are set type again to needs sets type.Display module 13 is with type-setting module 12, mark module 14 and be connected that rate determination module 15 is connected, and be used for to show the composing effect of type-setting module 12, and 14 pairs of mark modules do not meet to set type and require effect after literal carries out mark.Mark module 14 is connected with display module 13, is used for not requiring the difference of literal to carry out mark to meeting to set type.Emphasizing that rate determination module 15 and display module 13 are connected with type-setting module is connected, and is used for meeting the mark result who requires literal that sets type according to 14 pairs of mark modules and determines not require the rate of emphasizing of literal to meeting to set type.Wherein, the rate of emphasizing refers to comprise the ratio of setting type and to require literal to adjust not meeting to the size of literal and the adjustment of position.
Because to after not meeting the literal that set type to require and again setting type, might exist still not in full conformity with the literal of setting type and requiring, so this system also comprises fine setting module 16.This module is connected with display module 13, still requires the size of literal and position to finely tune not in full conformity with composing after needs are set type again, to reach best text composition effect.
Fig. 2 is the method flow synoptic diagram that adopts system shown in Figure 1 that the literal of the identical code value of multiple font is set type.The method may further comprise the steps:
(1) page format arranges module 11 unified typesetting format is set in the space of a whole page.Wherein, typesetting format comprises up and down interval between font size, text alignment mode, literal etc.If typesetting format is not set, then adopt the typesetting format of acquiescence before composing.
(2) type-setting module 12 arranges the literal of the identical code value of multiple font under the unified typesetting format that module 11 arranges at page format and sets type, and display module 13 shows the effect after the composings.
(3) mark module 14 does not require the difference of literal to carry out mark according to the effect after setting type to meeting to set type, the effect behind display module 13 show tags.Wherein, do not meet to set type and require the difference of literal to comprise that literal is bigger than normal, less than normal, take back, take over, on the upper side, wait on the lower side.
Mark module 14 judges whether all literal meet the composing requirement in the space of a whole page, does not require the difference of literal to carry out mark to meeting to set type.Concrete method may further comprise the steps, as shown in Figure 3.
1. determine the outer rim of all literal in the space of a whole page;
2. the outer rim of each literal and page format being arranged the font size outer rim that module 11 the arranges outer rim of literal (namely meeting sets type when requiring) compares; If the outer rim of literal equates that with the size of the font size outer rim of setting then this Chinese character is closed the composing requirement; If the outer rim size of literal is greater than the font size outer rim size that arranges, then this literal is bigger than normal, is bigger than normal with this word marking; If the outer rim size of literal is less than the font size outer rim size that arranges, then this literal is less than normal, is less than normal with this word marking;
3. determine the central point of each literal outer rim, close position relationship between the outer rim central point of the position when requiring of setting type by each literal outer rim central point and this Chinese character and judge whether literal takes back, take over, on the upper side, on the lower side, described central point refer to the outer rim left and right margins from equate, the point that equates of back gauge up and down; If literal outer rim central point and this Chinese character are closed and set type that the outer rim central point of position overlaps when requiring, then this Chinese character is closed the composing requirement; If literal outer rim central point closes just the going up of outer rim central point, just lower, positive left or positive right of the position when requiring of setting type in this Chinese character, then this literal on the upper side, on the lower side, take back or take over, with this word marking on the upper side, on the lower side, take back or take over; If literal outer rim central point closes outer rim central point upper left of the position when requiring of setting type in this Chinese character, then this literal is taken back and on the upper side, with this word marking for take back with on the upper side; If literal outer rim central point closes outer rim central point upper right of the position when requiring of setting type in this Chinese character, then this literal takes over and on the upper side, with this word marking for take over on the upper side; If literal outer rim central point is in the lower-left that this Chinese character is closed the outer rim central point of position when requiring of setting type, then this literal is taken back and on the lower side, with this word marking for take back with on the lower side; If literal outer rim central point is in the bottom right that this Chinese character is closed the outer rim central point of position when requiring of setting type, then this literal takes over and on the lower side, with this word marking for take over on the lower side.
(4) emphasize that rate determination module 15 determines according to the mark result of mark module 14 that all do not meet to set type and require the literal of literal to emphasize rate, be recorded in the configuration file.
Determine that the rate of emphasizing of literal can be finished automatically by system, also can not met to set type by 14 pairs of mark modules and require the mark effect of literal manually to arrange according to what display module 13 showed by the composing personnel.
Automatically determine that literal emphasizes that the method for rate is: bigger than normal or less than normal for literal, according to the outer rim of literal with meet the dimension difference of the outer rim of literal of setting type when requiring and determine the ratio that the character size needs are adjusted; For the skew of the position of literal, close distance between the outer rim central point of the position when requiring of setting type according to literal outer rim central point in this Chinese character, determine respectively literal in the horizontal direction with the adjustment distance of vertical direction.
Determining that needing to adjust literal emphasizes in the process of rate, can arrange respectively character size difference threshold value and text point difference threshold value.If the outer rim of literal sets type that the dimension difference of the outer rim of literal is not more than character size difference threshold value when requiring with meeting, then the size of this literal is not adjusted.If the distance that literal outer rim central point closes between the outer rim central point of the position when requiring of setting type in this Chinese character is not more than text point difference threshold value, then the position of this literal is not adjusted.
The rate of emphasizing of literal is recorded in it in configuration file after determining.The form of configuration file is as shown in the table:
Sequence number Font name The literal code value Vertical direction font ratio Horizontal direction font ratio Upper amount of movement Lower amount of movement Momentum moves to left Momentum moves to right
Wherein, need to again the set type numbering of literal of " sequence number " expression, " font name " represents again to set type the employed font of literal, need to again the set type ASC code value of literal of literal code value representation, the zoom ratio that the literal that " vertical direction font ratio " expression in the vertical direction is set type again to needs is compared with former literal, the zoom ratio that the literal that " horizontal direction font ratio " expression is set type again to needs is in the horizontal direction compared with former literal, " upper amount of movement " expression amount of movement that literal vertically makes progress of need to again setting type, " lower amount of movement " expression vertically downward amount of movement of literal of need to again setting type, " momentum moves to left " represents again to set type literal along continuous straight runs amount of movement left, and " momentum moves to right " represents again to set type literal along continuous straight runs amount of movement to the right.
(5) type-setting module 12 reads configuration file, emphasizes that according to the literal of determining in the configured letters rate does not re-start composing to meeting the literal that requires of setting type, and display module 13 shows the composing effect after again setting type.Not may further comprise the steps meeting the process that requires literal again to set type of setting type, as shown in Figure 4.
1. obtaining all from configuration file does not meet to set type and requires the literal of literal to emphasize rate;
2. literal is emphasized that the rate parameter conversion becomes coordinate system parameter current on the space of a whole page;
3. according to the coordinate system parameter after converting literal is adjusted.
Owing to have a reference coordinate at the space of a whole page, this is the unified coordinate of the space of a whole page, and also there is a relative coordinate in each literal, literal emphasizes that rate determines for relative coordinate, therefore relative coordinate need to not converted to reference coordinate on the space of a whole page when requiring literal again to set type to meeting to set type.
Embodiment 1
Take the identical literal of two the font differences shown in Figure 5 of setting type, code value as example, the literal below among Fig. 5 meets the composing requirement.
At first, after page format arranged module 11 and sets up typesetting format, after type-setting module 12 was set type to two literal according to typesetting format, the composing effect that display module 13 shows was shown in Fig. 5 a.The outer rim size of mark module 14 by literal above among the comparison diagram 5a do not meet the composing requirement with the size that the font size outer rim size of setting is judged this literal, and the size of literal is less than normal, so is " less than normal " with top word marking.In the present embodiment, will comprise the outer rim of literal minimum rectangular area as the outer rim of this literal.During effect behind display module 13 show tags, can around the literal or literal indicate adjust after the outer rim of character size, shown in the outer rim 51 of literal above Fig. 5 a.Rate emphasized in the literal of literal above the dimension difference of the outer rim of literal was determined when literal was emphasized rate determination module 15 according to the outer rim of literal and meet composing to require, and is recorded in the configuration file, and its form is as shown in the table:
Sequence number Font name The literal code value Vertical direction font ratio Horizontal direction font ratio Upper amount of movement Lower amount of movement Momentum moves to left Momentum moves to right
1 Middle ball go シ Star Network 37882 1.2 1.2
Wherein, font name is " middle ball go シ Star Network "; The literal code value is " 37882 "; Vertical direction font ratio and horizontal direction font ratio are 1.2, namely at vertical direction and horizontal direction literal are amplified full-sized 1.2 times.
Type-setting module 12 reads configuration file, the rate of emphasizing of determining in the configuration file is converted to current coordinate system parameter on the space of a whole page, according to the coordinate system parameter after the conversion top literal among Fig. 5 a is carried out amplifieroperation, again the composing effect after setting type is shown in Fig. 5 b, the size of two literal is basic identical up and down, satisfy the composing requirement, strengthened the composing effect.
Embodiment 2
Take the literal shown in Figure 6 of setting type as example.Wherein, the font of two literal is different up and down, code value is identical, below the composing of literal meet the requirements.
After type-setting module 12 was set type to literal shown in Figure 6 according to typesetting format, the composing effect that display module 13 shows was shown in Fig. 6 a.Mark module 14 close by top literal outer rim central point and this Chinese character position relationship between the outer rim central point of the position when requiring of setting type judge among Fig. 6 a above literal on the upper side and take over, be " on the upper side " and " taking over " with the word marking above among Fig. 6 a therefore.During effect behind display module 13 show tags, can make sign at literal with four-headed arrow, represent respectively literal on the upper side and take over such as two four-headed arrows 61 in the literal above Fig. 6 a.Emphasize rate determination module 15 according to literal outer rim central point this Chinese character close distance between the outer rim central point of the position when requiring of setting type determine above the literal of literal emphasize rate, be recorded in the configuration file, configuration file format is as shown in the table:
Sequence number Font name The literal code value Vertical direction font ratio Horizontal direction font ratio Upper amount of movement Lower amount of movement Momentum moves to left Momentum moves to right
1 ゴシツク 33441 0.2 0.2
Type-setting module 12 reads configuration file, according to the rate of emphasizing of determining in the configuration file literal above Fig. 6 a is carried out move operation, be " 0.2 " with the amount of movement that is moved to the left downwards, be converted into the coordinate system parameter of current one layout region, according to the coordinate system parameter after the conversion, top literal is carried out the position adjustment, and the effect after the composing is shown in Fig. 6 b.The position of two literal is basically identical up and down, has satisfied the composing requirement, has strengthened the composing effect.
In the same space of a whole page, if need to all adjust two literal among embodiment 1 and the embodiment 2, then the form of configuration file is as follows:
Sequence number Font name The literal code value Vertical direction font ratio Horizontal direction font ratio Upper amount of movement Lower amount of movement Momentum moves to left Momentum moves to right
1 Middle ball go シ Star Network 37882 1.2 1.2
2 ゴシツク 33441 0.2 0.2
Embodiment 3
On the basis of embodiment 1 or embodiment 2, if to after not meeting the literal that set type to require and again setting type still not in full conformity with the composing requirement, then can by fine setting module 16 directly on the space of a whole page to require the size of literal and position to finely tune not in full conformity with composing, immediately see the rear effect of fine setting, additionally do not increase the composing difficulty.
As shown in Figure 7, literal below among Fig. 7 a is to meet the literal of setting type and requiring, top literal is less than normal, therefore on the space of a whole page, directly carry out amplifieroperation by 16 pairs of literal of fine setting module, can drag literal four frames by Genius mouse, literal is followed the amplification of four frames and is amplified, and operation is shown in Fig. 7 a.Fig. 7 b is the operation chart that top literal is moved to the left the position, and wherein, following literal is to meet the literal of setting type and requiring.
Need to prove: above-described embodiment is explanation of the invention and unrestricted, and those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technology thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (11)

1. the character typesetting method of the identical code value of one kind of multiple fonts may further comprise the steps:
(1) unified typesetting format in the space of a whole page is set;
(2) literal of the identical code value of multiple font is set type under unified typesetting format, do not require the difference of literal to carry out mark to meeting to set type, described do not meet to set type require the difference of literal to comprise that literal is bigger than normal, less than normal, take back, take over, on the upper side and on the lower side, the process of carrying out mark to not meeting the difference that requires literal of setting type may further comprise the steps:
1. determine the outer rim of all literal in the space of a whole page;
2. the outer rim of each literal is set type that the outer rim of literal compares when requiring with meeting; If the outer rim of literal sets type that the outer rim size of literal equates when requiring with meeting, then this literal is not carried out mark; The outer rim size of literal when requiring is bigger than normal with this word marking then if the outer rim size of literal is greater-than match set type; If the outer rim size of literal is less than normal with this word marking then less than the outer rim size that meets the literal when requiring of setting type;
3. determine the central point of each literal outer rim, judge that each literal outer rim central point and this Chinese character close the position relationship between the outer rim central point of composing position when requiring; If literal outer rim central point and this Chinese character are closed and set type that the outer rim central point of position overlaps when requiring, then this literal is not carried out mark; If literal outer rim central point closes just the going up of outer rim central point, just lower, positive left or positive right of the position when requiring of setting type in this Chinese character, then with this word marking on the upper side, on the lower side, take back or take over; If literal outer rim central point closes outer rim central point upper left of the position when requiring of setting type in this Chinese character, then with this word marking for take back with on the upper side; If literal outer rim central point closes outer rim central point upper right of the position when requiring of setting type in this Chinese character, then with this word marking for take over on the upper side; If literal outer rim central point is in the lower-left that this Chinese character is closed the outer rim central point of position when requiring of setting type, then with this word marking for take back with on the lower side; If literal outer rim central point is in the bottom right that this Chinese character is closed the outer rim central point of position when requiring of setting type, then with this word marking for take over on the lower side;
(3) determine that all do not meet to set type in the space of a whole page and require the literal of literal to emphasize rate, be recorded in the configuration file; The described rate of emphasizing refers to the adjustment rate to literal;
(4) read configuration file, emphasize that according to the literal of determining in the configuration file rate does not require literal to re-start composing to meeting to set type.
2. the character typesetting method of the identical code value of one kind of multiple fonts as claimed in claim 1, it is characterized in that: described outer rim is the outer rim that comprises the minimum rectangular area of literal, described central point for to the outer rim left and right margins from equate, the point that equates of back gauge up and down.
3. the character typesetting method of the identical code value of one kind of multiple fonts as claimed in claim 1, it is characterized in that: literal described in the step (3) emphasizes that rate comprises the size of literal and the adjustment of position.
4. the character typesetting method of the identical code value of one kind of multiple fonts as claimed in claim 1 is characterized in that: determining automatically that all do not meet to set type in the space of a whole page requires the literal of literal to emphasize rate.
5. the character typesetting method of the identical code value of one kind of multiple fonts as claimed in claim 4, it is characterized in that, describedly automatically determine that all do not meet to set type in the space of a whole page and require the literal of literal to emphasize that the method for rate is: bigger than normal or less than normal for literal, according to the outer rim of literal with meet the dimension difference of the outer rim of literal of setting type when requiring and determine the ratio that the character size needs are adjusted; For the skew of the position of literal, close distance between the outer rim central point of the position when requiring of setting type according to literal outer rim central point in this Chinese character, determine respectively literal in the horizontal direction with the adjustment distance of vertical direction.
6. the character typesetting method of the identical code value of one kind of multiple fonts as claimed in claim 5, it is characterized in that: adjust literal at definite needs and emphasize in the process of rate, character size difference threshold value and text point difference threshold value are set respectively, if the outer rim of literal sets type that the dimension difference of the outer rim of literal is not more than character size difference threshold value when requiring with meeting, then the size of this literal is not adjusted; If the distance that literal outer rim central point closes between the outer rim central point of the position when requiring of setting type in this Chinese character is not more than text point difference threshold value, then the position of this literal is not adjusted.
7. the character typesetting method of the identical code value of one kind of multiple fonts as claimed in claim 1 is characterized in that: all manually are set in the space of a whole page do not meet to set type and require the literal of literal to emphasize rate.
8. such as the character typesetting method of the identical code value of described one kind of multiple fonts of one of claim 1 to 7, it is characterized in that: emphasize that according to literal rate not may further comprise the steps meeting the process that requires literal to re-start composing of setting type described in the step (4):
1. obtaining all from configuration file does not meet to set type and requires the literal of literal to emphasize rate;
2. literal is emphasized that the rate parameter conversion becomes coordinate system parameter current on the space of a whole page;
3. according to the coordinate system parameter after converting literal is adjusted.
9. such as the character typesetting method of the identical code value of described one kind of multiple fonts of one of claim 1 to 7, it is characterized in that: in the step (4), to do not meet set type require literal to re-start composing after, if still do not meet the composing requirement, then directly on the space of a whole page, do not require the size of literal and position to finely tune to meeting to set type.
10. the character laydown system of the identical code value of one kind of multiple fonts comprises with lower module:
For the page format that typesetting format unified in the space of a whole page is set module (11) is set;
For the type-setting module (12) that the literal of the identical code value of multiple font is set type under unified typesetting format; Be used for carrying out not meeting the difference that requires literal of setting type the mark module (14) of mark, described do not meet to set type require the difference of literal to comprise that literal is bigger than normal, less than normal, take back, take over, on the upper side and on the lower side;
And be used for to determine that all do not meet to set type in the space of a whole page and require the rate of emphasizing of literal, and it is recorded to the rate of emphasizing determination module (15) in the configuration file; The described rate of emphasizing refers to the adjustment rate to literal;
Described type-setting module (12) also is used for reading configuration file, emphasizes that according to the literal of determining in the configuration file rate does not require literal to re-start composing to meeting to set type.
11. the character laydown system of the identical code value of one kind of multiple fonts as claimed in claim 10, it is characterized in that: described system also comprise for when type-setting module (12) according to after emphasizing that literal that the rate of emphasizing that rate determination module (15) is determined is set type again to needs is set type, the fine setting module (16) of in the composing effect that display module (13) shows, finely tuning still not meeting the literal that requires of setting type.
CN2009100930809A 2009-09-28 2009-09-28 Method and system for typesetting characters of various fonts and same code value Expired - Fee Related CN102033855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100930809A CN102033855B (en) 2009-09-28 2009-09-28 Method and system for typesetting characters of various fonts and same code value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100930809A CN102033855B (en) 2009-09-28 2009-09-28 Method and system for typesetting characters of various fonts and same code value

Publications (2)

Publication Number Publication Date
CN102033855A CN102033855A (en) 2011-04-27
CN102033855B true CN102033855B (en) 2013-01-16

Family

ID=43886770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100930809A Expired - Fee Related CN102033855B (en) 2009-09-28 2009-09-28 Method and system for typesetting characters of various fonts and same code value

Country Status (1)

Country Link
CN (1) CN102033855B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503719B (en) * 2014-12-11 2018-04-06 北京国双科技有限公司 The data processing method and device of body position are shown in control for showing
CN106547730B (en) * 2015-09-22 2019-10-15 北大方正集团有限公司 Page object automatic adjusting method and device
CN108108339B (en) * 2018-01-10 2018-12-04 北京仁和汇智信息技术有限公司 A kind of method and device of the boundary PDF and grid lines mark
CN110443202B (en) * 2019-08-06 2022-11-01 超级知识产权顾问(北京)有限公司 System, method and storage medium for real-time analysis of paper font regularity

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828581A (en) * 2006-04-14 2006-09-06 北京北大方正电子有限公司 Layout method for word content fitting rectangular words frame
CN101419716A (en) * 2008-12-08 2009-04-29 北大方正集团有限公司 Character typesetting method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828581A (en) * 2006-04-14 2006-09-06 北京北大方正电子有限公司 Layout method for word content fitting rectangular words frame
CN101419716A (en) * 2008-12-08 2009-04-29 北大方正集团有限公司 Character typesetting method and device

Also Published As

Publication number Publication date
CN102033855A (en) 2011-04-27

Similar Documents

Publication Publication Date Title
CN101876967B (en) Method for generating PDF text paragraphs
CN108470021A (en) The localization method and device of table in PDF document
CN105159877B (en) A kind of across media automatic typesetting systems and its method
CN102033855B (en) Method and system for typesetting characters of various fonts and same code value
CN110163030B (en) PDF framed table extraction method based on image information
CN1828580B (en) Rectangular array words frame layout method for fitting word content
CN102722475A (en) Method for converting form in portable document format (PDF) document into Excel form
CN111626036B (en) Image-text typesetting processing method
CN113901615A (en) Automatic marking method and device for two-dimensional drawing and electronic equipment
CN102043762A (en) Method and device for comparing layouts
CN104298725A (en) Method for one-time editing input and multi-version output of on-line courseware development system
CN100589097C (en) A kind of character typesetting method along curves
CN106484388B (en) Method and device for realizing user interface
CN103440239A (en) Functional region recognition-based webpage segmentation method and device
CN104268545B (en) Table area identification and content gridding method in a kind of electronics shelves layout files
CN103714047B (en) The method and apparatus laterally proofreaded and export bilayer PDF
CN101452445B (en) Typesetting method and device for text alignment in paragraph
CN101183358A (en) Typesetting method and apparatus
CN104156345B (en) The method and apparatus of caption in identification portable document format file
CN101770452A (en) Method for automatic typesetting of content blocks
CN101673406A (en) Method and device for setting font
CN105677262A (en) Typesetting method and device for banner printing
CN100580663C (en) Method and apparatus for automatic typesetting
CN112437354B (en) Subtitle display control method and display equipment
CN105425979B (en) The implementation method that robot humanoid writes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
EE01 Entry into force of recordation of patent licensing contract

Assignee: Founder International Co., Ltd.

Assignor: Founder international software (Beijing) Co., Ltd.

Contract record no.: 2010110000104

Denomination of invention: Method and system for typesetting characters of various fonts and same code value

License type: Common License

Open date: 20110427

Record date: 20100803

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130116

Termination date: 20140928

EXPY Termination of patent right or utility model