CN107516334B - Display method, device and equipment of handwriting track and storage medium - Google Patents

Display method, device and equipment of handwriting track and storage medium Download PDF

Info

Publication number
CN107516334B
CN107516334B CN201710719433.6A CN201710719433A CN107516334B CN 107516334 B CN107516334 B CN 107516334B CN 201710719433 A CN201710719433 A CN 201710719433A CN 107516334 B CN107516334 B CN 107516334B
Authority
CN
China
Prior art keywords
handwriting track
handwriting
track
character
characters
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.)
Active
Application number
CN201710719433.6A
Other languages
Chinese (zh)
Other versions
CN107516334A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710719433.6A priority Critical patent/CN107516334B/en
Priority to PCT/CN2017/116741 priority patent/WO2019037353A1/en
Publication of CN107516334A publication Critical patent/CN107516334A/en
Application granted granted Critical
Publication of CN107516334B publication Critical patent/CN107516334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Abstract

The invention discloses a display method, a display device, display equipment and a storage medium of a handwriting track. The method comprises the following steps: acquiring a first handwriting track, a second handwriting track and a content insertion instruction input by a user; adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track; confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion instruction, and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track; the second handwriting track is displayed at the inserting position, and through the technical scheme of the invention, the content can be directly supplemented when the content needs to be added, the existing content does not need to be erased, beautiful and tidy notes are provided for a user, and the watching experience of the user brought by the displayed content when the content is supplemented is greatly improved.

Description

