A kind of electronic jacquard weaving method of the silk goods based on word book contents
Technical field
The present invention relates to a kind of electronic jacquard weaving method, relate in particular to a kind of electronic jacquard weaving method of the silk goods based on word book contents.
Background technology
The Realization of Product form of jacquard weaving technology is jacquard fabric (claiming again in the industry pattern fabric).The not only with high content of technology but also artistic added value of jacquard fabric is high, therefore, for a long time, is not only high-endization that clothes, family spun and decorated etc. fabric consumption and selects, and be China's textiles, especially one of major product of silk outlet.
Tradition jacquard fabric has an outstanding feature: figured pattern must continue in all directions, and the form that figured pattern repeats with certain loop cycle realizes continuously.Because since jacquard weaving machine is born, be subject to technique, equipment, the especially restriction of jacquard pattern, jacquard fabric can only be realized high efficiency, produce cheaply in the mode of circulation.So it is permanent to go through, this mode of production has formed fixing pattern and idea.
Yet jacquard fabric need to adapt to market with new looks.Textiles consumption market is along with basic variation has occurred in the raising of people's living standard, and consumption fashion-orientation, personalization, diversified trend are obvious, and variation rule is accelerated, and designerss have started to complain the limitation that the general layout of continuing in all directions of fabric flower type forms, on the other hand, decorative kind jacquard fabric has started art up, gift is turned to main direction, the word class figured silk of existing stich or a head-word occurs in the market, but be limited to current weaving technology, these word class figured silk word quantity are all fewer, for weaving picture " A Dream of Red Mansions ", books class silk fabrics such as " The Romance of the Three Kingdoms " is due to word enormous amount, often weave different books, must process by manually re-starting artistic conception, workload is very large and waste time and energy, therefore this weaving method cannot be realized large-scale production at all.
Summary of the invention
The invention provides a kind of electronic jacquard weaving method of the silk goods based on word book contents, the method has solved and in prior art, has often weaved different books, must process by manually re-starting artistic conception, the very large and problem that wastes time and energy of workload, thus realize the large-scale production of word books class silk goods.
An electronic jacquard weaving method for the silk goods of word book contents, comprises the following steps:
(1) read the lattice information of single character in standard word library file;
(2) the fabric tissue lattice information of selecting in advance according to user, modifies to the lattice information of the single character obtaining, and revises the plan of weave that obtains this character;
(3) by plan of weave corresponding to the character obtaining according to preserving with its order same in described standard word library file, repeating step (1) and step (2), all characters in described standard character library are modified, obtain the character artistic conception picture library that described standard word library file is corresponding, the region-position code form storage same with described standard word library file of this character artistic conception picture library;
(4), when weaving, the character artistic conception picture library that step (3) is obtained is pre-loaded in the internal memory of electronic jacquard loom controller;
(5) setting electronic jacquard machine weaves parameter and specifies and want woven word book file;
(6) from step (5), in the word book file of appointment, read in order the position code value of each character, then according to this region-position code, from pre-loaded character artistic conception picture library to electronic jacquard loom controller internal memory, obtain the plan of weave of this character, and send loom to weave this plan of weave;
(7) repeating step 6 is until complete weaving of these silk goods based on word book contents.
The present invention is by carrying out in advance artistic conception processing to meeting state specified standards character library, thereby form character artistic conception picture library, when weaving, this character artistic conception picture library is loaded in the internal memory of electronic jacquard loom controller, after this when weaving, no matter how the content of books changes, as long as extract corresponding character plan of weave from character artistic conception picture library, just can realize weaving of character one by one.Do not need manually to re-start artistic conception and process, greatly reduce artistic conception workload, improved electronic jacquard machine weaving efficiency.
Step (1)-(3) general using computer can complete by simple software programming.In the txt format text file of computer, Chinese character is to store by the form of internal code, by simple conversion, just can obtain fast the region-position code of corresponding character, is to improve operation efficiency, so as preferred, described word book file is txt format text file.
For ease of operation, as preferably, in described step (2), the method that the lattice information of the single character obtaining is modified is: if (i) the lattice information equal and opposite in direction of the size of fabric tissue lattice information and this single character, data bit in the lattice information of fabric tissue lattice information and single character is corresponding one by one, in the lattice information of single character, a certain data bit is binary system R1, the data bit negate of correspondence in fabric tissue lattice information, in the lattice information of single character, a certain data bit is binary system R2, in fabric tissue lattice information, corresponding data bit is not made an amendment, wherein: R1, R2 are 0 or 1, and unequal, for example, if the data bit of the lattice information of single character is Binary Zero, the data bit negate of corresponding fabric tissue lattice information, the data bit of the lattice information of single character is binary one, the value of the data bit of corresponding fabric tissue lattice information is not made an amendment, (ii) if the lattice information size of the size of fabric tissue lattice information and single character is unequal, adopt the mode that fabric tissue dot matrix is repeated to tiling, make both equal and opposite in directions, and then according to the mode of step (i), the lattice information of the single character obtaining is modified.
Described standard word library file is GB 2312-80 or GBK coding standard, and specific standards is selected need to determine according to actual jacquard process.For improving the speed that obtains character artistic conception picture library, avoid double counting, as preferably, in described step (1), read in order the lattice information of the single character in standard word library file.
Character described in the present invention comprises tag of using in Chinese character and books etc.
Compared with prior art, beneficial effect of the present invention is:
The present invention is by carrying out in advance artistic conception processing to meeting state specified standards character library, thereby form character artistic conception picture library, when weaving, this character artistic conception picture library is loaded in the internal memory of electronic jacquard loom controller, after this when weaving, no matter how the content of books changes, as long as extract corresponding character plan of weave from character artistic conception picture library, just can realize weaving of character one by one, not needing manually to re-start artistic conception processes, thereby greatly reduce workload, improve electronic jacquard machine weaving efficiency, realized the large-scale production of word books class silk goods.
Accompanying drawing explanation
Fig. 1 is 16 * 16 lattice informations of character " 1 ".
Fig. 2 is a kind of predefined fabric tissue form that embodiment 1 certain customers are selected: 4 pieces become satin weave.
To be fabric tissue form shown in Fig. 2 become satin weave through again laying 4 pieces of 16 * 16 dot matrix sizes that form to Fig. 3.
Fig. 4 be shown in the plan of weave of character " 1 " through generating after revising.
Fig. 5 is the schematic flow sheet of the electronic jacquard weaving method of the silk goods based on word book contents of the present invention.
The specific embodiment
Below in conjunction with embodiment and accompanying drawing, describe the present invention in detail, but the present invention is not limited to this.
National standard information exchange has been included totally 7445 of Chinese character, graphical symbols etc. altogether with Chinese character set GB 2312-80, and wherein Chinese character is 6763, and the frequency using according to Chinese character is divided into two-stage, and wherein the first-level Chinese characters 3755 Ge, Chinese characters of level 2 are 3008.Chinese character, graphical symbol are divided into 94Ge“ district according to its position ", each district comprises 94 chinese characters, and each chinese character is called again " position ".The Zhi94 district, sequence number You01 district in " district " wherein, the sequence number of " position " is also by 01 to 94.If laterally to represent " position " number, longitudinally represent " district " number ,Ze“ district " and " position " form a two-dimensional coordinate.Given Yi Ge“ district " value and " position " value just can determine a unique Chinese character or graphical symbol.4 Arabic numerals just can be determined a Chinese character or symbol uniquely.If the region-position code of " north " word is " 1717 ", and the region-position code of " capital " word is " 3009 ".Front two Shi“ district in 4 Arabic numerals " number, latter two is " position " number.Wherein 1 Zhi15 district is that the Zhi87 district, language letter ,16 district of various graphical symbols, tab and some major countries is Chinese characters, and wherein 16 Zhi55 districts, district are that first-level Chinese characters ,56Zhi 87th district are the Chinese characters of level 2.
In the txt format text file of computer, take Chinese character as example, Chinese character is to store by the form of internal code, each Chinese character accounts for 2 bytes, district's code that wherein first byte is internal code, district's code scope of Chinese internal code is from 0A1H (hexadecimal), the firstth district of district's code in corresponding region-position code; And second bit code that byte is internal code of internal code, scope is also from 0A1H (hexadecimal), first bit code in corresponding certain district.In other words Chinese internal code is deducted to the region-position code that 0A0AH just obtains this Chinese character.For example the internal code of Chinese character " north " is hexadecimal " B1B1 ", and wherein front two " B1 " represents district's code of internal code, and rear two " B1 " represent the bit code of internal code.So the region-position code in " north " is 0B1B1H-0A0A0H=1111H ,Jiang district's code and bit code, be converted to respectively the decimal system, the region-position code that obtains Chinese character " north " is " 1717 ".The dot matrix in " north " is positioned at the position of the 17th word in 17 district, and therefore the position in the character library of 16 * 16 dot matrix sizes is the demonstration dot matrix that 32 later bytes of the 32nd * [(17-1) * 94+ (17-1)]=48640D are Chinese character " north ".
An electronic jacquard weaving method for the silk goods of word book contents, comprises the following steps:
(1) in meeting 16 * 16 font files of GB2312-80 standard, the lattice information of each character occupies 32 byte-sized, 32 byte lattice informations (take character 1 as example) of first character in order start anew first to read, see Fig. 1 (wherein white square represents binary one, and black square represents Binary Zero);
(2) user selects a kind of predefined fabric tissue lattice information, be illustrated in fig. 2 shown below and be 4 pieces and become satin weave, lattice information size due to digital 1 is 16 * 16,4 pieces become satin weave is 4 * 4, both are inconsistent, therefore employing becomes to 4 pieces the mode that satin weave repeats to lay and forms 16 * 16 dot matrix sizes, as shown in Figure 3; According to the lattice information of character in Fig. 1, Fig. 3 is modified, amending method is: if character pattern is black square 0 in Fig. 1, to the tissue position negate in corresponding diagram 3, be the original black square lattice that bleach, white square blackening lattice,, if character pattern is white square 1 in Fig. 1, the tissue position in corresponding diagram 3 is not made and changed, amended organization chart is as Fig. 4;
(3) amended organization chart 4 is plan of weave corresponding to numeral " 1 ", and we represent white square with binary one, and 0 represents black square, and 32 bytes that craftsman figure illustrated in Figure 4 so just can be comprised of Binary Zero, 1 are described;
(4) to meeting 32 byte lattice informations of other characters in 16 * 16 font files of GB 2312-80 standard, all adopt the mode of step 2 and 3 to process and generate the plan of weave that 32 bytes of corresponding use are described, after in character library, all characters are disposed, the plan of weave that each character is corresponding puts in order and is saved in a new file by the character consistent with GB2312-80 java standard library, this document is character artistic conception picture library, and form with the region-position code storage the same as standard character library of character plan of weave;
(5), when weaving, the character artistic conception picture library generating in step (4) is loaded in the internal memory of electronic jacquard loom controller in advance;
(6) on electronic jacquard loom controller, set electronic jacquard machine and weave parameter and specify and want woven word books class file, this document is txt text formatting;
(7) from step (6), in the file of the txt text formatting of appointment, read the position code value of each character, the plan of weave that then obtains this character according to this region-position code from be loaded in advance the character artistic conception picture library electronic jacquard loom controller internal memory send loom to weave;
(8) repeating step (7) is until complete weaving of this article wordbook nationality class silk goods.