CN100590659C - Writing style instantaneous realizing method - Google Patents

Writing style instantaneous realizing method Download PDF

Info

Publication number
CN100590659C
CN100590659C CN200710030254A CN200710030254A CN100590659C CN 100590659 C CN100590659 C CN 100590659C CN 200710030254 A CN200710030254 A CN 200710030254A CN 200710030254 A CN200710030254 A CN 200710030254A CN 100590659 C CN100590659 C CN 100590659C
Authority
CN
China
Prior art keywords
stroke
initial
stroke section
current
pen
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
CN200710030254A
Other languages
Chinese (zh)
Other versions
CN101118650A (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.)
Vtron Technologies Ltd
Original Assignee
Vtron Technologies 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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN200710030254A priority Critical patent/CN100590659C/en
Publication of CN101118650A publication Critical patent/CN101118650A/en
Application granted granted Critical
Publication of CN100590659C publication Critical patent/CN100590659C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a stroke tip instant realizing method, which includes the following steps: A. using a handwriting input device to set the biggest stroke width value according to the size of the font; B. according to the direction of the starting stroke to confirm the initial stroke width of the starting stroke acting as the standard of the initial stroke width of the current strokesegment; C. according to the direction and the slope of the current stroke segment to produce a initial adjustment parameter, the product of the initial adjustment parameter and the standard of the initial stroke width is used as the width of the current stroke segment, using the corresponding pen matching the stroke width to draw the stroke segment; D. using the stroke width of the current stroke segment as the initial stroke width of the next stroke segment; E. repeating the steps until writing is finished and display is outputted. The present invention is independent of press feeling devices which are additionally arranged to provide writing information, and judges the size of the stroke width according to the input speed of the user completely. The process is simply, and the effect ofthe stroke tip is good with instant display.

Description