Display method, device and equipment of handwriting track and storage medium
Technical Field
The present invention relates to an intelligent terminal technology, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a handwriting trace.
Background
With the continuous development of electronic technology, people have higher and higher requirements on electronic equipment, especially on ubiquitous intelligent tablets in life.
For some large smart tablets, products such as touch interactive tablets, meeting machines, educational machines, etc. A function, namely a handwriting mode, is often used by the smart tablet to write contents such as notes and the like by using the smart tablet as a blackboard. In the writing process, after the content is written, it is suddenly thought that some places need to be supplemented, at this time, a supplementary symbol is added above or below the written content and the writing and the supplementation of the content are performed, or the content in the position where the supplementary content is needed is erased and then the content to be supplemented is written, and then the erased content is rewritten, which is very inefficient or has poor viewing experience, and further causes poor user experience.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for displaying a handwriting track, which can adjust the display characteristic parameters of the handwriting track of supplementary content to match the display characteristic parameters of the handwriting track of the supplementary content with the display characteristic parameters of the handwriting track of initial content when the content needs to be supplemented, and then directly insert the adjusted supplementary content into the initial content without erasing the initial content, thereby providing beautiful and tidy notes for a user and greatly improving the viewing experience of the user brought by the display content during the content supplement of the user.
In a first aspect, an embodiment of the present invention provides a method for displaying a handwriting track, including:
acquiring a first handwriting track, a second handwriting track and a content insertion instruction input by a user;
adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track;
confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion instruction, and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track;
displaying the second handwriting trajectory at the insertion location.
Further, the display characteristic parameters of the second handwriting track include: font size of a single character in the second handwriting track;
correspondingly, adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track comprises:
acquiring coordinates of points forming the second handwriting track, and confirming the font size of each character according to the coordinates of the points forming each character in the second handwriting track;
and adjusting the coordinates of the points forming the second handwriting track until the font size of each character in the second handwriting track is matched with the font size of the first handwriting track.
Further, the display characteristic parameters of the second handwriting track include: the characters in the second handwriting track are arranged regularly;
correspondingly, adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track comprises:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the arrangement rule of the characters in the second handwriting track according to the arrangement rule of the characters in the first handwriting track, the coordinates of the left vertex of the rectangle where the first characters are located in the second handwriting track, and the width and the height of the rectangle until the arrangement rule of the characters in the second handwriting track is matched with the arrangement rule of the characters in the first handwriting track, wherein the arrangement rule of the characters is horizontal arrangement or vertical arrangement.
Further, the display characteristic parameters of the second handwriting track include: the number of rows/columns of all text arrangements in the second handwritten track;
correspondingly, adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track comprises:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the number of rows/columns of all characters arranged in the second handwriting track according to the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle until all characters in the second handwriting track are positioned in the same row/column.
In a second aspect, an embodiment of the present invention further provides a device for displaying a handwriting track, where the device includes:
the acquisition module is used for acquiring a first handwriting track, a second handwriting track and a content insertion instruction input by a user;
the first adjusting module is used for adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track;
the second adjusting module is used for confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion instruction and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track;
and the display module is used for displaying the second handwriting track on the insertion position.
Further, the display characteristic parameters of the second handwriting track include: font size of a single character in the second handwriting track;
correspondingly, the first adjusting module is specifically configured to:
acquiring coordinates of points forming the second handwriting track, and confirming the font size of each character according to the coordinates of the points forming each character in the second handwriting track;
and adjusting the coordinates of the points forming the second handwriting track until the font size of each character in the second handwriting track is matched with the font size of the first handwriting track.
Further, the display characteristic parameters of the second handwriting track include: the characters in the second handwriting track are arranged regularly;
correspondingly, the first adjusting module is specifically configured to:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the arrangement rule of the characters in the second handwriting track according to the arrangement rule of the characters in the first handwriting track, the coordinates of the left vertex of the rectangle where the first characters are located in the second handwriting track, and the width and the height of the rectangle until the arrangement rule of the characters in the second handwriting track is matched with the arrangement rule of the characters in the first handwriting track, wherein the arrangement rule of the characters is horizontal arrangement or vertical arrangement.
Further, the display characteristic parameters of the second handwriting track include: the number of rows/columns of all text arrangements in the second handwritten track;
correspondingly, the first adjusting module is specifically configured to:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the number of rows/columns of all characters arranged in the second handwriting track according to the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle until all characters in the second handwriting track are positioned in the same row/column.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for displaying a handwritten trajectory according to any of the embodiments of the present invention when executing the program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for displaying a handwritten trajectory according to any of the embodiments of the present invention.
The embodiment of the invention adjusts the display characteristic parameter of the second handwriting track to be matched with the display characteristic parameter of the first handwriting track by acquiring the first handwriting track, the second handwriting track and the content insertion instruction input by a user, confirms the insertion position of the second handwriting track in the first handwriting track according to the content insertion instruction, adjusts the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track, displays the second handwriting track at the insertion position, can adjust the display characteristic parameter of the handwriting track of the supplementary content to match the display characteristic parameter of the handwriting track of the initial content when the content needs to be added, directly inserts the adjusted supplementary content into the initial content without erasing the initial content, and provides beautiful and tidy notes for the user, the viewing experience that the displayed content brings to the user when the user content is supplemented is greatly improved.
Drawings
Fig. 1 is a flowchart of a display method of a handwriting track according to a first embodiment of the present invention;
FIG. 2A is a diagram illustrating a process of resizing a font in accordance with a second embodiment of the present invention;
FIG. 2B is a flowchart illustrating a method for displaying a handwriting track according to a second embodiment of the present invention;
fig. 3A is a schematic diagram of a process of adjusting a text arrangement rule according to a third embodiment of the present invention;
fig. 3B is a flowchart of a method for displaying a handwriting track according to a third embodiment of the present invention;
fig. 3C is a schematic diagram illustrating a column number adjustment process of all character arrangements according to a third embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a display device for displaying a handwriting track according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for displaying a handwriting track in an embodiment of the present invention, where the embodiment is applicable to a case of displaying a handwriting track, the method may be executed by a device for displaying a handwriting track in an embodiment of the present invention, and the device may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
s110, a first handwriting track, a second handwriting track and a content insertion instruction input by a user are obtained.
The first handwriting track is a handwriting track of handwriting content already existing on the intelligent tablet. For example, if "today is very good weather" already exists on the smart tablet, the first handwritten track may be a handwritten track that constitutes "today is very good weather".
The second handwriting track is a handwriting track of content to be supplemented in the handwriting content already existing on the smart tablet, for example, if "today is very good in weather" already exists on the smart tablet, and "guangzhou" needs to be inserted between "day" and "day" of "today is very good in weather", the second handwriting track is a handwriting track forming "guangzhou".
The content insertion instruction is an instruction for inserting a second handwriting track into the first handwriting track, and the content insertion instruction comprises a track pointing from a display area of the second handwriting track to a display area of the first handwriting track.
In a specific example, the first handwriting track input by the user is a handwriting track composing "today's weather is good", the second handwriting track is a handwriting track composing "guangzhou", and the content insertion instruction is to insert the handwriting track composing "guangzhou" between the handwriting track composing the left side "day" and the handwriting track composing the right side "day".
And S120, adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track.
The display characteristic parameter may be a font size of a single character, a character arrangement rule, or a number of rows/columns in which all characters are arranged.
Specifically, the manner of adjusting the display characteristic parameter of the second handwriting track to be matched with the display characteristic parameter of the first handwriting track may be to adjust the font size of each character in the second handwriting track to be consistent with the font size of the first handwriting track, may also be to adjust the arrangement rule of the characters in the second handwriting track to be consistent with the arrangement rule of the characters in the first handwriting track, and may also be to adjust the number of rows/columns in which all the characters in the second handwriting track are arranged to be located in the same row/column.
And S130, confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion command, and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track.
Wherein the insertion position is a position where the second handwriting track needs to be inserted.
Specifically, it may be determined that the insertion position of the second handwriting track is a certain row/column of the first handwriting track according to the content insertion instruction, or the coordinate of the point to be inserted of the second handwriting track may be determined according to the content insertion instruction.
The size of the insertion position can be adjusted in a mode that a first handwriting track of the insertion position moves left and right respectively by taking the insertion position as a center, and the word spacing is not changed; or the first handwriting track of the insertion position is respectively moved left and right by taking the insertion position as a center, and the word interval is shortened; the word pitch may be shortened right and left with respect to the insertion position as a center of the first handwriting trajectory at the insertion position.
Wherein the size of the insertion position is a blank position area sufficient for inserting the second writing track.
In a specific example, if the second handwriting track is a handwriting track of a line of characters and the length of the line of characters is a, the second handwriting track needs to be inserted into the mth line in the first handwriting track, and the distance between characters in the mth line in the first handwriting track is adjusted according to the length of the second handwriting track being a, so as to obtain an insertion position with the length of a.
And S140, displaying the second handwriting track at the inserting position.
The second handwriting trajectory may be displayed at the insertion position by moving coordinates of points constituting the second handwriting trajectory to the blank area.
In a specific example, if the second handwriting track is "guangzhou", the font size of "guangzhou" is 8 cm wide and 8 cm high, and the font size of the first handwriting track is "good weather today", and the font size of "good weather today" is 4 cm wide and 4 cm high, the font size of "guangzhou" is adjusted to 4 cm wide and 4 cm high. If the font size in the second handwriting track is not adjusted, even if the second handwriting track is supplemented to the first handwriting track, the whole handwriting track is still relatively disordered, and the watching experience of the user is reduced. The font size was adjusted to be 4 cm wide by 4 cm high with "guangzhou" inserted between "day" and the distance between "day" and "day" was adjusted until the distance between "day" and "day" was sufficient to insert "guangzhou" and display "guangzhou" at the inserted location.
According to the technical scheme of the embodiment, the display characteristic parameters of the second handwriting track are adjusted to be matched with the display characteristic parameters of the first handwriting track by acquiring the first handwriting track, the second handwriting track and the content insertion instruction input by a user, the insertion position of the second handwriting track in the first handwriting track is confirmed according to the content insertion instruction, the size of the insertion position is adjusted according to the display characteristic parameters adjusted by the second handwriting track, the second handwriting track is displayed at the insertion position, when the content needs to be added, the display characteristic parameters of the handwriting track of the supplementary content are adjusted first to enable the display characteristic parameters of the handwriting track of the supplementary content to be matched with the display characteristic parameters of the handwriting track of the initial content, then the adjusted supplementary content is directly inserted into the initial content without erasing the initial content, and attractive and tidy notes are provided for the user, the viewing experience that the displayed content brings to the user when the user content is supplemented is greatly improved.
Example two
Fig. 2A is a flowchart of a method for displaying a handwriting track in a second embodiment of the present invention, where the present embodiment is optimized based on the foregoing embodiment, and in the present embodiment, the display characteristic parameter of the second handwriting track includes: font size of a single character in the second handwriting track; correspondingly, adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track comprises: acquiring coordinates of points forming the second handwriting track, and confirming the font size of each character according to the coordinates of the points forming each character in the second handwriting track; and adjusting the coordinates of the points forming the second handwriting track until the font size of each character in the second handwriting track is matched with the font size of the first handwriting track.
As shown in fig. 2A, the method of this embodiment specifically includes the following steps:
s210, acquiring a first handwriting track, a second handwriting track and a content insertion instruction input by a user.
S220, obtaining the coordinates of the points forming the second handwriting track, and confirming the font size of each character according to the coordinates of the points forming each character in the second handwriting track.
Specifically, the manner of determining the font size of each character according to the coordinates of the point forming each character in the second handwriting trajectory may be that the point with the minimum abscissa and the minimum ordinate in the coordinates of the point forming one character is the left bottom point of the character, the point with the maximum abscissa and the maximum ordinate is the right top point of the character, the abscissa is the minimum, the point with the maximum ordinate is the left top point of the character, the abscissa is the maximum, and the point with the minimum ordinate is the right bottom point of the character, so that the size of the rectangle in which the character is located, that is, the size of the character, may be determined; the size of the rectangle in which the character is located, that is, the size of the character, may be determined based on the point with the smallest abscissa and ordinate and the point with the largest abscissa and ordinate among the coordinates of the points constituting one character.
And S230, adjusting the coordinates of the points forming the second handwriting track until the font size of each character in the second handwriting track is matched with the font size of the first handwriting track.
The size of each font in the second handwriting track is matched with the size of the font in the first handwriting track, so that the size of each font in the second handwriting track is consistent with the average size of two fonts adjacent to the insertion position in the first handwriting track; it may also be that the size of each font in the second handwritten track corresponds to the average size of the fonts in the first handwritten track.
Specifically, as shown in fig. 2B, the coordinates of the points constituting the second handwriting track are adjusted according to the font size of the first handwriting track until the font size of the second handwriting track is consistent with the font size of the first handwriting track.
In a specific example, if the average size of the fonts in the first handwriting track is 4 cm wide and 4 cm high, and the font size of the second handwriting track is 8 cm wide and 8 cm high, the coordinates of the points constituting the second handwriting track may be reduced to half of the original coordinates, so that the font size of the second handwriting track is equal to the average size of the fonts of the first handwriting track.
And S240, confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion command, and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track.
And S250, displaying the second handwriting track at the inserting position.
According to the technical scheme of the embodiment, coordinates of points forming a second handwriting track are obtained by obtaining a first handwriting track, a second handwriting track and a content insertion instruction input by a user, the font size of each character is confirmed according to the coordinates of the points forming the second handwriting track, the coordinates of the points forming the second handwriting track are adjusted until the font size of each character in the second handwriting track is matched with the font size of the first handwriting track, the insertion position of the second handwriting track in the first handwriting track is confirmed according to the content insertion instruction, the size of the insertion position is adjusted according to display characteristic parameters adjusted by the second handwriting track, the second handwriting track is displayed at the insertion position, and when content needs to be added, the font size of a single character in the handwriting track of the supplementary content is adjusted first, so that the font size of the single character in the handwriting track of the supplementary content is matched with the font size of the character in the handwriting track of the initial content And the adjusted supplementary content is directly inserted into the initial content without erasing the initial content, so that beautiful and tidy notes are provided for users, and the viewing experience of the users brought by the display content during the content supplement of the users is greatly improved.
EXAMPLE III
Fig. 3A is a flowchart of a method for displaying a handwriting track in a third embodiment of the present invention, where the present embodiment is optimized based on the foregoing embodiment, and in the present embodiment, the display characteristic parameter of the second handwriting track includes: the characters in the second handwriting track are arranged regularly; correspondingly, adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track comprises: acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle; and adjusting the arrangement rule of the characters in the second handwriting track according to the arrangement rule of the characters in the first handwriting track, the coordinates of the left vertex of the rectangle where the first characters are located in the second handwriting track, and the width and the height of the rectangle until the arrangement rule of the characters in the second handwriting track is matched with the arrangement rule of the characters in the first handwriting track, wherein the arrangement rule of the characters is horizontal arrangement or vertical arrangement.
As shown in fig. 3A, the method of this embodiment specifically includes the following steps:
s310, acquiring a first handwriting track, a second handwriting track and a content insertion instruction input by a user.
S320, obtaining the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle.
The rectangle in which the characters are located is the smallest rectangle capable of containing all the points forming the characters.
Wherein the width of the rectangle is the length of the bottom side of the rectangle; the height of the rectangle is the length of the sides of the rectangle.
Specifically, the rectangle where the first character is located is determined according to the coordinates of the points forming the first character, and then the left vertex coordinates of the rectangle, the width and the height of the rectangle are determined.
S330, adjusting the arrangement rule of the characters in the second handwriting track according to the arrangement rule of the characters in the first handwriting track, the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track, and the width and the height of the rectangle until the arrangement rule of the characters in the second handwriting track is matched with the arrangement rule of the characters in the first handwriting track, wherein the arrangement rule of the characters is horizontal arrangement or vertical arrangement.
In a specific example, as shown in fig. 3B, the arrangement rule of the characters in the first handwriting track is that the characters are vertically arranged, the arrangement rule of the characters in the second handwriting track is that the characters are horizontally arranged, the arrangement rule of the characters in the second handwriting track is firstly adjusted to be vertically arranged, the left vertex coordinate of the rectangle in which the first character is located in the second handwriting track and the width and height of the rectangle are obtained, the first character is not moved, the abscissa of the left vertex of the second character is the same as the abscissa of the left vertex of the first character, and the ordinate is the ordinate of the left vertex of the first character minus the height of the rectangle. And the abscissa of the left vertex of the third character is the same as the abscissa of the left vertex of the second character, the ordinate is changed into the ordinate of the left vertex of the second character minus the height of the rectangle, and by analogy, the characters in the second handwriting track are adjusted until the arrangement rule of the characters in the second handwriting track is adjusted to be vertical arrangement.
S340, confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion command, and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track.
S350, displaying the second handwriting track at the inserting position.
Optionally, the display characteristic parameters of the second handwriting track include: the number of rows/columns of all text arrangements in the second handwritten track;
correspondingly, adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track comprises:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the number of rows/columns of all characters arranged in the second handwriting track according to the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle until all characters in the second handwriting track are positioned in the same row/column.
The number of rows/columns of all the characters in the second handwriting track may be two rows of all the characters in the second handwriting track, 5 characters in each row, or 3 columns of all the characters in the second handwriting track, 4 characters in each column, and the like, which is not limited in this embodiment.
Specifically, as the position of the blank area on the smart tablet is small, and the number of supplementary contents that the user needs to add is large, it may happen that the user divides the supplementary contents into multiple lines for writing, as shown in fig. 3C, the characters in the second handwriting track are divided into two lines for writing, all the characters in the second handwriting track are adjusted to be located in the same line, and then the adjusted second handwriting track is inserted into the first handwriting track.
In a specific example, the user needs to supplement "the east Li of Tianjin City" in "i live in airport", and since the position of the blank area is small, the user divides "the east Li of Tianjin City" into two lines to write, one line is "Tianjin City", and the other line is "east Li".
In another specific example, the second handwritten trajectory includes two lines, one line is "Tianjin City", the other line is "east Lid", the first handwritten trajectory is "I live in airport", the "Tianjin City" and the "east Lid" are adjusted to the same line, the "Tianjin City" is not moved, the abscissa of the left vertex of east "is adjusted to the abscissa of the left vertex of" City "minus the width of the rectangle, and the ordinate is the same as the ordinate of" City ". The abscissa of the left vertex of "beautiful" is adjusted to be the abscissa of the left vertex of "east" minus the width of the rectangle, the ordinate is the same as the ordinate of "city", the abscissa of the left vertex of "district" is adjusted to be the abscissa of the left vertex of "beautiful" minus the width of the rectangle, the ordinate is the same as the ordinate of "city", and all the characters in "Tianjin City east district" are located on the same row after adjustment.
According to the technical scheme of the embodiment, the arrangement rule of the characters in the second handwriting track is adjusted according to the arrangement rule of the characters in the first handwriting track, the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track, the width and the height of the rectangle until the arrangement rule of the characters in the second handwriting track is matched with the arrangement rule of the characters in the first handwriting track, the insertion position of the second handwriting track in the first handwriting track is confirmed according to the content insertion instruction, the size of the insertion position is adjusted according to the display characteristic parameters adjusted by the second handwriting track, the second handwriting track is displayed at the insertion position, when the second handwriting track needs to be added, the arrangement rule of the characters in the second handwriting track is adjusted first to enable the arrangement rule of the characters in the second handwriting track to be matched with the arrangement rule of the characters in the first handwriting track, and the adjusted second handwriting track is directly inserted into the first handwriting track, and the erased part of the first handwriting track is rewritten without erasing part of the first handwriting track and then supplementing the content, so that attractive and tidy notes are provided for the user, and the watching experience of the user brought by the displayed content after the user supplements the content is greatly improved.
Example four
Fig. 4 is a schematic structural diagram of a display device of a handwriting track according to a fourth embodiment of the present invention. The embodiment may be applicable to the display of a handwriting track, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device providing a display function of a handwriting track, as shown in fig. 4, where the display apparatus of a handwriting track specifically includes: an acquisition module 410, a first adjustment module 420, a second adjustment module 430, and a display module 440.
The device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first handwriting track, a second handwriting track and a content insertion instruction input by a user;
the first adjusting module is used for adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track;
the second adjusting module is used for confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion instruction and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track;
and the display module is used for displaying the second handwriting track on the insertion position.
Optionally, the display characteristic parameters of the second handwriting track include: font size of a single character in the second handwriting track;
correspondingly, the first adjusting module is specifically configured to:
acquiring coordinates of points forming the second handwriting track, and confirming the font size of each character according to the coordinates of the points forming each character in the second handwriting track;
and adjusting the coordinates of the points forming the second handwriting track until the font size of each character in the second handwriting track is matched with the font size of the first handwriting track.
Optionally, the display characteristic parameters of the second handwriting track include: the characters in the second handwriting track are arranged regularly;
correspondingly, the first adjusting module is specifically configured to:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the arrangement rule of the characters in the second handwriting track according to the arrangement rule of the characters in the first handwriting track, the coordinates of the left vertex of the rectangle where the first characters are located in the second handwriting track, and the width and the height of the rectangle until the arrangement rule of the characters in the second handwriting track is matched with the arrangement rule of the characters in the first handwriting track, wherein the arrangement rule of the characters is horizontal arrangement or vertical arrangement.
Optionally, the display characteristic parameters of the second handwriting track include: the number of rows/columns of all text arrangements in the second handwritten track;
correspondingly, the first adjusting module is specifically configured to:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the number of rows/columns of all characters arranged in the second handwriting track according to the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle until all characters in the second handwriting track are positioned in the same row/column.
According to the technical scheme of the embodiment, the display characteristic parameters of the second handwriting track are adjusted to be matched with the display characteristic parameters of the first handwriting track by acquiring the first handwriting track, the second handwriting track and a content insertion instruction input by a user, the insertion position of the second handwriting track in the first handwriting track is confirmed according to the content insertion instruction, the size of the insertion position is adjusted according to the display characteristic parameters adjusted by the second handwriting track, the second handwriting track is displayed at the insertion position, when the content needs to be added, the display characteristic parameters of the handwriting track of the supplementary content are adjusted firstly, so that the display characteristic parameters of the handwriting track of the supplementary content are matched with the display characteristic parameters of the handwriting track of the initial content, the adjusted supplementary content is directly inserted into the initial content without erasing part of the initial content, and the erased part of the initial content is supplemented after the supplementary content is input, the method provides beautiful and tidy notes for the user, and greatly improves the viewing experience of the user brought by the display content during the content supplement.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 5, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, implementing a display method of a handwritten trajectory provided by an embodiment of the present invention: acquiring a first handwriting track, a second handwriting track and a content insertion instruction input by a user; adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track; confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion instruction, and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track; displaying the second handwriting trajectory at the insertion location.
EXAMPLE six
A sixth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for displaying a handwritten trajectory, as provided in all the inventive embodiments of this application: acquiring a first handwriting track, a second handwriting track and a content insertion instruction input by a user; adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track; confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion instruction, and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track; displaying the second handwriting trajectory at the insertion location.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for displaying a handwritten trajectory, comprising:
acquiring a first handwriting track, a second handwriting track and a content insertion instruction input by a user;
adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track;
confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion instruction, and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track;
displaying the second handwriting trajectory at the insertion position;
the display characteristic parameters of the second handwriting track comprise:
the font size of a single character in the second handwriting track, the character arrangement rule in the second handwriting track and the number of rows/columns of all character arrangements in the second handwriting track;
adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track, including:
moving the first handwriting track of the insertion position left and right respectively by taking the insertion position as a center, wherein the word spacing is fixed; alternatively, the first and second electrodes may be,
moving the first handwriting trajectory of the insertion position left and right, respectively, centering on the insertion position, and shortening a word pitch; alternatively, the first and second electrodes may be,
and respectively shortening the word spacing left and right of the first handwriting track of the insertion position by taking the insertion position as a center.
2. The method of claim 1, wherein adjusting the display characteristic parameters of the second handwriting track to match the display characteristic parameters of the first handwriting track comprises:
acquiring coordinates of points forming the second handwriting track, and confirming the font size of each character according to the coordinates of the points forming each character in the second handwriting track;
and adjusting the coordinates of the points forming the second handwriting track until the font size of each character in the second handwriting track is matched with the font size of the first handwriting track.
3. The method of claim 1, wherein adjusting the display characteristic parameters of the second handwriting track to match the display characteristic parameters of the first handwriting track comprises:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the arrangement rule of the characters in the second handwriting track according to the arrangement rule of the characters in the first handwriting track, the coordinates of the left vertex of the rectangle where the first characters are located in the second handwriting track, and the width and the height of the rectangle until the arrangement rule of the characters in the second handwriting track is matched with the arrangement rule of the characters in the first handwriting track, wherein the arrangement rule of the characters is horizontal arrangement or vertical arrangement.
4. The method of claim 1, wherein adjusting the display characteristic parameters of the second handwriting track to match the display characteristic parameters of the first handwriting track comprises:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the number of rows/columns of all characters arranged in the second handwriting track according to the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle until all characters in the second handwriting track are positioned in the same row/column.
5. A device for displaying a handwritten trajectory, comprising:
the acquisition module is used for acquiring a first handwriting track, a second handwriting track and a content insertion instruction input by a user;
the first adjusting module is used for adjusting the display characteristic parameters of the second handwriting track to be matched with the display characteristic parameters of the first handwriting track;
the second adjusting module is used for confirming the insertion position of the second handwriting track in the first handwriting track according to the content insertion instruction and adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track;
the display module is used for displaying the second handwriting track on the insertion position;
the display characteristic parameters of the second handwriting track comprise:
the font size of a single character in the second handwriting track, the character arrangement rule in the second handwriting track and the number of rows/columns of all character arrangements in the second handwriting track;
adjusting the size of the insertion position according to the display characteristic parameter adjusted by the second handwriting track, including:
moving the first handwriting track of the insertion position left and right respectively by taking the insertion position as a center, wherein the word spacing is fixed; alternatively, the first and second electrodes may be,
moving the first handwriting trajectory of the insertion position left and right, respectively, centering on the insertion position, and shortening a word pitch; alternatively, the first and second electrodes may be,
and respectively shortening the word spacing left and right of the first handwriting track of the insertion position by taking the insertion position as a center.
6. The apparatus of claim 5, wherein the first adjustment module is specifically configured to:
acquiring coordinates of points forming the second handwriting track, and confirming the font size of each character according to the coordinates of the points forming each character in the second handwriting track;
and adjusting the coordinates of the points forming the second handwriting track until the font size of each character in the second handwriting track is matched with the font size of the first handwriting track.
7. The apparatus of claim 5, wherein the first adjustment module is specifically configured to:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the arrangement rule of the characters in the second handwriting track according to the arrangement rule of the characters in the first handwriting track, the coordinates of the left vertex of the rectangle where the first characters are located in the second handwriting track, and the width and the height of the rectangle until the arrangement rule of the characters in the second handwriting track is matched with the arrangement rule of the characters in the first handwriting track, wherein the arrangement rule of the characters is horizontal arrangement or vertical arrangement.
8. The apparatus of claim 5, wherein the first adjustment module is specifically configured to:
acquiring the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle;
and adjusting the number of rows/columns of all characters arranged in the second handwriting track according to the coordinates of the left vertex of the rectangle where the first character is located in the second handwriting track and the width and height of the rectangle until all characters in the second handwriting track are positioned in the same row/column.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN201710719433.6A 2017-08-21 2017-08-21 Display method, device and equipment of handwriting track and storage medium Active CN107516334B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710719433.6A CN107516334B (en) 2017-08-21 2017-08-21 Display method, device and equipment of handwriting track and storage medium
PCT/CN2017/116741 WO2019037353A1 (en) 2017-08-21 2017-12-17 Handwritten track display method and apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710719433.6A CN107516334B (en) 2017-08-21 2017-08-21 Display method, device and equipment of handwriting track and storage medium

