CN105528345A - Terminal, server and character complementing method - Google Patents

Terminal, server and character complementing method Download PDF

Info

Publication number
CN105528345A
CN105528345A CN201410510053.8A CN201410510053A CN105528345A CN 105528345 A CN105528345 A CN 105528345A CN 201410510053 A CN201410510053 A CN 201410510053A CN 105528345 A CN105528345 A CN 105528345A
Authority
CN
China
Prior art keywords
inlay
font
character
data
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410510053.8A
Other languages
Chinese (zh)
Other versions
CN105528345B (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.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201410510053.8A priority Critical patent/CN105528345B/en
Publication of CN105528345A publication Critical patent/CN105528345A/en
Application granted granted Critical
Publication of CN105528345B publication Critical patent/CN105528345B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides a terminal, a server and a character complementing method. The terminal comprises a request generating unit, an interaction unit and a display unit. The request generating unit is used for generating character complementing request sequences when unknown characters which are not stored in a character set are received. The interaction unit sends the character complementing request sequences to the server and receives complementary character pattern dedicated data corresponding to the unknown characters. The display unit normally displays the unknown characters according to the received complementary character pattern dedicated data. According to the technical scheme provided in the invention, unknown characters which are not stored in conventional standard codes can be uniformly and sequentially added to the server, the generated character pattern dedicated data is sent to the terminal for use, the operation can be easily and rapidly carried out, the response speed is improved, the repetition of character complementing can be avoided, and the data redundancy can be reduced.

Description

Terminal, server and inlay method
Technical field
The present invention relates to word-base technology field, in particular to a kind of terminal, a kind of server and a kind of inlay method.
Background technology
Character library is the important component part of mobile terminal (such as smart mobile phone, panel computer) operating system, and mobile terminal completes presenting of font by character library, comprising: typing, display, reading etc.The character library of existing main flow mobile terminal is organized according to national coding standards GBK or GB18030-2000 substantially.
The compatible GB2312 of national coding standards GBK coding standard, include Chinese character 21003 altogether, provide 1894 coinage code bits, letter, the complex form of Chinese characters are melted into a character library; GB18030-2000 is the replacement version of GBK, GBK basis adds more than 6000 CJK and unifies the Chinese character that Chinese character expands A, reach 27533 Chinese characters, substantially can meet the most of demand in daily life; GB13000-2005/GB13000-2010 (being equal to international character coding standard UNICODE5.0 completely) number of words reaches word more than 70000, the CJK that the topmost change of these large character sets is the increase in word more than 40,000 unifies Chinese character and expands B, also can continue to increase CJK future and unify Chinese character and expand C, CJK and unify Chinese character and expand D etc.
In addition, character set, in order to meet the demand of self-defined word, is provided with user defined character district, the inlay district scope in UNICODE standard: 0XE000-0XF8FF; Other character set perform with reference to transform coding is equivalent.
When user runs into some deserted words, the deserted word in the self-made characters such as, in individual citizens information in name, address and physical geography entity place name that some are special, such as: " ", the surname in name can be identified in mobile phone: " Lee ", but the name inside None-identified " ".These deserted words all cannot retrieve in the character set of current all standards, illustrate that these words are new words, do not exist in existing standard.For new word non-existent in these existing standards, according to existing solution be: after needing first to carry out artificial inlay by the inlay district of character set in PC computer, then again copy in cell phone system or download new character library, in mobile phone, install new character library again, this kind of mode wastes time and energy on the one hand; The user had on the other hand at random can fill into a font voluntarily according to the demand of oneself, deposit owing to not carrying out unified classification and ordering for the inlay in the User Defined district of mobile phone character library, cause not only store in the User Defined district of mobile phone character library unordered, disorderly and unsystematic, but also there is the problem of font repetition, repetition inlay, finally, the inlay storage sequence of such generation and inlay character library, be difficult to carry out transmitting, exchanging with other system.
Therefore, need a kind of inlay method, conveniently can supplement new character, and can store the new character unified section supplemented and sequence, avoid repetition inlay.
Summary of the invention
Consider the technical matters occurred in correlation technique, the invention provides a kind of new inlay scheme, the newly-increased inlay carrying out unifying orderly multiple font style by server end stores and distributes the exclusive glyph data of inlay font to terminal (mobile device), after it associates with the main character library of system default by terminal, non-existent character in existing standard volume can be shown in the terminal.
According to an aspect of the present invention, provide a kind of terminal, comprising: request generation unit, for receive be not present in unknown character that store character concentrates time, generate inlay request sequence; Interactive unit, is sent to server by described inlay request sequence, and receives the inlay font exclusive data corresponding with described unknown character from described server; Display unit, according to the exclusive data of described inlay font received, the described unknown character of normal display.
In this technical scheme, by sending inlay request sequence and receiving the exclusive data of inlay font, the normal display of unknown character can be realized, the easy problem solving terminal and can not show when receiving and not being present in unknown character that store character concentrates, in PC computer, carry out inlay with prior art, and copy in terminal or download, replace and compare, method is easy, improve response speed, reduce the use difficulty that terminal increases inlay symbol newly.
Wherein, because unknown character cannot normally show in the terminal, the deserted word that therefore cannot be able to be shown by present terminal by form that is hand-written or that take pictures is made into picture, in conjunction with other solicited messages, sends inlay request sequence to server.
In technique scheme, preferably, described request generation unit comprises: extraction unit, for extracting font, sequence number, font type, the character attibute information of described unknown character, to generate described inlay request sequence.
In this technical scheme, inlay request sequence should comprise the full detail of unknown character, to the identification of unknown character and identification.Specifically, inlay request sequence, comprises the request sequence of the font (graphic form) of unknown character, sequence number, font type information (font style), character attibute information.
Because unknown character does not all exist in existing character set encoding standard, therefore unknown character does not now have character code, only has the sequence number of ascending order or descending; Font type refers to the type of font, as handwritten form (referring to the acquiescence handwriting style of unknown character picture), the Song typeface, black matrix, regular script etc., refers to that the font type of inlay font after inlay is any; Character attibute information refers to the attribute of the character self such as frequency of utilization, radicals by which characters are arranged in traditional Chinese dictionaries information, order of strokes observed in calligraphy information, phonetic treated inlay and accord with, and character attibute information can be one, also can multiple combinations of attributes, but does not allow null attribute; Inlay request sequence can comprise the inlay request of single unknown character, also can comprise the inlay request of multiple unknown character; Inlay request both can comprise the request of single font type, also can comprise the request of multiple font type.
In technique scheme, preferably, described display unit comprises: resolution unit, after receiving the exclusive data of described inlay font, resolve the exclusive data of described inlay font, obtain the unique encodings corresponding with described unknown character, font type style and mapping relations index value, and be stored as local character set; Associative cell, associates described local character set with described terminal store character collection, to make described local character set as the additional character collection of described terminal store character collection; Search unit, all additional character collection of store character collection and the described collection of store character described in searching, to show described unknown character.
In this technical scheme, by the exclusive Data Analysis of the inlay received font is stored as local character set, and the local character set stored is associated with the character set stored in terminal, make local character set as the additional character collection of terminal store character collection, without the need to changing the character set that terminal has stored, still original character set stored is used, can not destroy, increase, reduce the file of terminal store character collection, namely any physical operations is not done to terminal store character collection, ensure that integrality, the stability of terminal store character collection.
Wherein, association, after the server inlay font data received is stored as local character set, associates with terminal store character collection, forms the corresponding relation of master-additional character collection.When terminal has multiple collection of store character, the local character set of a server downloaded stored, can allow to be associated with on terminal multiple store character collection as additional character collection; After carry out repeatedly inlay from server, define multiple local character set, multiple local character set can be associated with one, terminal on store character collection simultaneously, also can be associated with on terminal multiple store character collection simultaneously.
Certainly, the multiple auxiliary local character set repeatedly formed after inlay, both can merging treatment in this locality, also can exist with the distributed form of fragment file, no matter local character set is merging treatment or distributed form exists, and does not all affect the operation of master-auxiliary character set relation mechanism.
It should be noted that, when the multiple auxiliary local character set formed after repeatedly inlay, under the prerequisite of same font type style, the inlay repeated should do not had each other, also there will not be the situation that confusion of encoding each other, font repeat, namely, under the prerequisite of same font type style, the inlay coding in each local character set, inlay font are all unique, unduplicated; Map index value in each local character set is also unique for each local character set, because index value is only effective in this local character set.
In technique scheme, preferably, described resolution unit also for obtaining font glyf curved profile data according to described mapping relations index value, and depicts Bezier profile and outline of straight line, to form the curved profile of described unknown character according to font glyf curved profile data.
In this technical scheme, the unique encodings of the unknown character gone out by the exclusive Data Analysis of inlay font and mapping relations index value can obtain unknown character font glyf curved profile data, and font scale-of-two glyf outline data mainly forms binary data by coordinate points and zone bit; By these coordinate points and zone bit, Bezier profile and outline of straight line can be drawn, thus the curved profile of final composition font, after these Contour filling, namely obtain the Chinese character that we see.
According to a second aspect of the invention, propose a kind of server, comprising: interactive unit, receive the inlay request sequence of self terminal, and the exclusive data of inlay font that processing unit generates are sent to described terminal; Described processing unit, data preparation and haracter pattern rule process are carried out to each unknown character in described inlay request sequence, to obtain the attribute information of each described unknown character, generate the corresponding exclusive data of inlay font according to the attribute information of each described unknown character.
In this technical scheme, according to the attribute information of unknown character in the inlay request sequence received, generate the corresponding exclusive data of inlay font, and exclusive for inlay font data are sent to terminal, can with being intended to compared with User Defined district inlay with user in prior art, unify inlay by server, the unified of inlay font can be realized and store and distribution, avoid the problem that font repeats, repeats inlay.
In technique scheme, preferably, also comprise: judging unit, for before carrying out data preparation and haracter pattern rule process to each unknown character in described inlay request sequence, judge whether the font of described unknown character is present in existing character set standard and compiles according to the information that described inlay request sequence comprises, when judging that the font of described unknown character is present in existing character set standard volume, exclusive for the font of described unknown character data are sent to described terminal, when judging that the font of described unknown character is not present in existing character set standard volume, the font of described unknown character is defined as treating inlay font, be stored in inlay district.
In this technical scheme, by judging whether unknown character is present in existing character set standard and compiles, do not need to carry out inlay to the unknown character being present in existing character set standard volume, and only have the unknown character to not being present in existing character set standard volume to carry out inlay, font can be avoided to repeat, repeat the problem of inlay.
Specifically, server is provided with inlay database, Ye Ji inlay district, and the inlay database of server is used for storing each record increasing inlay newly; Comprise the font style, inlay time, inlay coding, inlay form of a stroke or a combination of strokes outline data etc. of inlay source, inlay; The whole of this inlay lane database storage are non-existent new words in existing character set standard code, once existing character set standard is compiled included this inlay, this inlay will be recorded as from server inlay database invalid or delete, with the uniqueness of Deterministic service device inlay database; Server inlay database does not allow to preserve the character existed in existing character set standard code.
Judge whether unknown character is present in existing character set standard and compiles, and has following three kinds of situations:
Comprise in internal and international character set encoding standard non-existent, and the inlay lane database of server is also non-existent, this was not applied before this inlay is described, needed to carry out inlay; Comprise in internal and international character set encoding standard non-existent, but the inlay lane database of server be exist, this this inlay is described before by other-end application, without the need to carrying out inlay, exclusive for the font of this word data are sent to terminal; Comprise and to exist in internal and international character set encoding standard, but client store character collection do not support, now server inlay database does not need inlay, client upgrades character set.
Server has the database of inlay, all sort according to the inlay characters' property factor, attribute information such as radicals by which characters are arranged in traditional Chinese dictionaries, stroke number, order of strokes observed in calligraphy information that character in attribute factor is had by oneself are the distinctive information of character, after sorting according to this information, in time having a new word to occur, differentiate whether repeat inlay with regard to carrying out very easily.If do not sorted, regardless of the rambling storage of any order, then when discriminating new word whether pleonasm, then need to contrast in whole existing words, very consuming time.
In technique scheme, preferably, described processing unit comprises: coding generation unit, for treating that inlay font distributes unique encodings to described in described inlay district; Map generation unit, for treating the attribute information of inlay font described in basis and describedly treating the unique encodings of inlay font in inlay district, the sequence storage sequence that inlay character is corresponding and mapping relations index value is treated described in formation, to obtain the exclusive data of described inlay font, wherein, described mapping relations index value for described in treat between the unique encodings of inlay font in inlay district and font glyf curved profile data storage location mapping.
In this technical scheme, by treating the attribute information of inlay font and treating that inlay font determines to treat sequence storage sequence and the mapping relations index value of inlay character at the unique encodings in inlay district, owing to treating the attribute information of inlay font and treating that the unique encodings of inlay font in inlay district is all unique, therefore the sequence storage sequence determined and mapping relations index value are also unique, unduplicated, so unique according to its exclusive data of inlay font formed.
Wherein, sequence storage sequence determines the memory location of the exclusive data of inlay font, and mapping relations index value for described in treat between the unique encodings of inlay font in inlay district and font glyf curved profile data storage location mapping, the memory location of font glyf curved profile data can be found out by the unique encodings in inlay district.
In technique scheme, preferably, described processing unit also comprises: extraction unit, treats the individual character figure curve of inlay font described in extraction; Process of fitting treatment unit, described individual character figure curve and the Bezier process of fitting treatment treating inlay font, treat original font style of inlay font described in maintenance, the Bezier profile of matching is stored as the glyf character contour form in character set, form font glyf curved profile data; To described, font converting unit, treats that the font type style of inlay font is changed, to meet the requirement of default font type style.
In this technical scheme, by the font glyf curved profile data of formation are stored in binary form, form the exclusive data of inlay district font, the exclusive data of font of each inlay all treat according to each the collating sequence that secondary characters is corresponding, determine the sequencing that stores and physical location, the bridge between inlay coding and actual storage locations is map index value (inlay encode and the mapping relations of actual storage locations).
Often increase a new inlay, inlay district coding adds one successively in existing inlay basis of coding, after but the actual storage locations of inlay font glyf curved profile data then sorts according to each inlay characters' property information, be inserted into corresponding memory block, so that according to sort by, improve the access speed of usage degree inlay frequently.Now, map index value (mapping relations of inlay coding and actual storage locations) adjusts thereupon, to reach the most rational index assignment, access speed lifting, but inlay district coding can not adjust thereupon.Adopt this kind of mode can reasonable distribution storage space, make the word that ranking factor is forward, with first simple rear complicated principle, before simple inlay font is stored in, and inlay familiar in shape, the order of strokes observed in calligraphy is similar can come together, the convenient inlay differentiated fast from inlay district with or without repeating, the similar font data from inlay district required for rapid extraction user, thus the efficiency significantly improving retrieval and extract.
Wherein, in order to meet the needs of other font type styles, also need the original font style amendment of extracting to be transformed to other multiple font styles, as the Song typeface, black matrix, regular script etc., but be still same inlay, implication is identical, only font type, style difference; The inlay of other styles, still glyf character contour form is stored as, form is three times or secondary Bezier data of binary mode, and each inlay just defines the inlay data of the different-styles such as acquiescence original handwriting style, Song typeface style, black matrix style, regular script style simultaneously.
Due to each inlay before, all be assigned with unique inlay district coding, in conjunction with the outline data (i.e. the exclusive data of font) of the form of a stroke or a combination of strokes of the Bezier scale-of-two glyf word after each inlay matching, then according to each the unique inlay district coding formed, store the corresponding Bezier scale-of-two glyf character contour data (i.e. the exclusive data of font) treating secondary characters in the corresponding position in User Defined district respectively, material is thus formed the inlay font file that inlay district coding is corresponding with the exclusive data of font; Namely inlay font file only containing an inlay coding and the exclusive data of inlay font, also can comprise multiple inlay coding and the exclusive data of inlay font, but not allow empty inlay character library to exist; The one_to_one corresponding that each inlay coding is unique with inlay font, does not allow one-to-many or many-to-one situation to occur.
According to a third aspect of the invention we, propose a kind of inlay method, comprising: receive be not present in unknown character that store character concentrates time, generate inlay request sequence, and described inlay request sequence be sent to server; Receive the inlay font exclusive data corresponding with described unknown character from described server; According to the exclusive data of described inlay font received, the described unknown character of normal display.
In this technical scheme, by sending inlay request sequence and receiving the exclusive data of inlay font, the normal display of unknown character can be realized, the easy problem solving terminal and can not show when receiving and not being present in unknown character that store character concentrates, in PC computer, carry out inlay with prior art, and copy in terminal or download, replace and compare, method is easy, improve response speed, reduce the use difficulty that terminal increases inlay symbol newly.
Wherein, because unknown character cannot normally show in the terminal, the deserted word that therefore cannot be able to be shown by present terminal by form that is hand-written or that take pictures is made into picture, in conjunction with other solicited messages, sends inlay request sequence to server.
In technique scheme, preferably, extract the font of described unknown character, sequence number, font type, character attibute information, to generate described inlay request sequence.
In this technical scheme, inlay request sequence should comprise the full detail of unknown character, to the identification of unknown character and identification.Specifically, inlay request sequence, comprises the request sequence of the font (graphic form) of unknown character, sequence number, font type information (font style), character attibute information.
Because unknown character does not all exist in existing character set encoding standard, therefore unknown character does not now have character code, only has the sequence number of ascending order or descending; Font type refers to the type of font, as handwritten form (referring to the acquiescence handwriting style of unknown character picture), the Song typeface, black matrix, regular script etc., refers to that the font type of inlay font after inlay is any; Character attibute information refers to the attribute of the character self such as frequency of utilization, radicals by which characters are arranged in traditional Chinese dictionaries information, order of strokes observed in calligraphy information, phonetic treated inlay and accord with, and character attibute information can be one, also can multiple combinations of attributes, but does not allow null attribute; Inlay request sequence can comprise the inlay request of single unknown character, also can comprise the inlay request of multiple unknown character; Inlay request both can comprise the request of single font type, also can comprise the request of multiple font type.
In technique scheme, preferably, after receiving the exclusive data of described inlay font, resolve the exclusive data of described inlay font, obtain the unique encodings corresponding with described unknown character, font type style and mapping relations index value, and be stored as local character set; Described local character set is associated with described terminal store character collection, to make described local character set as the additional character collection of described terminal store character collection; All additional character collection of store character collection and the described collection of store character described in searching, to show described unknown character.
In this technical scheme, by the exclusive Data Analysis of the inlay received font is stored as local character set, and the local character set stored is associated with the character set stored in terminal, make local character set as the additional character collection of terminal store character collection, without the need to changing the character set that terminal has stored, still original character set stored is used, can not destroy, increase, reduce the file of terminal store character collection, namely any physical operations is not done to terminal store character collection, ensure that integrality, the stability of terminal store character collection.
Wherein, association, after the server inlay font data received is stored as local character set, associates with terminal store character collection, forms the corresponding relation of master-additional character collection.When terminal has multiple collection of store character, the local character set of a server downloaded stored, can allow to be associated with on terminal multiple store character collection as additional character collection; After carry out repeatedly inlay from server, define multiple local character set, multiple local character set can be associated with one, terminal on store character collection simultaneously, also can be associated with on terminal multiple store character collection simultaneously.
Certainly, the multiple auxiliary local character set repeatedly formed after inlay, both can merging treatment in this locality, also can exist with the distributed form of fragment file, no matter local character set is merging treatment or distributed form exists, and does not all affect the operation of master-auxiliary character set relation mechanism.
It should be noted that, when the multiple auxiliary local character set formed after repeatedly inlay, under the prerequisite of same font type style, the inlay repeated should do not had each other, also there will not be the situation that confusion of encoding each other, font repeat, namely, under the prerequisite of same font type style, the inlay coding in each local character set, inlay font are all unique, unduplicated; Map index value in each local character set is also unique for each local character set, because index value is only effective in this local character set.
In technique scheme, preferably, also comprise: obtain font glyf curved profile data according to described mapping relations index value, and depict Bezier profile and outline of straight line, to form the curved profile of described unknown character according to font glyf curved profile data.
In this technical scheme, the unique encodings of the unknown character gone out by the exclusive Data Analysis of inlay font and mapping relations index value can obtain unknown character font glyf curved profile data, and font scale-of-two glyf outline data mainly forms binary data by coordinate points and zone bit; By these coordinate points and zone bit, Bezier profile and outline of straight line can be drawn, thus the curved profile of final composition font, after these Contour filling, namely obtain the Chinese character that we see.
According to a forth aspect of the invention, propose a kind of inlay method, comprising: the inlay request sequence receiving self terminal; Data preparation and haracter pattern rule process are carried out to each unknown character in described inlay request sequence, to obtain the attribute information of each described unknown character; Generate the corresponding exclusive data of inlay font according to the attribute information of each described unknown character, and the exclusive data of described inlay font are sent to described terminal.
In this technical scheme, according to the attribute information of unknown character in the inlay request sequence received, generate the corresponding exclusive data of inlay font, and exclusive for inlay font data are sent to terminal, can with being intended to compared with User Defined district inlay with user in prior art, unify inlay by server, the unified of inlay font can be realized and store and distribution, avoid the problem that font repeats, repeats inlay.
In technique scheme, preferably, before data preparation and haracter pattern rule process are carried out to each unknown character in described inlay request sequence, judge whether the font of described unknown character is present in existing character set standard and compiles according to the information that described inlay request sequence comprises; When judging that the font of described unknown character is present in existing character set standard volume, exclusive for the font of described unknown character data are sent to described terminal, when judging that the font of described unknown character is not present in existing character set standard volume, the font of described unknown character is defined as treating inlay font, is stored in inlay district.
In this technical scheme, by judging whether unknown character is present in existing character set standard and compiles, do not need to carry out inlay to the unknown character being present in existing character set standard volume, and only have the unknown character to not being present in existing character set standard volume to carry out inlay, font can be avoided to repeat, repeat the problem of inlay.
Specifically, server is provided with inlay database, Ye Ji inlay district, and the inlay database of server is used for storing each record increasing inlay newly; Comprise the font style, inlay time, inlay coding, inlay form of a stroke or a combination of strokes outline data etc. of inlay source, inlay; The whole of this inlay lane database storage are non-existent new words in existing character set standard code, once existing character set standard is compiled included this inlay, this inlay will be recorded as from server inlay database invalid or delete, with the uniqueness of Deterministic service device inlay database; Server inlay database does not allow to preserve the character existed in existing character set standard code.
Judge whether unknown character is present in existing character set standard and compiles, and has following three kinds of situations:
Comprise in internal and international character set encoding standard non-existent, and the inlay lane database of server is also non-existent, this was not applied before this inlay is described, needed to carry out inlay; Comprise in internal and international character set encoding standard non-existent, but the inlay lane database of server be exist, this this inlay is described before by other-end application, without the need to carrying out inlay, exclusive for the font of this word data are sent to terminal; Comprise and to exist in internal and international character set encoding standard, but client store character collection do not support, now server inlay database does not need inlay, client upgrades character set.
Server has the database of inlay, all sort according to the inlay characters' property factor, attribute information such as radicals by which characters are arranged in traditional Chinese dictionaries, stroke number, order of strokes observed in calligraphy information that character in attribute factor is had by oneself are the distinctive information of character, after sorting according to this information, in time having a new word to occur, differentiate whether repeat inlay with regard to carrying out very easily.If do not sorted, regardless of the rambling storage of any order, then when discriminating new word whether pleonasm, then need to contrast in whole existing words, very consuming time.
In technique scheme, preferably, in described inlay district, treat that inlay font distributes unique encodings to described; The attribute information treating inlay font according to described and describedly treat the unique encodings of inlay font in inlay district, the sequence storage sequence that inlay character is corresponding and mapping relations index value is treated described in formation, to obtain the exclusive data of described inlay font, wherein, described mapping relations index value for described in treat between the unique encodings of inlay font in inlay district and font glyf curved profile data storage location mapping.
In this technical scheme, by treating the attribute information of inlay font and treating that inlay font determines to treat sequence storage sequence and the mapping relations index value of inlay character at the unique encodings in inlay district, owing to treating the attribute information of inlay font and treating that the unique encodings of inlay font in inlay district is all unique, therefore the sequence storage sequence determined and mapping relations index value are also unique, unduplicated, so unique according to its exclusive data of inlay font formed.
Wherein, sequence storage sequence determines the memory location of the exclusive data of inlay font, and mapping relations index value for described in treat between the unique encodings of inlay font in inlay district and font glyf curved profile data storage location mapping, the memory location of font glyf curved profile data can be found out by the unique encodings in inlay district.
In technique scheme, preferably, the individual character figure curve of inlay font is treated described in extraction; Described individual character figure curve and the Bezier process of fitting treatment treating inlay font, original font style of inlay font is treated described in maintenance, the Bezier profile of matching is stored as the glyf character contour form in character set, forms font glyf curved profile data; Treat that the font type style of inlay font is changed to described, to meet the requirement of default font type style.
In this technical scheme, by the font glyf curved profile data of formation are stored in binary form, form the exclusive data of inlay district font, the exclusive data of font of each inlay all treat according to each the collating sequence that secondary characters is corresponding, determine the sequencing that stores and physical location, the bridge between inlay coding and actual storage locations is map index value (inlay encode and the mapping relations of actual storage locations).
Often increase a new inlay, inlay district coding adds one successively in existing inlay basis of coding, after but the actual storage locations of inlay font glyf curved profile data then sorts according to each inlay characters' property information, be inserted into corresponding memory block, so that according to sort by, improve the access speed of usage degree inlay frequently.Now, map index value (mapping relations of inlay coding and actual storage locations) adjusts thereupon, to reach the most rational index assignment, access speed lifting, but inlay district coding can not adjust thereupon.Adopt this kind of mode can reasonable distribution storage space, make the word that ranking factor is forward, with first simple rear complicated principle, before simple inlay font is stored in, and inlay familiar in shape, the order of strokes observed in calligraphy is similar can come together, the convenient inlay differentiated fast from inlay district with or without repeating, the similar font data from inlay district required for rapid extraction user, thus the efficiency significantly improving retrieval and extract.
Wherein, in order to meet the needs of other font type styles, also need the original font style amendment of extracting to be transformed to other multiple font styles, as the Song typeface, black matrix, regular script etc., but be still same inlay, implication is identical, only font type, style difference; The inlay of other styles, still glyf character contour form is stored as, form is three times or secondary Bezier data of binary mode, and each inlay just defines the inlay data of the different-styles such as acquiescence original handwriting style, Song typeface style, black matrix style, regular script style simultaneously.
Due to each inlay before, all be assigned with unique inlay district coding, in conjunction with the outline data (i.e. the exclusive data of font) of the form of a stroke or a combination of strokes of the Bezier scale-of-two glyf word after each inlay matching, then according to each the unique inlay district coding formed, store the corresponding Bezier scale-of-two glyf character contour data (i.e. the exclusive data of font) treating secondary characters in the corresponding position in User Defined district respectively, material is thus formed the inlay font file that inlay district coding is corresponding with the exclusive data of font; Namely inlay font file only containing an inlay coding and the exclusive data of inlay font, also can comprise multiple inlay coding and the exclusive data of inlay font, but not allow empty inlay character library to exist; The one_to_one corresponding that each inlay coding is unique with inlay font, does not allow one-to-many or many-to-one situation to occur.
Accompanying drawing explanation
Fig. 1 shows the structural representation of terminal according to an embodiment of the invention;
Fig. 2 shows the structural representation of server according to an embodiment of the invention;
Fig. 3 shows the schematic flow diagram of inlay method according to an embodiment of the invention;
Fig. 4 shows the schematic flow diagram of inlay method according to another embodiment of the present invention;
Fig. 5 shows the schematic flow diagram of inlay method according to still another embodiment of the invention;
Fig. 6 shows the schematic diagram of font type style;
Fig. 7 shows the schematic diagram of Binary profile font glyf curved profile and filling according to an embodiment of the invention;
Fig. 8 shows the schematic diagram of new according to an embodiment of the invention word font;
Fig. 9 shows the schematic diagram of new according to an embodiment of the invention word font primitivism Bezier;
Figure 10 shows the schematic diagram of new according to an embodiment of the invention word font Song typeface style Bezier;
Figure 11 shows the schematic diagram that associates with inlay raw font style of store character collection of terminal according to an embodiment of the invention;
Figure 12 shows the schematic diagram that associates with inlay Song typeface font style with inlay raw font style of store character collection of terminal according to an embodiment of the invention.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention, but the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following public specific embodiment.
Fig. 1 shows the structural representation of terminal according to an embodiment of the invention.
As shown in Figure 1, terminal 100 according to an embodiment of the invention, comprising: request generation unit 102, for receive be not present in unknown character that store character concentrates time, generate inlay request sequence; Interactive unit 104, is sent to server by described inlay request sequence, and receives the inlay font exclusive data corresponding with described unknown character from described server; Display unit 106, according to the exclusive data of described inlay font received, the described unknown character of normal display.
In this technical scheme, by sending inlay request sequence and receiving the exclusive data of inlay font, the normal display of unknown character can be realized, the easy problem solving terminal 100 and can not show when receiving and not being present in unknown character that store character concentrates, in PC computer, carry out inlay with prior art, and copy in terminal 100 or download, replace and compare, method is easy, improve response speed, reduce the use difficulty that terminal 100 increases inlay symbol newly.
Wherein, because unknown character cannot normally show in terminal 100, the deserted word that therefore cannot be able to be shown by present terminal 100 by form that is hand-written or that take pictures is made into picture, in conjunction with other solicited messages, sends inlay request sequence to server.
In technique scheme, preferably, described request generation unit 102 comprises: extraction unit 1022, for extracting font, sequence number, font type, the character attibute information of described unknown character, to generate described inlay request sequence.
In this technical scheme, inlay request sequence should comprise the full detail of unknown character, to the identification of unknown character and identification.Specifically, inlay request sequence, comprises the request sequence of the font (graphic form) of unknown character, sequence number, font type information (font style), character attibute information.
Because unknown character does not all exist in existing character set encoding standard, therefore unknown character does not now have character code, only has the sequence number of ascending order or descending; Font type refers to the type of font, as handwritten form (referring to the acquiescence handwriting style of unknown character picture), the Song typeface, black matrix, regular script etc. (as shown in Figure 6, Fig. 6 shows the schematic diagram of font type style), refer to that the font type of inlay font after inlay is any; Character attibute information refers to the attribute of the character self such as frequency of utilization, radicals by which characters are arranged in traditional Chinese dictionaries information, order of strokes observed in calligraphy information, phonetic treated inlay and accord with, and character attibute information can be one, also can multiple combinations of attributes, but does not allow null attribute; Inlay request sequence can comprise the inlay request of single unknown character, also can comprise the inlay request of multiple unknown character; Inlay request both can comprise the request of single font type, also can comprise the request of multiple font type.
In technique scheme, preferably, described display unit 106 comprises: resolution unit 1062, after receiving the exclusive data of described inlay font, resolve the exclusive data of described inlay font, obtain the unique encodings corresponding with described unknown character, font type style and mapping relations index value, and be stored as local character set; Associative cell 1064, associates described local character set with described terminal 100 store character collection, to make described local character set as the additional character collection of described terminal 100 store character collection; Search unit 1066, all additional character collection of store character collection and the described collection of store character described in searching, to show described unknown character.
In this technical scheme, by the exclusive Data Analysis of the inlay received font is stored as local character set, and the local character set stored is associated with the character set stored in terminal 100, make local character set as the additional character collection of terminal 100 store character collection, without the need to changing the character set that terminal 100 has stored, still original character set stored is used, can not destroy, increase, reduce the file of terminal 100 store character collection, namely any physical operations is not done to terminal 100 store character collection, ensure that the integrality of terminal 100 store character collection, stability.
Wherein, association, after the server inlay font data received is stored as local character set, associates with terminal 100 store character collection, forms the corresponding relation of master-additional character collection.When terminal 100 has multiple collection of store character, the local character set of a server downloaded stored, can allow to be associated with on the individual store character collection of terminal more than 100 as additional character collection; After carry out repeatedly inlay from server, define multiple local character set, multiple local character set can be associated with 100 1, terminal on store character collection simultaneously, also can be associated with more than 100, terminal on store character collection simultaneously.
Certainly, the multiple auxiliary local character set repeatedly formed after inlay, both can merging treatment in this locality, also can exist with the distributed form of fragment file, no matter local character set is merging treatment or distributed form exists, and does not all affect the operation of master-auxiliary character set relation mechanism.
It should be noted that, when the multiple auxiliary local character set formed after repeatedly inlay, under the prerequisite of same font type style, the inlay repeated should do not had each other, also there will not be the situation that confusion of encoding each other, font repeat, namely, under the prerequisite of same font type style, the inlay coding in each local character set, inlay font are all unique, unduplicated; Map index value in each local character set is also unique for each local character set, because index value is only effective in this local character set.
In technique scheme, preferably, described resolution unit 1062 is also for obtaining font glyf curved profile data according to described mapping relations index value, and depict Bezier profile and outline of straight line, to form the curved profile of described unknown character according to font glyf curved profile data.
In this technical scheme, the unique encodings of the unknown character gone out by the exclusive Data Analysis of inlay font and mapping relations index value can obtain unknown character font glyf curved profile data, and font scale-of-two glyf outline data mainly forms binary data by coordinate points and zone bit; By these coordinate points and zone bit, Bezier profile and outline of straight line can be drawn, thus the curved profile of final composition font, after these Contour filling, namely the Chinese character that we see is obtained, specifically be described for Fig. 7, Fig. 7 shows the schematic diagram of Binary profile font glyf curved profile and filling according to an embodiment of the invention.
As shown in Figure 7, the glyf curve negotiating coordinate points of the Binary profile font of " forever " word and zone bit can demonstrate the font of " forever " word, after these Contour filling, can obtain Chinese character " forever ".
Fig. 2 shows the structural representation of server according to an embodiment of the invention.
As shown in Figure 2, server 200 according to an embodiment of the invention, comprising: interactive unit 202, receive the inlay request sequence of self terminal, and the exclusive data of inlay font generated by processing unit 204 is sent to described terminal; Described processing unit 204, data preparation and haracter pattern rule process are carried out to each unknown character in described inlay request sequence, to obtain the attribute information of each described unknown character, generate the corresponding exclusive data of inlay font according to the attribute information of each described unknown character.
In this technical scheme, according to the attribute information of unknown character in the inlay request sequence received, generate the corresponding exclusive data of inlay font, and exclusive for inlay font data are sent to terminal, can with being intended to compared with User Defined district inlay with user in prior art, by the unified inlay of server 200, the unified of inlay font can be realized and store and distribution, avoid the problem that font repeats, repeats inlay.
In technique scheme, preferably, also comprise: judging unit 206, for before carrying out data preparation and haracter pattern rule process to each unknown character in described inlay request sequence, judge whether the font of described unknown character is present in existing character set standard and compiles according to the information that described inlay request sequence comprises, when judging that the font of described unknown character is present in existing character set standard volume, exclusive for the font of described unknown character data are sent to described terminal, when judging that the font of described unknown character is not present in existing character set standard volume, the font of described unknown character is defined as treating inlay font, be stored in inlay district.
In this technical scheme, by judging whether unknown character is present in existing character set standard and compiles, do not need to carry out inlay to the unknown character being present in existing character set standard volume, and only have the unknown character to not being present in existing character set standard volume to carry out inlay, font can be avoided to repeat, repeat the problem of inlay.
Specifically, server 200 is provided with inlay database, Ye Ji inlay district, and the inlay database of server 200 is used for storing each record increasing inlay newly; Comprise the font style, inlay time, inlay coding, inlay form of a stroke or a combination of strokes outline data etc. of inlay source, inlay; The whole of this inlay lane database storage are non-existent new words in existing character set standard code, once existing character set standard is compiled included this inlay, this inlay will be recorded as from server 200 inlay database invalid or delete, with the uniqueness of Deterministic service device 200 inlay database; Server 200 inlay database does not allow to preserve the character existed in existing character set standard code.
Judge whether unknown character is present in existing character set standard and compiles, and has following three kinds of situations:
Comprise in internal and international character set encoding standard non-existent, and the inlay lane database of server 200 is also non-existent, this was not applied before this inlay is described, needed to carry out inlay; Comprise in internal and international character set encoding standard non-existent, but the inlay lane database of server 200 be exist, this this inlay is described before by other-end application, without the need to carrying out inlay, exclusive for the font of this word data are sent to terminal; Comprise and existing in internal and international character set encoding standard, but client store character collection do not support, now server 200 inlay database does not need inlay, client upgrades character set.
Server 200 has the database of inlay, all sort according to the inlay characters' property factor, attribute information such as radicals by which characters are arranged in traditional Chinese dictionaries, stroke number, order of strokes observed in calligraphy information that character in attribute factor is had by oneself are the distinctive information of character, after sorting according to this information, in time having a new word to occur, differentiate whether repeat inlay with regard to carrying out very easily.If do not sorted, regardless of the rambling storage of any order, then when discriminating new word whether pleonasm, then need to contrast in whole existing words, very consuming time.
In technique scheme, preferably, described processing unit 204 comprises: coding generation unit 204A, for treating that inlay font distributes unique encodings to described in described inlay district; Map generation unit 204B, for treating the attribute information of inlay font described in basis and describedly treating the unique encodings of inlay font in inlay district, the sequence storage sequence that inlay character is corresponding and mapping relations index value is treated described in formation, to obtain the exclusive data of described inlay font, wherein, described mapping relations index value for described in treat between the unique encodings of inlay font in inlay district and font glyf curved profile data storage location mapping.
In this technical scheme, by treating the attribute information of inlay font and treating that inlay font determines to treat sequence storage sequence and the mapping relations index value of inlay character at the unique encodings in inlay district, owing to treating the attribute information of inlay font and treating that the unique encodings of inlay font in inlay district is all unique, therefore the sequence storage sequence determined and mapping relations index value are also unique, unduplicated, so unique according to its exclusive data of inlay font formed.
Wherein, sequence storage sequence determines the memory location of the exclusive data of inlay font, and mapping relations index value for described in treat between the unique encodings of inlay font in inlay district and font glyf curved profile data storage location mapping, the memory location of font glyf curved profile data can be found out by the unique encodings in inlay district.
In technique scheme, preferably, described processing unit 204 also comprises: extraction unit 204C, treats the individual character figure curve of inlay font described in extraction; Process of fitting treatment unit 204D, described individual character figure curve and the Bezier process of fitting treatment treating inlay font, treat original font style of inlay font described in maintenance, the Bezier profile of matching is stored as the glyf character contour form in character set, form font glyf curved profile data; To described, font converting unit 204E, treats that the font type style of inlay font is changed, to meet the requirement of default font type style.
In this technical scheme, by the font glyf curved profile data of formation are stored in binary form, form the exclusive data of inlay district font, the exclusive data of font of each inlay all treat according to each the collating sequence that secondary characters is corresponding, determine the sequencing that stores and physical location, the bridge between inlay coding and actual storage locations is map index value (inlay encode and the mapping relations of actual storage locations).
Often increase a new inlay, inlay district coding adds one successively in existing inlay basis of coding, after but the actual storage locations of inlay font glyf curved profile data then sorts according to each inlay characters' property information, be inserted into corresponding memory block, so that according to sort by, improve the access speed of usage degree inlay frequently.Now, map index value (mapping relations of inlay coding and actual storage locations) adjusts thereupon, to reach the most rational index assignment, access speed lifting, but inlay district coding can not adjust thereupon.Adopt this kind of mode can reasonable distribution storage space, make the word that ranking factor is forward, with first simple rear complicated principle, before simple inlay font is stored in, and inlay familiar in shape, the order of strokes observed in calligraphy is similar can come together, the convenient inlay differentiated fast from inlay district with or without repeating, the similar font data from inlay district required for rapid extraction user, thus the efficiency significantly improving retrieval and extract.
Wherein, in order to meet the needs of other font type styles, also need the original font style amendment of extracting to be transformed to other multiple font styles, as the Song typeface, black matrix, regular script etc., but be still same inlay, implication is identical, only font type, style difference; The inlay of other styles, still glyf character contour form is stored as, form is three times or secondary Bezier data of binary mode, and each inlay just defines the inlay data of the different-styles such as acquiescence original handwriting style, Song typeface style, black matrix style, regular script style simultaneously.
Due to each inlay before, all be assigned with unique inlay district coding, in conjunction with the outline data (i.e. the exclusive data of font) of the form of a stroke or a combination of strokes of the Bezier scale-of-two glyf word after each inlay matching, then according to each the unique inlay district coding formed, store the corresponding Bezier scale-of-two glyf character contour data (i.e. the exclusive data of font) treating secondary characters in the corresponding position in User Defined district respectively, material is thus formed the inlay font file that inlay district coding is corresponding with the exclusive data of font; Namely inlay font file only containing an inlay coding and the exclusive data of inlay font, also can comprise multiple inlay coding and the exclusive data of inlay font, but not allow empty inlay character library to exist; The one_to_one corresponding that each inlay coding is unique with inlay font, does not allow one-to-many or many-to-one situation to occur.
Fig. 3 shows the schematic flow diagram of inlay method according to an embodiment of the invention.
As shown in Figure 3, inlay method according to an embodiment of the invention, comprising: step 302, receive be not present in unknown character that store character concentrates time, generate inlay request sequence, and described inlay request sequence be sent to server; Step 304, receives the inlay font exclusive data corresponding with described unknown character from described server; Step 306, according to the exclusive data of described inlay font received, the described unknown character of normal display.
In this technical scheme, by sending inlay request sequence and receiving the exclusive data of inlay font, the normal display of unknown character can be realized, the easy problem solving terminal and can not show when receiving and not being present in unknown character that store character concentrates, in PC computer, carry out inlay with prior art, and copy in terminal or download, replace and compare, method is easy, improve response speed, reduce the use difficulty that terminal increases inlay symbol newly.
Wherein, because unknown character cannot normally show in the terminal, the deserted word that therefore cannot be able to be shown by present terminal by form that is hand-written or that take pictures is made into picture, in conjunction with other solicited messages, sends inlay request sequence to server.
In technique scheme, preferably, extract the font of described unknown character, sequence number, font type, character attibute information, to generate described inlay request sequence.
In this technical scheme, inlay request sequence should comprise the full detail of unknown character, to the identification of unknown character and identification.Specifically, inlay request sequence, comprises the request sequence of the font (graphic form) of unknown character, sequence number, font type information (font style), character attibute information.
Because unknown character does not all exist in existing character set encoding standard, therefore unknown character does not now have character code, only has the sequence number of ascending order or descending; Font type refers to the type of font, as handwritten form (referring to the acquiescence handwriting style of unknown character picture), the Song typeface, black matrix, regular script etc., refers to that the font type of inlay font after inlay is any; Character attibute information refers to the attribute of the character self such as frequency of utilization, radicals by which characters are arranged in traditional Chinese dictionaries information, order of strokes observed in calligraphy information, phonetic treated inlay and accord with, and character attibute information can be one, also can multiple combinations of attributes, but does not allow null attribute; Inlay request sequence can comprise the inlay request of single unknown character, also can comprise the inlay request of multiple unknown character; Inlay request both can comprise the request of single font type, also can comprise the request of multiple font type.
In technique scheme, preferably, after receiving the exclusive data of described inlay font, resolve the exclusive data of described inlay font, obtain the unique encodings corresponding with described unknown character, font type style and mapping relations index value, and be stored as local character set; Described local character set is associated with described terminal store character collection, to make described local character set as the additional character collection of described terminal store character collection; All additional character collection of store character collection and the described collection of store character described in searching, to show described unknown character.
In this technical scheme, by the exclusive Data Analysis of the inlay received font is stored as local character set, and the local character set stored is associated with the character set stored in terminal, make local character set as the additional character collection of terminal store character collection, without the need to changing the character set that terminal has stored, still original character set stored is used, can not destroy, increase, reduce the file of terminal store character collection, namely any physical operations is not done to terminal store character collection, ensure that integrality, the stability of terminal store character collection.
Wherein, association, after the server inlay font data received is stored as local character set, associates with terminal store character collection, forms the corresponding relation of master-additional character collection.When terminal has multiple collection of store character, the local character set of a server downloaded stored, can allow to be associated with on terminal multiple store character collection as additional character collection; After carry out repeatedly inlay from server, define multiple local character set, multiple local character set can be associated with one, terminal on store character collection simultaneously, also can be associated with on terminal multiple store character collection simultaneously.
Certainly, the multiple auxiliary local character set repeatedly formed after inlay, both can merging treatment in this locality, also can exist with the distributed form of fragment file, no matter local character set is merging treatment or distributed form exists, and does not all affect the operation of master-auxiliary character set relation mechanism.
It should be noted that, when the multiple auxiliary local character set formed after repeatedly inlay, under the prerequisite of same font type style, the inlay repeated should do not had each other, also there will not be the situation that confusion of encoding each other, font repeat, namely, under the prerequisite of same font type style, the inlay coding in each local character set, inlay font are all unique, unduplicated; Map index value in each local character set is also unique for each local character set, because index value is only effective in this local character set.
In technique scheme, preferably, also comprise: obtain font glyf curved profile data according to described mapping relations index value, and depict Bezier profile and outline of straight line, to form the curved profile of described unknown character according to font glyf curved profile data.
In this technical scheme, the unique encodings of the unknown character gone out by the exclusive Data Analysis of inlay font and mapping relations index value can obtain unknown character font glyf curved profile data, and font scale-of-two glyf outline data mainly forms binary data by coordinate points and zone bit; By these coordinate points and zone bit, Bezier profile and outline of straight line can be drawn, thus the curved profile of final composition font, after these Contour filling, namely obtain the Chinese character that we see.
Fig. 4 shows the schematic flow diagram of inlay method according to another embodiment of the present invention.
As shown in Figure 4, inlay method according to another embodiment of the present invention, comprising: step 402, receives the inlay request sequence of self terminal; Step 404, carries out data preparation and haracter pattern rule process to each unknown character in described inlay request sequence, to obtain the attribute information of each described unknown character; Step 406, generates the corresponding exclusive data of inlay font according to the attribute information of each described unknown character, and the exclusive data of described inlay font are sent to described terminal.
In this technical scheme, according to the attribute information of unknown character in the inlay request sequence received, generate the corresponding exclusive data of inlay font, and exclusive for inlay font data are sent to terminal, can with being intended to compared with User Defined district inlay with user in prior art, unify inlay by server, the unified of inlay font can be realized and store and distribution, avoid the problem that font repeats, repeats inlay.
In technique scheme, preferably, before data preparation and haracter pattern rule process are carried out to each unknown character in described inlay request sequence, judge whether the font of described unknown character is present in existing character set standard and compiles according to the information that described inlay request sequence comprises; When judging that the font of described unknown character is present in existing character set standard volume, exclusive for the font of described unknown character data are sent to described terminal, when judging that the font of described unknown character is not present in existing character set standard volume, the font of described unknown character is defined as treating inlay font, is stored in inlay district.
In this technical scheme, by judging whether unknown character is present in existing character set standard and compiles, do not need to carry out inlay to the unknown character being present in existing character set standard volume, and only have the unknown character to not being present in existing character set standard volume to carry out inlay, font can be avoided to repeat, repeat the problem of inlay.
Specifically, server is provided with inlay database, Ye Ji inlay district, and the inlay database of server is used for storing each record increasing inlay newly; Comprise the font style, inlay time, inlay coding, inlay form of a stroke or a combination of strokes outline data etc. of inlay source, inlay; The whole of this inlay lane database storage are non-existent new words in existing character set standard code, once existing character set standard is compiled included this inlay, this inlay will be recorded as from server inlay database invalid or delete, with the uniqueness of Deterministic service device inlay database; Server inlay database does not allow to preserve the character existed in existing character set standard code.
Judge whether unknown character is present in existing character set standard and compiles, and has following three kinds of situations:
Comprise in internal and international character set encoding standard non-existent, and the inlay lane database of server is also non-existent, this was not applied before this inlay is described, needed to carry out inlay; Comprise in internal and international character set encoding standard non-existent, but the inlay lane database of server be exist, this this inlay is described before by other-end application, without the need to carrying out inlay, exclusive for the font of this word data are sent to terminal; Comprise and to exist in internal and international character set encoding standard, but client store character collection do not support, now server inlay database does not need inlay, client upgrades character set.
Server has the database of inlay, all sort according to the inlay characters' property factor, attribute information such as radicals by which characters are arranged in traditional Chinese dictionaries, stroke number, order of strokes observed in calligraphy information that character in attribute factor is had by oneself are the distinctive information of character, after sorting according to this information, in time having a new word to occur, differentiate whether repeat inlay with regard to carrying out very easily.If do not sorted, regardless of the rambling storage of any order, then when discriminating new word whether pleonasm, then need to contrast in whole existing words, very consuming time.
In technique scheme, preferably, in described inlay district, treat that inlay font distributes unique encodings to described; The attribute information treating inlay font according to described and describedly treat the unique encodings of inlay font in inlay district, the sequence storage sequence that inlay character is corresponding and mapping relations index value is treated described in formation, to obtain the exclusive data of described inlay font, wherein, described mapping relations index value for described in treat between the unique encodings of inlay font in inlay district and font glyf curved profile data storage location mapping.
In this technical scheme, by treating the attribute information of inlay font and treating that inlay font determines to treat sequence storage sequence and the mapping relations index value of inlay character at the unique encodings in inlay district, owing to treating the attribute information of inlay font and treating that the unique encodings of inlay font in inlay district is all unique, therefore the sequence storage sequence determined and mapping relations index value are also unique, unduplicated, so unique according to its exclusive data of inlay font formed.
Wherein, sequence storage sequence determines the memory location of the exclusive data of inlay font, and mapping relations index value for described in treat between the unique encodings of inlay font in inlay district and font glyf curved profile data storage location mapping, the memory location of font glyf curved profile data can be found out by the unique encodings in inlay district.
In technique scheme, preferably, the individual character figure curve of inlay font is treated described in extraction; Described individual character figure curve and the Bezier process of fitting treatment treating inlay font, original font style of inlay font is treated described in maintenance, the Bezier profile of matching is stored as the glyf character contour form in character set, forms font glyf curved profile data; Treat that the font type style of inlay font is changed to described, to meet the requirement of default font type style.
In this technical scheme, by the font glyf curved profile data of formation are stored in binary form, form the exclusive data of inlay district font, the exclusive data of font of each inlay all treat according to each the collating sequence that secondary characters is corresponding, determine the sequencing that stores and physical location, the bridge between inlay coding and actual storage locations is map index value (inlay encode and the mapping relations of actual storage locations).
Often increase a new inlay, inlay district coding adds one successively in existing inlay basis of coding, after but the actual storage locations of inlay font glyf curved profile data then sorts according to each inlay characters' property information, be inserted into corresponding memory block, so that according to sort by, improve the access speed of usage degree inlay frequently.Now, map index value (mapping relations of inlay coding and actual storage locations) adjusts thereupon, to reach the most rational index assignment, access speed lifting, but inlay district coding can not adjust thereupon.Adopt this kind of mode can reasonable distribution storage space, make the word that ranking factor is forward, with first simple rear complicated principle, before simple inlay font is stored in, and inlay familiar in shape, the order of strokes observed in calligraphy is similar can come together, the convenient inlay differentiated fast from inlay district with or without repeating, the similar font data from inlay district required for rapid extraction user, thus the efficiency significantly improving retrieval and extract.
Wherein, in order to meet the needs of other font type styles, also need the original font style amendment of extracting to be transformed to other multiple font styles, as the Song typeface, black matrix, regular script etc., but be still same inlay, implication is identical, only font type, style difference; The inlay of other styles, still glyf character contour form is stored as, form is three times or secondary Bezier data of binary mode, and each inlay just defines the inlay data of the different-styles such as acquiescence original handwriting style, Song typeface style, black matrix style, regular script style simultaneously.
Due to each inlay before, all be assigned with unique inlay district coding, in conjunction with the outline data (i.e. the exclusive data of font) of the form of a stroke or a combination of strokes of the Bezier scale-of-two glyf word after each inlay matching, then according to each the unique inlay district coding formed, store the corresponding Bezier scale-of-two glyf character contour data (i.e. the exclusive data of font) treating secondary characters in the corresponding position in User Defined district respectively, material is thus formed the inlay font file that inlay district coding is corresponding with the exclusive data of font; Namely inlay font file only containing an inlay coding and the exclusive data of inlay font, also can comprise multiple inlay coding and the exclusive data of inlay font, but not allow empty inlay character library to exist; The one_to_one corresponding that each inlay coding is unique with inlay font, does not allow one-to-many or many-to-one situation to occur.
Fig. 5 shows the schematic flow diagram of inlay method according to still another embodiment of the invention.
As shown in Figure 5, inlay method according to still another embodiment of the invention, comprising:
Step 502, when receiving the unknown character that terminal cannot show, judges that store character has been concentrated and lacks this character, then send inlay request sequence.
Step 504, received server-side inlay application sequence, according to the font type of terminal request, selects corresponding store character collection (character library).
Step 506, analyzes the attribute information of new word in inlay request sequence, determines the memory location of the glyf contour curve of new word.
Step 508, extraction individual character figure curve and Bezier carry out process of fitting treatment, extract the Bezier after matching, in conjunction with the Bezier after the unique encodings of new word in inlay district, map index value and matching, store with binary data form and form the exclusive data of font.
Step 510, imports exclusive for font data into packaged unit, packs.
Step 512, judges whether the exclusive data of font have been extracted, and has extracted and has then performed step 514, otherwise performs step 508.
Step 514, the exclusive data of font are packed after having extracted.
The exclusive data of font after packing are issued to terminal by network by step 516.
Step 518, terminal receives the exclusive data of font of packing, imports unwrapper unit into.
Step 520, terminal unpacks the exclusive data of the font received.
Step 522, saves as local character set by unpacking the unique encodings of generation, map index value and glyf contour curve.
Step 524, sets up master-auxiliary incidence relation by the character set stored in local character set and terminal, can be associated accordingly according to the font of correspondence, such as: the local character set of Song typeface style is associated with the Song typeface character set stored in terminal.
Step 526, uses the master after association-auxiliary character set display unknown character.
The present invention is described in detail below in conjunction with Fig. 8 to Figure 12.
Fig. 8 shows the schematic diagram of new according to an embodiment of the invention word font.
As shown in Figure 8, after cellphone subscriber runs into the deserted word of some names, place name, such as: , the surname in name can be identified in mobile phone: " Lee ", but the name inside None-identified (as shown in Figure 8).
Step 1, terminal (as mobile phone), by hand-written or take pictures, by the deserted word that cannot show in current phone, forms picture , in conjunction with other solicited messages, send inlay request sequence to server end; be a Chinese character, be made up of two " giving " words, for the upper deserted name of residence booklet, I.D., in existing character encoding standard both at home and abroad, all there is not this character; Therefore, cell phone apparatus cannot normally show, typing and this Chinese character of storage.
Form inlay request sequence: 01/ mobile phone imei+001.jpg/ handwritten word+Song typeface/give+tiled configuration: give+give+8+54525452/; Request sequence carries out segmentation attribute information with "/", and the 1st attribute information 01 represents that frequency of utilization belongs to one-level frequency of utilization, uses related frequency; 2nd attribute information " mobile phone imei+001.jpg " formed uniquely indicates, and indicates which request sequence deriving from which mobile phone; Suffix is the filename of new word picture simultaneously; 3rd attribute information " handwritten word+Song typeface " expression needs the inlay font returning handwritten word font style and Song typeface font style; 4th attribute information: " giving+tiled configuration: give+give+8+54525452 " represents the attribute information of this deserted word respectively, " give " and represent radicals by which characters are arranged in traditional Chinese dictionaries, implication " is given " word by two tiled configuration and is formed, total stroke number is 8, order of strokes observed in calligraphy order is 54525452, and implication is folding, point, folding, perpendicular, folding, point, folding, erect; Here horizontal, vertical, left, points, discount are respectively and represent by numeral 1,2,3,4,5; After all becoming numeral be: 01123456789001.jpg001104D5110854525452; Conveniently when after multiple inlay, when server carries out inlay, sort in database, determine inlay coding and the storage location of reality in inlay file so that follow-up.
Step 2, server end is after receiving this inlay request sequence (01123456789001.jpg001104D5110854525452), the solicited message that analysing terminal sends, determine successively further eachly to treat whether inlay picture all needs inlay, and the type of inlay, to compare and attribute information compares through picture, determine that this character does not all exist in existing internal and international character set encoding standard further, and also do not inquire at the inlay lane database of server, determine that this belongs to new word, need to augment.
The inlay code bit of inlay is determined, and once determining, generally must not arbitrarily change, otherwise an inlay can be caused to take the coding code bit in multiple inlay district, causes the waste of coding code bit.Such as, E000, E001, E002, to make amends for one's faults the coding code bit of word, just do not allowed to adjust the existing inlay font in these code bits again, in order to avoid cause the cell-phone customer terminal of these inlaies referenced, the client quoting new code bit with other causes same inlay, and the situation of different code bits occurs.
Server end, by the sequencing of each inlay application, is determined the unique encodings of each inlay font in inlay district successively, is supposed present E000, E001, E002 has made amends for one's faults word, then increase progressively new inlay application later successively, namely E003 increases new inlay " ", the like, when receiving inlay application again and needing inlay, be namely encoded to E004.
Determine " " inlay coding E003 after; also need to determine inlay coding and the correspondence mappings relation of actual storage locations and the actual storage sorting position of this word font glyf outline data; treat secondary characters attribute information (01123456789001.jpg001104D5110854525452) by each here; formed respectively and treat with each the sequence storage sequence (0104D5110854525452; the attribute information of expression frequency of utilization, radicals by which characters are arranged in traditional Chinese dictionaries, structure, stroke number, order of strokes observed in calligraphy information combination) that secondary characters is corresponding, namely " the collating sequence factor after extraction is: (0104D5110854525452), the ranking factor of other existing inlaies and following inlay is also substantially similar, sort for attribute factor, obtain particular location, be inserted in existing inlay sequence storage queue; Simultaneously, record the mapping relations of inlay district coding and font glyf curved profile data storage location, i.e. mapping relations index value, mapping relations index value can according to characters' property information sorting according to carrying out dynamic conditioning, index value is the mapping of inlay coding and font glyf curved profile data storage location, contrasted with index by the unique encodings of inlay, find font glyf curved profile data storage location, unique encodings is determined generally no longer to change afterwards.
Such as: mended new word A, D, E for existing three, these three all do not exist in existing all dictionaries and character encoding standard, and carry out augmenting at server database, so its coding and memory sequencing relation is as shown in table 1 below.
Table 1
And " " the collating sequence factor after extraction is: (0104D5110854525452), then " " the font glyf curved profile data of word just can be stored into the centre of inlay D and the memory location of inlay E, but inlay district coding is increasing progressively below at inlay E; Record mapping relations table is simultaneously, E003----0104D5110854525452----2B.
Mapping relations table before changing has three, and inlay is as follows:
E000----0104D511064525452—1A
E001----0104D511074525452—2A
E002----0104D511086525452—3A
" " after the new inlay of word adds, according to sequence storage sequence, the coding after again changing with store the mapping relations that mapping relations table is four new inlaies:
E000----0104D511064525452—1A
E001----0104D511074525452—2A
E002----0104D511086525452—3A
E003----0104D511084525452—2B
According to the memory location of inlay font, then sequence is: 1A, 2A, 2B, 3A
E000----0104D511064525452—1A
E001----0104D511074525452—2A
E003----0104D511084525452—2B
E002----0104D511086525452—3A
The benefit done like this is, reasonable distribution storage space, make the word that ranking factor is forward, principle complicated after original elder generation is simple, before simple inlay font is stored in, and inlay familiar in shape, the order of strokes observed in calligraphy is similar can come together, the convenient inlay identified from large database concept with or without repeating, extract the similar font data required for user, the efficiency that significantly can improve retrieval and extract.
If do not carry out effective factor sequence process at server end, then, when each retrieval, all to all retrieve one time, waste time and energy very much.
Determining " " inlay coding E003, font glyf curved profile data storage location and mapping relations after, then need to extract further corresponding treat individual character figure in inlay " " in contour curve out; carrying out in Bezier mathematic curve process of fitting treatment process; need to keep the original font style treating in inlay font picture; the Bezier of extraction is stored as the glyf character contour form in character library; as shown in Figure 9; the schematic diagram of new according to an embodiment of the invention word font primitivism Bezier, form is scale-of-two, forms the exclusive data of inlay district font.
By inlay " " font glyf curved profile data, insert be stored into " 2B " position just now determined; The newly-increased glyf curved profile data length of record simultaneously, the edge of convenient differentiation and other inlay font datas.
Now, the inlay font only completing the raw font style of inlay extracts, in order to meet the needs of other font type styles, the original font style amendment of extracting also is needed to be transformed to other multiple font styles, as the Song typeface, black matrix, regular script etc., but be still same inlay, implication is identical, only font type, style difference; The inlay of other styles, is still stored as glyf character contour form, and form is three times or secondary Bezier data of binary mode.
Such as, inlay " " requiring the style that both font types type is provided, one is 00 expression raw font style, and one is 01 expression is Song typeface font style; After being extracted the glyf curved profile data of raw font style, also need the style being converted into Song typeface font type, the mode of conversion can utilize font style converter, extraction inlay " " pen is dry, order of strokes observed in calligraphy information, forms into the inlay of Song typeface style, be Song typeface style " " inlay font; Also manually font style can be changed in backstage.
Like this, inlay " " just had simultaneously the original handwriting style of acquiescence " " and Song typeface style " ", the font of other styles also can be provided as required, as black matrix, regular script etc., describe no longer one by one.
The new font style formed " " use identical ranking factor, after namely can joining original font style storage sequence 2B, become 2C; Also can increase separately the sequence storage sequence of the skeleton font data of a Song typeface style newly, memory location is still 2B; As:
E000----0104D511064525452—1A
E001----0104D511074525452—2A
E003----0104D511084525452—2B
E003----0104D511084525452—2C
E002----0104D511086525452—3A
Also can:
Primitivism E000----0104D511064525452-1A
Primitivism E001----0104D511074525452-2A
Primitivism E003----0104D511084525452-2B
Primitivism E002----0104D511086525452-3A
Song typeface style E000----0104D511064525452-1A
Song typeface style E001----0104D511074525452-2A
Song typeface style E003----0104D511084525452-2B
Song typeface style E002----0104D511086525452-3A
Above-mentioned sequence storage is only unifies memory sequencing use in server centered; Time client downloads is called, point other distribution must be carried out and download in units of certain font style; Inlay outside all standards, all unified sequence stores in the database with server.
Step 3, server end is by the exclusive glyf character contour data division of the inlay font after inlay and mapping relations table, be unifiedly stored to after in the unified inlay font data storehouse of server, according to the demand of user, extract several required inlay fonts respectively, generate packet.
For the demand of different inlay font type style, the exclusive glyf character contour packet of different fonts type style of can packing, as upright inlay raw font style E000-E003.ZIP, upright inlay black matrix font style E000-E003.ZIP.Wherein, be mapping relations table before packet, after be corresponding character contour binary data.
Here according to the application of client, only extract return to the single inlay of this cell-phone customer terminal " ", namely inlay coding E003 mapping relations and " " the font outline data of word; Upright inlay raw font style E003.ZIP, upright inlay black matrix font style E003.ZIP; Other inlay does not send application due to this terminal, there is no need to return to terminal, avoids the waste of flow.
Step 4, server end to receiving end terminal return issue in step 3 generate " " the exclusive packet of inlay font, receiving end to receive " " after the packet of word carries out unpacking process, extract font style, coding mapping relation and the font outline data in packet.
Primitivism E000----0104D511064525452-1A
Primitivism E001----0104D511074525452-2A
Primitivism E003----0104D511084525452-2B
Primitivism E002----0104D511086525452-3A
Song typeface style E000----0104D511064525452-1A
Song typeface style E001----0104D511074525452-2A
Song typeface style E003----0104D511084525452-2B
Song typeface style E002----0104D511086525452-3A
Step 5, receiving end extraction unpacks " " after data in digital packets; will the relevant exclusive data of font of the inlay character that obtains be resolved; comprise the font type style of inlay, corresponding unique encodings, index value; directly save as local character set in this locality: upright inlay raw font style E003.BZ and upright inlay Song typeface font style E003.BZ, respectively containing " " and " ".
Wherein, the exclusive packet of font is made up of font exclusive data-mapping relation concordance list and font scale-of-two glyf outline data.
Described font scale-of-two glyf outline data mainly forms binary data by coordinate points and zone bit; By these coordinate points and zone bit, Bezier profile and outline of straight line can be drawn, thus the curved profile of final composition font, after these Contour filling, namely obtain the Chinese character that we see.
" " Bezier mathematic curve profile is described as shown in Figure 9.
" " Bezier mathematic curve profile is described as shown in Figure 10.
Upright inlay raw font style E003.BZ and upright inlay Song typeface font style E003.BZ comprise mapping relations above and font below contour curve data " " and " "; Now, the main character library (as roboto.ttf etc.) of same local handset system is used to associate, after the inlay font file increased newly is associated with the main character library of system, as the supplementary character library of main character library, when certain new word can not find in main character library time, by the auxiliary inlay character library of association, find the font of inlay, thus demonstrate inlay font out.
The mode of association has multiple, as shown in figure 11, is associated by upright inlay raw font style E003.BZ (interrelational form of local character set counterpart terminal multiple store character collection) with the collection of store character multiple in terminal; As shown in figure 12, upright inlay raw font style E003.BZ and upright inlay Song typeface font style E003.BZ is all associated (interrelational form of multiple local character set counterpart terminal multiple store character collection) with the black matrix stored in terminal and roboto character set.
In this step, user, without the need to changing font, still uses original font, can not destroy, increase, reduce original body face file, namely not do any physical operations to former font file, ensure that the integrality of original font, stability.
The effect of association, be the inlay character library at every turn downloaded by server, the main character library of homologous ray associates, and forms the association corresponding relation of main-auxiliary inlay; When main character library has multiple time, the inlay character library that a server is downloaded, can allow to be associated with in multiple main character library (as shown in figure 11) as auxiliary character library; After carry out repeatedly inlay from server, define multiple inlay file, multiple inlay file can be associated with a main character library simultaneously, also can be associated with in multiple main character library (as shown in figure 12) simultaneously.
Certainly, the multiple auxiliary inlay character library repeatedly formed after inlay, both can merging treatment in this locality, also can exist with the distributed form of fragment file, no matter inlay file is merging treatment or distributed form, does not all affect the operation of master-auxiliary character library relation mechanism.
Note, when the multiple auxiliary inlay character library formed after repeatedly inlay, under the prerequisite of same font type style, should there is no the inlay of repetition each other, also there will not be the situation that confusion of encoding each other, font repeat.That is, under the prerequisite of same font type style, the inlay coding in each inlay file, inlay font are all unique, unduplicated; Index in each inlay file is also unique for each inlay file, because index value is only effective in this inlay file.
Master-auxiliary character library is when association, it can be the master-auxiliary character library association of same font type style, also can be the local font file form described in different fonts style, it can be TTE character library form, also can be self-defined inlay character library form, self-defined character library form comprises following key element: the style of the font type of inlay, unique inlay coding, index value between inlay coding and inlay font glyf outline data, be finally unduplicated inlay font glyf outline data; Do not allow in same inlay file, store inlay coding and the inlay font glyf outline data of repetition simultaneously.
According to above-mentioned steps, when running into such as new word character the large figure of font of this character is shown in Fig. 8, the inlay that server returns is encoded to UNICODE0XE003, only need download about 150 bytes from server end, just can complete the new word font data of download to the machine, and by repeatedly new word application, can be accumulated in the machine inlay character library BZ, in time having multiple font style, need distribution process, namely the inlay of a font style at least forms an inlay file; As upright inlay raw font style E003.BZ and upright inlay Song typeface font style E003.BZ comprise mapping relations above and font below contour curve data " " and " "; Suppose that the local character library ROBOTO of mobile phone supports the display of the character in current all character encoding standard, when " " and " " when occurring, because this word is not in current all character encoding standard, therefore mobile phone cannot show.
And by proposing inlay application to server, server extraction, sequence, storage, matching, return font data and index relative after, by the incidence relation of the master-auxiliary character library of this locality, make upright inlay raw font style E003.BZ and upright inlay Song typeface font style E003.BZ become the auxiliary character library of main character library ROBOTO, when system font rendering engine cannot retrieve in current main character library " " and " " (inlay is encoded to 0XE003) time, then searching the auxiliary character library with or without being associated, by the coding lookup in two auxiliary character libraries, finding two 0XE003, be two different fonts, raw font type style " " and Song typeface style " ", by the font type style coupling in correlation function, select suitable font type, raw font type style " " or Song typeface style " ", from upright inlay raw font style E003.BZ or upright inlay Song typeface font style E003.BZ, read E003, find:
Primitivism E000----0104D511064525452-1A
Primitivism E001----0104D511074525452-2A
Primitivism E003----0104D511084525452-2B
Primitivism E002----0104D511086525452-3A
Song typeface style E000----0104D511064525452-1A
Song typeface style E001----0104D511074525452-2A
Song typeface style E003----0104D511084525452-2B
Song typeface style E002----0104D511086525452-3A
Find the position " 2B " of depositing character contour curve data respectively, its outline data is read out, give system font engine and first carry out inside and outside profile reduction, finally the curved profile after reduction is carried out the filling in region and path and played up.Namely obtain the font after the filling of Fig. 9 and Figure 10 font data curved profile out, be: " " and " ".
The method of non-existent new word in the existing dictionary of this terminal to apply and character standard coding, can be distributed, portable application, server is unified to be accepted, record, effective process of therefore sorting, effectively sorted by attribute factor at server end, make familiar in shape, the inlay that the order of strokes observed in calligraphy is similar, according to from front to back, conform to the principle of simplicity Chinese word character to complicated Chinese character, according to frequency of utilization, the memory sequencing rule that the order of strokes observed in calligraphy increases successively, first the efficiency differentiating inlay is substantially increased, by the inlay application outside unified standard, inlay code is distributed unitedly, font online fitting, real-time process of feedback, greatly save flow, alleviate cell phone network load, improve mobile phone response speed, save phone memory simultaneously, the standard that reduces lacks the difficulty that word request uses outward, fully meet when standard lacks word outward and apply for inlay in real time as required, and the object of distributed distribution.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
More than be described with reference to the accompanying drawings technical scheme of the present invention, consider in the prior art, when receiving non-existent new word in existing standard, after needing first to carry out artificial inlay by the inlay district of character set in PC computer, then again copy in cell phone system or download new character library, in mobile phone, install new character library again, this kind of mode wastes time and energy on the one hand; On the other hand do not carry out unified classification and ordering for the inlay in User Defined district to deposit, cause not only storing unordered, disorderly and unsystematic in the User Defined district of mobile phone character library, but also there is the problem that font repeats, repeats inlay.Therefore, the present invention proposes a kind of new inlay method, by technical scheme of the present invention, non-existent unknown character in orderly newly-increased in the server existing standard volume can be unified, and exclusive for the font of generation data are sent to terminal use, and simple and efficient, improve response speed, avoid repetition inlay simultaneously, reduce the amount of redundancy of data.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (16)

1. a terminal, is characterized in that, comprising:
Request generation unit, for receive be not present in unknown character that store character concentrates time, generate inlay request sequence;
Interactive unit, is sent to server by described inlay request sequence, and receives the inlay font exclusive data corresponding with described unknown character from described server;
Display unit, according to the exclusive data of described inlay font received, the described unknown character of normal display.
2. terminal according to claim 1, is characterized in that, described request generation unit comprises: extraction unit, for extracting font, sequence number, font type, the character attibute information of described unknown character, to generate described inlay request sequence.
3. terminal according to claim 1, is characterized in that, described display unit comprises:
Resolution unit, after receiving the exclusive data of described inlay font, resolves the exclusive data of described inlay font, obtains the unique encodings corresponding with described unknown character, font type style and mapping relations index value, and be stored as local character set;
Associative cell, associates described local character set with described terminal store character collection, to make described local character set as the additional character collection of described terminal store character collection;
Search unit, all additional character collection of store character collection and the described collection of store character described in searching, to show described unknown character.
4. terminal according to claim 3, it is characterized in that, described resolution unit is also for obtaining font glyf curved profile data according to described mapping relations index value, and depict Bezier profile and outline of straight line, to form the curved profile of described unknown character according to font glyf curved profile data.
5. a server, is characterized in that, comprising:
Interactive unit, receives the inlay request sequence of self terminal, and the exclusive data of inlay font that processing unit generates are sent to described terminal;
Described processing unit, data preparation and haracter pattern rule process are carried out to each unknown character in described inlay request sequence, to obtain the attribute information of each described unknown character, generate the corresponding exclusive data of inlay font according to the attribute information of each described unknown character.
6. server according to claim 5, it is characterized in that, also comprise: judging unit, for before carrying out data preparation and haracter pattern rule process to each unknown character in described inlay request sequence, judge whether the font of described unknown character is present in existing character set standard and compiles according to the information that described inlay request sequence comprises, when judging that the font of described unknown character is present in existing character set standard volume, exclusive for the font of described unknown character data are sent to described terminal, when judging that the font of described unknown character is not present in existing character set standard volume, the font of described unknown character is defined as treating inlay font, be stored in inlay district.
7. server according to claim 6, is characterized in that, described processing unit comprises:
To described, coding generation unit, for treating that inlay font distributes unique encodings in described inlay district;
Map generation unit, for treating the attribute information of inlay font described in basis and describedly treating the unique encodings of inlay font in inlay district, the sequence storage sequence that inlay character is corresponding and mapping relations index value is treated described in formation, to obtain the exclusive data of described inlay font, wherein, described mapping relations index value for described in treat between the unique encodings of inlay font in inlay district and font glyf curved profile data storage location mapping.
8. server according to claim 7, is characterized in that, described processing unit also comprises:
Extraction unit, treats the individual character figure curve of inlay font described in extraction;
Process of fitting treatment unit, described individual character figure curve and the Bezier process of fitting treatment treating inlay font, treat original font style of inlay font described in maintenance, the Bezier profile of matching is stored as the glyf character contour form in character set, form font glyf curved profile data;
To described, font converting unit, treats that the font type style of inlay font is changed, to meet the requirement of default font type style.
9. an inlay method, is characterized in that, comprising:
Receive be not present in unknown character that store character concentrates time, generate inlay request sequence, and described inlay request sequence be sent to server;
Receive the inlay font exclusive data corresponding with described unknown character from described server;
According to the exclusive data of described inlay font received, the described unknown character of normal display.
10. inlay method according to claim 9, is characterized in that, extracts the font of described unknown character, sequence number, font type, character attibute information, to generate described inlay request sequence.
11. inlay methods according to claim 9, it is characterized in that, after receiving the exclusive data of described inlay font, resolve the exclusive data of described inlay font, obtain the unique encodings corresponding with described unknown character, font type style and mapping relations index value, and be stored as local character set;
Described local character set is associated with described terminal store character collection, to make described local character set as the additional character collection of described terminal store character collection;
All additional character collection of store character collection and the described collection of store character described in searching, to show described unknown character.
12. inlay methods according to claim 11, is characterized in that, also comprise:
Obtain font glyf curved profile data according to described mapping relations index value, and depict Bezier profile and outline of straight line, to form the curved profile of described unknown character according to font glyf curved profile data.
13. 1 kinds of inlay methods, is characterized in that, comprising:
Receive the inlay request sequence of self terminal;
Data preparation and haracter pattern rule process are carried out to each unknown character in described inlay request sequence, to obtain the attribute information of each described unknown character;
Generate the corresponding exclusive data of inlay font according to the attribute information of each described unknown character, and the exclusive data of described inlay font are sent to described terminal.
14. inlay methods according to claim 13, it is characterized in that, before data preparation and haracter pattern rule process are carried out to each unknown character in described inlay request sequence, judge whether the font of described unknown character is present in existing character set standard and compiles according to the information that described inlay request sequence comprises;
When judging that the font of described unknown character is present in existing character set standard volume, exclusive for the font of described unknown character data are sent to described terminal, when judging that the font of described unknown character is not present in existing character set standard volume, the font of described unknown character is defined as treating inlay font, is stored in inlay district.
15. inlay methods according to claim 14, is characterized in that, in described inlay district, treat that inlay font distributes unique encodings to described;
The attribute information treating inlay font according to described and describedly treat the unique encodings of inlay font in inlay district, the sequence storage sequence that inlay character is corresponding and mapping relations index value is treated described in formation, to obtain the exclusive data of described inlay font, wherein, described mapping relations index value for described in treat between the unique encodings of inlay font in inlay district and font glyf curved profile data storage location mapping.
16. inlay methods according to claim 15, is characterized in that,
The individual character figure curve of inlay font is treated described in extraction;
Described individual character figure curve and the Bezier process of fitting treatment treating inlay font, original font style of inlay font is treated described in maintenance, the Bezier profile of matching is stored as the glyf character contour form in character set, forms font glyf curved profile data;
Treat that the font type style of inlay font is changed to described, to meet the requirement of default font type style.
CN201410510053.8A 2014-09-28 2014-09-28 Terminal, server and character complementing method Expired - Fee Related CN105528345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410510053.8A CN105528345B (en) 2014-09-28 2014-09-28 Terminal, server and character complementing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410510053.8A CN105528345B (en) 2014-09-28 2014-09-28 Terminal, server and character complementing method

Publications (2)

Publication Number Publication Date
CN105528345A true CN105528345A (en) 2016-04-27
CN105528345B CN105528345B (en) 2020-08-07

Family

ID=55770579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410510053.8A Expired - Fee Related CN105528345B (en) 2014-09-28 2014-09-28 Terminal, server and character complementing method

Country Status (1)

Country Link
CN (1) CN105528345B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451155A (en) * 2016-06-01 2017-12-08 上海精灵天下数字技术有限公司 A kind of character library on-line processing method and system
CN110852039A (en) * 2018-07-25 2020-02-28 北大方正集团有限公司 Method and device for converting characters into curves in PDF (Portable document Format) file
CN112256528A (en) * 2020-10-20 2021-01-22 上海米哈游天命科技有限公司 Font missing statistical method and device, electronic equipment and storage medium
CN113536734A (en) * 2021-07-06 2021-10-22 上海浩霖汇信息科技有限公司 Rarely-used word standardization processing method and system and related products
TWI747172B (en) * 2019-10-23 2021-11-21 日商日本加除出版股份有限公司 Foreign word management system
CN117077624A (en) * 2023-10-12 2023-11-17 深圳市云希谷科技有限公司 Word stock online processing method, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6675358B1 (en) * 1998-11-12 2004-01-06 International Business Machines Corporation Font access, registration, display and printing method and a method for processing electronic documents having variant fonts
CN1741006A (en) * 2005-09-22 2006-03-01 北京北大方正电子有限公司 Method for establishing rarely used words expansion word bank
CN101187939A (en) * 2007-11-22 2008-05-28 北大方正集团有限公司 A font file built-in method and device
CN102110082A (en) * 2009-12-29 2011-06-29 北大方正集团有限公司 Method and system for outputting complementary word of galley proof file
CN103207911A (en) * 2013-04-08 2013-07-17 厦门美图网科技有限公司 Vector character generating method based on network requests

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6675358B1 (en) * 1998-11-12 2004-01-06 International Business Machines Corporation Font access, registration, display and printing method and a method for processing electronic documents having variant fonts
CN1741006A (en) * 2005-09-22 2006-03-01 北京北大方正电子有限公司 Method for establishing rarely used words expansion word bank
CN101187939A (en) * 2007-11-22 2008-05-28 北大方正集团有限公司 A font file built-in method and device
CN102110082A (en) * 2009-12-29 2011-06-29 北大方正集团有限公司 Method and system for outputting complementary word of galley proof file
CN103207911A (en) * 2013-04-08 2013-07-17 厦门美图网科技有限公司 Vector character generating method based on network requests

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451155A (en) * 2016-06-01 2017-12-08 上海精灵天下数字技术有限公司 A kind of character library on-line processing method and system
CN110852039A (en) * 2018-07-25 2020-02-28 北大方正集团有限公司 Method and device for converting characters into curves in PDF (Portable document Format) file
TWI747172B (en) * 2019-10-23 2021-11-21 日商日本加除出版股份有限公司 Foreign word management system
CN112256528A (en) * 2020-10-20 2021-01-22 上海米哈游天命科技有限公司 Font missing statistical method and device, electronic equipment and storage medium
CN113536734A (en) * 2021-07-06 2021-10-22 上海浩霖汇信息科技有限公司 Rarely-used word standardization processing method and system and related products
CN113536734B (en) * 2021-07-06 2023-03-24 上海浩霖汇信息科技有限公司 Rarely-used word standardization processing method and system and related products
CN117077624A (en) * 2023-10-12 2023-11-17 深圳市云希谷科技有限公司 Word stock online processing method, device and medium
CN117077624B (en) * 2023-10-12 2024-01-26 深圳市云希谷科技有限公司 Word stock online processing method, device and medium

Also Published As

Publication number Publication date
CN105528345B (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN105528345A (en) Terminal, server and character complementing method
CN102722709B (en) Method and device for identifying garbage pictures
CN100550020C (en) A kind of method and apparatus that is used to solve the Chinese software issue of supporting multilanguage
AU2016277770B2 (en) Use of bloom filters to simplify dynamic font augmentation and subsetting
Wang et al. A coverless plain text steganography based on character features
CN101483035B (en) Method and system for display text on graphical interface
CN106777258B (en) Coding and compressing method for Hbase row key in medical big data storage
CN110704813A (en) Character anti-piracy system based on character recoding
CN110738050B (en) Text reorganization method, device and medium based on word segmentation and named entity recognition
CN104679871B (en) A kind of Chinese language text search method and Chinese language text retrieval device
CN104794142A (en) Font processing method and font processing system
CN105912723A (en) Storage method of custom field
CN105677718A (en) Character retrieval method and apparatus
CA2602749C (en) System and method of report representation
CN111291547B (en) Template generation method, device, equipment and medium
CN103136166B (en) Method and device for font determination
CN102063416A (en) Method and system for embedding double-byte fonts into PDF file
CN101488125B (en) Tibetan language encoding method and terminal
CN104424163A (en) Word processing method and system
Long et al. Text coverless information hiding based on word2vec
CN108287909B (en) Paper pushing method and device
CN105740374A (en) Distributed memory based three-dimensional platform data fuzzy query method
CN107301230A (en) Generation method and system, analytic method and system based on Internet of Things article mark
CN108664604B (en) Method for realizing minimum data splitting storage and service calling presentation
Foda et al. A Qur'anic Code for Representing the Holy Qur'an (Rasm Al-'Uthmani)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220620

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

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