CN103376998B - Handwriting equipment Chinese character type-setting method and device - Google Patents

Handwriting equipment Chinese character type-setting method and device Download PDF

Info

Publication number
CN103376998B
CN103376998B CN201210118343.9A CN201210118343A CN103376998B CN 103376998 B CN103376998 B CN 103376998B CN 201210118343 A CN201210118343 A CN 201210118343A CN 103376998 B CN103376998 B CN 103376998B
Authority
CN
China
Prior art keywords
rectangle
crucial
individual character
hand
preset
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
CN201210118343.9A
Other languages
Chinese (zh)
Other versions
CN103376998A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210118343.9A priority Critical patent/CN103376998B/en
Publication of CN103376998A publication Critical patent/CN103376998A/en
Application granted granted Critical
Publication of CN103376998B publication Critical patent/CN103376998B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention relates to a kind of method and device of handwriting equipment Chinese character type-setting, wherein, the method specifically comprises step: the hand-written individual character track of identification user input; Determine target position of centre of gravity according to high, the hand-written individual character track of the row of the target space of a whole page and preset font information table; The hand-written individual character track of convergent-divergent, mobile handwriting individual character track is until export screen to behind target position of centre of gravity alignment target space of a whole page Hang Gao center. Method provided by the invention and device, the hand-written individual character convergent-divergent targetedly of each user being inputted according to the feature of Chinese-character writing, and get the center of gravity of hand-written individual character track, according to this center of gravity, the hand-written individual character track of input is arranged, solve and in handwriting equipment, exported the individual character irregular problem of arranging, improved user's Experience Degree.

Description

