CN1256689C - Method for forming hand-written texts and storage method thereof - Google Patents

Method for forming hand-written texts and storage method thereof Download PDF

Info

Publication number
CN1256689C
CN1256689C CN 03102073 CN03102073A CN1256689C CN 1256689 C CN1256689 C CN 1256689C CN 03102073 CN03102073 CN 03102073 CN 03102073 A CN03102073 A CN 03102073A CN 1256689 C CN1256689 C CN 1256689C
Authority
CN
China
Prior art keywords
text
handwritten
machine inner
pattern
inner code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 03102073
Other languages
Chinese (zh)
Other versions
CN1521660A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN 03102073 priority Critical patent/CN1256689C/en
Publication of CN1521660A publication Critical patent/CN1521660A/en
Application granted granted Critical
Publication of CN1256689C publication Critical patent/CN1256689C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The present invention discloses a method for generating a handwriting text. The method comprises at least the steps that modes which respectively represent each handwriting character are established in advance, the corresponding relationships between machine inner codes and the modes are determined, and then a handwriting mode library comprising the modes and the corresponding relationships is established; the machine inner codes of loaded or input characters are detected, the handwriting modes to which the machine inner codes correspond are determined through the corresponding relationships between machine inner codes and the modes, and the handwriting modes to which the machine inner codes are invoked and displayed to form the handwriting text. The present invention also discloses a method for saving the handwriting text, in which except that the document structure information and the information of text machine inner codes of the handwriting document are saved, the corresponding relationships between the machine inner codes of the handwriting text and the modes and a local mode library which is composed of all the modes contained in the handwriting test are saved. By the present invention, the handwriting text with individuation can be generated, and the handwriting text can be conveniently edited.

Description

