CN102902969A - Hand input text display layout method and electronic device - Google Patents

Hand input text display layout method and electronic device Download PDF

Info

Publication number
CN102902969A
CN102902969A CN2012103020101A CN201210302010A CN102902969A CN 102902969 A CN102902969 A CN 102902969A CN 2012103020101 A CN2012103020101 A CN 2012103020101A CN 201210302010 A CN201210302010 A CN 201210302010A CN 102902969 A CN102902969 A CN 102902969A
Authority
CN
China
Prior art keywords
dot matrix
row
gravity
center
word
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103020101A
Other languages
Chinese (zh)
Other versions
CN102902969B (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.)
Beijing Eren Eben Information Technology Co Ltd
Original Assignee
Beijing Eren Eben Information Technology 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 Beijing Eren Eben Information Technology Co Ltd filed Critical Beijing Eren Eben Information Technology Co Ltd
Priority to CN201210302010.1A priority Critical patent/CN102902969B/en
Publication of CN102902969A publication Critical patent/CN102902969A/en
Application granted granted Critical
Publication of CN102902969B publication Critical patent/CN102902969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a hand input text display layout method and an electronic device. The layout method comprises the steps of: determining the center of gravity: determining the center of gravity of a word unit according to the dot matrix distribution characteristics; performing layout display: allowing the center of gravity of each word unit on a virtual base line used for layout reference of each row of word units according to the gravity center determination process, and performing layout display according to the sequence of each word unit in the scaling adjustment process. According to the hand input text display layout method, the layout position of each hand input word with individual difference can be adjusted according to the structural features of Chinese characters, the sizes of the displayed characters conform to the structural features of the Chinese characters, and because the center of gravity of each row of characters are on the same base line, the characters are neat and attractive in appearance and conform to the aesthetic standard of the traditional handwriting.

Description

