CN106990900A - One kind writing implementation method and device - Google Patents

One kind writing implementation method and device Download PDF

Info

Publication number
CN106990900A
CN106990900A CN201610040104.4A CN201610040104A CN106990900A CN 106990900 A CN106990900 A CN 106990900A CN 201610040104 A CN201610040104 A CN 201610040104A CN 106990900 A CN106990900 A CN 106990900A
Authority
CN
China
Prior art keywords
contact
screen
track
virtual track
virtual
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.)
Pending
Application number
CN201610040104.4A
Other languages
Chinese (zh)
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.)
Banma Zhixing Network Hongkong Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610040104.4A priority Critical patent/CN106990900A/en
Publication of CN106990900A publication Critical patent/CN106990900A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

The invention provides one kind writing implementation method and device, wherein method includes:Determine the initial position of virtual track;With the movement of the contact on screen, motion track of the contact on screen is mapped according to default mapping parameters, the virtual track since the initial position is obtained and the virtual track is shown on screen.Enable to the writing on screen to be no longer influenced by the limitation of felt pen nib or finger and screen contact area by the present invention, improve the fine degree of writing, sight is also no longer influenced by the stop of felt pen nib or finger.

Description

One kind writing implementation method and device
【Technical field】
The present invention relates to Computer Applied Technology field, more particularly to a kind of writing implementation method and device.
【Background technology】
User equipment is substantially all there is provided writing function, and such as user can use stylus or finger Write on the touchscreen, or user can on a pc screen be write by the movement of mouse. Current writing implementation is mainly, with movement of the contact on screen, shows and touches on screen The point same or analogous word of motion track or figure.
However, because the word or figure that in existing implementation, are shown on screen are actually by touching Point motion track formation, this just greatly limit the fine degree that touches and can be write on screen, especially It is the user equipment that mobile phone etc. has touch-screen, the size of touch-screen is smaller but cheap stylus nib And the contact area of finger fingertip on the touchscreen is larger, this just more influences the fine degree of writing. Such as, with cheap stylus or finger one 5 inches of more than 300ppi high pixel density touch If writing English alphabet on screen, 100-200 English alphabet can only be at most write, and is difficult to draw shape The figure of shape slightly complexity.If using high-end special stylus, the fine degree write is higher, but price It is expensive.
【The content of the invention】
In view of this, the invention provides one kind writing implementation method and device, in order to improve writing Fine degree.
Concrete technical scheme is as follows:
Implementation method is write the invention provides one kind, this method includes:
Determine the initial position of virtual track;
With the movement of the contact on screen, the moving rail according to default mapping parameters by contact on screen Mark is mapped, and obtains the virtual track since the initial position and the virtual rail is shown on screen Mark.
According to a preferred embodiment of the invention, the initial position of the determination virtual track in station-keeping mode or Performed under write mode;
The movement of the contact with screen, the shifting according to default mapping parameters by contact on screen Dynamic rail mark is mapped, and obtains the virtual track since the initial position and the void is shown on screen Intend track to perform under write mode.
According to a preferred embodiment of the invention, the initial position of the determination virtual track is in a positioning mode Execution includes:
The first of the virtual track is updated using the position coordinates of last contact captured under station-keeping mode Beginning position.
According to a preferred embodiment of the invention, the initial position of the determination virtual track is under write mode Execution includes:
Under write mode, if it exceeds preset duration does not capture touch operation, then caught using next The contact position coordinate arrived and utilizes obtained void as the position of first contact of next section of writing Intend the initial position of the location updating virtual track of last dummy contact of track;Or,
Under write mode, if it exceeds preset duration does not capture touch operation, then using having obtained The initial position of the location updating virtual track of last dummy contact of virtual track, and refer on screen The position of first contact of next section of writing is shown.
According to a preferred embodiment of the invention, if capturing the gesture operation of station-keeping mode, it is fixed to be switched to Bit pattern;If capturing the gesture operation of write mode, write mode is switched to.
According to a preferred embodiment of the invention, the gesture operation of the station-keeping mode is operated including multiple point touching;
The gesture operation of the write mode is operated including single-touch.
According to a preferred embodiment of the invention, this method also includes:
Motion track of the contact on screen is shown on the screen.
According to a preferred embodiment of the invention, this method also includes:
If it exceeds preset duration does not capture touch operation, then moving rail of the contact on screen is removed The display of mark.
According to a preferred embodiment of the invention, if it exceeds preset duration does not capture touch operation, then weigh Newly go to the initial position of the determination virtual track.
According to a preferred embodiment of the invention, it is described according to default mapping parameters by contact on screen Motion track is mapped, and obtaining the virtual track since the initial position includes:
According to the scaling in mapping parameters, each position coordinate of the contact on screen is mapped, obtained To the position coordinates of each dummy contact, wherein each dummy contact constitutes the virtual track.
According to a preferred embodiment of the invention, when showing the virtual track, according to the mapping parameters In color configuration information and/or line style information, the virtual track is shown as corresponding color and/or line Type.
According to a preferred embodiment of the invention, this method also includes:
The position for the dummy contact that current contact is be mapped to is indicated on the screen.
According to a preferred embodiment of the invention, the scaling in the foundation mapping parameters, by contact When each position coordinate on screen is mapped, the position coordinates of each dummy contact is obtained in the following ways:
X_vi=X_v0+ (X_ri-X_r0) * m
Y_vi=Y_v0+ (Y_ri-Y_r0) * m
Wherein, X_v0 and Y_v0 is the coordinate of the initial position of virtual track, and X_r0 and Y_r0 are described The position coordinates of first contact of motion track, X_ri and Y_ri are i-th of contact of the motion track Position coordinates on screen, X_vi and Y_vi are the position for the dummy contact that i-th of contact point mappings are obtained Coordinate is put, the i is the integer more than 1, and m is scaling.
Device is realized present invention also offers one kind writing, the device includes:
Determining unit, the initial position for determining virtual track;
Acquiring unit, for catching the contact information on screen;
Map unit, for the movement of the contact on screen, contact to exist according to default mapping parameters Motion track on screen is mapped, and obtains the virtual track since the initial position;
Display unit, for showing the virtual track on screen.
According to a preferred embodiment of the invention, the determining unit is performed under station-keeping mode or write mode Operation;
The map unit performs operation under write mode.
According to a preferred embodiment of the invention, the determining unit, specifically for utilizing institute under station-keeping mode The position coordinates for stating last contact that acquiring unit is captured updates the initial position of the virtual track.
According to a preferred embodiment of the invention, under write mode, preset if the acquiring unit exceedes Duration does not capture touch operation, then the determining unit is made using next contact position coordinate captured For the position of first contact of next section of writing, and it is empty using last of obtained virtual track Intend the initial position of the location updating virtual track of contact;Or,
Under write mode, if the acquiring unit does not capture touch operation more than preset duration, institute State location updating virtual track of the determining unit using last dummy contact of obtained virtual track Initial position, and indicate on screen the position of first contact of next section of writing.
According to a preferred embodiment of the invention, the device also includes:
Switch unit, if capturing the gesture operation of station-keeping mode for the acquiring unit, it is fixed to be switched to Bit pattern;If the acquiring unit captures the gesture operation of write mode, write mode is switched to.
According to a preferred embodiment of the invention, the gesture operation of the station-keeping mode is operated including multiple point touching;
The gesture operation of the write mode is operated including single-touch.
According to a preferred embodiment of the invention, the display unit is additionally operable to show institute on the screen State motion track of the contact on screen.
According to a preferred embodiment of the invention, the display unit, surpass if being additionally operable to the acquiring unit Cross preset duration and do not capture touch operation, then remove the display of motion track of the contact on screen.
According to a preferred embodiment of the invention, if the acquiring unit do not captured more than preset duration it is tactile Operation is touched, then the determining unit redefines the initial position of virtual track.
According to a preferred embodiment of the invention, the map unit, specifically for according in mapping parameters Scaling, each position coordinate of the contact on screen is mapped, and the position for obtaining each dummy contact is sat Mark, wherein each dummy contact constitutes the virtual track.
According to a preferred embodiment of the invention, the display unit is when showing the virtual track, foundation Color configuration information and/or line style information in the mapping parameters, are shown as corresponding by the virtual track Color and/or line style.
According to a preferred embodiment of the invention, the display unit is additionally operable to indicate to work as on the screen The position for the dummy contact that front contact is be mapped to.
According to a preferred embodiment of the invention, scaling of the map unit in the foundation mapping parameters Ratio, when each position coordinate of the contact on screen is mapped, obtains each virtual tactile in the following ways The position coordinates of point:
X_vi=X_v0+ (X_ri-X_r0) * m
Y_vi=Y_v0+ (Y_ri-Y_r0) * m
Wherein, X_v0 and Y_v0 is the coordinate of the initial position of virtual track, and X_r0 and Y_r0 are described The position coordinates of first contact of motion track, X_ri and Y_ri are i-th of contact of the motion track Position coordinates on screen, X_vi and Y_vi are the position for the dummy contact that i-th of contact point mappings are obtained Coordinate is put, the i is the integer more than 1, and m is scaling.
As can be seen from the above technical solutions, by scaling of track of the contact on screen according to setting Be mapped as the finally virtual track that is shown on screen, can be no longer influenced by felt pen nib or finger with The limitation of screen contact area, improve writing fine degree, sight be also no longer influenced by felt pen nib or The stop of person's finger.
【Brief description of the drawings】
Fig. 1 is main method flow chart provided in an embodiment of the present invention;
Fig. 2 is method detailed flow chart provided in an embodiment of the present invention;
Fig. 3 a are the schematic diagram of application initial interface provided in an embodiment of the present invention;
Fig. 3 b are in the schematic diagram positioned shown in Fig. 3 a on interface;
Fig. 3 c be Fig. 3 b on the basis of start writing schematic diagram;
Fig. 3 d are the schematic diagram of one section of continuous writing of progress on the basis of Fig. 3 c;
Fig. 3 e are the schematic diagram of removing contact motion track on the basis of Fig. 3 d;
Fig. 3 f are the schematic diagram that is positioned on the basis of Fig. 3 e;
Fig. 3 g be Fig. 3 f on the basis of start writing schematic diagram;
Fig. 3 h are the schematic diagram that one section of continuous writing is carried out on the basis of Fig. 3 g;
Fig. 4 realizes the structure chart of device for writing provided in an embodiment of the present invention.
【Embodiment】
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings and specifically The present invention will be described in detail for embodiment.
The term used in embodiments of the present invention is only merely for the purpose for describing specific embodiment, rather than purport In the limitation present invention." one of singulative used in the embodiment of the present invention and appended claims Kind ", " described " and "the" are also intended to including most forms, unless context clearly shows that other implications.
Closed it should be appreciated that term "and/or" used herein is only a kind of association for describing affiliated partner System, expression may have three kinds of relations, for example, A and/or B, can be represented:Individualism A, simultaneously There is A and B, these three situations of individualism B.In addition, character "/" herein, before and after typicallying represent Affiliated partner is a kind of relation of "or".
Depending on linguistic context, word as used in this " if " can be construed to " ... when " Or " when ... " or " in response to determining " or " in response to detection ".Similarly, it is short depending on linguistic context Language " if it is determined that " or " if detection (condition or event of statement) " can be construed to " when it is determined that When " or " in response to determine " or " when detecting (condition or event of statement) " or " in response to detection (condition or event of statement) ".
" writing " involved by the embodiment of the present invention can include but is not limited to carry out word on screen is touched The drafting of the write-in of symbol and lines, figure etc..The device for realizing the present invention can be to run on user's end The plug-in unit in application or application in end, wherein user terminal can include but is not limited to PC, with touch Mobile phone, tablet personal computer of screen etc..
Fig. 1 is main method flow chart provided in an embodiment of the present invention, as shown in fig. 1, this method master Comprise the following steps:
In 101, the initial position of virtual track is determined.
Writing at first, is required for determining the initial position of virtual track first every time, that is, refers to Determine the initial position that written contents are shown on screen.In embodiments of the present invention, the writing can be filled The use pattern put can mainly include station-keeping mode and write mode, wherein in a positioning mode, user Touch to screen will not produce virtual track, be only used for the initial of the virtual track that next section of determination is write Position.And under write mode, touch of the user to screen would generally produce virtual track, but in writing When carrying out special operation under pattern, it can be used for determining the initial bit of the virtual track of next section of writing Put, will be described in detail in subsequent descriptions.
This step can be realized in a positioning mode, can also be realized under write mode.If in positioning mould Realized under formula, then the position coordinates of last contact captured under station-keeping mode can be defined as void Intend the initial position of track.If being realized under write mode, if it exceeds preset duration does not capture touch Operation, then by the use of next contact position captured as the position of first contact of next section of writing, And using obtained last dummy contact of virtual track location updating virtual track it is initial Position.When being realized under write mode, another way can also be used, i.e., if it exceeds preset duration Do not capture touch operation, then using obtained virtual track last dummy contact position The initial position of virtual track is updated, and indicates on screen the position of first contact of next section of writing Put.Certainly, when initially opening application interface, it would however also be possible to employ the position of acquiescence is used as virtual track Initial position.
The initial position determination of virtual track will be follow-up real under the switching of specific pattern and different mode Apply in example and be described in detail.
In 102, with the movement of the contact on screen, according to default mapping parameters by contact in screen Motion track on curtain is mapped, obtain since 101 determine initial positions virtual track and The virtual track is shown on screen.
This step can be performed under write mode, under write mode, the contact meeting occurred on screen Mapped, a virtual track is obtained from the mapping of real contact motion track.In present invention implementation Mapping parameters can be pre-configured with example, the mapping parameters can include scaling, void can also be included Intend color, the line style of track etc. pattern parameter.After the mapping of this step, the movement of true contact Track is mapped as the void of the initial position that determines using step 101 as starting point and according to a certain percentage after scaling Intend track, virtual track can also join in display according to the pattern such as the color in mapping parameters, linear Digital display is shown as corresponding color and/or linear.
Wherein, mapping parameters can be configured by user in mapping parameters configured board, can also be adopted With the mapping parameters value of acquiescence.
The mapping of motion track is actually the mapping of the position coordinates of each contact on motion track, that is, is worked as When capturing the contact on screen, according to the scaling in default mapping parameters, by contact in screen On position coordinates mapping obtain the position coordinates of dummy contact, finally constituted by each dummy contact above-mentioned Virtual track.That is, having obtained track to the mapping of track by the mapping one by one put.
, can be by the position coordinates of current contact, contact on screen on screen in the mapping put The initial position (position coordinates of first contact of i.e. true motion track) of motion track, determine The coordinate and scaling of the initial position of virtual track, obtain the dummy contact that current contact is mapped to Position coordinates.Equation below (1) and formula (2) can specifically be used:
X_vi=X_v0+ (X_ri-X_r0) * m (1)
Y_vi=Y_v0+ (Y_ri-Y_r0) * m (2)
Wherein, X_v0 and Y_v0 is the coordinate of the initial position of virtual track, and X_r0 and Y_r0 are true Motion track first contact position coordinates, X_ri and Y_ri are i-th of real motion track Position coordinates of the contact on screen, X_vi and Y_vi are the dummy contact that above-mentioned i-th of contact point mappings are obtained Position coordinates, i is integer more than 1, and m is scaling.A contact is often captured on screen, Above-mentioned mapping is carried out, each dummy contact is just obtained, the contact track just with user writing on screen shows Virtual track according to certain scaling is shown.Meanwhile, with the motion track of the contact of user writing, The motion track of the contact of user writing, i.e., real contact track can also be shown simultaneously on screen.
If user stops writing, the touch operation of screen is not captured more than preset duration, then terminate when previous The display of section virtual track, goes to step 101 and starts to determine the determination of the initial position of next section of virtual track, And the writing of next section of virtual track.In addition, do not capture the touch operation of screen more than preset duration, The display of motion track of the contact on screen can also be removed, that is, removes the display of real contact track, To facilitate user to prepare next section of writing on screen.
With reference to embodiment illustrated in fig. 2 exemplified by being write on the touchscreen with finger, to the above method It is described in detail, as shown in Figure 2, this method can specifically include following steps:
In 201, mapping parameters are determined after startup.
After startup, it is first determined mapping parameters.In this step, the mapping of system default can be joined Number is defined as mapping parameters used in follow-up writing.It can also will preserve the mapping parameters of user's the last time Set, the last mapping parameters of user are provided as mapping parameters used in follow-up writing.Also may be used To provide a user mapping parameters configured board, the mapping that user is set by mapping parameters configured board is obtained Parameter, and it is used as mapping parameters used in follow-up writing.
It should be noted that in addition to determining mapping parameters when application starts, for user in follow-up book When carrying out the setting of mapping parameters by mapping parameters configured board during writing, setting according to user again is understood Put determination mapping parameters.
In 202, the touch operation on screen is caught, if capturing multiple point touching operation on screen, Then perform 203;If capturing single-touch operation on screen, 205 are performed.
In 203, station-keeping mode is switched to.
In the present embodiment, the switching of station-keeping mode and write mode can have multiple point touching to operate and single-point Touch operation is triggered, i.e., when capturing multiple point touching operation, such as user carries out double refer on screen Movement, then switch to station-keeping mode.If capture single-touch operation, for example user is in screen The upper movement singly referred to, then switch to write mode.
Except of course that outside with multiple point touching and single-touch triggering switching, other modes can also be used, The mode of the function button of the pattern switching of such as offer on click screen.For PC, also may be used To click on screen using such as click right mouse button, by some button on lower keyboard or by mouse Mode of function button of pattern switching of upper offer, etc..
In 204, the position coordinates of last contact captured under station-keeping mode is defined as virtually The initial position of track.
In a positioning mode, user's specifying to the initial position of virtual track is mainly realized.Due to fixed Under bit pattern, user repeatedly can carry out multiple point touching to change the initial position of virtual track, Zhi Daoman Meaning position, therefore can be virtual by the position coordinates seat of last contact captured under station-keeping mode The initial position of track.
Assuming that user initially opens writing when applying, the interface showed as shown in fig. 3a, of the invention real Apply in example, the position of dummy contact can be indicated all the time using a form of a stroke or a combination of strokes icon, first shown in Fig. 3 a In beginning interface, form of a stroke or a combination of strokes icon can be placed in the position of an acquiescence, for example, be placed in certain of the screen upper left corner Individual position.It is if user does not change the position of form of a stroke or a combination of strokes icon, the position where form of a stroke or a combination of strokes icon nib is straight Connect the initial position as virtual track.If user wants the initial position that oneself specifies virtual track, Then double refer to it can touch and move on screen, the position finally lifted is as the initial of virtual track Position, as shown in figure 3b.
In 205, write mode is switched to.
In 206, under write mode, with the movement of the contact on screen, the movement of contact is shown Track, motion track of the contact on screen is mapped, obtained according to default mapping parameters from first The beginning virtual track that starts of position simultaneously shows the virtual track on screen.
Under write mode, one section of continuous writing operation mainly includes the processing of three parts:
1) motion track of contact is shown, that is, the real trace that display user's finger is moved.
Shown that used color and line style can also be advance by user for the motion track of contact Configured, it would however also be possible to employ the color of acquiescence and linear.In addition, if the motion track of display contact It can also be configured, user can select to show the motion track of contact, can also select not showing tactile The motion track of point.
2) motion track of the contact on screen is mapped according to default mapping parameters, obtain from The virtual track that initial position starts.
The mapping of motion track is actually the mapping of the position coordinates of each contact on motion track, that is, is worked as When capturing the contact on screen, according to the scaling in default mapping parameters, by contact in screen On position coordinates mapping obtain the position coordinates of dummy contact, finally constituted by each dummy contact above-mentioned Virtual track.When carrying out the mapping of each point, above-mentioned formula (1) and formula (2) can be used.
It should be noted that the monitoring for touch operation on screen is performed by operating system, if Touch operation occurs on screen, then operating system can be listened to include in touch event, touch event and touched Point information, such as contact position, touch type etc..Operating system can be by the touch thing listened to simultaneously Part is supplied to application layer, is used for concrete application.
3) virtual track is shown.
It is each virtual tactile after the position coordinates mapping for carrying out each contact obtains the position coordinates of each dummy contact Point constitutes virtual track, can be according to the color in mapping parameters when being shown to virtual track The style information such as information and/or line style information, shows virtual track.
The order that the processing of the part of the above three is not strict is limited, it is preferable that for the contact captured, The processing of the part of the above three can be performed simultaneously.
Hookup 3a and Fig. 3 b example, if user carries out single-touch, such as Fig. 3 c on screen Shown in, then write mode is switched to, while the point of first touch is contact motion track on screen Initial position, be designated as (X_r0, Y_r0).User starts the point of this first touch as starting point One section of continuous writing, as shown in Figure 3 d, writes " 1234 " on screen in the way of single-touch, Then show the motion track of contact on screen, and can be as the movement of contact is by the position of each contact Mapped according to the scaling in mapping parameters, obtain the virtual track of each dummy contact.In display Can be using pattern parameters such as color, the line styles in mapping parameters during virtual track.In addition, on screen Form of a stroke or a combination of strokes icon can be moved with the position of dummy contact so that be appeared on screen by pen The virtual track that shape icon is write out, one is convenient more vivid, interesting, on the other hand, can also facilitate User knows the current position of dummy contact, and dummy contact is targetedly carried out during so as to follow-up writing Initial position fix.
In 207, if it exceeds preset duration does not capture touch operation, then contact is removed on screen Motion track display.
Preset duration in this step can also can be matched somebody with somebody using the value given tacit consent to, such as 1s by user Put.Example shown in hookup 3d, if user writes " 1234 " stops writing afterwards, finger frames out. Touch operation is not captured more than 1s, then removes the display of motion track of the contact on screen, such as scheme Shown in 3e.
In addition, under write mode, user can also at any time, by clicking on what is provided on interface The mode of cls function button removes the display of motion track of the contact on screen.
In 208, touched next contact position coordinate captured as first of next section of writing The position of point, and it is virtual using the location updating of last dummy contact of obtained virtual track The initial position of track.
The example continued shown in 3e, if user is after one section of continuous writing is terminated, it is desirable to proceed book Write, then need to carry out the initial position of virtual track during next section of writing.Following three kinds can so be used Mode:
First way:Station-keeping mode is switched to using multi-touch screen, in a positioning mode to virtual The initial position of track is positioned.
The second way:Pattern switching need not be carried out, is remained under write mode, user estimates next The initial position of virtual track, then determines first on screen by the way of single-touch during section writing The position of individual contact, while the location updating of last dummy contact of obtained virtual track is empty Intend the initial position of track.
As shown in Fig. 3 f, a position is estimated in user's range estimation, clicks on the position so that the position is under The position of first contact of one section of writing, i.e., the original position of next section writing.The position is clicked in user While putting, with the position of last dummy contact of current virtual track, (i.e. current virtual nib is indicated Position) be used as next section writing virtual track initial position.During actual program, exist The parameter of the initial position of one virtual track, after this step, with this step map obtain it is virtual The position coordinates of contact updates the initial position parameters of virtual track.
Then user just can then carry out next section continuously near the position clicked on above Writing, as shown in fig. 3g, writes since first contact, is reflected while also being proceeded by from the contact Penetrate generation virtual track.Assuming that user continuously writes " 567 ", as shown in figure 3, perform can be with for this part Go to execution 206.
The third mode:Pattern switching need not be carried out, still under write mode, directly utilizes and obtains The initial position of the location updating virtual track of last dummy contact of the virtual track arrived, it is same with this When, the position of first contact of next section of writing is indicated on screen.User is only needed to from instruction Start next section of writing near the position of first contact.The process is compared with second method, no User is needed to perform that click as shown in Fig. 3 f.
In addition, it is necessary to explanation, at any time, if capturing multiple point touching under write mode Operation, then switch to station-keeping mode from write mode.Equally, if capturing single-point in a positioning mode Touch operation, then switch to write mode from station-keeping mode.In addition, station-keeping mode and write mode are cut The mode of changing can also be realized by other means, such as clicked on mode switch function button and realized.
In the writing process of user, if necessary to be modified to content written, for example, delete, Position movement etc., can be by clicking on the editting function button on application interface, and triggering switches to editor Pattern.Under edit pattern, user can select the region for needing to edit, and then click on corresponding function Button, such as deleting button or movable button, enters edlin.For example, it is assumed that user wishes to delete Except several characters, then editting function button can be first clicked on, edit pattern is switched to, is then selected The character to be deleted, then click on the deletion button in submenu, it is possible to complete the deletion of these characters. By way of further example, it is assumed that user wishes to move the position of several characters, then can first click on editor's work( Energy button, switches to edit pattern, then selects the character to be moved, then click on the movement in submenu Button, the character that will be moved by the movement of finger is moved to specified location.For other editting functions Implementation it is similar, it is no longer exhaustive one by one herein.
Above is the detailed description carried out to the method that the present invention is provided, with reference to embodiment to the present invention The device of offer is described in detail.
Fig. 4 realizes the structure chart of device for writing provided in an embodiment of the present invention, and the device can be operation In the form or the form of application plug-in of the application of user terminal.As shown in Figure 4, the dress Putting to include:Determining unit 01, acquiring unit 02, map unit 03 and display unit 04, may be used also With including switch unit 05.
Determining unit 01 is responsible for determining the initial position of virtual track.Writing at first, is all needed every time To determine the initial position of virtual track first by determining unit 01, that is, specify written contents in screen The initial position of upper display.In embodiments of the present invention, the use pattern of the writing device can be divided into Station-keeping mode and write mode, the determining unit 01 can be performed in a positioning mode, can also be in writing Performed under pattern.Specifically, it can use but be not limited to following three kinds of modes:
First way:Determining unit 01 can be by the position of last contact captured under station-keeping mode Put the initial position that coordinate is defined as virtual track.
The second way:Under write mode, if acquiring unit 02 do not captured more than preset duration it is tactile Touch operation, it is determined that unit 01 can be used as next section of book by the use of next contact position coordinate captured The position for first contact write, and the position of last dummy contact using obtained virtual track Put the initial position for updating virtual track.
The third mode:Under write mode, if acquiring unit 02 does not capture touch more than preset duration Operation, it is determined that unit 01 can utilize the position of last dummy contact of obtained virtual track The initial position of virtual track is updated, and indicates on screen the position of first contact of next section of writing.
Contact information on the charge capture screen of acquiring unit 02.Under normal circumstances, operating system can be to screen Touch event on curtain is monitored, and the contact information that touch event is included then is supplied into application layer. Acquiring unit 02 in the present embodiment can just capture the contact information of operating system offer.Wherein contact Information can include the information such as position coordinates, the touch type of contact.
Map unit 03 is responsible for the movement of the contact on screen, and contact exists according to default mapping parameters Motion track on screen is mapped, and obtains the virtual track since initial position.Specifically, map Unit 03 can be reflected each position coordinate of the contact on screen according to the scaling in mapping parameters Penetrate, obtain the position coordinates of each dummy contact, wherein each dummy contact constitutes virtual track.
Scaling of the map unit 03 according to mapping parameters, by each position coordinate of the contact on screen When being mapped, the position coordinates of each dummy contact is obtained in the following ways:
X_vi=X_v0+ (X_ri-X_r0) * m
Y_vi=Y_v0+ (Y_ri-Y_r0) * m
Wherein, X_v0 and Y_v0 is the coordinate of the initial position of virtual track, and X_r0 and Y_r0 are shifting The position coordinates of first contact of dynamic rail mark, X_ri and Y_ri are shielding for i-th of contact of motion track Position coordinates on curtain, X_vi and Y_vi are that the position for the dummy contact that i-th of contact point mappings is obtained is sat Mark, i is the integer more than 1, and m is scaling.
Display unit 04 is responsible on screen showing virtual track.Wherein display unit 04 is showing virtual rail , can be according to pattern parameters such as the color configuration informations and/or line style information in mapping parameters during mark, will be virtual Track is shown as the patterns such as corresponding color and/or line style.Display unit 04 can also be shown on screen simultaneously Motion track of the contact on screen.
Switch unit 05 is responsible for carrying out pattern switching, if acquiring unit 02 captures the gesture behaviour of station-keeping mode Make, be then switched to station-keeping mode;If acquiring unit 02 captures the gesture operation of write mode, it is switched to Write mode.For example, the gesture operation of station-keeping mode can be multiple point touching operation, the gesture of write mode Operation can be single-touch operation.
If acquiring unit 02 does not capture touch operation more than preset duration, display unit 04, which is removed, to be touched The display of motion track of the point on screen, the initial position of virtual track is redefined by determining unit 01.
In addition, can also to indicate that current contact is be mapped on screen virtual for display unit 04 The position of contact.The position for the dummy contact that current contact is be mapped to is indicated for example in the form of form of a stroke or a combination of strokes icon Put, as user is in the movement of screen upper contact, form of a stroke or a combination of strokes icon also can be with movement so that on screen The virtual track write out by form of a stroke or a combination of strokes icon is appeared to, one is convenient more vivid, interesting, another Aspect, can also facilitate user to know the current position of dummy contact, during so as to follow-up writing targetedly Carry out the initial position fix of dummy contact.
In the writing process of user, if necessary to be modified to content written, for example, delete, Position movement etc., can be by clicking on the editting function button on application interface, by switch unit 05 By pattern switching to edit pattern.Under edit pattern, user can select the region for needing to edit, so After click on corresponding function button, such as deleting button or movable button, enter edlin.Acquiring unit 02 captures the edit operation of user, by display unit 04 show that user edits after virtual track.
Contact in the embodiment of the present invention on involved screen can be stylus or finger in touch screen Work(is write in the generation triggered on the contact point or PC screens of upper generation by mouse and/or keyboard The focus of energy, such as user pins movement mouse after left mouse button so that focus is moved to realize book Write, or user presses the ctrl keys on lower keyboard while mobile mouse is so that focus is moved to realize Writing, etc..
Method and apparatus provided in an embodiment of the present invention can be the form of application, lift an application scenarios:
For example applied as a writing, the writing application can be pacified on the mobile terminal with touch-screen Fill and run.After user starts writing application, the interface left-hand seat that can be provided in the application writes into row The input of character or the drafting of picture.Also, user can be by configuring the form of scaling, adjustment The character or the size (i.e. the size of virtual track) of picture finally write, can also configure its color, It is linear to wait pattern.
Method and apparatus provided in an embodiment of the present invention can also be the form of plug-in unit in applying, and lifting one should Use scene:
For example as a plug-in unit in JICQ, when user wishes to send out by JICQ Oneself secondary writing or drafting content is sent, then plug-in unit correspondence can be called in JICQ Function, then carried out on the corresponding interface of the function it is hand-written or draw, can by the content finally drawn To save as a file, then sent by JICQ.So user just can be by oneself hand The content that work is write or drawn is transmitted as message content.
The method and apparatus provided by the present invention, by scaling of track of the contact on screen according to setting Ratio is mapped as the virtual track finally shown on screen, can be no longer influenced by felt pen nib or hand Refer to the limitation with screen contact area, improve the fine degree of writing.Through overtesting, at one 5 inches More than 300ppi high pixel density touch-screen on, the English alphabet of more than 3000 can be write.
In several embodiments provided by the present invention, it should be understood that disclosed apparatus and method, It can realize by another way.For example, device embodiment described above is only schematical, For example, the division of the unit, only a kind of division of logic function, can have in addition when actually realizing Dividing mode.
The unit illustrated as separating component can be or may not be it is physically separate, make It can be for the part that unit is shown or may not be physical location, you can with positioned at a place, Or can also be distributed on multiple NEs.Can select according to the actual needs part therein or Person's whole units realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit In or unit be individually physically present, can also two or more units be integrated in one In individual unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds The form of SFU software functional unit is realized.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in a computer In read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, including some fingers Order is to cause a computer equipment (can be personal computer, server, or network equipment etc.) Or processor (processor) performs the part steps of each embodiment methods described of the invention.And it is foregoing Storage medium include:USB flash disk, mobile hard disk, read-only storage (Read-Only Memory, ROM), Random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can With the medium of store program codes.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all at this Within the spirit and principle of invention, any modification, equivalent substitution and improvements done etc. should be included in Within the scope of protection of the invention.

Claims (26)

1. one kind writing implementation method, it is characterised in that this method includes:
Determine the initial position of virtual track;
With the movement of the contact on screen, the moving rail according to default mapping parameters by contact on screen Mark is mapped, and obtains the virtual track since the initial position and the virtual rail is shown on screen Mark.
2. according to the method described in claim 1, it is characterised in that the initial bit for determining virtual track Put and performed under station-keeping mode or write mode;
The movement of the contact with screen, the shifting according to default mapping parameters by contact on screen Dynamic rail mark is mapped, and obtains the virtual track since the initial position and the void is shown on screen Intend track to perform under write mode.
3. method according to claim 2, it is characterised in that the initial bit of the determination virtual track Putting to perform in a positioning mode includes:
The first of the virtual track is updated using the position coordinates of last contact captured under station-keeping mode Beginning position.
4. method according to claim 2, it is characterised in that the initial bit of the determination virtual track Putting to perform under write mode includes:
Under write mode, if it exceeds preset duration does not capture touch operation, then caught using next The contact position coordinate arrived and utilizes obtained void as the position of first contact of next section of writing Intend the initial position of the location updating virtual track of last dummy contact of track;Or,
Under write mode, if it exceeds preset duration does not capture touch operation, then using having obtained The initial position of the location updating virtual track of last dummy contact of virtual track, and refer on screen The position of first contact of next section of writing is shown.
5. method according to claim 2, it is characterised in that if capturing the gesture behaviour of station-keeping mode Make, be then switched to station-keeping mode;If capturing the gesture operation of write mode, write mode is switched to.
6. method according to claim 5, it is characterised in that the gesture operation bag of the station-keeping mode Include multiple point touching operation;
The gesture operation of the write mode is operated including single-touch.
7. according to the method described in claim 1, it is characterised in that this method also includes:
Motion track of the contact on screen is shown on the screen.
8. method according to claim 7, it is characterised in that this method also includes:
If it exceeds preset duration does not capture touch operation, then moving rail of the contact on screen is removed The display of mark.
9. according to the method described in claim 1, it is characterised in that if it exceeds preset duration is not captured Touch operation, then go to the initial position of the determination virtual track again.
10. the method according to any claim of claim 1 to 9, it is characterised in that the foundation is pre- If mapping parameters motion track of the contact on screen is mapped, obtain since the initial position Virtual track include:
According to the scaling in mapping parameters, each position coordinate of the contact on screen is mapped, obtained To the position coordinates of each dummy contact, wherein each dummy contact constitutes the virtual track.
11. method according to claim 10, it is characterised in that when showing the virtual track, According to the color configuration information and/or line style information in the mapping parameters, the virtual track is shown as pair The color and/or line style answered.
12. method according to claim 10, it is characterised in that this method also includes:
The position for the dummy contact that current contact is be mapped to is indicated on the screen.
13. method according to claim 10, it is characterised in that in the foundation mapping parameters Scaling, when each position coordinate of the contact on screen is mapped, obtains each void in the following ways Intend the position coordinates of contact:
X_vi=X_v0+ (X_ri-X_r0) * m
Y_vi=Y_v0+ (Y_ri-Y_r0) * m
Wherein, X_v0 and Y_v0 is the coordinate of the initial position of virtual track, and X_r0 and Y_r0 are described The position coordinates of first contact of motion track, X_ri and Y_ri are i-th of contact of the motion track Position coordinates on screen, X_vi and Y_vi are the position for the dummy contact that i-th of contact point mappings are obtained Coordinate is put, the i is the integer more than 1, and m is scaling.
14. device is realized in one kind writing, it is characterised in that the device includes:
Determining unit, the initial position for determining virtual track;
Acquiring unit, for catching the contact information on screen;
Map unit, for the movement of the contact on screen, contact to exist according to default mapping parameters Motion track on screen is mapped, and obtains the virtual track since the initial position;
Display unit, for showing the virtual track on screen.
15. device according to claim 14, it is characterised in that the determining unit is in station-keeping mode Or operation is performed under write mode;
The map unit performs operation under write mode.
16. device according to claim 15, it is characterised in that the determining unit, specifically for Update described virtual using the position coordinates of last contact that the acquiring unit is captured under station-keeping mode The initial position of track.
17. device according to claim 15, it is characterised in that under write mode, if described Acquiring unit does not capture touch operation more than preset duration, then the determining unit is captured using next Contact position coordinate as next section writing first contact position, and using obtained it is virtual The initial position of the location updating virtual track of last dummy contact of track;Or,
Under write mode, if the acquiring unit does not capture touch operation more than preset duration, institute State location updating virtual track of the determining unit using last dummy contact of obtained virtual track Initial position, and indicate on screen the position of first contact of next section of writing.
18. device according to claim 15, it is characterised in that the device also includes:
Switch unit, if capturing the gesture operation of station-keeping mode for the acquiring unit, it is fixed to be switched to Bit pattern;If the acquiring unit captures the gesture operation of write mode, write mode is switched to.
19. device according to claim 18, it is characterised in that the gesture operation of the station-keeping mode Including multiple point touching operation;
The gesture operation of the write mode is operated including single-touch.
20. device according to claim 14, it is characterised in that the display unit, is additionally operable to Motion track of the contact on screen is shown on the screen.
21. device according to claim 20, it is characterised in that the display unit, be additionally operable to as Really described acquiring unit does not capture touch operation more than preset duration, then removes the contact on screen The display of motion track.
22. device according to claim 14, it is characterised in that if the acquiring unit exceedes in advance If duration does not capture touch operation, then the determining unit redefines the initial position of virtual track.
23. the device according to any claim of claim 14 to 22, it is characterised in that the mapping Unit, specifically for according to the scaling in mapping parameters, each position coordinate of the contact on screen is entered Row mapping, obtains the position coordinates of each dummy contact, wherein each dummy contact constitutes the virtual track.
24. device according to claim 23, it is characterised in that the display unit is described in display , will be described virtual according to the color configuration information and/or line style information in the mapping parameters during virtual track Track is shown as corresponding color and/or line style.
25. device according to claim 23, it is characterised in that the display unit, is additionally operable to The position for the dummy contact that current contact is be mapped to is indicated on the screen.
26. device according to claim 23, it is characterised in that the map unit is in the foundation Scaling in mapping parameters, when each position coordinate of the contact on screen is mapped, using following Mode obtains the position coordinates of each dummy contact:
X_vi=X_v0+ (X_ri-X_r0) * m
Y_vi=Y_v0+ (Y_ri-Y_r0) * m
Wherein, X_v0 and Y_v0 is the coordinate of the initial position of virtual track, and X_r0 and Y_r0 are described The position coordinates of first contact of motion track, X_ri and Y_ri are i-th of contact of the motion track Position coordinates on screen, X_vi and Y_vi are the position for the dummy contact that i-th of contact point mappings are obtained Coordinate is put, the i is the integer more than 1, and m is scaling.
CN201610040104.4A 2016-01-21 2016-01-21 One kind writing implementation method and device Pending CN106990900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610040104.4A CN106990900A (en) 2016-01-21 2016-01-21 One kind writing implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610040104.4A CN106990900A (en) 2016-01-21 2016-01-21 One kind writing implementation method and device

Publications (1)

Publication Number Publication Date
CN106990900A true CN106990900A (en) 2017-07-28

Family

ID=59413902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610040104.4A Pending CN106990900A (en) 2016-01-21 2016-01-21 One kind writing implementation method and device

Country Status (1)

Country Link
CN (1) CN106990900A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542575A (en) * 2018-11-29 2019-03-29 努比亚技术有限公司 Screen extended method, system, mobile terminal and computer readable storage medium
CN110633041A (en) * 2018-06-25 2019-12-31 鸿合科技股份有限公司 Method and device for switching writing, selecting and erasing modes by utilizing gestures
CN113168254A (en) * 2018-12-25 2021-07-23 深圳市柔宇科技股份有限公司 Pen continuous method and display terminal
CN114237425A (en) * 2021-12-21 2022-03-25 深圳市普锐高科实业有限公司 Screen controllable method based on stylus pen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6380929B1 (en) * 1996-09-20 2002-04-30 Synaptics, Incorporated Pen drawing computer input device
CN102937848A (en) * 2012-12-04 2013-02-20 上海合合信息科技发展有限公司 Method for editing handwritings and electronic equipment
CN103294375A (en) * 2012-02-24 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Terminal and touch screen manipulation method
CN104794107A (en) * 2015-02-16 2015-07-22 北京道明科技有限公司 Handwriting editing method
CN104900094A (en) * 2015-05-15 2015-09-09 广东小天才科技有限公司 Implementation method and device for writing simulation in terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6380929B1 (en) * 1996-09-20 2002-04-30 Synaptics, Incorporated Pen drawing computer input device
CN103294375A (en) * 2012-02-24 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Terminal and touch screen manipulation method
CN102937848A (en) * 2012-12-04 2013-02-20 上海合合信息科技发展有限公司 Method for editing handwritings and electronic equipment
CN104794107A (en) * 2015-02-16 2015-07-22 北京道明科技有限公司 Handwriting editing method
CN104900094A (en) * 2015-05-15 2015-09-09 广东小天才科技有限公司 Implementation method and device for writing simulation in terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633041A (en) * 2018-06-25 2019-12-31 鸿合科技股份有限公司 Method and device for switching writing, selecting and erasing modes by utilizing gestures
CN110633041B (en) * 2018-06-25 2022-05-17 鸿合科技股份有限公司 Method and device for switching writing, selecting and erasing modes by utilizing gestures
CN109542575A (en) * 2018-11-29 2019-03-29 努比亚技术有限公司 Screen extended method, system, mobile terminal and computer readable storage medium
CN113168254A (en) * 2018-12-25 2021-07-23 深圳市柔宇科技股份有限公司 Pen continuous method and display terminal
CN114237425A (en) * 2021-12-21 2022-03-25 深圳市普锐高科实业有限公司 Screen controllable method based on stylus pen
CN114237425B (en) * 2021-12-21 2024-01-16 深圳市普锐高科实业有限公司 Screen controllable method based on handwriting pen

Similar Documents

Publication Publication Date Title
CN105511784B (en) A kind of data inputting method based on pressure detecting, device and mobile terminal
US9292161B2 (en) Pointer tool with touch-enabled precise placement
CN106445184B (en) Virtual machine keyboard
US10503255B2 (en) Haptic feedback assisted text manipulation
CN103186345B (en) The section system of selection of a kind of literary composition and device
CN105302784B (en) Method and system for copying/cutting and pasting data
JP6427559B6 (en) Permanent synchronization system for handwriting input
JP2019516189A (en) Touch screen track recognition method and apparatus
CN105068727A (en) Realization method and device for drawing tool
EP2770443B1 (en) Method and apparatus for making contents through writing input on touch screen
TW201510775A (en) Real-time stroke-order and stroke-direction independent handwriting recognition
JP6313395B1 (en) Drawing processing method, drawing processing program, and drawing processing apparatus
KR102027879B1 (en) Menu contolling method of media equipment, apparatus thereof, and medium storing program source thereof
US20140298223A1 (en) Systems and methods for drawing shapes and issuing gesture-based control commands on the same draw grid
WO2014169597A1 (en) Text erasure method and device
CN106990900A (en) One kind writing implementation method and device
CN107797722A (en) Touch screen icon selection method and device
JP2016532941A (en) Text selection method, apparatus and terminal
CN107272881A (en) A kind of data inputting method and device, entering method keyboard and electronic equipment
JP2016170613A (en) Conference support device, conference support system, conference support program and conference support method
JP6398706B2 (en) Input method, input device, and program
CN106484175A (en) The user interface of electronic equipment, the processing method of input and electronic equipment
JP2014238700A (en) Information processing apparatus, display control method, and computer program
CN105302466B (en) A kind of text operation method and terminal
JP2015022524A (en) Terminal device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201109

Address after: Room 603, 6 / F, Roche Plaza, 788 Cheung Sha Wan Road, Kowloon, China

Applicant after: Zebra smart travel network (Hong Kong) Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170728