A kind of store method that comprises the electronic document of handwritten form text
Technical field
The present invention relates to the word processing technology of computing machine, be specifically related to a kind of store method that comprises the electronic document of handwritten form text.
Background technology
Along with the development of society, various printed matters and electronic document have replaced the position of manual documentation gradually.Equally, write envelope letter in one's own handwriting the relatives in a distant place or friend, for most of people, also become a memory remote.Though present computing machine, typewriter and more and more universal such as the various handheld devices of mobile phone, people can utilize the civilized achievement in these modern times to carry out exchange and conmmunication fully, and no longer need paper and pen.But what be that Email, SMS (short message service) word processing document use all is the pattern unified characters, though be convenient to people's reading, a kind of cordial feeling lacked, there is not the sort of imagination space of seeing that word can stay as seeing the people.Machine-made black matrix, the Song typeface, regular script have allowed the people be fed up with in a lot of occasions, people urgently wish the handwritten text that also can obtain cordiality, nature and have unique individualities by computing machine, particularly and relatives, friend between all the more so in the Email that exchanges.
For safety and serious, in some electronic documents, need the name signature of handwritten form at present.The common way of this moment is to write earlier the literal of handwritten form on paper, and the scanning by scanner is input in the computing machine as a bitmap then, the mode of this bitmap by pinup picture is inserted in the electronic document again.The handwritten text that inserts in this way and show is a bitmap, rather than machine inner code, therefore can not carry out the common editing operation relevant with literal, uses inconvenient especially.In addition, this mode only is applicable to inserts name and so on less character, for the electronic document of one piece of article being made up of a lot of characters and so on, generate handwritten text by this method, does not then almost have Practical significance.
In order to address this problem, in the open CN 1374637 of Chinese patent, to disclose a kind of hand writing literal pool and utilized hand writing literal pool on display device, to form the method for handwritten text.This method can show the handwritten text that comprises in the handwritten text character library by setting up hand writing literal pool on the display device of for example graphoscope, thereby has solved the problem that handwritten text generates.But this hand writing literal pool is included on the local computing machine, how the electronic document of the handwritten text that generates for comprising is preserved, so that do not comprising on other computing machine of handwritten text and can normally show and edit, a bit relating to do not arranged in this piece patent disclosure but.
In the open CN 1372208 of Chinese patent, a kind of video text editing method and system are disclosed.By this method and system, the user can edit the literal of handwriting input.But the literal of the handwriting input here and handwritten text involved in the present invention have the difference of essence, also just do not relate to how preserving the electronic document that comprises handwritten text in this patent disclosure certainly.
The preservation of electronic document is to preserve the information relevant with electronic document by the structural information of recorded electronic document with the text machine inner code at present.In other words, the electronic document of preserving at present comprises document structure information and the two-part content of document text machine inner code.Wherein, document structure information further comprises two aspect contents: the one, and the feature after the format command string such as follow-up medium such as literal, pictures, just to the description of medium display mode, for example size of character, color, shape or the like; The 2nd, the position of follow-up medium, the just coordinate points that on the page, shows of medium.The document text machine inner code comprises the machine inner code information of each character of electronic document.In this store method, do not preserve the content of character library, because character library standardization at present all is equipped with the character library of standard in the common computer, so do not need additional character library content in the electronic document of preserving again.But for the handwritten form text, clearly a people's handwritten form can not be present among other computing machine in large quantities, if therefore with the handwritten form text copy in the subscriber computer in other computing machine, cause probably can't normal browsing situation.Therefore at present only interrecord structure information and machine inner code information are not suitable for and preserve the electronic document that comprises the handwritten form text in the preservation of electronic document.
Summary of the invention
In view of this, the purpose of this invention is to provide a kind of method that makes the electronic document that comprises the handwritten form text in any computing machine, normally open and to browse.
Above-mentioned purpose of the present invention is solved by following technical solution:
A kind of store method that comprises the electronic document of handwritten form text comprises:
Preserve the document structure information of described electronic document;
Preserve the text machine inner code information of described electronic document;
The correspondence relationship information of the pattern of preserving the machine inner code of the handwritten form text that comprises in the described electronic document and setting up in advance, wherein each pattern is represented a handwritten text, and described corresponding relation was set up before forming the handwritten form text in advance;
The local mode storehouse that all patterns that preservation is comprised by described handwritten form text are formed.
In said method, this handwritten form text can form as follows: detect and to be written into or the machine inner code of input characters, determine the pairing hand-written pattern of machine inner code by the corresponding relation of machine inner code and pattern, call and the pairing hand-written pattern of display device ISN, thereby form the handwritten form text.
In said method, the step of setting up the corresponding relation of machine inner code and pattern in advance may further include: a. imports or is written into handwritten text, and writes down the pattern of each handwritten text; B. discern handwritten text and obtain the corresponding machine ISN, and each pattern of each handwritten text and the corresponding relation between the corresponding machine inner code are represented in foundation respectively.
In said method, can realize that handwritten text is written into by the style of writing word identification of going forward side by side of the handwritten text of scanning on the paper carrier at step a, the pattern here is to represent the bitmap of each handwritten text respectively.Perhaps by hand input device input handwritten text, the pattern here is to represent the input trajectory information of each handwritten text respectively.And after step a, can further carry out the uniform format processing to all patterns.
In said method, the corresponding relation of machine inner code and pattern is corresponding 1 pattern of machine inner code or machine inner code correspondence greater than 1 pattern.
In said method, machine inner code can be Hanzi internal code or ASCII ISN.
In said method, processing can be further compressed in the local mode storehouse.
From technical scheme of the present invention as can be seen, by setting up hand-written library in advance, and be the handwritten form text or directly import the handwritten form text by the block letter text-converted that hand-written library will exist, can in electronic document, generate handwritten form easily.And, can in not setting up other computing machine of employed hand-written library, browse and edit the handwritten form text easily by the correspondence relationship information and the local mode storehouse of additional machine ISN in the preservation process of text and handwritten form pattern.
Use the present invention to set up and have personalized electronic document, it has broken through existing handwritten form can only can carry out editing operation to handwritten form easily to scheme the defective that sheet mode exists.In addition, because handwritten text has individual's specific characteristic, other people are difficult for imitation, so the method that the present invention preserves electronic document has higher security in ecommerce or E-Government.
Description of drawings
Fig. 1 is the simple overview flow chart of the present invention;
Fig. 2 is the process flow diagram of a kind of hand-written library method for building up of the present invention;
Fig. 3 is the hand-written library data layout of a present invention synoptic diagram;
Fig. 4 is that the present invention is the process flow figure of handwritten form text with the block letter text-converted;
Fig. 5 is that the present invention passes through the process flow figure that keyboard is directly imported handwritten text;
Fig. 6 is the structural representation of the electronic document of the handwritten form text of the present invention with Hanzi internal code.
Embodiment
Below in conjunction with the drawings and specific embodiments and with pure Chinese-character text is that example is further detailed the present invention.
Fig. 1 shows the total flow process of the present invention, with in electronic document, generate at present the same such as the font of standards such as the Song typeface, regular script, in order in electronic document, to generate handwritten text, also need to set up the handwritten form character library in step 101 in advance just hand-written library.Can generate the handwritten form text by calling this hand-written library in step 102 then, after having generated the handwritten form text, can be kept at the handwritten form text that step 102 generates by additional machine ISN and pattern collation table and local mode storehouse in step 103.The concrete processing of above-mentioned each step will describe in detail after a while.
Setting up hand-written library is basis of the present invention and core.The invention provides following two kinds of methods of setting up hand-written library, in actual conditions, can adopt wherein any one.
Set up the method 1 of hand-written library:
Fig. 2 shows the flow process of a kind of hand-written library method for building up of the present invention.As shown in Figure 2, this method of setting up hand-written library mainly comprises the steps:
In step 201, the handwritten text that writes on the carriers such as papery is scanned by scanner, form a handwritten form text as bitmap.
In step 202,203, use present existing character recognition method bitmap to be syncopated as the unit bitmap of forming by independent literal one by one, then the independent literal in each the unit bitmap that is syncopated as is carried out literal identification, obtain the machine inner code of the Chinese character of their representatives.
In step 204,, therefore need carry out desk checking to the literal and the corresponding relation between the machine inner code of identification because present character recognition method can not be discerned each handwritten text in entirely accurate ground.The demonstration of for example the pairing standard Chinese character of machine inner code of actual cell bitmap and their correspondences being tabulated, if finding bitmap and corresponding standard Chinese character is not inconsistent, then the standard Chinese character of the mistake that will show in tabulation is revised as correct standard Chinese character, rebulids corresponding relation then between the machine inner code of the correct Chinese character correspondence of this bitmap and modification.
In step 205, each unit bitmap that handwritten Chinese character is formed carries out background and denoising, to improve the display effect of handwritten text.
In step 206, each unit bitmap is formatd processing, for example unify size etc., bitmap and the corresponding machine inner code with these expression handwritten texts together stores the handwritten Chinese character library into then, and wherein machine inner code is as the index in Chinese character retrieval handwriting recognition storehouse.
Promptly set up a hand-written library according to as above step, it is similar to existing character library in the use of reality.In above-mentioned steps, step 202,203, processing such as 205 all belong to known category and present literal identification is handled similar.The hand-written library that to set up according to the method in the present invention is called the category-A library.
Set up the method 2 of hand-written library:
This method is slightly different with the method for introducing previously 1, it is not the handwriting on the carriers such as papery to be scanned with literal discern, but directly import Chinese character by existing handwriting pad, and the record Chinese character handwriting trace, with these handwriting trace information and the input Chinese character the machine inner code common storage in the Chinese mode storehouse.Wherein machine inner code is as the index in Chinese character retrieval handwriting recognition storehouse.In the present invention this hand-written library is called the category-B library.
According to the method described above 1 or method 2 set up in the process of hand-written library, the access of character library for convenience, all need the form of Chinese character in the character library is unified, processing such as this need carry out denoising, make the unified normalization of size, level and smooth and deburring, these processing all are known technologies, do not repeat them here.
In setting up the process of hand-written library, might the corresponding several different handwritten texts of same machine inner code meeting.This is because may same word occur at diverse location in the hand-written file of a same piece of writing, for example in Chinese character the frequency of occurrences high " " word, may in a word, will occur for several times.Can only keep one of them handwritten form this moment, also can reserve part even all handwritten forms, if keep multiple handwritten form, then same machine inner code will corresponding a plurality of different unit bitmap or trace informations.Fig. 3 shows the schematic format of handwritten form of the present invention, and each ISN is the corresponding a plurality of handwritten form patterns of possibility all, and in hand-written library, these handwritten form patterns can be set up corresponding relation with same machine inner code.In actual application, when detecting the corresponding a plurality of hand-written pattern of machine inner code, can require the user in a plurality of hand-written patterns, to select.
After having set up the hand-written library of uniform format, can use this hand-written library in computing machine, to generate the handwritten form text.How generating the handwritten form text has several different methods, lifts two concrete examples here.
Generate the method 1 of handwritten form text:
In this method, can perhaps directly be written into the print hand writing text that has existed, and then these print hand writing text-converted are become the handwritten text text by existing input method input print hand writing text.Fig. 4 shows the process flow diagram of this method, and as can be seen from Figure 4, this method mainly comprises the steps:
In step 401, behind print hand writing text that is written into current input or the print hand writing text that existed, determine to be converted to from print hand writing the machine inner code of first Chinese character of handwritten text in order.
In step 402, the machine inner code that utilizes previous step to determine is searched this Chinese character in hand-written library hand-written pattern.
In step 403, judge whether to exist the hand-written pattern of this Chinese character, if having the hand-written pattern of this Chinese character, execution in step 404 and subsequent step; Otherwise order execution in step 407 and step 408.
In step 404,405, preceding conventional processing is inserted or replaced to selected hand-written pattern, comprising normalization processing and background process or the like, specifically how handling is known technology, no longer describes in detail here.
In step 406, selected hand-written pattern is carried out replacement operation, just replace corresponding with it print hand writing with selected handwritten text.The replacement operation here can adopt certain animation effect, for example for the category-A library, can adopt animation effect such as be fade-in fade-out, and for the category-B library, can be further comes the order animation display according to the writing stroke of each hand-written pattern.
In step 407, if do not find the hand-written pattern of this Chinese character, then this Chinese character of former block letter is carried out variable color and handle, to remind in the present hand-written library of user the not hand-written pattern of this Chinese character.
In step 408, judged whether to finish the font conversion work of all Chinese characters, if, process ends, otherwise execution in step 409 and step 402.
In step 409, determine the machine inner code of next Chinese character in order.Repeated execution of steps 402 then, this Chinese character is carried out identical replacement handle.
Generate the method 2 of handwritten form text:
In this method, can directly import the handwritten form text by keyboard.Fig. 5 shows the process flow diagram of this method, and as can be seen from Figure 5, this method mainly comprises the steps:
In step 501, the Chinese character input method of choice criteria, all-phonetic input method for example commonly used at present etc.
In step 502, be written into the corresponding relation between selected input method of Chinese character and the machine inner code, the corresponding relation here may be to represent by modes such as function or forms.
In step 503, receive user's Chinese character input keys sign indicating number.
In step 504, whether there is corresponding machine inner code to judge whether the user's Chinese character input keys sign indicating number that is received is rational Chinese character input keys sign indicating number sequence according to user's Chinese character input keys sign indicating number.If, execution in step 505 and subsequent step, otherwise re-execute step 503, require the user to re-enter the key sequence.
In step 505, pass through to determine the machine inner code of input Chinese character according to user's Chinese character input keys sign indicating number sequence such as the corresponding relation of function or form.
In step 506, the hand-written pattern of utilizing the machine inner code of Chinese character in hand-written library, to search this Chinese character.
In step 507, further judge whether to inquire the Chinese mode of this Chinese character, if, execution in step 508 and subsequent step, otherwise execution in step 510.
In step 508, on computer screen, show handwritten Chinese character, in the process that shows, also can use the animation effect of introducing in front.
In step 509, judge whether to have finished all inputs.If process ends, otherwise execution in step 503 receive the Chinese character input keys sign indicating number again.
In step 510, if do not import the hand-written pattern of Chinese character, then show the block letter pattern and the variable color of this Chinese character, to remind in the present hand-written library of user the not hand-written pattern of this Chinese character.
In said method, step 501 to step 505 is known technology, no longer is specifically described.
Introduced specifically how to generate the handwritten form text with two examples above.In actual conditions, multiple variation can also be arranged, for example can be written into entire chapter block letter text and be converted into the handwritten form text, also the part Chinese character in the entire chapter block letter text can be converted to handwritten form, in this mode, the program of handwritten form conversion can be embedded on the toolbar of text edit software as a plug-in unit.The same with the mode of present change character script, need to select the literal of conversion and show that with color the respective icon on the click tools hurdle can realize the handwritten form conversion then.
After having generated the handwritten form text, also need in computing machine, preserve the handwriting information of the text, otherwise with the text when other are not opened in the computing machine of this hand-written library, can not correctly show handwritten form, therefore need when preserving the text, preserve the handwriting information of text.Fig. 6 shows the structural representation of the electronic document of the handwritten form text with Hanzi internal code that the present invention preserves.
As shown in Figure 6, the electronic document of the present invention's preservation comprises four parts: document structure information, document text machine inner code, machine inner code and pattern collation table and local mode storehouse.Wherein document structure information and document text machine inner code were introduced in the prior art part, and innovation of the present invention is that except this two parts content the present invention has further comprised machine inner code and pattern collation table and local mode storehouse.Machine inner code and pattern collation table were introduced in front, and it is a doubly linked list, both can inquire the handwritten form pattern by machine inner code, also can be by the handwritten form pattern query to machine inner code.The local mode storehouse is a subclass of handwritten form library, and it has comprised the handwritten form pattern that comprises all literal in the electronic document.For conserve storage, the local mode storehouse preferably adopts compress mode to store.
Certainly except above-mentioned store method, if not need other occasions to the handwritten form text add, editing operation such as deletion, modification, only require and to open and normal browsing, so also the handwritten form text can be saved as the form of picture file, for example normally used screenshotss operation etc., this method is a known technology, no longer describes in detail.
Be to be example with the Chinese character in specific embodiments of the invention, but be appreciated that the present invention is not limited to Chinese character, but can be by keyboard input or any spoken and written languages that carry out literal identification.The machine inner code of text can be a Hanzi internal code, also can be the ASCII ISN.Therefore specific embodiments of the invention only are a kind of displayings to spirit of the present invention, and should be as limitation of the present invention.