Method of combination and electronic installation that the handwriting input literal shows
[technical field]
The present invention relates to writing technology, the particularly reproduction of hand-written script in electronic installation.
[background technology]
In the calligraphy custom of Chinese character, the alignment of word has special being particular about.Delegation seems attractive in appearance, in picturesque disorder word, and height and the width of each word but are not quite similar.The different Chinese character of height is arranged in delegation, needs to consider the alignment problem of vertical mode, allow content seem in picturesque disorder, attractive in appearance and neat.
In the hand-written line inscribed, judge whether the size of each word is suitable, need to see whether " deal " of each word be suitable.For example, among Fig. 1, " in ", " state ", " heart " triliteral profile vary in size, but seem it is sizeable.On the contrary, if the size of each word is limited in the profile of a formed objects, seems that then the size of word is inconsistent on the contrary, and become not too attractive in appearance.
Chinese character has the concept of center of gravity, and in the line inscribed, the center of gravity of each word preferably drops on the same straight line, and this line can be called as " baseline ",, is " baseline " such as medium line among Fig. 1; When the center of gravity of each word was aligned on the baseline, it is just more neat that word seems.
Existing electronic installation comprises panel computer, PDA and mobile phone etc., the function that has possessed the handwriting input word and shown according to the former person's handwriting of handwriting input.When the word to handwriting input reproduces when showing, the problem when having traditional handwriting equally, as not of uniform size, center of gravity is unbalance etc.
[summary of the invention]
Fundamental purpose of the present invention is: at first, provide a kind of and be applied to electronic installation, handwriting shown carry out the method that layout is adjusted; Take second place, realize the electronic installation that layout is adjusted when a kind of can the demonstration handwriting is provided.
For this reason, the present invention proposes the method for combination that a kind of handwriting input literal shows, comprise following process:
The center of gravity deterministic process according to the dot matrix distribution characteristics, is determined the center of gravity of word cell;
Put procedure for displaying, that the center of gravity of each word cell that will determine through described center of gravity deterministic process drop on will be virtual, be used for every row word cell puts the baseline of reference, will sequentially put demonstration through each word cell of described convergent-divergent adjustment process;
Above-mentioned method of combination in the embodiment wherein, also comprises the convergent-divergent adjustment process, and the word cell of handwriting input is carried out convergent-divergent;
Above-mentioned method of combination, in the embodiment wherein, described convergent-divergent adjustment process comprises the steps:
The basic convergent-divergent of adjusting: by the word cell size of expection, the handwritten word unit of input is carried out convergent-divergent adjusted before or after described center of gravity deterministic process and carry out.
Above-mentioned method of combination, in the embodiment wherein, described convergent-divergent adjustment process also comprises the steps:
The fine setting convergent-divergent: according to the dot matrix distribution characteristics of word cell, further calculate scaling, and to finely tuning convergent-divergent through the word cell of basic convergent-divergent; Before or after described center of gravity deterministic process, carry out.
Above-mentioned method of combination in the embodiment wherein, before carrying out described center of gravity deterministic process, also comprises the word cell split process: when described word cell is phrase or one group of word, it is split out independent one by one word; Described center of gravity deterministic process is carried out center of gravity to each word and is determined.
Above-mentioned method of combination, in the embodiment wherein, described center of gravity deterministic process comprises the steps:
By the ranks dot matrix of difference scan word unit, find out the intensive ranks position of dot matrix, obtain level of confidentiality dot matrix rectangle, the center of this level of confidentiality dot matrix rectangle is level of confidentiality dot matrix center, getting this level of confidentiality dot matrix center is the center of gravity of word cell.
Or above-mentioned method of combination, in the embodiment wherein, described center of gravity deterministic process comprises:
Scan total dot matrix number: total dot matrix number of scan word unit, the meter summation is T;
Find out the transverse center of gravity line: from the beginning scan every delegation and meter accumulative total dot matrix number, when the dot matrix number of accumulative total equaled X when scanning a certain dot matrix, the corresponding horizontal line of row that records this dot matrix place was the transverse center of gravity line, T/3≤X≤2T/3;
Find out the longitudinal center of gravity line: from the beginning scan each row and meter accumulative total dot matrix number, when the dot matrix number of accumulative total equaled X when scanning a certain dot matrix, the vertical curve that records the row correspondence at this dot matrix place was the longitudinal center of gravity line, T/3≤X≤2T/3;
The point of crossing of horizontal, vertical two center of gravity line is center of gravity.
Or above-mentioned method of combination, in the embodiment wherein, described center of gravity deterministic process comprises:
Find out horizontal, longitudinal center of gravity line: vertically line by line scan, record total dot matrix and count the accumulative total dot matrix number of T, each dot matrix, count the accumulative total dot matrix number of T and each dot matrix according to total dot matrix of record, calculate the accumulative total dot matrix of a certain dot matrix and count X, when T/3≤X≤2T/3, the corresponding horizontal line of row that records this dot matrix place is the transverse center of gravity line; From the beginning scan each row and meter accumulative total dot matrix number, the dot matrix of accumulative total is counted Y when scanning a certain dot matrix, and during T/3≤Y≤2T/3, the corresponding vertical curve of row that records this dot matrix place is the longitudinal center of gravity line;
The point of crossing of horizontal, vertical two center of gravity line is center of gravity.
Above-mentioned method of combination, in the embodiment wherein, the described baseline of every delegation is parallel to each other, and the row of the interval between the adjacent baseline after being equal to, or greater than the word cell convergent-divergent and adjusting is high.
Above-mentioned method of combination, in the embodiment wherein, the process of described word cell fine setting convergent-divergent comprises step:
Obtain word cell profile rectangle by scanning;
By the ranks dot matrix of difference scan word unit, find out the intensive ranks position of dot matrix, obtain level of confidentiality dot matrix rectangle;
Ratio between the size of calculating level of confidentiality dot matrix rectangle and the size of whole word cell profile rectangle multiply by one and adjusts the factor, as fine setting convergent-divergent ratio.
Above-mentioned method of combination in the embodiment wherein, before convergent-divergent adjustment process or center of gravity deterministic process, also comprises word cell correction process: write when askew when described word cell, this word cell is adjusted angle, rectified a deviation; Or to being write the whole angle of the askew tone of Chinese characters in the word cell, being rectified a deviation.
Above-mentioned method of combination, in the embodiment wherein, the described detailed process that obtains level of confidentiality dot matrix rectangle comprises:
Find out capable level of confidentiality dot matrix: the dot matrix number that the every delegation of line scanning occurs, calculate line number and total dot matrix number, obtain the overall average dot matrix number of row;
Again line scanning, when the average dot matrix number of continuous two row or the partial row more than two row is counted more than the average dot matrix of the row of the overall situation, the capable appearance of sign level of confidentiality dot matrix, it is capable to record described level of confidentiality dot matrix;
Find out the level of confidentiality dot matrix of row: each lists existing dot matrix number column scan, calculates columns and total dot matrix number, or total dot matrix number of obtaining of the columns that is obtained by column scan and line scanning, obtains the column average dot matrix number of the overall situation;
Again carry out column scan, when the local column average dot matrix number more than continuous two row or two are listed as was counted more than the column average dot matrix of the overall situation, sign level of confidentiality lattice array occurred, and records described level of confidentiality lattice array;
Dot matrix capable by the level of confidentiality dot matrix and that the level of confidentiality lattice array overlaps obtains level of confidentiality dot matrix rectangle.
Above-mentioned method of combination, in the embodiment wherein, the described detailed process that obtains level of confidentiality dot matrix rectangle comprises:
From top to bottom scanning take the horizontal dot matrix number of the first row as standard, when continuing down to scan, when scanning the horizontal dot matrix number of certain delegation greater than the first row horizontal line dot matrix number, is recorded this horizontal line as upper side frame;
A certain when counting greater than last column dot matrix from the nearest horizontal dot matrix number of last column when scanning, record this delegation's horizontal line as lower frame;
From left to right scanning, take the dot matrix number of first row perpendicular line as standard, the scanning that continues to turn right when the dot matrix number of the dot matrix number that scans a certain row perpendicular line greater than the first row perpendicular line, is recorded this perpendicular line as left frame;
When scanning a certain dot matrix number from the nearest perpendicular line of last row and count greater than the dot matrix of last row perpendicular line, record this row perpendicular line as left frame;
Described left frame, left frame, upper side frame and lower frame intersect, and enclose to form a rectangle frame, i.e. the level of confidentiality dot matrix rectangle of literal.
Above-mentioned method of combination, in the embodiment wherein, the described detailed process that obtains level of confidentiality dot matrix rectangle comprises:
From top to bottom scanning take the horizontal dot matrix number of the first row as standard, when continuing down to scan, when scanning the horizontal dot matrix number of certain delegation greater than the first row horizontal line dot matrix number, is recorded this horizontal line as upper side frame;
Scanning take the horizontal dot matrix number of the first row as standard, when scanning the horizontal dot matrix number of certain delegation greater than the horizontal dot matrix number of the first row, is recorded this horizontal line as lower frame from the bottom up;
From left to right scanning, take the dot matrix number of first row perpendicular line as standard, the scanning that continues to turn right when the dot matrix number of the dot matrix number that scans a certain row perpendicular line greater than the first row perpendicular line, is recorded this perpendicular line as left frame;
The scanning of turning left from the right side take the dot matrix number of first row perpendicular line as standard, when the dot matrix number of the dot matrix number that scans a certain row perpendicular line greater than the first row perpendicular line, is recorded this row perpendicular line as left frame;
Described left frame, left frame, upper side frame and lower frame intersect, and enclose to form a rectangle frame, i.e. the level of confidentiality dot matrix rectangle of literal.
Simultaneously, the present invention proposes a kind of electronic installation, use the method for combination that above-mentioned handwriting input word cell shows, realize the demonstration to the handwritten word unit.
Method of combination by handwriting input literal demonstration of the present invention, can be to the word cell of handwriting input, design feature according to Chinese character, each word cell that has individual difference is carried out the putting position adjustment, after this word cell that shows, its size more meets the design feature of Chinese character, every delegation word cell, its word cell center of gravity drops on the same baseline, more neat appearance.
[description of drawings]
Fig. 1 is the layout synoptic diagram that the handwriting input literal shows;
Fig. 2 is the basic flow sheet of the embodiment of the invention one;
Fig. 3 is the general flowchart of the acquisition word cell fine setting scaling of the embodiment of the invention one;
Fig. 4 is the general flowchart of the acquisition level of confidentiality dot matrix rectangle of the embodiment of the invention one.
[embodiment]
Also the present invention is described in further detail by reference to the accompanying drawings below by specific embodiment.
The method of combination that handwriting input word cell in the embodiment of the invention shows is applied to electronic installation, and such electronic installation has hand-write input function and former person's handwriting Presentation Function, and this device can be panel computer, PAD and mobile phone etc.The method of combination that handwriting input word cell in the embodiment of the invention shows is mainly realized the demonstration of word cell on display screen to handwriting input as follows.
Word cell convergent-divergent adjustment process: to the convergent-divergent of each word cell;
Word cell center of gravity deterministic process: the center of gravity of determining each word cell;
Word cell is put procedure for displaying: each word cell is sequentially put shown, that each word cell center of gravity drops on is virtual, be used for every row word cell puts the baseline of reference.
Wherein word cell convergent-divergent adjustment process and word cell center of gravity deterministic process the two be arbitrary sequence (not having the requirement of sequencing during execution), can carry out the again definite center of gravity of row of convergent-divergent adjustment in advance, also can determine again capable convergent-divergent adjustment of center of gravity in advance, perhaps the two intersection is carried out, and carries out again or synchronously.
Above-mentioned word cell is to define according to user's writing style and the response setting of electronic installation.Generally, according to user's writing style, the user generally can write once a punctuation mark, word, word, phrase, in short, one section word etc.; Accordingly, electronic installation is in when response, generally can be with a punctuation mark, word, word, phrase, in short, one section word etc. do the as a whole response such as carry out that standard word identification and conversion, convergent-divergent are arranged.So, the word cell described in the application, can be for a punctuation mark, word, word, phrase, in short, one section word etc., even can be for the combination of a stroke, radical, a word and some strokes etc.
For the ease of setting forth explanation, below respectively take word cell as a word, one group of word sets forth.Wherein, a word can be understood as: word, stroke or radical etc.; One group of word namely can be regarded as: word, phrase, in short, one section word etc., even can be the combination of a stroke, radical, a word and some strokes.
Embodiment one
Please refer to shown in Figure 2,
Word cell convergent-divergent adjustment process: it comprises the basic convergent-divergent of word cell and word cell fine setting convergent-divergent, and in this example, word cell fine setting convergent-divergent also can omit, but than the scheme of taking word cell fine setting convergent-divergent, slightly not enough on display effect.
The basic convergent-divergent of word cell: by the word cell size of expection, the handwritten word unit of inputting is carried out the convergent-divergent adjustment;
The expection row height of setting the handwriting input word cell is H, and the width of expection is W; Actual word cell original height of writing is OH, and original width is OW.According to the ratio of OH and H, and the ratio of OW and W, get both a less ratio, with this ratio as basic scaling; Or according to the ratio of OH and H, and the ratio of OW and W, get weighted mean value as basic scaling; Can also determine basic scaling by alternate manner, carry out basic convergent-divergent.
Basic scaling according to determining carries out convergent-divergent to this handwritten word unit;
The basic convergent-divergent of the word cell of this step, purpose are to make each handwritten word unit of input be adjusted to big or small basically identical.
Word cell fine setting convergent-divergent: according to the dot matrix distribution characteristics of word cell, further calculate scaling, and to finely tuning convergent-divergent through the word cell of basic convergent-divergent;
Please in conjunction with Fig. 3, shown in Figure 4, the concrete steps of described fine setting convergent-divergent comprise:
At first, find out the text profile rectangle of word cell: to from top to bottom (or from the bottom up) scanning of word cell, obtain the first row and last column of word cell dot matrix, from left to right (or from right to left) obtains first row and last row of word cell dot matrix, encloses the text profile rectangle frame that forms whole word cell by this first row and last column, first row and last row.
Secondly, find out the level of confidentiality dot matrix rectangle of word cell:
Can calculate by following dual mode the level of confidentiality dot matrix rectangle of word cell:
Mode one: the calculating to level of confidentiality dot matrix rectangle divides both direction to carry out.
In the vertical direction, scan from top to bottom the dot matrix number that every delegation occurs, can calculate the total dot matrix number of line number and all row, obtain the average dot matrix number of row of the overall situation.
From the beginning again scanning, when the average dot matrix number of partial row of continuous two row (or more than two row) is counted more than the average dot matrix of the row of this overall situation, the capable appearance of sign level of confidentiality dot matrix, the capable position of record level of confidentiality dot matrix.
In the horizontal direction, scan from left to right each and list existing dot matrix number, can calculate the total dot matrix number of columns and all row, or total dot matrix number of obtaining of the columns that is obtained by column scan and line scanning, obtain the column average dot matrix number of the overall situation.
From the beginning again scanning, when the local column average dot matrix number of continuous two row (or more than two row) was counted more than this overall column average dot matrix, sign level of confidentiality lattice array occurred, the position of record level of confidentiality lattice array.
Dot matrix capable by the level of confidentiality dot matrix and that the level of confidentiality lattice array overlaps forms a level of confidentiality dot matrix rectangle.
Mode two: from top to bottom scanning, take the horizontal dot matrix number of the first row as standard (such as: the horizontal dot matrix number of the first row as: 3 points), when continuing down to scan, when scanning the horizontal dot matrix number of certain delegation greater than the first row horizontal line dot matrix number (greater than 3 the time), record this horizontal line as upper side frame;
When scan the horizontal dot matrix number of certain delegation (from the nearest horizontal line of last column) when counting greater than last column dot matrix (such as: the horizontal dot matrix number of last column is: 2 points), record this delegation's horizontal line as lower frame;
Another recording mode of lower frame is as follows: from the bottom up scanning, take the horizontal dot matrix number of the first row as standard (such as the first horizontal line as: 2 points), when scanning the horizontal dot matrix number of certain delegation greater than the horizontal dot matrix number of the first row (greater than 2 the time), record this horizontal line as lower frame;
From left to right scanning, take the dot matrix number of first row perpendicular line as standard (such as: the dot matrix number of first row perpendicular line as: 3 points), scanning continues to turn right, when the dot matrix number that scans a certain row perpendicular line greater than the dot matrix number of first row perpendicular line (greater than 3 the time), record this perpendicular line as left frame;
(such as the dot matrix number of the perpendicular line of last row is: 2 points), record this row perpendicular line as left frame when counting greater than the dot matrix of last row perpendicular line when the dot matrix number that scans a certain row perpendicular line (from the nearest perpendicular line of last row);
Another recording mode of left frame is as follows: the scanning of turning left from the right side, take the dot matrix number of first row perpendicular line as standard (such as the first horizontal line as: 2 points), when the dot matrix number that scans a certain row perpendicular line greater than the dot matrix number of first row perpendicular line (greater than 2 the time), record this row perpendicular line as left frame;
Above-mentioned left frame, left frame, upper side frame and lower frame intersect, and enclose to form a rectangle frame, i.e. the level of confidentiality dot matrix rectangle of literal.
At last, ratio between the size of the text profile rectangle of the size of calculating level of confidentiality dot matrix rectangle and whole word cell; Again this ratio be multiply by one and adjust the factor, can obtain the ratio of further convergent-divergent (fine setting).
Adjust the factor and be in order between the rectangle of level of confidentiality dot matrix and word cell profile rectangle, to do balance, allow the convergent-divergent of word cell be unlikely to exaggeration.For example, when the ratio of the rectangle of level of confidentiality dot matrix and word cell profile rectangle is very little (less than 0.35, as " in " word), adjusting the factor is between 1.5 to 2.5.And when level of confidentiality dot matrix rectangle and word cell profile rectangle are larger (greater than 0.85, such as " state " word), adjusting the factor is between 0.6 to 1.2.This adjustment factor is the statistical value that can draw by experiment, need to be according to the actual effect adjustment.
For example, among Fig. 1 " in " word, width is little than desired value, and the reticular density of upper/lower terminal is low, can appropriateness amplify.The width of " state " word, highly all near desired value, without convergent-divergent; " heart " word among the upper figure because width is larger, does not need to amplify.
In certain embodiments, in the method for combination that the handwriting input literal shows, the dispensable step of convergent-divergent adjustment process of described word cell.In certain embodiments, in the method for combination that the handwriting input literal shows, the execution order of the basic convergent-divergent of described word cell and fine setting convergent-divergent is random order.
Word cell center of gravity deterministic process:
Adding up the dot matrix distribution characteristics of each word, find out the relative central point of dot matrix distribution characteristics, namely is center of gravity.In this example, adopt two kinds of modes to obtain the word cell center of gravity:
Mode one: adopt easy mode, with the center of level of confidentiality dot matrix rectangle directly as the center of gravity of word cell.
Mode two: adopt accurate mode, this accurate mode comprises that further two kinds of centers of gravity determine mode:
The accurate center of gravity of the first is determined mode:
Scan total dot matrix number: total dot matrix number of scan word unit, the meter summation is T;
Find out the transverse center of gravity line: from the beginning scan every delegation and meter accumulative total dot matrix number, when the dot matrix number of accumulative total equaled X when scanning a certain dot matrix, the corresponding horizontal line of row that records this dot matrix place was the transverse center of gravity line, T/3≤X≤2T/3;
Find out the longitudinal center of gravity line: from the beginning scan each row and meter accumulative total dot matrix number, when the dot matrix number of accumulative total equaled X when scanning a certain dot matrix, the vertical curve that records the row correspondence at this dot matrix place was the longitudinal center of gravity line, T/3≤X≤2T/3;
After scanning was finished, the point of crossing of horizontal, vertical two center of gravity line was center of gravity.
The accurate center of gravity of the second is determined mode:
Find out horizontal, longitudinal center of gravity line: vertically line by line scan, record total dot matrix and count the accumulative total dot matrix number of T, each dot matrix, count the accumulative total dot matrix number of T and each dot matrix according to total dot matrix of record, calculate the accumulative total dot matrix of a certain dot matrix and count X, when T/3≤X≤2T/3, the corresponding horizontal line of row that records this dot matrix place is the transverse center of gravity line; From the beginning scan each row and meter accumulative total dot matrix number, the dot matrix of accumulative total is counted Y when scanning a certain dot matrix, and during T/3≤Y≤2T/3, the corresponding vertical curve of row that records this dot matrix place is the longitudinal center of gravity line;
Or along continuous straight runs scans by column, record total dot matrix and count the accumulative total dot matrix number of T, each dot matrix, count the accumulative total dot matrix number of T and each dot matrix according to total dot matrix of record, calculate the accumulative total dot matrix of a certain dot matrix and count Y, when T/3≤Y≤2T/3, the corresponding vertical curve of row that records this dot matrix place is the longitudinal center of gravity line; From the beginning scan every delegation and meter accumulative total dot matrix number, the dot matrix number of accumulative total equals X when scanning a certain dot matrix, and during T/3≤X≤2T/3, the corresponding horizontal line of row that records this dot matrix place is the transverse center of gravity line;
The point of crossing of horizontal, vertical two center of gravity line is center of gravity.
The process of virtual baseline: capable high according to the word cell of finishing word cell convergent-divergent adjustment process, the baseline of virtual every delegation, each baseline is parallel, and to be equal to, or greater than word cell capable high the interval between the adjacent baseline, and it is capable high 1.5 times that the spacing in this example between the baseline is made as word cell; Also can go ahead of the rest virtual baseline, to set row high, as the reference standard of the scaling of word cell convergent-divergent adjustment process.
Word cell is put procedure for displaying: according to the position of the word cell center of gravity of each word, press sequential write and place word cell, the word cell center of gravity of each word is positioned on the baseline, fix with the spacing between the delegation adjacent words unit.Choose capable 1/4th high spacings as colleague's adjacent words unit of word cell in this example.
By above-mentioned concrete technical scheme as can be known, the process of wherein word cell convergent-divergent adjustment process, word cell center of gravity deterministic process and virtual baseline, be not strict with at execution sequence, both can carry out synchronously, also can successively carry out with random order, or intersect and to carry out, need only on ins and outs, slightly adjust.
Method of combination by this routine handwriting input word cell demonstration, can be to the word cell of handwriting input, design feature according to Chinese character, each word cell that has individual difference is carried out size adjustment, putting position adjustment, the word cell that after this shows, its size more meets the design feature of Chinese character, every line inscribed, because its word cell center of gravity drops on the same baseline, neat appearance more more meets the aesthetic conceptions of Chinese traditional calligraphy.
Embodiment two
Preset the rectangle of a word cell profile size, obtain the area of this default rectangle.
In the basic convergent-divergent step of word cell, by the rank scanning to word cell, calculate the real area of input word unit profile, the area of default rectangle and the ratio of this real area, be taken as the basic scaling to this word cell, by this basic scaling this word cell carried out basic convergent-divergent.
Ensuing word cell trim step, determine that word cell center of gravity, virtual baseline and word cell put step display, basic identical with embodiment one.
Embodiment three
In this example, suppose that described word cell is one group of word or phrase, makes adjustment according to the technical scheme of embodiment one.Specifically be mainly, after carrying out the basic convergent-divergent of word cell, carry out before the word cell fine setting convergent-divergent, word cell is split out one by one word, according to the dot matrix distribution characteristics of each word, further calculate scaling, and to finely tuning convergent-divergent through each word of basic convergent-divergent; To the fine setting convergent-divergent of each word, the concrete steps of determining center of gravity and putting demonstration etc. are with reference to embodiment one.
Embodiment four
In this example, suppose that described word cell is one group of word or phrase, makes adjustment according to the technical scheme of embodiment one.Specifically be mainly, before carrying out the basic convergent-divergent of word cell, word cell fine setting convergent-divergent, implement a splitting step, each word cell is split out one by one word, again it is carried out basic convergent-divergent and fine setting convergent-divergent to the basic convergent-divergent of each word, fine setting convergent-divergent, the concrete steps of determining center of gravity and putting demonstration etc. are with reference to embodiment one.The situation that this example is write not of uniform sizely for one group of word can realize significantly adjusting and landscaping effect.
Embodiment five
In this example, suppose that described word cell is one group of word or phrase, makes adjustment according to the technical scheme of embodiment one.Specifically be mainly, first word cell carried out whole basic convergent-divergent, split into again a plurality of words, again the center of gravity of each word of calculative determination and put demonstration respectively.To the basic convergent-divergent of each word cell, the concrete steps determining center of gravity and put demonstration etc. with reference to embodiment one.
Embodiment six
In this example, suppose that described word cell is one group of word or phrase, makes adjustment according to the technical scheme of embodiment one.Specifically be mainly, first word cell carried out whole basic convergent-divergent, determine center of gravity and put; Again word cell is split into a plurality of words, distinguish again the center of gravity of each word of calculative determination, according to the center of gravity fine setting putting position of each word.
Embodiment seven
In this example, on above-mentioned each routine technical scheme, before the step of convergent-divergent step and definite center of gravity, increase the correction step, for writing the askew word cell of having write tiltedly, rotate a certain angle its correction; Then, according to above-mentioned each routine technical scheme, or carry out word cell and be split as one by one word, or carry out basic convergent-divergent, finely tune convergent-divergent, determine center of gravity and put the steps such as demonstration.
Embodiment eight
The all or part of step of the whole bag of tricks can come the instruction related hardware to finish by program in above-described embodiment, by with the coupling of hardware, this example forms a kind of electronic installation, this electronic installation has hand-write input function and former person's handwriting Presentation Function, use the whole bag of tricks of above-described embodiment, realize the demonstration of word cell on display screen to handwriting input.This device can be panel computer, PAD and mobile phone etc.
Embodiment nine
This example is a computer-readable recording medium, and this storage medium can comprise: ROM (read-only memory), random access memory, disk or CD etc.In this computer-readable recording medium, have program stored therein, this program can realize all or part of step of the whole bag of tricks in above-described embodiment by by the related hardware load operating.
Above content is the further description of the present invention being done in conjunction with concrete preferred implementation, can not assert that implementation of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (15)