Handwriting equipment Chinese character type-setting method and device
Technical field
The present invention relates to technical field of electronic equipment, specifically handwriting equipment Chinese character type-setting method and device.
Background technology
At present, intelligent handwriting equipment has started to popularize, and increasing user brings into use intelligent handwritingEquipment is write document and recorded information. In order to keep the person's handwriting effect of user in the time writing document, manyHandwriting equipment can get off user's hand-written individual character track record, and according to high the indenting of row, finally exhibitionNow in screen (as shown in Figure 1). Because writing of Chinese character has certain particularity, for example,In hand-written process, user elongates a certain stroke sometimes, for example Fig. 1 " in " word, one of centreErect and usually can be elongated. Iff the ratio according to fixing, write word is come according to capable high or col widthIndent, effect is conventionally not good.
Summary of the invention
Main purpose of the present invention is to provide a kind of method and device of handwriting equipment Chinese character type-setting, to realizeMore regular handwriting input Chinese character type-setting.
The present invention proposes a kind of method of handwriting equipment Chinese character type-setting, comprising:
The hand-written individual character track of identification user input;
Determine order according to high, the described hand-written individual character track of the row of the target space of a whole page and preset font information tableMark position of centre of gravity;
Hand-written individual character track described in convergent-divergent, mobile described hand-written individual character track is until described target position of centre of gravityAlignment exports screen to behind target space of a whole page Hang Gao center.
Preferably, before the step of the hand-written individual character track of described identification user input, also comprise:
Preset described font information table, described font information table comprises the Unicode code of individual character, preset keyRectangle and preset peripheral rectangle.
Preferably, high, the hand-written individual character track of the described row according to the target space of a whole page and preset font informationTable determines that the step of target position of centre of gravity specifically comprises:
Obtain described hand-written list according to the ratio mapping of described preset crucial rectangle and described preset peripheral rectangleThe preliminary crucial rectangle of word track;
Splitting described hand-written individual character track is stroke, travels through the peripheral rectangle of each stroke, by described peripheral squareThe stroke that shape and described preliminary crucial rectangular area ratio are greater than preset threshold value is defined as crucial stroke;
The peripheral rectangle that merges each described crucial stroke obtains with reference to crucial rectangle, crucial according to described referenceRectangle gets side-play amount;
Move the central point of the crucial rectangle of described reference according to described side-play amount and determine target position of centre of gravity.
Preferably, the described ratio according to preset crucial rectangle and described preset peripheral rectangle obtains described handThe step of writing the preliminary crucial rectangle of individual character track specifically comprises:
According to the height ratio of described preset crucial rectangle and described preset peripheral rectangle and hand-written individual character trackHighly get the height of preliminary crucial rectangle;
According to the width ratio of described preset crucial rectangle and described preset peripheral rectangle and hand-written individual character trackWidth gets the width of preliminary crucial rectangle.
Preferably, the step of the hand-written individual character track of described convergent-divergent specifically comprises:
With described preset crucial rectangle, the width ratio of preset peripheral rectangle and the row of the described target space of a whole pageHigh for operational factor obtains the width of drawing crucial rectangle, and according to drawing crucial rectangle and hand-written individual character railWidth ratio or height ratio with reference to crucial rectangle described in mark are obtained scaling;
According to hand-written individual character track described in described scaling convergent-divergent.
The present invention also proposes a kind of device for handwriting equipment Chinese character type-setting, comprising:
Identification module, for identifying the hand-written individual character track of user's input;
Center of gravity acquisition module, for according to high, the described hand-written individual character track of the row of the target space of a whole page and presetFont information table determine target position of centre of gravity;
Output module, for hand-written individual character track described in convergent-divergent, mobile described hand-written individual character track is until instituteAfter stating target position of centre of gravity alignment target space of a whole page Hang Gao center, export screen to.
Preferably, described device also comprises:
Preset module, for preset described font information table, described font information table comprises individual characterUnicode code, preset crucial rectangle and preset peripheral rectangle.
Preferably, described center of gravity acquisition module specifically comprises:
Preliminary crucial rectangle acquiring unit, for according to described preset crucial rectangle and described preset peripheral squareThe preliminary crucial rectangle of described hand-written individual character track is obtained in the ratio mapping of shape;
Crucial stroke acquiring unit, be stroke for splitting described hand-written individual character track, travels through each strokePeripheral rectangle, by described peripheral rectangle and described preliminary crucial rectangular area ratio be greater than preset threshold valueDraw and be defined as crucial stroke;
Side-play amount acquiring unit, obtains with reference to closing bond moment for merging the peripheral rectangle of each described crucial strokeShape, gets side-play amount according to the crucial rectangle of described reference;
Mobile unit, determines order for the central point that moves the crucial rectangle of described reference according to described side-play amountMark position of centre of gravity.
Preferably, described preliminary crucial rectangle acquiring unit specifically for:
According to the height ratio of described preset crucial rectangle and described preset peripheral rectangle and hand-written individual character trackHighly get the height of preliminary crucial rectangle;
According to the width ratio of described preset crucial rectangle and described preset peripheral rectangle and hand-written individual character trackWidth gets the width of preliminary crucial rectangle.
Preferably, described output module specifically for:
With described preset crucial rectangle, the width ratio of preset peripheral rectangle and the row of the described target space of a whole pageHigh for operational factor obtains the width of drawing crucial rectangle, and according to drawing crucial rectangle and hand-written individual character railWidth ratio or height ratio with reference to crucial rectangle described in mark are obtained scaling;
According to hand-written individual character track described in described scaling convergent-divergent.
Method provided by the invention and device, that according to the feature of Chinese-character writing, each user is inputted is hand-writtenIndividual character is convergent-divergent targetedly, and gets the center of gravity of hand-written individual character track, according to this center of gravity to inputHand-written individual character track is arranged, and has solved and in handwriting equipment, has exported the individual character irregular problem of arranging, and carriesHigh user's Experience Degree.
Brief description of the drawings
Fig. 1 is the design sketch of current handwriting equipment typesetting;
The typesetting design sketch that Fig. 2 provides for the embodiment of the method for handwriting equipment Chinese character type-setting of the present invention;
Fig. 3 is crucial rectangle signal in method one embodiment of the handwriting equipment Chinese character type-setting that proposes of the present inventionFigure;
Fig. 4 is to hand-written individual character rail in method one embodiment of the handwriting equipment Chinese character type-setting that proposes of the present inventionDesign sketch after mark convergent-divergent;
Fig. 5 is the schematic flow sheet in method one embodiment of the handwriting equipment Chinese character type-setting that proposes of the present invention;
Fig. 6 is according to the target space of a whole page in method one embodiment of the handwriting equipment Chinese character type-setting that proposes of the present inventionHigh, the hand-written individual character track of row and preset font information table determine the stream of the step of target position of centre of gravityJourney schematic diagram;
Fig. 7 is the target center of gravity position in method one embodiment of the handwriting equipment Chinese character type-setting that proposes of the present inventionThe schematic diagram of putting;
Fig. 8 is by hand-written individual character rail in method one embodiment of the handwriting equipment Chinese character type-setting that proposes of the present inventionThe target position of centre of gravity of mark moves to the effect schematic diagram behind target space of a whole page Hang Gao center;
Fig. 9 is that the structure of device one embodiment for handwriting equipment Chinese character type-setting that proposes of the present invention is shownIntention;
Figure 10 is that the device one embodiment center of gravity for handwriting equipment Chinese character type-setting that the present invention proposes is obtainedThe structural representation of module.
Realization, functional characteristics and the advantage of the object of the invention, in connection with embodiment, are done further with reference to accompanying drawingExplanation.
Detailed description of the invention
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing andEmbodiment, is further elaborated to the present invention. Should be appreciated that concrete enforcement described hereinExample only, in order to explain the present invention, is not intended to limit the present invention.
In the writing characteristics of Chinese character, have the concept of " Middle Palace ", general Chinese character all can " inPalace " part relative compact. The concept that the method that the present invention proposes has been used " Middle Palace ", according to the different ChineseThe writing characteristics of word analyzes crucial rectangular area from Chinese character individual character, and utilizes this key rectangle to useThe hand-written individual character track of family input zooms to rational ratio, gets the center of gravity of Chinese character, according to this simultaneouslyPosition of centre of gravity carries out final discharge, thus realize user experience higher write outward appearance. As accompanying drawing instituteShow, Fig. 1 is current common handwritten Chinese character typesetting effect, after the method that Fig. 2 application the present invention proposesHandwritten Chinese character typesetting effect.
More specifically, below the concept of crucial rectangular area is conducted further description, be positioned at keyPart in rectangular area, normally more stable part in individual character, the stroke outside crucial rectangle isLikely be out of shape more or less, elongate. With reference to Fig. 3, dotted rectangle be " in " the crucial rectangle of word,Stroke in this key rectangular area be " in " comparatively stable part in word, taking this crucial rectangle as baseAccurate to " in " word carries out convergent-divergent. For example, can regulation crucial rectangle is after dwindling, and its width shouldOccupy 60% of target width of frame, according to reaching good display effect after this proportional zoom, so 60%Be exactly preset width ratio, relatively different words, its width ratio is also different. In addition,Also determine it is according to width convergent-divergent or according to height convergent-divergent according to the concrete structure of individual character, some words useBe height ratio, what some words used is width ratio. After suitable convergent-divergent, can form Fig. 4Effect: although two " in " word in perpendicular stroke length difference, its scaling is comparatively suitable.
After completing the convergent-divergent of hand-written individual character track, be also not enough to word to be disposed to the center of target frame,With reference to the concept of " word center of gravity " in calligraphy, arranging for individual character also proposed in the present inventionTarget position of centre of gravity. So-called word center of gravity does not refer to the center of the housing rectangle that surrounds word, butFinger vision Shang center, a line word, only in the time that the center of gravity of each word is in a straight line substantially,Could obtain the visual effect that user experience is higher. In the present invention, analyze the preset ginseng that font obtainsNumber, according to the hand-written individual character track of this preset parameter displacement, with the center of gravity that ensures each word substantially in oneOn bar line, realize good display effect.
With reference to Fig. 5, the schematic flow sheet of handwriting equipment Chinese character type-setting method proposing for the present invention, as Fig. 5Shown in, the method specifically comprises the following steps:
Step S100: the hand-written individual character track of identification user input;
User's handwriting input individual character, the hand-written individual character track of handwriting equipment identification user input, obtains this handWrite height and the width of individual character track, and go out corresponding Chinese character according to hand-written individual character track identification, and then obtainGet the identification code of individual character.
Step S200: according to high, the hand-written individual character track of the row of the target space of a whole page and preset font information tableDetermine target position of centre of gravity;
More specifically, in the present embodiment, corresponding each individual character, obtains according to the individual character of S100 identificationTo identification code, search the font information table setting in advance, by the preset crucial rectangle of correspondence and preset peripheryThe proportionate relationship of rectangle maps in the hand-written individual character track of user input, gets hand-written individual character trackCrucial rectangle and scaling, and the attachment coefficient factor is further obtained target position of centre of gravity. At otherEmbodiment in, also comprise the step of preset font information table, in this font information table, include individual characterIdentification code, the coefficient factor, preset crucial rectangle and preset peripheral rectangle, wherein, identification code can beUnicode code, in other embodiments, user can also set other identification code or calling systemIn can be used for identifying the coding of single word information. Analyze after the design feature of each individual character, obtain preset keyRectangle and preset peripheral rectangle, simultaneously according to the visual word center of gravity of this individual character, utilize this word center of gravityWith the side-play amount of preset crucial rectangular centre preset for the coefficient that obtains hand-written individual character Locus deviation because ofSon. Be understandable that, in other embodiment, this font information table can also comprise other guide.
With reference to Fig. 6, Fig. 6 is more specifically schematic flow sheet of step S200, as shown in Figure 6, and whereinDetermine target center of gravity position according to high, the hand-written individual character track of the row of the target space of a whole page and preset font information tableThe step of putting comprises:
S210: obtain hand-written individual character track according to the ratio mapping of preset crucial rectangle and preset peripheral rectanglePreliminary crucial rectangle;
Obtain height ratio, the width ratio of preset crucial rectangle and preset peripheral rectangle in font information tableAnd coordinate position, each proportionate relationship is mapped to hand-written individual character track and obtain preliminary crucial rectangle. At thisIn embodiment, specifically can adopt formula " highly=hand-written individual character trajectory height × height ratio " to getThe height of preliminary crucial rectangle, adopts formula " width=hand-written individual character track width × width ratio " to obtainTo the width of preliminary crucial rectangle.
S220: splitting hand-written individual character track is stroke, travels through the peripheral rectangle of each stroke, by peripheral rectangleThe stroke that is greater than preset threshold value with preliminary crucial rectangular area ratio is defined as crucial stroke;
Travel through the peripheral rectangle of all strokes, if the peripheral rectangle of a certain stroke and the preliminary key gettingThe ratio of the peripheral rectangular area of the common factor area of rectangle and stroke is greater than preset threshold value (in the present embodiment,This preset threshold value can be set to 80%, in other embodiment, can also determine according to display effect pre-Put threshold value) time, this stroke is defined as to crucial stroke. Wherein, crucial stroke refers in an individual characterFor stable part, the overall visual effect of individual character is had to the stroke of considerable influence, conventionally at crucial rectangleIn occupy larger area, its logical meaning is to judge a much degree of stroke in preliminary pass bond momentIn shape. Because the individual character of user's handwriting input is different, standard especially, therefore, before usingThe principle of the crucial rectangle of mentioning in literary composition, is further determined for different user and is inputted by crucial strokeHand-written individual character track crucial rectangle more accurately.
Step S230: the peripheral rectangle that merges each crucial stroke obtains with reference to crucial rectangle, according to this referenceCrucial rectangle and parameter factors are obtained target position of centre of gravity;
After all crucial strokes are distinguished, the peripheral rectangle of all crucial strokes is done to union rawBecome with reference to crucial rectangle, get the skew for calculating target position of centre of gravity according to this with reference to crucial rectangleAmount. Further, utilize the central point with reference to crucial rectangle, and lateral coordinates and along slope coordinateSide-play amount is finally determined target position of centre of gravity. More specifically, in the present embodiment, below employingFormula calculates side-play amount:
XSide-play amount=(XBasis ratio+XThe coefficient factor×XFine setting coefficient) × hand-written individual character track width
YSide-play amount=(YBasis ratio+YThe coefficient factor×YFine setting coefficient) × hand-written individual character trajectory height
Wherein, due to basic ratio and the coefficient factor preset according to the design feature of Chinese character itself, with respect toDifferent individual characters, its basic ratio and the coefficient factor are different, and obtain according to font information table. ?In the present embodiment, XBasis ratioFor the width ratio of preset crucial rectangle and preset peripheral rectangle, YBasis ratioForThe height ratio of preset crucial rectangle and preset peripheral rectangle. Fine setting coefficient need to obtain at run duration,In the present embodiment, utilize the height of the peripheral rectangle of hand-written individual character track and enter with reference to the height of crucial rectangleRow division arithmetic or other similar computings, get fine setting coefficient. Chinese character for the pre-set factory factor is logicalNormal for writing the comparatively Chinese character of standard, and due to the custom of ways of writing and the user writing of Chinese character, leadThe apply hand-written individual character track standard especially of family input, the fine setting getting according to run durationCoefficient, finely tunes side-play amount, to obtain side-play amount more accurately.
Step S240: move with reference to the central point of crucial rectangle and determine target center of gravity position according to described side-play amountPut;
As shown in Figure 7, shown position be " in " the target position of centre of gravity of word, with reference to crucial rectangleCentral point according to the side-play amount moving coordinate getting in S230, finally determine target position of centre of gravity.
Step S300: the hand-written individual character track of convergent-divergent, mobile handwriting individual character track is until target position of centre of gravity pairNeat target space of a whole page Hang Gao exports screen to behind center;
After getting target position of centre of gravity, start to carry out the drafting of hand-written individual character track: by hand-written individual characterTrack, with reference to the proportional zoom of preset crucial rectangle and preset peripheral rectangle, is moved to target weight simultaneouslyHeart position. In the present embodiment, in the time that hand-written individual character track need to be according to width ratio convergent-divergent, adopt withThe hand-written individual character track of lower step convergent-divergent:
First high as a virtual square of width setting, according to record in font information table taking target linePreset crucial rectangle and the width ratio of preset peripheral rectangle, obtain the crucial rectangle of word of final draftingWidth:
Final width=virtual square width × width ratio of drawing crucial rectangle
Final while drawing word, scaling=finally the draw crucial rectangle width of crucial rectangle width/reference.In other embodiment, can also obtain according to the height ratio of preset crucial rectangle and preset peripheral rectangleGet final scaling.
After completing the convergent-divergent of hand-written individual character track, also need according to the target position of centre of gravity individual character of arranging,Could form the effect of arranging preferably. As shown in Figure 8, centered by target position of centre of gravity, integrated movingHand-written individual character track, until target position of centre of gravity exports screen to after to the capable high center of gravity of its target space of a whole page, makesThe center of gravity of the font of output is all substantially on a line.
More specifically, in the present embodiment, each Chinese character is occupied to a square scope (conventionallyHigh as foursquare width using row), the hand-written individual character track center of gravity after final convergent-divergent, and foursquareCenter superposition. In other embodiments, can also set each Chinese character and only occupy its necessary width,So some words are wide, some words are narrow, the width that the width of now finally drawing rectangle is final hand-written individual character,And highly for row is high. The peripheral rectangle left margin of hand-written individual character track and the final left margin of drawing rectangleOverlap, and the Y value of target position of centre of gravity coordinate adjust and final Y value of drawing rectangular centre coordinateIdentical. The stroke now having may exceed upper edge or the lower edge of drawing rectangle, to individual characterThe display effect impact of entirety is little, therefore it is not further cut.
Method provided by the invention, has the hand-written individual character of each user's input according to the feature of Chinese-character writingConvergent-divergent pointedly, and get the center of gravity of hand-written individual character track, the hand-written list according to this center of gravity to inputWord track is arranged, and has solved and in handwriting equipment, has exported the individual character irregular problem of arranging, and has improved useThe Experience Degree at family.
Please refer to Fig. 9, the embodiment of the present invention also proposes a kind of device for handwriting equipment Chinese character type-setting, toolBody comprises:
Identification module 40, for identifying the hand-written individual character track of user's input;
Center of gravity acquisition module 50, for according to high, the described hand-written individual character track of the row of the target space of a whole page and pre-The font information table of putting is determined target position of centre of gravity;
Output module 60, for hand-written individual character track described in convergent-divergent, mobile described hand-written individual character track untilDescribed target position of centre of gravity alignment exports screen to behind target space of a whole page Hang Gao center.
User's handwriting input individual character, identification module 10 is identified the hand-written individual character track of user's input, obtains thisThe height of hand-written individual character track and width, and go out corresponding Chinese character according to hand-written individual character track identification, and thenObtain the identification code of individual character.
More specifically, in the present embodiment, corresponding each individual character, the list of identifying according to identification module 40Word gets identification code, and center of gravity acquisition module 50 is searched the font information table setting in advance, pre-by correspondenceThe proportionate relationship of putting crucial rectangle and preset peripheral rectangle maps in the hand-written individual character track of user's input,Get crucial rectangle and the scaling of hand-written individual character track, and the attachment coefficient factor is further obtainedTarget position of centre of gravity. In other embodiment, described device also comprises for preset font information tablePreset module, includes identification code, the coefficient factor, the preset crucial rectangle of individual character in this font information tableAnd preset peripheral rectangle, wherein, identification code is Unicode code, in other embodiments, user is alsoCan set other identification code or calling system in can be used for identifying the coding of single word information. Analyze everyAfter the design feature of individual individual character, preset module obtains preset crucial rectangle and preset peripheral rectangle, simultaneously rootAccording to the visual word center of gravity of this individual character, utilize the side-play amount of this word center of gravity and preset crucial rectangular centrePreset for obtaining the coefficient factor of hand-written individual character Locus deviation. Be understandable that, in other realityExecute in example, this font information table can also comprise other guide.
More specifically, center of gravity acquisition module 50 specifically comprises:
Preliminary crucial rectangle acquiring unit 51, for according to preset crucial rectangle and described preset peripheral rectangleRatio mapping obtain the preliminary crucial rectangle of described hand-written individual character track;
Crucial stroke acquiring unit 52, is stroke for splitting described hand-written individual character track, travels through each strokePeripheral rectangle, described peripheral rectangle and described preliminary crucial rectangular area ratio are greater than to preset threshold valueStroke is defined as crucial stroke;
Side-play amount acquiring unit 53, obtains with reference to crucial for merging the peripheral rectangle of each described crucial strokeRectangle, gets side-play amount according to the crucial rectangle of described reference;
Mobile unit 54, determines for the central point that moves the crucial rectangle of described reference according to described side-play amountTarget position of centre of gravity.
Preliminary crucial rectangular element 51 obtains preset crucial rectangle and preset peripheral rectangle in font information tableHeight ratio, width ratio and coordinate position, map to hand-written individual character track by each proportionate relationship and obtainPreliminary crucial rectangle. In the present embodiment, preliminary crucial rectangular element 51 specifically can adopt formula " heightDegree=hand-written individual character trajectory height × height ratio " get the height of preliminary crucial rectangle, adopt formula " wideDegree=hand-written individual character track width × width ratio " get the width of preliminary crucial rectangle.
Crucial stroke acquiring unit 52 travels through the peripheral rectangle of all strokes, if the peripheral rectangle of a certain strokeBe greater than preset threshold value (at this with the common factor area of preliminary crucial rectangle and the ratio of the peripheral rectangular area of strokeIn embodiment, this preset threshold value can be set to 80%, in other embodiment, and can also be according to demonstrationEffect is determined preset) time, this stroke is defined as to crucial stroke. Wherein, crucial stroke refers to oneComparatively stable part in individual individual character, has the stroke of considerable influence, conventionally to the overall visual effect of individual characterIn crucial rectangle, occupy larger area, its logical meaning be to judge a much degree of stroke inIn preliminary crucial rectangle. Because the individual character of user's handwriting input is different, standard especially, because ofThis, the principle of the crucial rectangle of mentioning in using above, further determines for not by crucial strokeWith the hand-written individual character track crucial rectangle more accurately of user's input.
After all crucial strokes are distinguished, side-play amount acquiring unit 53 is to all crucial strokesPeripheral rectangle does union and generates with reference to crucial rectangle, gets for calculating order with reference to crucial rectangle according to thisThe side-play amount of mark position of centre of gravity. Further, side-play amount acquiring unit 53 is utilized with reference in crucial rectangleHeart point, and the side-play amount of lateral coordinates and along slope coordinate is finally determined target position of centre of gravity. MoreFor concrete, in the present embodiment, side-play amount acquiring unit 53 adopts following formula to calculate side-play amount:
XSide-play amount=(XBasis ratio+XThe coefficient factor×XFine setting coefficient) × hand-written individual character track width
YSide-play amount=(YBasis ratio+YThe coefficient factor×YFine setting coefficient) × hand-written individual character trajectory height
Wherein, due to basic ratio and the coefficient factor preset according to the design feature of Chinese character itself, with respect toDifferent individual characters, its basic ratio and the coefficient factor are different, and obtain according to font information table. ?In the present embodiment, XBasis ratioFor the width ratio of preset crucial rectangle and preset peripheral rectangle, YBasis ratioForThe height ratio of preset crucial rectangle and preset peripheral rectangle. Fine setting coefficient need to obtain at run duration,In the present embodiment, utilize the height of the peripheral rectangle of hand-written individual character track and enter with reference to the height of crucial rectangleRow division arithmetic or other similar computings, get fine setting coefficient. Chinese character for the pre-set factory factor is logicalNormal for writing the comparatively Chinese character of standard, and due to the custom of ways of writing and the user writing of Chinese character, leadThe apply hand-written individual character track standard especially of family input, the fine setting getting according to run durationCoefficient, finely tunes side-play amount, to obtain side-play amount more accurately.
As shown in Figure 7, shown position be " in " the target position of centre of gravity of word, mobile unit 54 will be joinedThe side-play amount moving coordinate getting according to side-play amount acquiring unit 53 according to the central point of crucial rectangle, finalDetermine target position of centre of gravity.
After getting target position of centre of gravity, output module 60 starts to carry out the drafting of hand-written individual character track:Proportional zoom by hand-written individual character track with reference to preset crucial rectangle and preset peripheral rectangle, simultaneously by its positionMove to target position of centre of gravity.
First high as a virtual square of width setting, according to record in font information table taking target linePreset crucial rectangle and the width ratio of preset peripheral rectangle, obtain the crucial rectangle of word of final draftingWidth:
Final width=virtual square width × width ratio of drawing crucial rectangle
Final while drawing word, scaling=finally the draw crucial rectangle width of crucial rectangle width/reference.In other embodiment, can also obtain according to the height ratio of preset crucial rectangle and preset peripheral rectangleGet final scaling.
After completing the convergent-divergent of hand-written individual character track, output module 60 also needs according to target position of centre of gravityThe individual character of arranging, could form the effect of arranging preferably. As shown in Figure 8, centered by target position of centre of gravity,The output module hand-written individual character track of 60 integrated moving until target position of centre of gravity to the capable high center of gravity of its target space of a whole pageAfter export screen to, make the center of gravity of font of output all substantially on a line.
More specifically, in the present embodiment, each Chinese character is occupied a square by output module 60Scope (conventionally high as foursquare width using row), the hand-written individual character track center of gravity after final convergent-divergent,With foursquare center superposition. In other embodiments, can also set each Chinese character and only occupy itNecessary width, so some words are wide, some words are narrow, the width of now finally drawing rectangle is final handWrite the width of individual character, and highly for row is high. The peripheral rectangle left margin of hand-written individual character track with finally paintThe left margin of rectangle processed overlaps, and the Y value of target position of centre of gravity coordinate adjust and the final rectangle of drawingThe Y value of centre coordinate is identical. The stroke now having may exceed draw rectangle upper edge orLower edge, little on the display effect impact of individual character entirety, therefore it is not further cut.
Device provided by the invention, has the hand-written individual character of each user's input according to the feature of Chinese-character writingConvergent-divergent pointedly, and get the center of gravity of hand-written individual character track, the hand-written list according to this center of gravity to inputWord track is arranged, and has solved and in handwriting equipment, has exported the individual character irregular problem of arranging, and has improved useThe Experience Degree at family.
These are only preferred embodiment of the present invention, in order to limit the present invention, not all in the present inventionSpirit and principle within do any amendment, be equal to and replace and improvement etc., all should be included in the present inventionProtection domain within.