Claims (9)

1. store method that comprises the electronic document of handwritten form text comprises:
Preserve the document structure information of described electronic document;
Preserve the text machine inner code information of described electronic document;
The correspondence relationship information of the pattern of preserving the machine inner code of the handwritten form text that comprises in the described electronic document and setting up in advance, wherein each pattern is represented a handwritten text, and described corresponding relation was set up before forming the handwritten form text in advance;
The local mode storehouse that all patterns that preservation is comprised by described handwritten form text are formed.
2. method according to claim 1, wherein this handwritten form text forms as follows: detect and to be written into or the machine inner code of input characters, determine the pairing hand-written pattern of machine inner code by the corresponding relation of described machine inner code and pattern, call and show the pairing hand-written pattern of described machine inner code, thereby form the handwritten form text.
3. method according to claim 1 is characterized in that, the described step of setting up the corresponding relation of machine inner code and pattern in advance further comprises:
A. import or be written into handwritten text, and write down the pattern of each handwritten text;
B. discern described handwritten text and obtain the corresponding machine ISN, and each pattern of each handwritten text and the corresponding relation between the corresponding machine inner code are represented in foundation respectively.
4. method according to claim 3 is characterized in that, realizes that by the style of writing word identification of going forward side by side of the handwritten text of scanning on the paper carrier handwritten text is written at step a, and described pattern is to represent the bitmap of each handwritten text respectively.
5. method according to claim 3 is characterized in that a imports handwritten text by hand input device in step, and described pattern is to represent the input trajectory information of each handwritten text respectively.
6. method according to claim 3 is characterized in that, further comprises after step a all patterns are carried out the uniform format processing.
7. method according to claim 1 is characterized in that, the corresponding relation of described machine inner code and pattern is corresponding 1 pattern of machine inner code or machine inner code correspondence greater than 1 pattern.
8. method according to claim 1 is characterized in that, described machine inner code is Hanzi internal code or ASCII ISN.
9. method according to claim 1 is characterized in that, further comprises when preserving described local mode storehouse processing is compressed in described local mode storehouse.
CN 03102073 2003-01-29 2003-01-29 Method for forming hand-written texts and storage method thereof Expired - Fee Related CN1256689C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03102073 CN1256689C (en) 2003-01-29 2003-01-29 Method for forming hand-written texts and storage method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03102073 CN1256689C (en) 2003-01-29 2003-01-29 Method for forming hand-written texts and storage method thereof

Publications (2)

Publication Number Publication Date
CN1521660A CN1521660A (en) 2004-08-18
CN1256689C true CN1256689C (en) 2006-05-17

Family

ID=34281587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03102073 Expired - Fee Related CN1256689C (en) 2003-01-29 2003-01-29 Method for forming hand-written texts and storage method thereof

Country Status (1)

Country Link
CN (1) CN1256689C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4733415B2 (en) * 2005-04-05 2011-07-27 シャープ株式会社 Electronic document display apparatus and method, and computer program
US20130181995A1 (en) * 2010-09-21 2013-07-18 Hewlett-Packard Developement Company, L.P. Handwritten character font library
CN102455867B (en) * 2011-09-29 2015-06-24 北京壹人壹本信息科技有限公司 Method and device for matching handwritten character information
CN102646023A (en) * 2012-04-11 2012-08-22 广东欧珀移动通信有限公司 Method for generating original user handwriting fonts
CN110489724A (en) * 2019-03-13 2019-11-22 北京壹人壹本信息科技有限公司 Synthetic method, mobile terminal and the storage medium of hand-written script
CN110488997A (en) * 2019-07-03 2019-11-22 深圳市九洲电器有限公司 Voice-based clipboard implementation method and Related product

Also Published As

Publication number Publication date
CN1521660A (en) 2004-08-18

Similar Documents

Publication Publication Date Title
US7715630B2 (en) Interfacing with ink
KR0163178B1 (en) Method and apparatus for encoding and decoding chinese characters
US7319789B2 (en) Serial storage of ink and its properties
JP3425408B2 (en) Document reading device
RU2406142C2 (en) System and method of storing documents in serial binary format
US6956970B2 (en) Information storage using tables and scope indices
CN1338068A (en) Text input system for ideographic and nonideographic languages
CN1256689C (en) Method for forming hand-written texts and storage method thereof
CN101833545A (en) Method for indexing data in digital recourse processing process
CN1371043A (en) Numeral operation system
CN1180858A (en) Character input apparatus
JP2000322417A (en) Device and method for filing image and storage medium
CN105825250A (en) Method and device for counting poor display panels
CN1136496C (en) Simplified spelling-touching screen mouse chinese character input method
CN1140864C (en) Hand writing input method for hand held data processor
CN103488616A (en) Method and device for processing embedded fonts
CN1169073C (en) Video text editing method and system thereof
CN2643402Y (en) Chinese character inquiry device for various foreign languages
CN1136497C (en) Chinese character input method through touching screen and mouse
CN1177285C (en) Ultralarge Chinese character information treating device and method
CN114332875A (en) Method for structuring note card
CN1549166A (en) New method, apparatus and system for electronic readings production and browse
CN115994521A (en) Document editing method, presentation method, and document paragraph identification method and device
JP4381483B2 (en) Character information processing apparatus and character information processing method
CN1310371A (en) Method and apparatus for inputting characters

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060517

Termination date: 20210129