1. the method for combination that shows of a handwriting input literal comprises following process:
Center of gravity deterministic process: according to the dot matrix distribution characteristics, determine the center of gravity of word cell;
Put procedure for displaying: the center of gravity of each word cell that will determine through described center of gravity deterministic process drop on virtual, be used for every row word cell and put the baseline of reference, will sequentially put demonstration through each word cell of described convergent-divergent adjustment process.
2. method of combination as claimed in claim 1 is characterized in that, also comprises the convergent-divergent adjustment process: the word cell to handwriting input carries out convergent-divergent.
3. method of combination as claimed in claim 2 is characterized in that, described convergent-divergent adjustment process comprises the steps:
The basic convergent-divergent of adjusting: by the word cell size of expection, the handwritten word unit of input is carried out convergent-divergent adjusted before or after described center of gravity deterministic process and carry out.
4. such as method of combination as described in claim 2 or 3, it is characterized in that described convergent-divergent adjustment process also comprises the steps:
The fine setting convergent-divergent: according to the dot matrix distribution characteristics of word cell, further calculate scaling, and to finely tuning convergent-divergent through the word cell of basic convergent-divergent; Before or after described center of gravity deterministic process, carry out.
5. such as the described method of combination of claim 1-3, it is characterized in that, before carrying out described center of gravity deterministic process, also comprise the word cell split process: when described word cell is phrase or one group of word, it is split out independent one by one word; Described center of gravity deterministic process is carried out center of gravity to each word and is determined.
6. such as each described method of combination among the claim 1-3, it is characterized in that described center of gravity deterministic process comprises the steps:
By the ranks dot matrix of difference scan word unit, find out the intensive ranks position of dot matrix, obtain level of confidentiality dot matrix rectangle, the center of this level of confidentiality dot matrix rectangle is level of confidentiality dot matrix center, getting this level of confidentiality dot matrix center is the center of gravity of word cell.
7. such as each described method of combination among the claim 1-3, it is characterized in that described center of gravity deterministic process comprises:
Scan total dot matrix number: total dot matrix number of scan word unit, counting total dot matrix number is T;
Find out the transverse center of gravity line: from the beginning scan every delegation and meter accumulative total dot matrix number, when the dot matrix number of accumulative total equaled X when scanning a certain dot matrix, the corresponding horizontal line of row that records this dot matrix place was the transverse center of gravity line, T/3≤X≤2T/3;
Find out the longitudinal center of gravity line: from the beginning scan each row and meter accumulative total dot matrix number, when the dot matrix number of accumulative total equaled X when scanning a certain dot matrix, the vertical curve that records the row correspondence at this dot matrix place was the longitudinal center of gravity line, T/3≤X≤2T/3;
The point of crossing of horizontal, vertical two center of gravity line is center of gravity.
8. such as each described method of combination among the claim 1-3, it is characterized in that described center of gravity deterministic process comprises:
Find out horizontal, longitudinal center of gravity line: vertically line by line scan each dot matrix also, record total dot matrix and count the accumulative total dot matrix number of T, each dot matrix, count the accumulative total dot matrix number of T and each dot matrix according to total dot matrix of record, calculate the accumulative total dot matrix of a certain dot matrix and count X, when T/3≤X≤2T/3, the corresponding horizontal line of row that records this dot matrix place is the transverse center of gravity line; From the beginning scan each row and meter accumulative total dot matrix number, the dot matrix of accumulative total is counted Y when scanning a certain dot matrix, and during T/3≤Y≤2T/3, the corresponding vertical curve of row that records this dot matrix place is the longitudinal center of gravity line;
The point of crossing of horizontal, vertical two center of gravity line is center of gravity.
9. such as each described method of combination among the claim 1-3, it is characterized in that the described baseline of every delegation is parallel to each other, and the row of the interval between the adjacent baseline after being equal to, or greater than the word cell convergent-divergent and adjusting is high.
10. method of combination as claimed in claim 4 is characterized in that, the process of described word cell fine setting convergent-divergent comprises step:
Obtain word cell profile rectangle by scanning;
By the ranks dot matrix of difference scan word unit, find out the intensive ranks position of dot matrix, obtain level of confidentiality dot matrix rectangle;
Ratio between the size of calculating level of confidentiality dot matrix rectangle and the size of whole word cell profile rectangle multiply by one and adjusts the factor, as fine setting convergent-divergent ratio.
11. method of combination as claimed in claim 5 is characterized in that, before convergent-divergent adjustment process or center of gravity deterministic process, also comprises word cell correction process: write when askew when described word cell, this word cell is adjusted angle, rectified a deviation; Or to being write the whole angle of the askew tone of Chinese characters in the word cell, being rectified a deviation.
12. method of combination as claimed in claim 6 is characterized in that, the described detailed process that obtains level of confidentiality dot matrix rectangle comprises:
Find out capable level of confidentiality dot matrix: the dot matrix number that the every delegation of line scanning occurs, calculate line number and total dot matrix number, obtain the overall average dot matrix number of row; Again carry out line scanning, when the average dot matrix number of continuous two row or the partial row more than two row is counted more than the average dot matrix of the row of this overall situation, the capable appearance of sign level of confidentiality dot matrix, it is capable to record described level of confidentiality dot matrix;
Find out the level of confidentiality dot matrix of row: each lists existing dot matrix number column scan, calculates columns and total dot matrix number, or total dot matrix number of obtaining of the columns that is obtained by column scan and line scanning, obtains the column average dot matrix number of the overall situation; Again carry out column scan, when the local column average dot matrix number more than continuous two row or two are listed as was counted more than this overall column average dot matrix, sign level of confidentiality lattice array occurred, and records described level of confidentiality lattice array;
Dot matrix capable by the level of confidentiality dot matrix and that the level of confidentiality lattice array overlaps obtains level of confidentiality dot matrix rectangle.
13. method of combination as claimed in claim 6 is characterized in that, the described detailed process that obtains level of confidentiality dot matrix rectangle comprises:
From top to bottom scanning take the horizontal dot matrix number of the first row as standard, when continuing down to scan, when scanning the horizontal dot matrix number of certain delegation greater than the first row horizontal line dot matrix number, is recorded this horizontal line as upper side frame;
A certain when counting greater than last column dot matrix from the nearest horizontal dot matrix number of last column when scanning, record this delegation's horizontal line as lower frame;
From left to right scanning, take the dot matrix number of first row perpendicular line as standard, the scanning that continues to turn right when the dot matrix number of the dot matrix number that scans a certain row perpendicular line greater than the first row perpendicular line, is recorded this perpendicular line as left frame;
When scanning a certain dot matrix number from the nearest perpendicular line of last row and count greater than the dot matrix of last row perpendicular line, record this row perpendicular line as left frame;
Described left frame, left frame, upper side frame and lower frame intersect, and enclose to form a rectangle frame, i.e. the level of confidentiality dot matrix rectangle of literal.
14. method of combination as claimed in claim 6 is characterized in that, the described detailed process that obtains level of confidentiality dot matrix rectangle comprises:
From top to bottom scanning take the horizontal dot matrix number of the first row as standard, when continuing down to scan, when scanning the horizontal dot matrix number of certain delegation greater than the first row horizontal line dot matrix number, is recorded this horizontal line as upper side frame;
Scanning take the horizontal dot matrix number of the first row as standard, when scanning the horizontal dot matrix number of certain delegation greater than the horizontal dot matrix number of the first row, is recorded this horizontal line as lower frame from the bottom up;
From left to right scanning, take the dot matrix number of first row perpendicular line as standard, the scanning that continues to turn right when the dot matrix number of the dot matrix number that scans a certain row perpendicular line greater than the first row perpendicular line, is recorded this perpendicular line as left frame;
The scanning of turning left from the right side take the dot matrix number of first row perpendicular line as standard, when the dot matrix number of the dot matrix number that scans a certain row perpendicular line greater than the first row perpendicular line, is recorded this row perpendicular line as left frame;
Described left frame, left frame, upper side frame and lower frame intersect, and enclose to form a rectangle frame, i.e. the level of confidentiality dot matrix rectangle of literal.
15. an electronic installation is used the method for combination that shows such as each described handwriting input word cell among the claim 1-14, realizes the demonstration to the literal of handwriting input.
CN201210302010.1A 2012-08-22 2012-08-22 The method of combination of handwriting input text importing and electronic installation Active CN102902969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210302010.1A CN102902969B (en) 2012-08-22 2012-08-22 The method of combination of handwriting input text importing and electronic installation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210302010.1A CN102902969B (en) 2012-08-22 2012-08-22 The method of combination of handwriting input text importing and electronic installation