Claims (6)

1. a method for handwriting equipment Chinese character type-setting, is characterized in that, comprising:
Preset font information table, described font information table comprises identification code, parameter factors, preset crucial rectangle and the preset peripheral rectangle of individual character;
The hand-written individual character track of identification user input;
Determine target position of centre of gravity according to high, the described hand-written individual character track of the row of the target space of a whole page and preset font information table;
Hand-written individual character track described in convergent-divergent, mobile described hand-written individual character track is until export screen to behind described target position of centre of gravity alignment target space of a whole page Hang Gao center;
High, the hand-written individual character track of the described row according to the target space of a whole page and preset font information table determine that the step of target position of centre of gravity specifically comprises:
Obtain the preliminary crucial rectangle of described hand-written individual character track according to the ratio mapping of described preset crucial rectangle and described preset peripheral rectangle;
Splitting described hand-written individual character track is stroke, travels through the peripheral rectangle of each stroke, and the stroke that described peripheral rectangle and described preliminary crucial rectangular area ratio are greater than to preset threshold value is defined as crucial stroke;
The peripheral rectangle that merges each described crucial stroke obtains with reference to crucial rectangle, gets side-play amount according to the crucial rectangle of described reference;
Move the central point of the crucial rectangle of described reference according to described side-play amount and determine target position of centre of gravity.
2. method according to claim 1, is characterized in that, the step that the described ratio according to preset crucial rectangle and described preset peripheral rectangle obtains the preliminary crucial rectangle of described hand-written individual character track specifically comprises:
Get the height of preliminary crucial rectangle according to the height ratio of described preset crucial rectangle and described preset peripheral rectangle and hand-written individual character trajectory height;
Get the width of preliminary crucial rectangle according to the width ratio of described preset crucial rectangle and described preset peripheral rectangle and hand-written individual character track width.
3. method according to claim 2, is characterized in that, the step of the hand-written individual character track of described convergent-divergent specifically comprises:
Draw the width of crucial rectangle so that described preset crucial rectangle, the width ratio of preset peripheral rectangle and the row of the described target space of a whole page are high as operational factor obtains, and obtain scaling according to drawing width ratio or the height ratio with reference to crucial rectangle described in crucial rectangle and hand-written individual character track;
According to hand-written individual character track described in described scaling convergent-divergent.
4. for a device for handwriting equipment Chinese character type-setting, it is characterized in that, comprising:
Preset module, for preset font information table, described font information table comprises the Unicode code of individual character, preset crucial rectangle and preset peripheral rectangle;
Identification module, for identifying the hand-written individual character track of user's input;
Center of gravity acquisition module, for determining target position of centre of gravity according to high, the described hand-written individual character track of the row of the target space of a whole page and preset font information table;
Output module, for hand-written individual character track described in convergent-divergent, mobile described hand-written individual character track is until export screen to behind described target position of centre of gravity alignment target space of a whole page Hang Gao center;
Described center of gravity acquisition module specifically comprises:
Preliminary crucial rectangle acquiring unit, for obtaining the preliminary crucial rectangle of described hand-written individual character track according to the ratio mapping of described preset crucial rectangle and described preset peripheral rectangle;
Crucial stroke acquiring unit, is stroke for splitting described hand-written individual character track, travels through the peripheral rectangle of each stroke, and the stroke that described peripheral rectangle and described preliminary crucial rectangular area ratio are greater than to preset threshold value is defined as crucial stroke;
Side-play amount acquiring unit, obtains with reference to crucial rectangle for the peripheral rectangle that merges each described crucial stroke, gets side-play amount according to the crucial rectangle of described reference;
Mobile unit, determines target position of centre of gravity for the central point that moves the crucial rectangle of described reference according to described side-play amount.
5. device according to claim 4, is characterized in that, described preliminary crucial rectangle acquiring unit specifically for:
Get the height of preliminary crucial rectangle according to the height ratio of described preset crucial rectangle and described preset peripheral rectangle and hand-written individual character trajectory height;
Get the width of preliminary crucial rectangle according to the width ratio of described preset crucial rectangle and described preset peripheral rectangle and hand-written individual character track width.
6. device according to claim 5, is characterized in that, described output module specifically for:
Draw the width of crucial rectangle so that described preset crucial rectangle, the width ratio of preset peripheral rectangle and the row of the described target space of a whole page are high as operational factor obtains, and obtain scaling according to drawing width ratio or the height ratio with reference to crucial rectangle described in crucial rectangle and hand-written individual character track;
According to hand-written individual character track described in described scaling convergent-divergent.
CN201210118343.9A 2012-04-19 2012-04-19 Handwriting equipment Chinese character type-setting method and device Expired - Fee Related CN103376998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210118343.9A CN103376998B (en) 2012-04-19 2012-04-19 Handwriting equipment Chinese character type-setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210118343.9A CN103376998B (en) 2012-04-19 2012-04-19 Handwriting equipment Chinese character type-setting method and device

