Embodiment
Below with reference to accompanying drawing and combine embodiment, specify the present invention.
Fig. 2 shows the process flow diagram that subtracts the generation method of word spectrum character according to the seven-stringed plucked instrument in some ways similar to the zither of the embodiment of the invention, comprising:
Step S10 creates set, and it comprises that constituting seven-stringed plucked instrument in some ways similar to the zither subtracts all elements that character composed in word;
Step S20, the every kind of font architecture that seven-stringed plucked instrument in some ways similar to the zither is subtracted word spectrum character is created an appearance word;
Step S30 obtains the element in the element replacement appearance word from set, subtract word spectrum character to generate seven-stringed plucked instrument in some ways similar to the zither.
Seven-stringed plucked instrument in some ways similar to the zither subtracts word spectrum character and is different from common character, and data volume is bigger, and the font of single character of while is more complicated again.Prior art is made seven-stringed plucked instrument in some ways similar to the zither one by one and is subtracted word spectrum character, and workload is very big, and fabrication cycle is longer, causes not having in the market a complete seven-stringed plucked instrument in some ways similar to the zither to subtract word spectrum character library, seriously hinders the seven-stringed plucked instrument in some ways similar to the zither artistic development.
The inventor studies seven-stringed plucked instrument in some ways similar to the zither long-term and arduously and subtracts word spectrum character, subtracts word spectrum character more complicated though find single seven-stringed plucked instrument in some ways similar to the zither, and it is to be formed according to playing principle combinations by the fewer element of kind that each seven-stringed plucked instrument in some ways similar to the zither subtracts word spectrum character.Present embodiment makes up element set to these characteristics, creates the appearance word that institute might font architecture, utilizes the element in the element set can obtain all seven-stringed plucked instruments in some ways similar to the zither and subtract word and compose character according to playing element in the rule replacement appearance word then.More than from element to the appearance word again to the process of character can utilize database with the programming accomplish; Avoid manual image technique to come to make one by one seven-stringed plucked instrument in some ways similar to the zither and subtracted word spectrum character; Therefore alleviated workload significantly; Shortened fabrication cycle, thereby provided the foundation for realizing that informationization that seven-stringed plucked instrument in some ways similar to the zither subtracts word spectrum character is handled.
In addition, present embodiment is through making different fonts to the appearance word, and the seven-stringed plucked instrument in some ways similar to the zither that can also generate different fonts at an easy rate subtracts word spectrum character.
Preferably, step S10 comprises: confirm that each seven-stringed plucked instrument in some ways similar to the zither subtracts word spectrum character each element corresponding to left hand fingering, right hand fingering, string preface, emblem branch and tone color; The element that all are different adds set.Fig. 3 shows according to the preferred embodiment of the invention, and seven-stringed plucked instrument in some ways similar to the zither subtracts the subelement that word is composed.As can beappreciated from fig. 3, complicated seven-stringed plucked instrument in some ways similar to the zither subtracts word spectrum character and is made up of these simple elements exactly.Through making up this element set, just can utilize computer programming, automatically generate seven-stringed plucked instrument in some ways similar to the zither and subtract word spectrum character.
Preferably, all are different element adding set comprise: each different element is provided with unique encoding; All codings and corresponding elements thereof are added set.Because element itself is a figure one by one, through being set, coding can retrieve efficiently, and be convenient to computer data and handle.
Preferably, coding comprises that type section and element segment, type section are used for marker elements and are used to represent left hand fingering, right hand fingering, string preface, emblem branch or tone color, and element segment is used for the concrete value that marker elements is used to represent.For example for the type section, it is 000 that the left hand fingering can be set, and right hand fingering is 001, and the string preface is 010, the position, emblem is 011, tone color is 100 etc.For element segment, " one " can be set is 000000, and the coding of " string preface one " is exactly 010000000 so, and the coding of " position, emblem one " is exactly 011000000.From three of coding, just can confirm the kind of this element, from back six images that just can confirm element.This preferred embodiment has further improved recall precision.
Preferably, step S20 comprises: the coding of recording element, scaling and translation distance in the appearance word.The seven-stringed plucked instrument in some ways similar to the zither of analysis chart 1 subtracts the word spectrum, can summarize all font architectures that seven-stringed plucked instrument in some ways similar to the zither subtracts word spectrum character, then every kind of font architecture is created an appearance word.Fig. 4 shows according to the preferred embodiment of the invention, and seven-stringed plucked instrument in some ways similar to the zither subtracts a kind of font architecture that character composed in word; The seven-stringed plucked instrument in some ways similar to the zither that Fig. 5 shows Fig. 4 subtracts word spectrum character appearance word.Because the scaling of element is consistent with translation distance in every kind of font architecture, so the replacement through element can generate all seven-stringed plucked instruments in some ways similar to the zither with this font architecture and subtract word spectrum character.Respectively identify the representative information explanation among Fig. 4 as follows:
Fig. 6 shows the process flow diagram of the element of replacement appearance word according to the preferred embodiment of the invention, and as shown in Figure 6, step S30 comprises: the rule of combination of confirming the appearance word according to the playing rule of seven-stringed plucked instrument in some ways similar to the zither; The optional coding that is used for replacing kind each element of word according to rule of combination; Use optional coding from set, to obtain corresponding element in the corresponding elements replacement appearance word, subtract word spectrum character to generate seven-stringed plucked instrument in some ways similar to the zither.
Fig. 7 shows the seven-stringed plucked instrument in some ways similar to the zither that generates after the appearance word replacement string preface of Fig. 5 and subtracts word spectrum character.Subtract shown in the word spectrum character like all seven-stringed plucked instruments in some ways similar to the zither of Fig. 7, wherein have only string preface element that replacement has taken place, font architecture all not have to change with other elements, promptly only just can obtain 7 new seven-stringed plucked instruments in some ways similar to the zither and subtracts word and compose character through making an appearance word and doing the replacement of 7 items.And in the prior art before adopting the embodiment of the invention, these 7 seven-stringed plucked instruments in some ways similar to the zither subtract word spectrum character and all will adopt image technique to make by hand respectively.Find out that thus the embodiment of the invention has improved seven-stringed plucked instrument in some ways similar to the zither significantly and subtracted the make efficiency that character composed in word.
Preferably, this method also comprises: create character library, its font comprises that the seven-stringed plucked instrument in some ways similar to the zither of generation subtracts word spectrum character and all elements.Utilize the character library of generation, can make various seven-stringed plucked instruments in some ways similar to the zither at an easy rate and subtract the word spectrum, this provides the foundation for the informationization processing that the realization seven-stringed plucked instrument in some ways similar to the zither subtracts word spectrum character.For example, can generate seven-stringed plucked instrument in some ways similar to the zither and subtract word spectrum TrueType character library.
The form that compound font is arranged in the glyf of the TrueType storing font information table, this form can be used for describing the seven-stringed plucked instrument in some ways similar to the zither that seven-stringed plucked instrument in some ways similar to the zither character elements combination is combined into and subtract word spectrum character library.
The form of the compound font of TrueType is to specify an existing parts, confirms scaling and the translation distance of these parts in current font with one group of coordinate conversion parameter.Specifically described the form of compound font in the following table.
The compound font form that uses the TrueType character library to provide subtracts word spectrum character with all seven-stringed plucked instruments in some ways similar to the zither of all the character elements made and generation and adds in the TrueType character library, generates seven-stringed plucked instrument in some ways similar to the zither and subtracts word spectrum character library.
Fig. 8 shows the process flow diagram that seven-stringed plucked instrument in some ways similar to the zither according to the preferred embodiment of the invention subtracts the generation method of word spectrum character, may further comprise the steps:
(1) analyze existing seven-stringed plucked instrument in some ways similar to the zither and subtract the element that the character in the word spectrum uses, i.e. fingering, string preface and emblem grading information, arrangement obtains that seven-stringed plucked instrument in some ways similar to the zither subtracts that left hand fingering, right hand fingering, string preface, the emblem of using in the word spectrum character are divided and element such as tone color, i.e. character element.Add up these character elements, and it is divided and the tone color classification according to left hand fingering, right hand fingering, string preface, emblem.
(2) the arrangement seven-stringed plucked instrument in some ways similar to the zither subtracts the font architecture of word spectrum character.The existing seven-stringed plucked instrument in some ways similar to the zither of induction-arrangement subtracts the characteristic of word spectrum character, will subtract the word spectrum and divide all kinds of character elements position structures such as chord preface and tone color to put in order according to left hand fingering, right hand fingering, emblem.
(3) set of making character element.Use the character tools, such as Fontlab etc., make seven-stringed plucked instrument in some ways similar to the zither and subtract all kinds of character elements in the word spectrum character, and encode for each element, in order to distinguish different character element classifications, the coding range of different classes of character element is different.
(4) make seven-stringed plucked instrument in some ways similar to the zither and subtract word spectrum character appearance word.Choose all kinds of character elements that step (3) is made, make up respectively according to the charcter topology of putting in order out in the step (2) and be combined into corresponding seven-stringed plucked instrument in some ways similar to the zither and subtract a word spectrum appearance word.The coding of each character element and the scaling and the translation distance of character element have been write down in this kind word.
(5) the same charcter topology appearance word of arrangement, all kinds of character combination of elements rules that it comprises.Character composed in the word that subtracts that is same structure, seven-stringed plucked instrument in some ways similar to the zither combination of elements collocation rules such as its left hand fingering, right hand fingering, string preface, emblem branch and tone color.
(6) according to the replacement rule of combination of step (5) arrangement, all kinds of character elements in the replacement seven-stringed plucked instrument in some ways similar to the zither structure appearance word generate seven-stringed plucked instrument in some ways similar to the zither and subtract word spectrum character.
(7) all seven-stringed plucked instruments in some ways similar to the zither that generate in the compound font form that uses the TrueType character library to provide, the character element that step (3) is made and step (6) subtract word spectrum combining characters information and write in the character library, generate seven-stringed plucked instrument in some ways similar to the zither and subtract word and compose character library.
Fig. 9 shows the synoptic diagram that subtracts the generating apparatus of word spectrum character according to the seven-stringed plucked instrument in some ways similar to the zither of the embodiment of the invention, comprising:
Component module 10 is used for creating set, and it comprises that constituting seven-stringed plucked instrument in some ways similar to the zither subtracts all elements that character composed in word;
Appearance word modules 20 is used for seven-stringed plucked instrument in some ways similar to the zither is subtracted appearance word of every kind of font architecture establishment that character composed in word;
Character module 30 is used for obtaining the element the element replacement appearance word from set, subtracts word spectrum character to generate seven-stringed plucked instrument in some ways similar to the zither.
This device can generate seven-stringed plucked instrument in some ways similar to the zither easily and efficiently and subtract word spectrum character.
Preferably, component module 10 comprises: decomposing module is used for confirming that each seven-stringed plucked instrument in some ways similar to the zither subtracts word spectrum character each element corresponding to left hand fingering, right hand fingering, string preface, emblem branch and tone color; Coding module is used for each different element is provided with unique encoding; Add module, be used for all codings and corresponding elements thereof are added set.Through making up this element set, just can utilize computer programming, automatically generate seven-stringed plucked instrument in some ways similar to the zither and subtract word spectrum character.
Preferably, character module 30 comprises: rule module is used for the rule of combination according to the definite appearance of the playing rule word of seven-stringed plucked instrument in some ways similar to the zither; The replacement module is used for being used to replace according to rule of combination the optional coding of kind each element of word; Generation module is used for using optional coding to obtain corresponding element the corresponding elements replacement appearance word from set, subtracts word spectrum character to generate seven-stringed plucked instrument in some ways similar to the zither.This preferred embodiment has improved seven-stringed plucked instrument in some ways similar to the zither significantly and has subtracted the make efficiency that character composed in word.
Can find out that from above description the above embodiments of the present invention have improved seven-stringed plucked instrument in some ways similar to the zither and subtracted the make efficiency that character composed in word, have shortened fabrication cycle, have saved cost of manufacture.
Obviously; It is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize that they can concentrate on the single calculation element with the general calculation device; Perhaps be distributed on the network that a plurality of calculation element forms; Alternatively, they can be realized with the executable program code of calculation element, carried out by calculation element thereby can they be stored in the memory storage; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.