Publications (2)

Publication Number Publication Date
CN102902969A true CN102902969A (en) 2013-01-30
CN102902969B CN102902969B (en) 2016-02-17

Family

ID=47575191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210302010.1A Active CN102902969B (en) 2012-08-22 2012-08-22 The method of combination of handwriting input text importing and electronic installation

Country Status (1)

Country Link
CN (1) CN102902969B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354834A (en) * 2015-10-15 2016-02-24 广东欧珀移动通信有限公司 Method and apparatus for making statistics on number of paper text fonts
CN106293462A (en) * 2016-08-04 2017-01-04 广州视睿电子科技有限公司 Character display method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1269554A (en) * 1999-04-05 2000-10-11 英业达集团(上海)电子技术有限公司 Font pantograph method and device
CN1645439A (en) * 2004-10-22 2005-07-27 高红梅 Chinese character analysis lattice
CN101183430A (en) * 2007-12-13 2008-05-21 中国科学院合肥物质科学研究院 Handwriting digital automatic identification method based on module neural network SN9701 rectangular array
CN101470549A (en) * 2007-12-27 2009-07-01 汉王科技股份有限公司 Handwriting processing method and system used for information processing terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1269554A (en) * 1999-04-05 2000-10-11 英业达集团(上海)电子技术有限公司 Font pantograph method and device
CN1645439A (en) * 2004-10-22 2005-07-27 高红梅 Chinese character analysis lattice
CN101183430A (en) * 2007-12-13 2008-05-21 中国科学院合肥物质科学研究院 Handwriting digital automatic identification method based on module neural network SN9701 rectangular array
CN101470549A (en) * 2007-12-27 2009-07-01 汉王科技股份有限公司 Handwriting processing method and system used for information processing terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354834A (en) * 2015-10-15 2016-02-24 广东欧珀移动通信有限公司 Method and apparatus for making statistics on number of paper text fonts
CN105354834B (en) * 2015-10-15 2018-04-17 广东欧珀移动通信有限公司 A kind of method and device for counting papery text font number
CN106293462A (en) * 2016-08-04 2017-01-04 广州视睿电子科技有限公司 Character display method and device

Also Published As

Publication number Publication date
CN102902969B (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN101551724B (en) Method and device for writing characters on touch screen
US20120218273A1 (en) Dynamic typesetting method of display image
CN103186511B (en) Chinese characters word-formation method and apparatus, the method for construction fontlib
CN103778213B (en) Word cloud diagram visualizing method based on occupation matrix
CN102830934B (en) A kind of handwriting input display method and device
CN104573747B (en) Word evaluation method and device
CN107393494A (en) A kind of font dot matrix display methods and storage device based on LCDs
CN109189314B (en) Writing guide method, device, equipment and medium for handwriting equipment
US20200097536A1 (en) Automatic generation of document layouts
CN102902969B (en) The method of combination of handwriting input text importing and electronic installation
KR101338397B1 (en) Character Font Making System and Method thereof
CN105808682A (en) Relational graph display method and apparatus
US20090191520A1 (en) Method and Apparatus for Word Forming and Word Building
CN102917237A (en) Three-dimensional (3D) video playing method, device and system
CN104581339A (en) Device capable of displaying strokes synchronously with audio frequency and method thereof
CN112419833A (en) Hui palace lattice for assisting in calligraphy exercise and exercise method
CN104217624A (en) Novel X-shaped grid and usage method thereof
CN103165105B (en) Mobile communication terminal and graphic display method
CN102915439B (en) The center of gravity defining method of handwriting and electronic installation
KR20130032562A (en) Method for game using width/height word puzzle automatic formation using vocabulary dictionary and apparatus for the same
CN201307351Y (en) Chirography learning device
CN101763845A (en) Method for calculating the display width of characters in a dot matrix character library
CN213070216U (en) Carrier containing grid and corresponding grid
CN102799281A (en) Locational Chinese character input method
CN102855502B (en) The center of gravity of handwriting determines method and electronic installation

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