Publications (2)

Publication Number Publication Date
CN103376998A CN103376998A (en) 2013-10-30
CN103376998B true CN103376998B (en) 2016-06-15

Family

ID=49462178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210118343.9A Expired - Fee Related CN103376998B (en) 2012-04-19 2012-04-19 Handwriting equipment Chinese character type-setting method and device

Country Status (1)

Country Link
CN (1) CN103376998B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260089A (en) * 2014-07-14 2016-01-20 宏碁股份有限公司 User interface display method and electronic device
CN105808079B (en) * 2014-12-29 2020-02-14 鸿合科技股份有限公司 Method and device for quickly aligning objects by utilizing gestures
CN109992124A (en) * 2018-01-02 2019-07-09 北京搜狗科技发展有限公司 Input method, device and machine readable media
CN109189314B (en) * 2018-08-13 2022-01-21 广东小天才科技有限公司 Writing guide method, device, equipment and medium for handwriting equipment
CN111027550B (en) * 2019-12-17 2023-09-08 新方正控股发展有限责任公司 Method and device for adjusting visual center of gravity of word stock
CN111736751B (en) * 2020-08-26 2021-03-26 深圳市千分一智能技术有限公司 Stroke redrawing method, device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749938A (en) * 2004-09-16 2006-03-22 亿燿企业股份有限公司 External arranging input device and arranging method of handwriting for mobile phone
CN101350068A (en) * 2007-07-17 2009-01-21 佳能株式会社 Display control apparatus and display control method
CN101470549A (en) * 2007-12-27 2009-07-01 汉王科技股份有限公司 Handwriting processing method and system used for information processing terminal
CN101639761A (en) * 2009-05-27 2010-02-03 旋永南 Data entry and processing method of handheld device
WO2012024829A1 (en) * 2010-08-24 2012-03-01 Nokia Corporation Method and apparatus for segmenting strokes of overlapped handwriting into one or more groups

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749938A (en) * 2004-09-16 2006-03-22 亿燿企业股份有限公司 External arranging input device and arranging method of handwriting for mobile phone
CN101350068A (en) * 2007-07-17 2009-01-21 佳能株式会社 Display control apparatus and display control method
CN101470549A (en) * 2007-12-27 2009-07-01 汉王科技股份有限公司 Handwriting processing method and system used for information processing terminal
CN101639761A (en) * 2009-05-27 2010-02-03 旋永南 Data entry and processing method of handheld device
WO2012024829A1 (en) * 2010-08-24 2012-03-01 Nokia Corporation Method and apparatus for segmenting strokes of overlapped handwriting into one or more groups

Also Published As

Publication number Publication date
CN103376998A (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN103376998B (en) Handwriting equipment Chinese character type-setting method and device
CN103093181B (en) A kind of method and apparatus of license plate image location
US20190340240A1 (en) Automated extraction of unstructured tables and semantic information from arbitrary documents
CN102156865A (en) Handwritten text line character segmentation method and identification method
CN102446055B (en) Hand-written character input method and device
CN105511792A (en) In-position hand input method and system for form
JP2006260573A5 (en)
US20210279485A1 (en) Method for detecting lane line, vehicle and computing device
CN109445676A (en) The method of the handwritten stroke information of user's input is deleted on handwriting equipment
CN101751569A (en) Character segmentation method for offline handwriting Uighur words
CN106527940A (en) Handwriting determination method and apparatus
CN112558812B (en) Pen point generation method and device, intelligent device and storage medium
CN106372639B (en) Block letter Uighur document cutting method based on morphology and integral projection
CN102156585A (en) Handwriting input control method and handwriting input device with mouse operation function
CN105302464A (en) Flow document scribing system and method
CN102156889A (en) Method and device for identifying language type of handwritten text line
CN106155540A (en) Electronic brush pen form of a stroke or a combination of strokes treating method and apparatus
CN102208039A (en) Method and device for recognizing multi-language mixed handwriting text lines
CN102455865B (en) A kind of hand input display method and device
CN104461315A (en) Handwriting input method for achieving vigorous writing effect
CN102314252A (en) Character segmentation method and device for handwritten character string
CN105700791A (en) Road traffic accident field sketch recognizing and drawing method
CN102789335B (en) Processing method of touch writing track
CN107168633B (en) A kind of gesture interaction query event construction method based on data dependence
CN103176956A (en) Method and device for extracting file structure

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

Granted publication date: 20160615

Termination date: 20190419

CF01 Termination of patent right due to non-payment of annual fee