Publications (2)

Publication Number Publication Date
CN107516334A CN107516334A (en) 2017-12-26
CN107516334B true CN107516334B (en) 2020-05-22

Family

ID=60723429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710719433.6A Active CN107516334B (en) 2017-08-21 2017-08-21 Display method, device and equipment of handwriting track and storage medium

Country Status (2)

Country Link
CN (1) CN107516334B (en)
WO (1) WO2019037353A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076074B (en) * 2021-06-07 2021-10-01 广州朗国电子科技股份有限公司 Electronic blackboard writing reproduction method and system, electronic blackboard and readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470549A (en) * 2007-12-27 2009-07-01 汉王科技股份有限公司 Handwriting processing method and system used for information processing terminal
CN201576269U (en) * 2009-07-16 2010-09-08 海尔集团公司 Handwriting device
CN105183347A (en) * 2015-08-27 2015-12-23 广东欧珀移动通信有限公司 Input method operation method and electronic terminal
US9384403B2 (en) * 2014-04-04 2016-07-05 Myscript System and method for superimposed handwriting recognition technology
CN105807999A (en) * 2016-03-10 2016-07-27 北京视骏科技有限公司 Method for inputting handwritten information to display device through handwriting device
CN105808514A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533317A (en) * 2008-03-13 2009-09-16 三星电子株式会社 Fast recording device with handwriting identifying function and method thereof
CN102830904B (en) * 2012-06-29 2016-08-10 鸿富锦精密工业(深圳)有限公司 Electronic equipment and picture insertion method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470549A (en) * 2007-12-27 2009-07-01 汉王科技股份有限公司 Handwriting processing method and system used for information processing terminal
CN201576269U (en) * 2009-07-16 2010-09-08 海尔集团公司 Handwriting device
US9384403B2 (en) * 2014-04-04 2016-07-05 Myscript System and method for superimposed handwriting recognition technology
CN105808514A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic device
CN105183347A (en) * 2015-08-27 2015-12-23 广东欧珀移动通信有限公司 Input method operation method and electronic terminal
CN105807999A (en) * 2016-03-10 2016-07-27 北京视骏科技有限公司 Method for inputting handwritten information to display device through handwriting device