A kind of stroke tip instant realizing method
Technical field
The present invention relates to the method that a kind of stroke tip instant realizes.
Background technology
Along with popularizing of robot calculator, robot calculator and daily life are got in touch more and more tightr, and be ubiquitous in the life that is applied in us of electronization and the work.Calligraphy only is at an early stage of development aspect computer application as history culture of regarding as a pride of China.For example, famous person's the autograph, personnel participating in the meeting's signatures etc. also are to use traditional pen to finish with paper in most of occasion, even provide the electronic whiteboard signature in some important occasion, but can not reach the signature effect of traditional calligraphy.Because, unified font is provided in the computer library, no matter how the font of your input is, still can becomes unified font format through handling, thereby lack the feature of individual calligraphy.In the prior art, part provides the method for handwriting input, is thickness mostly as one stroke, also is difficult to embody the calligraphy art of China's Chinese character; Other has the part method is that equipment has added the pressure sensitivity technology, under the help of pressure sensitivity, has embodied the ways of writing of calligraphy, but because method needs the support of hardware, has increased user's use cost, thereby be difficult to be popularized.
Summary of the invention
The purpose of this invention is to provide a kind of easy and simple to handle, be implemented in the literal stroke tip instant realizing method that hand-written time output has the calligraphy effect.
The objective of the invention is to realize by following technological means: a kind of stroke tip instant realizing method, it may further comprise the steps: a, use handwriting input device, and according to the most a large sum of wide value of font size setting; B, determine that according to first stroke of a Chinese character direction the initial pen of the first stroke of a Chinese character is wide, as the wide benchmark of initial pen of current stroke section; C, generate the initial parameter of adjusting,, use stroke that should width is gone out this stroke section according to the product of initial adjustment parameter and the wide benchmark of initial pen width as current stroke section according to the direction of current stroke section and slope; D, with the wide wide benchmark of initial pen of the pen of current stroke section as next stroke section; E, repetition abovementioned steps c, d write and export demonstration until finishing.
Each stroke all is made up of the line between the some spots, and the line between every adjacent 2 is referred to as the stroke section.When writing, calculate the width of each font stroke section constantly, the calculating of the width of current stroke section is obtained by two calculated factor: the one, the width of a last stroke section is called the wide radix of pen; Another is the parameter as correcting action, is called the adjustment parameter.The wide radix of pen is just wide as the pen of current stroke section with the product of adjusting parameter, also is the wide radix of pen of next stroke section.Owing to adjust the existence of parameter, when writing, can write out the wide stroke section of various different pens and come out, to form the font of various calligraphy effects.Do not having immediately to handle the handwriting input of Chinese character under the situation of pressure sensitivity, the Chinese character that output has vigour of style in writing effect shows.
As a kind of optimal way, among the step c, when the direction of described current stroke section is during to the lower right, it adjusts parameter more than or equal to 1.0, when the direction of described current stroke section is during to other direction, it adjusts parameter smaller or equal to 1.0, adjusts the influence of stroke direction to stroke weight, further improves the vigour of style in writing effect of writing Chinese characters.
It also is provided with according to the stroke acceleration determines the actual step of adjusting parameter, be the length ratio of the length and a last stroke section of the current stroke section of instant recording, when this ratio more than or equal to 1 the time, the actual adjustment parameter of current stroke section and the initial ratio of parameter of adjusting are smaller or equal to 1.0, when this ratio smaller or equal to 1 the time, the actual adjustment parameter of current stroke section and the initial ratio of parameter of adjusting are more than or equal to 1.0, instrument of accession writing rate is further adjusted the calligraphy effect of the refinement vigour of style in writing to the factor of influence of stroke.
It also is provided with the step of adjusting the wide benchmark of the actual pen of current stroke section according to stroke direction, it is the direction initialization counter, current stroke section direction is identical with a last stroke section direction, counter adds in the lump resets, the ratio of the actual wide benchmark of pen of current stroke section and the wide benchmark of initial pen is more than or equal to 1, add the factor of influence of Chinese character stroke turnover, improve and write the vigour of style in writing effect that running hand etc. connects the more calligraphy font of pen stroke width.
It also is provided with the wide treatment step of pen, is about to be made as smooth connection between a current stroke section and the last stroke section, avoids difference bigger, influences vigour of style in writing effect.
Advantage of the present invention is: do not rely on and additionally set up pressure sensitivity equipment and wait written information is provided, rely on user's input speed to judge that pen is roomy little fully, handle simply, the vigour of style in writing is effective, can show in real time simultaneously.
Description of drawings
Accompanying drawing 1 is the stroke process effect synoptic diagram during the horizontal first stroke of a Chinese character in the embodiment of the invention;
The accompanying drawing 2 stroke process effect synoptic diagram when holding up in the embodiment of the invention;
Accompanying drawing 3 is the stroke process effect synoptic diagram when casting aside the first stroke of a Chinese character in the embodiment of the invention;
Accompanying drawing 4 is the stroke process effect synoptic diagram when pressing down the first stroke of a Chinese character in the embodiment of the invention;
The accompanying drawing 5 stroke process effect synoptic diagram when mentioning in the embodiment of the invention;
Accompanying drawing 6 is the stroke process effect synoptic diagram of embodiment of the invention transfer compromise;
The accompanying drawing 7 stroke process effect synoptic diagram when connecting in the embodiment of the invention;
Accompanying drawing 8 is the processing flow chart of the embodiment of the invention.
Embodiment
Embodiment:
Consult Fig. 1-8, at first, use handwriting input device, and the most a large sum of wide value of size adjustment of the font of writing according to current needs, limit the most a large sum of wide size, to reach the most a large sum of wide and corresponding purpose of font size.
Secondly, need the initial pen of the setting first stroke of a Chinese character earlier wide when the first stroke of a Chinese character is started writing, this type according to the first stroke of a Chinese character decides.Generally under normal circumstances, that the first stroke of a Chinese character of Chinese character comprises is horizontal, vertical, cast aside, press down, carry, corresponding respectively level to the right, vertically downward, the oblique lower left corner, the oblique lower right corner, the oblique upper right corner.Here,, point deals with so being used as right-falling stroke because point also is oblique bottom right.The stroke of other directions is should not appear in the first stroke of a Chinese character, and for overall treatment, the first stroke of a Chinese character stroke width of other directions is just put a smaller width.In the processing of the embodiment of the invention, a medium width is got in the horizontal first stroke of a Chinese character, in the centre of maximal value and minimum value; Hold up pen and get medium width bigger than normal; Constantly attenuate owing to cast aside, also get medium width bigger than normal so cast aside; Press down meeting chap gradually, get width seat less than normal and be the first stroke of a Chinese character; Summary attenuates fast, gets medium width bigger than normal.The width that the first stroke of a Chinese character has been arranged, each then later stroke section are all made the wide radix of initial pen by the width of a last section.
Be exactly once more to have generated initial adjustment parameter according to the direction and the slope of current stroke.And this parameter has determined the adjustment direction roughly of initial adjustment parameter, is chap or attenuates.Roughly direction and concrete slope according to current stroke section deal with regard to various different situations respectively.Here say that roughly direction is because horizontal stroke here and the perpendicular stroke section that can not refer to absolute level and vertical direction, with level or vertical certain angle is arranged, but angle and little, just being used as is that horizontal stroke or erect deals with.In the processing of the embodiment of the invention, direction is used as the right-falling stroke processing to the stroke in the lower right corner, initially adjusts parameter more than or equal to 1.0, and concrete parameter fibrous root is done different adjustment according to concrete slope, the adjustment parameter that different slopes is corresponding different.And direction left the stroke of inferior horn initially adjust parameter smaller or equal to 1.0 when cast aside handling, concrete parameter is also relevant with concrete slope.The direction upper left corner, the upper right corner, level reach left vertically upward all be the stroke that attenuates fast, initially adjust parameter much smaller than 1.0.Reaching downward stroke to the right adjusts in about 1.0 with regard to the angle adjustment parameter of its deviation respectively.Generally speaking, having only direction is that the adjustment parameter of bottom right can be greater than 1.0, and other directions have different from 1.0 initial adjustment parameter according to the difference of slope.
Because the wide radix of initial pen all generates with the initial parameter of adjusting, following processing all is that its work is adjusted, with the actual adjustment of the wide cardinal sum of the actual pen parameter of growing.Writing speed is little to the influence of initial adjustment parameter, but also can not ignore.The value of writing speed is exactly the length of current stroke section, also is current writing a little and last one distance of writing a little.When current writing speed greater than a certain reference value, (this reference value is according to user's request, obtain through experiment, in the present embodiment, this reference value is 3 pixels) time, the actual parameter of adjusting is relatively initially adjusted parameter and is suitably diminished, and when current writing speed less than other a certain reference value the time, the actual parameter of adjusting suitably becomes greatly.Certainly adjusting range is unsuitable excessive.
With respect to speed, the influence that following acceleration is adjusted parameter to reality is then bigger.The value of acceleration is exactly the ratio of the length of the length of current stroke section and a last stroke section, gets the big or small degree that the easier explanation of difference changes owing to get odds ratio, so currently get ratio and do not get difference.When this ratio more than or equal to 1 the time, illustrate that current being in quicken to write the stage, current stroke will attenuate, the actual adjustment parameter of then current stroke section and the initial ratio of parameter of adjusting are smaller or equal to 1.0; When this ratio smaller or equal to 1 the time, current stroke is wanted chap, the actual adjustment parameter of current stroke section and the initial ratio of parameter of adjusting are more than or equal to 1.0.
Also having an influence is exactly the place whether current stroke section is in turnover.The place of turnover all will suitably become big with the wide radix of current reality pen, and more consideration is owing to connect the existence of pen in the running hand, and whether the place of turnover also can be next first stroke of a Chinese character that connects pen, distinguish current the wide change of pen is big.Set a direction counter in the embodiments of the invention, current stroke section direction is identical with a last stroke section direction, and counter adds in the lump resets, and the ratio of the actual wide benchmark of pen of current stroke section and the wide benchmark of initial pen is more than or equal to 1.Smaller and the wide radix of pen constantly increases the wide radix of pen in also smaller at the counter radix.
It is wide to draw current actual pen according to wide radix of current actual pen and the actual product of adjusting parameter, if but current pen is wide and last one wide differ too big, it is wide then will suitably to adjust current pen, to do the smooth connection processing.
Repeat abovementioned steps at last, finish character calligraph, and output shows in real time.
The above only is a preferable embodiment of the present invention, and protection scope of the present invention is not limited thereto, and those of skill in the art are any to be included within protection domain of the present invention based on non-material change on the technical solution of the present invention.

Claims (2)

1, a kind of stroke tip instant realizing method, it may further comprise the steps:
A, use handwriting input device, and according to the most a large sum of wide value of font size setting;
B, determine that according to first stroke of a Chinese character direction the initial pen of the first stroke of a Chinese character is wide, as the wide benchmark of initial pen of current stroke section;
C, generate the initial parameter of adjusting,, use stroke that should width is gone out this stroke section according to the product of initial adjustment parameter and the wide benchmark of initial pen width as current stroke section according to the direction of current stroke section and slope; When the direction of described current stroke section is during to the lower right, it adjusts parameter more than or equal to 1.0, and when the direction of described current stroke section be during to other direction, its adjustment parameter is smaller or equal to 1; Determine the actual parameter of adjusting according to the stroke acceleration, the length ratio of the length of the current stroke section of instant recording and a last stroke section, when this ratio more than or equal to 1 the time, the actual adjustment parameter of current stroke section and the initial ratio of parameter of adjusting are smaller or equal to 1.0, when this ratio smaller or equal to 1 the time, the actual adjustment parameter of current stroke section and the initial ratio of parameter of adjusting are more than or equal to 1.0;
D, with the wide wide benchmark of initial pen of the pen of current stroke section as next stroke section;
E, repeating step c, d write and export demonstration until finishing;
It is characterized in that: also be provided with the step of adjusting the wide benchmark of the actual pen of current stroke section according to stroke direction among the step c, it is the direction initialization counter, current stroke section direction is identical with a last stroke section direction, counter adds in the lump resets, and the ratio of the actual wide benchmark of pen of current stroke section and the wide benchmark of initial pen is more than or equal to 1.
2, a kind of stroke tip instant realizing method according to claim 1 is characterized in that: it also is provided with the wide treatment step of pen, is about to be made as smooth connection between a current stroke section and the last stroke section.
CN200710030254A 2007-09-14 2007-09-14 Writing style instantaneous realizing method Expired - Fee Related CN100590659C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710030254A CN100590659C (en) 2007-09-14 2007-09-14 Writing style instantaneous realizing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710030254A CN100590659C (en) 2007-09-14 2007-09-14 Writing style instantaneous realizing method

Publications (2)

Publication Number Publication Date
CN101118650A CN101118650A (en) 2008-02-06
CN100590659C true CN100590659C (en) 2010-02-17

Family

ID=39054748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710030254A Expired - Fee Related CN100590659C (en) 2007-09-14 2007-09-14 Writing style instantaneous realizing method

Country Status (1)

Country Link
CN (1) CN100590659C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383050B (en) * 2008-10-14 2010-06-09 广东威创视讯科技股份有限公司 Writing method and device for handwriting
CN102081803B (en) 2011-01-20 2012-10-10 北京壹人壹本信息科技有限公司 Method for implementing writing style of original handwriting
CN102332173B (en) * 2011-09-13 2013-03-27 浙江万朋网络技术有限公司 Vector algebra-based simple and clear soft pen effect generation method
CN102521855A (en) * 2011-11-22 2012-06-27 广东威创视讯科技股份有限公司 Handwriting regulation method and device based on touch platform
CN103150115A (en) * 2013-03-04 2013-06-12 广东欧珀移动通信有限公司 Processing method and system for handwriting strokes on touch screen and mobile terminal
CN104345948B (en) * 2013-07-31 2017-08-25 北京壹人壹本信息科技有限公司 A kind of implementation method of original handwriting, realize device and electronic equipment
CN106708413A (en) * 2017-01-20 2017-05-24 山西大学 Method of enabling touch screen hand input to be presented as handwriting with stoke characteristics
CN109461194A (en) * 2018-09-19 2019-03-12 安徽慧视金瞳科技有限公司 A kind of method for drafting for simulating art designing pen style of writing
CN110263302A (en) * 2019-06-28 2019-09-20 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN112817465B (en) * 2021-02-04 2023-08-11 深圳市康冠商用科技有限公司 Screen stroke self-adaptive adjustment method and device, display terminal and storage medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
Virtual brush:a model-based synthesis of Chinese calligraphy. Helena T.F.Wong , Horace H.S.COMPUTER & GRAPHICS,Vol.24 No.1. 2000
Virtual brush:a model-based synthesis of Chinese calligraphy. Helena T.F.Wong, Horace H.S.COMPUTER & GRAPHICS,Vol.24 No.1. 2000 *
基于经验的虚拟毛笔模型. 宓晓峰,唐敏,林建贞,董金祥.计算机研究与发展,第40卷第8期. 2003
基于经验的虚拟毛笔模型. 宓晓峰,唐敏,林建贞,董金祥.计算机研究与发展,第40卷第8期. 2003 *
电子计算机毛笔字体的形成. 张宪荣.计算机工程,第3期. 1985
电子计算机毛笔字体的形成. 张宪荣.计算机工程,第3期. 1985 *

Also Published As

Publication number Publication date
CN101118650A (en) 2008-02-06

Similar Documents

Publication Publication Date Title
CN100590659C (en) Writing style instantaneous realizing method
WO2021219082A1 (en) Handwriting processing method, touch display device, computer device, and storage medium
US8860675B2 (en) Drawing aid system for multi-touch devices
KR101585145B1 (en) Method and Device for Implementing Original Calligraphy of Handwriting
US9020266B2 (en) Methods and devices for processing handwriting input
CN100520692C (en) Hand-written input method capable of implementing writing style effect
TWI470490B (en) Stroke display method of handwriting input and electronic device
US20090245645A1 (en) Method and tool for recognizing a hand-drawn table
CN106547433A (en) Written handwriting determines method and device
US20130321350A1 (en) Virtual ruler for stylus input
WO2021218445A1 (en) Handwriting processing method, handwriting processing apparatus, and storage medium
US10403238B2 (en) Presentation of representations of input with contours having a width based on the size of the input
CN101110007A (en) Dynamic three-dimensional cursor indication method
CN101813989A (en) Handwriting input method
US9874950B2 (en) Adaptive guidelines for handwriting
US20180348896A1 (en) Multi-Stroke Smart Ink Gesture Language
US20110286662A1 (en) System for building a personalized-character database and method thereof
US7454699B2 (en) Smart content insertion
US20120274573A1 (en) Korean input method and apparatus using touch screen, and portable terminal including key input apparatus
JP6287861B2 (en) Information processing apparatus, information processing method, and program storage medium
US20160162174A1 (en) Electronic apparatus, method and storage medium
EP2669783A1 (en) Virtual ruler for stylus input
WO2021218448A1 (en) Handwriting forming method and apparatus, and electronic device
CN102270086B (en) Method and the instant communication client of contact person is represented in immediate communication tool
CN1598869A (en) Hand-write pen capable of analog different pen touch

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: 20100217

Termination date: 20170914

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