Also Published As

Publication number Publication date
WO2019037353A1 (en) 2019-02-28
CN107516334A (en) 2017-12-26

Similar Documents

Publication Publication Date Title
US9285979B2 (en) Computer-implemented methods and systems for multi-touch duplication and swapping interactions
CN110045840B (en) Writing track association method, device, terminal equipment and storage medium
CN107977155B (en) Handwriting recognition method, device, equipment and storage medium
US11551392B2 (en) Graphic drawing method and apparatus, device, and storage medium
CN111240669B (en) Interface generation method and device, electronic equipment and computer storage medium
US10417310B2 (en) Content inker
CN104572683A (en) Word stroke animation processing method and device
CN102419742A (en) Subtitle processing method and device applied to electronic equipment
CN111783508A (en) Method and apparatus for processing image
US20170024359A1 (en) Techniques to provide processing enhancements for a text editor in a computing environment
CN108492349B (en) Processing method, device and equipment for writing strokes and storage medium
US20160062601A1 (en) Electronic device with touch screen and method for moving application functional interface
US10235351B2 (en) Electronic document editing apparatus capable of inserting memo into paragraph, and operating method thereof
CN107562331A (en) A kind of display methods of handwriting, device, equipment and storage medium
CN107516334B (en) Display method, device and equipment of handwriting track and storage medium
US8645820B2 (en) Method and apparatus for providing comb text field inputs on a mobile device
CN105808514A (en) Information processing method and electronic device
CN113093969A (en) Hand-drawn track rendering method, device, electronic equipment, medium and program product
CN107391015B (en) Control method, device and equipment of intelligent tablet and storage medium
CN113378511B (en) Page display method and device, electronic equipment and storage medium
CN112492399A (en) Information display method and device and electronic equipment
CN111915705A (en) Picture visual editing method, device, equipment and medium
CN111836093A (en) Video playing method, device, equipment and medium
WO2019037354A1 (en) Handwritten content display method and apparatus, device, and storage medium
CN114118029A (en) Image processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant