Editable inkjet coding system and inkjet coding method

By integrating a customized dot matrix font library and format editor on the inkjet printer, the problem of being unable to directly edit and modify the font and picture format in the existing technology is solved, and the printing efficiency is improved.

CN118927797BActive Publication Date: 2025-08-08GUANGZHOU CODPAD E-TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410981210.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2025-08-08
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Existing printers cannot directly edit and modify the font and picture format on the device, resulting in inefficient printing.

Method used

By integrating a custom dot matrix font library and a dot matrix format editor on the inkjet printer, direct editing and modifying fonts and pictures is achieved, and what you see is what you get.

Benefits of technology

It improves printing efficiency, realizes the editing and modification of fonts and picture formats directly on the inkjet printer, and improves printing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118927797B_ABST
    Figure CN118927797B_ABST
Patent Text Reader

Abstract

The present invention provides an editable inkjet printer system, comprising an editor, a controller, and an inkjet printer. The editor integrates a custom dot matrix font library and a dot matrix format corresponding to the dot matrix font library. The editor is used to obtain information to be printed, encode and save the information to be printed based on the custom dot matrix format, and obtain dot matrix data information corresponding to the information to be printed. The controller is used to receive output instructions from the editor and control the inkjet printer to print the information to be printed according to the output instructions of the editor. The generated custom format dot matrix font is integrated into the inkjet printer system through the editor. Based on the generated custom format dot matrix font, the font can be edited and modified on the inkjet printer system, achieving what you see is what you get.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of coding technology, and in particular to an editable coding system and coding method. Background Art

[0002] Inkjet printers are typically used to print product information on product packaging, including text and graphics such as the production date and product description. Traditional inkjet printers typically use a keyboard to input the printout, with the text and graphics printed based on the font and image format settings in the printer control system.

[0003] In the existing technology, fonts and image formats are usually edited on a PC, and then imported into the inkjet printer's inkjet control system via a USB flash drive. The inkjet printer then completes the printing based on the saved fonts and image formats. However, when the fonts or image formats need to be modified or edited, technicians often need to re-edit them on the PC based on the printing effect before importing them into the inkjet printer control system. Furthermore, the technicians need to repeatedly modify, optimize, and import the files between the external PC and the inkjet printer based on the printing effect. It is impossible to modify or edit the fonts and image formats directly on the inkjet printer, resulting in low printing efficiency. Summary of the Invention

[0004] Based on this, it is necessary to address the above technical problems. The present invention provides an editable inkjet coding system and inkjet coding method. By integrating the generated custom format dot matrix fonts and dot matrix images into the inkjet printer, editing and modification can be achieved on the inkjet printer based on the custom format dot matrix fonts, achieving what you see is what you get.

[0005] In one embodiment, the present invention provides an editable inkjet printer system, comprising an editor, a controller and an inkjet printer; the editor integrates a custom dot matrix font library and a dot matrix format corresponding to the dot matrix font library; the editor obtains information to be printed, and encodes and saves the information to be printed based on the custom dot matrix format to obtain dot matrix data information corresponding to the information to be printed; then outputs the corresponding information to be printed according to the dot matrix data information; the controller receives the information to be printed output instruction of the editor, and controls the inkjet printer to print the information to be printed according to the information to be printed output instruction of the editor.

[0006] Furthermore, the customized dot matrix format includes file header information of the dot matrix font library, page offset address information, and page data information corresponding to each page.

[0007] Furthermore, the page offset address information is the page offset address information in the dot matrix font library file where the character is located; the page data information of each page includes the entire page character information and the dot matrix data information corresponding to each character in the page.

[0008] Furthermore, the editor includes:

[0009] An acquisition unit, used for acquiring input information to be printed;

[0010] A judging unit, configured to judge whether there is dot matrix data information corresponding to the information to be printed in a dot matrix font library;

[0011] The output unit is configured to output the corresponding information to be printed according to the dot matrix data information when determining that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library.

[0012] Furthermore, the judging unit is further configured to, when it is determined that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library, judge whether an edit or delete instruction for the dot matrix font corresponding to the current information to be printed is obtained;

[0013] The editor further includes a deletion unit, which is used to delete the dot matrix data information of the information to be printed stored in the dot matrix font library when a deletion instruction for the information to be printed is obtained;

[0014] The editor further includes an updating unit configured to, when an editing instruction for the information to be printed is obtained, obtain an updated dot matrix font of the information to be printed according to the editing instruction, and update and save dot matrix data information corresponding to the updated dot matrix font of the information to be printed according to the custom dot matrix format;

[0015] The output unit is further configured to output corresponding information to be printed according to the dot matrix data information corresponding to the updated dot matrix font.

[0016] Furthermore, the update unit is also used to calculate the corresponding page offset address information and page data information based on the character encoding corresponding to the information to be printed, and update and save the dot matrix data information corresponding to the dot matrix font after the information to be printed is updated based on the calculated corresponding page offset address information and page data information.

[0017] In another embodiment, the present invention further provides a coding method implemented based on the above-mentioned coding system, comprising:

[0018] S1: Get the information to be printed;

[0019] S2A: Determine whether the dot matrix data information corresponding to the information to be printed exists in the current dot matrix font library. If not, return to S1; if so, enter S3;

[0020] S3: Output the corresponding information to be printed according to the dot matrix data information, and return to execute S1;

[0021] S4: Control the inkjet printer to print the information to be printed.

[0022] Furthermore, when it is determined in S2A that the current dot matrix font library contains dot matrix data corresponding to the information to be printed, the method further includes:

[0023] S2B: Determine whether the edit or delete instruction for the dot matrix font corresponding to the information to be printed is obtained; if not, return to execute S1; if so, enter S2C or S2D;

[0024] S2C: Delete the dot matrix data information corresponding to the dot matrix font in the current dot matrix font library according to the deletion instruction, and return to execute S1;

[0025] S2D: According to the editing instruction and the editing operation of the information to be printed, the updated dot matrix font of the information to be printed is obtained, and the dot matrix data information corresponding to the updated dot matrix font is saved and then the process proceeds to S3.

[0026] The editable inkjet printer system provided above by the present invention includes an editor, a controller, and an inkjet printer. The editor and controller are arranged on the inkjet printer, and the editor integrates a custom dot matrix font library and a dot matrix format corresponding to the dot matrix font library; the editor is used to obtain information to be printed, and encode and save the information to be printed based on the custom dot matrix format to obtain dot matrix data information corresponding to the information to be printed; and output the corresponding information to be printed according to the dot matrix data information; the controller is used to receive output instructions from the editor and control the inkjet printer to print the information to be printed according to the output instructions of the editor. The generated custom format dot matrix font and dot matrix image are integrated into the inkjet printer through the editor, and the font can be edited and modified on the inkjet printer based on the generated custom format dot matrix font, realizing what you see is what you get. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1-3 A schematic diagram of generating a bitmap font library using DocodFont font generation software in one embodiment;

[0028] Figure 4-5 A schematic diagram of generating a dot matrix image using DocodFont font generation software in one embodiment;

[0029] Figure 6 A dot matrix format diagram customized in a dot matrix font library in one embodiment;

[0030] Figure 7 Schematic diagram of a flow chart of a coding method corresponding to an editable coding system in one embodiment;

[0031] Figure 8 A schematic diagram of a display interface of an inkjet printer in one embodiment;

[0032] Figure 9 Schematic diagram of the editing interface of an inkjet printer in one embodiment. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0034] Specifically, in this embodiment, a custom dot matrix font library and dot matrix image are first generated by font generation software, and the dot matrix font and dot matrix image generated by the font generation software are encoded and stored in a custom dot matrix format. It can be understood that the custom dot matrix format is a storage format for the dot matrix font and dot matrix image generated by the font generation software. The font generation software is a self-developed DocodFont font generation software. The DocodFont font generation software can be used in a terminal device to generate multiple different dot matrix font libraries and dot matrix images, and to edit the generated dot matrix fonts and dot matrix images.

[0035] Specifically, the method of generating a dot matrix font library using DocodFont font generation software in a terminal device is as follows:

[0036] S-10: Get vector font file;

[0037] Specifically, if Figure 1 As shown, when generating a custom bitmap font library using font generation software, the corresponding font file is selected on the "Generate Font Library" interface. In this embodiment, the font file is a TTF vector font file. It is understandable that TTF (TrueTypeFont) vector fonts are a commonly used font representation method. In this embodiment, the corresponding bitmap format is customized and generated using a universal TTF vector font file.

[0038] S-12, obtaining, according to the vector font file, dot matrix data information of each character in the vector font file;

[0039] Specifically, in this embodiment, after obtaining the TTF vector font file, the FreeType font engine is used to obtain the dot matrix data for each character in the TTF vector font file. Specifically, FreeType is an open-source, high-quality, and portable font engine that provides a unified interface for accessing files in various font formats. Therefore, in this embodiment, after obtaining the TTF vector font file, the FreeType font engine is used to access the TTF vector font file, thereby obtaining the dot matrix data information for each character in the TTF vector font file.

[0040] S-13, determining a Unicode encoding range, and generating a corresponding dot matrix font library according to the determined Unicode encoding range and the dot matrix data information of each character in the vector font file.

[0041] Specifically, after obtaining the vector font file, it can select the corresponding Unicode code range according to the characters required for the printed product. By selecting different Unicode code ranges, it can generate a variety of font library files with different ranges according to actual needs. Figure 2 As shown, a variety of different Unicode encoding ranges are shown. According to the actual font required, the corresponding character code range can be selected to generate a plurality of corresponding different dot matrix font libraries. Figure 2 These are just examples and do not cover the entire Unicode code range.

[0042] Understandably, the entire Unicode range includes 0x0000 - 0x10FFFF, which can accommodate millions of characters. Each character has a unique encoding, that is, each character corresponds to a binary value, which can be called a code point. For example, the code point of the Chinese character "中" is 0x4E2D, and the code point of the capital letter A is 0x41. The specific Unicode encoding corresponding to a character can be obtained by querying the existing Unicode character encoding table. The Unicode encoding range can be used to determine whether a certain character or string contains Chinese, English, or special symbols. In the embedded inkjet printer control system, its memory resources are precious. When generating a dot matrix font library based on the DocodFont font generation software in the terminal device, the required Unicode encoding range can be selected as needed to generate its corresponding different dot matrix font libraries. Each dot matrix font library corresponds to a different Unicode encoding range, and its font volume is small. Therefore, when integrating the generated dot matrix font library and its corresponding custom dot matrix format into the above-mentioned embedded inkjet printer control system, when generating discontinuous Unicode characters according to the custom dot matrix format, there is no need to reserve space for invalid characters, which causes the font file to become larger, thus saving the memory resources of the embedded inkjet printer control system and overcoming the problem of large memory occupation of the dot matrix font.

[0043] Furthermore, after converting the ttf vector font into the corresponding dot matrix font using the FreeType font engine, based on the selected Unicode encoding range, a dot matrix font library corresponding to this Unicode encoding range is generated. Understandably, this dot matrix font library can include one or more dot matrix characters, and the specific dot matrix characters included are determined by the selected Unicode encoding range. Among them, when generating the dot matrix font library, no matter how many different Unicode encoding ranges are selected, each time a Unicode encoding range is selected, a dot matrix font library file corresponding to the generated dot matrix font library is output. Based on multiple selections of different Unicode encoding ranges, multiple different dot matrix font libraries can be generated. Specifically, please refer to Figure 3 , which shows a schematic diagram of the generated dot matrix font library, and the dot matrix font library includes dot matrix fonts corresponding to the selected Unicode encoding range.

[0044] Furthermore, in the terminal device, the generated DocodFont font generation software can generate multiple different dot matrix font libraries and implement the editing of the generated dot matrix fonts. At the same time, it can also generate dot matrix pictures and implement the editing of dot matrix pictures.

[0045] Among them, the method of generating dot matrix pictures using the DocodFont font generation software on the terminal device is as follows:

[0046] S-20: Determine the pixel value of the image;

[0047] Specifically, when generating a dot matrix image, first determine the corresponding image pixel value and customize the image height and width. For example Figure 4 , determine that the pixel values of the height and width of the image are both 32 pixels.

[0048] S-22: Based on the pixel values of the image, draw and generate a corresponding dot matrix image.

[0049] Specifically, after determining the pixel value corresponding to the image, the interface displays the image as a thumbnail according to the pixel value corresponding to the image, and forms an image editing interface on the image thumbnail, and then draws on the image editing interface to obtain the dot matrix image generated by the drawing. Figure 5 , which shows a schematic diagram of the corresponding generated bitmap image. Optionally, when drawing and generating a bitmap image, when the left mouse button is clicked on a valid point on the image editing interface, the valid point is set to black, and when the right mouse button is clicked on a valid point on the image editing interface, the valid point is set to white. Alternatively, when the left mouse button is clicked on a valid point on the image editing interface, the valid point is set to black, and when the left mouse button is clicked on the same valid point again, the valid point is set to white. After drawing is completed, the corresponding bitmap image is saved.

[0050] It can be understood that in an embodiment, when the generated DocodFont font generation software is used to generate a dot matrix font library and a dot matrix image, the dot matrix characters and dot matrix images in the generated dot matrix font library are encoded and saved based on a custom dot matrix format. Specifically, the custom dot matrix format divides the Unicode code of the selected range into 256 pages, with 256 characters per page for saving. Its dot matrix format includes the file header information, page offset address information and page data information of the dot matrix font library. Among them, the file header information of the dot matrix font library includes the size information of the characters in the dot matrix font library and the start code and end code of the characters in the font library. The memory space occupied by its file header information can be determined according to the size of the generated dot matrix font library file, which can be specifically 100 bytes. Specifically, continue to refer to Figure 1 When generating a dot font library, you can set the file version, compression value, checksum, pixel size, font mode, font weight, etc. Therefore, the file header information of the corresponding dot font library generated according to the defined parameter information includes the above definition information, see Figure 4 When generating a dot matrix image, the file header information is determined based on the width and height of the image; the page offset address information includes the page offset address information in the dot matrix font library file where the character is located; the page data information of each page includes the entire page character information and the dot matrix data information corresponding to each character in the page.

[0051] Specifically, the page offset address information of each page from 0 to 255 is given in the page offset address information, and the character data information included in the corresponding page can be found through the corresponding page offset address information. When the page offset address information of the corresponding page is zero, it means that there is no character data on the page. When the page offset address information of the corresponding page is non-zero, it means that there is character data on the page. Among them, pageoffGlyphData[n] can be used to represent the page offset address information of page n, where n is 0-255. For example, when pageoffGlyphData[4] = 0X0000, it means that there is no character data on page 4. When pageoffGlyphData[4] = 0X4008, the corresponding page data information can be found according to the page offset address information 0X4008. The page data information of each page includes all the character information of the page and the specific dot matrix data information corresponding to each character information. Among them, GlyphData[n] can be used to represent the n-th character information in the current page, and LatticeData[n] can be used to represent the dot matrix data information corresponding to the n-th character information in the current page. n is 0-255. When the n-th character information GlyphData[n] in the page is empty, it means that there is no character at that position; when the n-th character information GlyphData[n] in the page is not empty, it means that the character is valid, and then the corresponding dot matrix data information can be found through LatticeData[n]. See Figure 6 , a specific dot matrix format diagram is given. The corresponding page data information is found according to the page offset address information pageoffGlyphData[n]. When GlyphData[n] is not empty, the Unicode code of the nth character corresponding to it is obtained according to GlyphData[n]. Then, the specific dot matrix data information LatticeData[n] corresponding to it in the page is obtained according to the corresponding Unicode code, and the dot matrix character is output based on the specific dot matrix data information.

[0052] In this embodiment, when the DocodFont font generation software is used in the terminal device to generate multiple different dot matrix font libraries and dot matrix images, the above-mentioned customized dot matrix format is used to save the dot matrix fonts and dot matrix images. Through the above-mentioned customized dot matrix format, the dot matrix fonts and dot matrix images in each dot matrix font library can be used flexibly. When it is necessary to insert a character in the dot matrix font library, the corresponding page offset address information can be determined according to the Unicode encoding, and its corresponding position information in the page data information can be determined based on the Unicode encoding. It can be understood that if the position information corresponding to the page data information is determined to be n, the Unicode encoding of the inserted character is saved to GlyphData[n], and the corresponding dot matrix data information is saved to LatticeDate[n]; when it is necessary to delete the corresponding character in the dot matrix font library, the corresponding page offset address information can be determined according to the Unicode encoding, and the corresponding dot matrix data information will be deleted after determining its corresponding position information in the page data information. It can be understood that if the position information corresponding to the page data information is determined to be n, GlyphData[n] and LatticeDate[n] are set to empty and then saved; when it is necessary to edit a character in the dot matrix font library, the corresponding dot matrix data information is obtained according to the Unicode code corresponding to the edited character, and the dot matrix data information corresponding to the original character is replaced and saved; further, when it is necessary to delete a whole page of characters in the dot matrix font library, the page offset address information corresponding to the page data information can be set to empty and then saved; when it is necessary to insert a whole page of characters in the dot matrix font library, the whole page of characters can be inserted into the position where the page offset address information is empty, and the corresponding page offset address information is saved. Based on the above-mentioned customized dot matrix format, it is possible to flexibly implement update operations such as editing, inserting or deleting characters in the dot matrix font library, and it is also possible to implement insertion or deletion of whole page characters. At the same time, it selects the required Unicode range in generating the dot matrix font library to generate the corresponding dot matrix font library, and does not need to occupy invalid characters, which causes the font file to become larger. When the corresponding dot matrix font library is subsequently integrated into the inkjet control system, the memory resources of the inkjet control system are further saved.

[0053] Furthermore, in order to solve the problem that it is impossible to edit and modify the font format directly on the inkjet printer and improve the printing efficiency of the inkjet printer, in this embodiment, an editable inkjet printer system is provided, and the above-mentioned generated custom format dot matrix font is integrated into the inkjet printer system through the editor. According to the generated custom format dot matrix font, the font can be edited and modified on the inkjet printer system, realizing what you see is what you get.

[0054] Specifically, an editable inkjet printer system includes an editor, a controller and an inkjet printer, wherein the editor integrates a custom dot matrix font library and a dot matrix format corresponding to the dot matrix font library; the editor is used to obtain information to be printed, and encode and save the information to be printed based on the custom dot matrix format to obtain dot matrix data information corresponding to the information to be printed; and outputs the corresponding information to be printed according to the dot matrix data information; the controller is used to receive the output instructions of the editor, and control the inkjet printer to print the information to be printed according to the output instructions of the editor.

[0055] Furthermore, in this embodiment, the editor includes an acquisition unit, a judgment unit and an output unit. The coding method implemented based on the editor is as follows: Figure 7 As shown, its implementation methods include:

[0056] An acquisition unit, used for acquiring input information to be printed;

[0057] Specifically, the information to be printed can be Chinese characters, characters or symbols. Figure 8 , it can input the corresponding information to be printed on the display interface of the editor, for example, the information to be printed can be character A. Optionally, it can obtain the information to be printed through keyboard input or through the touch screen.

[0058] A judging unit, configured to judge whether there is dot matrix data information corresponding to the information to be printed in a dot matrix font library;

[0059] Specifically, after obtaining the input information to be printed, for example, character A, the judgment unit first searches in the current dot matrix font library according to the dot matrix format customized by the dot matrix font library to determine whether the dot matrix data information corresponding to character A exists in the dot matrix font library. If so, it means that the character A has been saved in the dot matrix font library according to the dot matrix format customized by the dot matrix font library; if not, it means that the character A is not in the current dot matrix font library, and the step of "obtaining information to be printed" is returned to perform the next round of "obtaining information to be printed" operation.

[0060] an output unit, configured to output the corresponding information to be printed according to the dot matrix data information when determining that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library;

[0061] Specifically, when it is determined that the current dot matrix font library contains dot matrix data corresponding to the information to be printed, the output unit outputs the information to be printed according to the corresponding dot matrix data. For example, if the current dot matrix font library contains dot matrix data corresponding to the input character A, the output unit directly outputs the character A according to the corresponding dot matrix data.

[0062] Furthermore, the judgment unit is further configured to, when it is determined that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library, further judge whether an edit or delete instruction for the dot matrix font corresponding to the current information to be printed is obtained; if no edit or delete instruction for the dot matrix font corresponding to the current information to be printed is obtained, then the step of "obtaining the information to be printed" is returned to perform the next round of "obtaining the information to be printed". If an edit or delete instruction for the dot matrix font corresponding to the current information to be printed is obtained, the corresponding operation is performed according to the corresponding edit or delete instruction. Please continue to refer to Figure 8 , when the input character A is selected on the display interface of the editor, click the "Delete" button to obtain the delete instruction for character A; when the input character A is long pressed, the edit instruction for character A is obtained. When the delete instruction for character A is obtained, the dot matrix data information of the current character A saved in the current dot matrix font library is deleted, and the step of "obtaining information to be printed" is returned to perform the next round of "obtaining information to be printed" operation; when the edit instruction for character A is obtained, the Figure 9 The controller obtains the updated dot matrix font of character A according to the editing instruction. Figure 9 As shown, the editing instruction can be a click operation on the dot matrix font corresponding to character A. When the right mouse button clicks on a valid black point on the editing interface, the valid black point is set to an invalid white point; when the left mouse button clicks on an invalid white point on the editing interface, the invalid white point is set to a valid black point. Alternatively, when the left mouse button clicks on a valid point on the editing interface, the valid point is set to black. When the left mouse button clicks on the same valid point again, the valid point is set to white, completing the editing of the dot matrix font corresponding to the current character A and obtaining the updated dot matrix font of character A. Furthermore, when the updated dot matrix font of character A is obtained, the dot matrix data information corresponding to the updated dot matrix font is saved to the location of the current character A in the dot matrix font library. At this time, the output unit outputs the corresponding character A according to the dot matrix data information corresponding to the updated dot matrix font.

[0063] Furthermore, after the output unit outputs the corresponding character A according to the dot matrix data corresponding to the updated dot matrix font, the controller is configured to receive the output instruction of the editor and control the inkjet printer to print the information to be printed according to the output instruction of the editor. Simultaneously, the process returns to the step of "obtaining the information to be printed" and performs the next round of "obtaining the information to be printed".

[0064] Returning to this embodiment, when generating a dot matrix font library and dot matrix pictures based on the DocodFont font generation software, the space size occupied by one character in the font library is determined according to the selected pixel size. Taking 16*16 as an example, it can be understood that one byte occupies 8 bit positions, so the memory space occupied by one character in the 16*16 font library is 32 bytes. One page of data includes 256 characters, and the memory space it occupies is 8192 bytes. The recording format of the page data information of one character is shown in Table 1 below:

[0065]

[0066] Table 1

[0067] When determining the storage location of a character in the custom dot matrix font library, first calculate the page offset address information of the character in the dot matrix font library. The calculation formula of its page offset address information is as follows:

[0068] Page offset address information = (character Unicode code - starting code of the dot matrix font library) * number of bytes occupied by the character;

[0069] Furthermore, assume that the information to be printed "中" is input on the display interface. First, calculate the page offset address information corresponding to the character "中" based on the above calculation formula. Find the page of data where "中" is located according to the corresponding page offset address information, and further calculate the storage location of the corresponding dot matrix data information according to its corresponding Unicode code. When the corresponding dot matrix data information is found, the dot matrix data information corresponding to the character "中" is stored at this storage location, and the character "中" is output based on its corresponding dot matrix data information. If a delete or edit instruction for the character "中" is obtained, then further delete the dot matrix data information at the corresponding storage location or update the dot matrix data information at the corresponding storage location according to the above method. Furthermore, the method for determining the storage location where the character is located is as follows:

[0070] Character starting storage location = character Unicode code / 256;

[0071] Specifically, assume that the Unicode code corresponding to the character "中" is 0X4e2D, and its corresponding decimal is 20013. Since one page stores 256 characters, the starting storage location of the dot matrix data information corresponding to "中" is the 45th position in the 78th row of the current page. Thus, the corresponding dot matrix data information can be saved at this position. At the same time, when deleting or editing the character "中", the dot matrix data information at the corresponding storage location can be deleted or the dot matrix data information can be updated.

[0072] The editable inkjet coding system provided in this embodiment integrates the above-generated custom format dot matrix fonts and dot matrix images into the inkjet coding system through an editor. According to the generated custom format dot matrix fonts and dot matrix images, the fonts and images are edited and modified on the inkjet coding system, realizing what you see is what you get.

[0073] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0074] The above-described embodiments merely represent several implementation methods of the present invention. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

Claims

1. An editable inkjet coding system, characterized in that: Including editor, controller and inkjet printer; The editor integrates a custom dot matrix font library and a dot matrix format corresponding to the dot matrix font library; the editor obtains information to be printed, encodes and saves the information to be printed based on the custom dot matrix format, and obtains dot matrix data information corresponding to the information to be printed; and then outputs the corresponding information to be printed based on the dot matrix data information; When the editor obtains an editing instruction for the information to be printed, the editor obtains the updated dot matrix font of the information to be printed according to the editing instruction, and updates and saves the dot matrix data information corresponding to the updated dot matrix font of the information to be printed according to the customized dot matrix format, thereby obtaining the dot matrix data information corresponding to the updated information to be printed; The controller receives an output instruction of information to be printed from the editor, and controls the inkjet printer to print the information to be printed according to the output instruction of information to be printed from the editor.

2. The coding system according to claim 1, characterized in that: The customized dot matrix format includes file header information of the dot matrix font library, page offset address information, and page data information corresponding to each page.

3. The coding system according to claim 2, characterized in that: The page offset address information is the page offset address information in the dot matrix font library file where the character is located; the page data information of each page includes the entire page character information and the dot matrix data information corresponding to each character in the page.

4. The coding system according to claim 2, characterized in that: The editor includes: An acquisition unit, used for acquiring input information to be printed; A judging unit, configured to judge whether there is dot matrix data information corresponding to the information to be printed in a dot matrix font library; The output unit is configured to output the corresponding information to be printed according to the dot matrix data information when determining that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library.

5. The coding system according to claim 4, characterized in that: The judging unit is further configured to, when it is determined that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library, judge whether an edit or delete instruction for the dot matrix font corresponding to the current information to be printed is obtained; The editor further includes a deletion unit, which is used to delete the dot matrix data information of the information to be printed stored in the dot matrix font library when a deletion instruction for the information to be printed is obtained; The editor further includes an updating unit configured to, when an editing instruction for the information to be printed is obtained, obtain an updated dot matrix font of the information to be printed according to the editing instruction, and update and save dot matrix data information corresponding to the updated dot matrix font of the information to be printed according to the custom dot matrix format; The output unit is further configured to output corresponding information to be printed according to the dot matrix data information corresponding to the updated dot matrix font.

6. The coding system according to claim 5, characterized in that: The updating unit is further configured to calculate corresponding page offset address information and page data information according to the character encoding corresponding to the information to be printed, and update and save the dot matrix data information corresponding to the updated dot matrix font of the information to be printed according to the calculated corresponding page offset address information and page data information.

7. A coding method based on the coding system according to any one of claims 1 to 6, characterized in that: include: S1: Get the information to be printed; S2A: Determine whether the dot matrix data corresponding to the information to be printed exists in the current dot matrix font library. If not, return to execute S1; If yes, go to S3; S3: Output the corresponding information to be printed according to the dot matrix data information, and return to execute S1; S4: Control the inkjet printer to print the information to be printed.

8. The coding method according to claim 7, wherein: When it is determined in S2A that dot matrix data information corresponding to the information to be printed exists in the current dot matrix font library, the method further includes: S2B: Determine whether the edit or delete instruction for the dot matrix font corresponding to the information to be printed is obtained; if not, return to execute S1; if so, enter S2C or S2D; S2C: Delete the dot matrix data information corresponding to the dot matrix font in the current dot matrix font library according to the deletion instruction, and return to execute S1; S2D: According to the editing instruction and the editing operation of the information to be printed, the updated dot matrix font of the information to be printed is obtained, and the dot matrix data information corresponding to the updated dot matrix font is saved and then the process proceeds to S3.

Citation Information

Patent Citations

  • Implementation method of dot matrix word library of embedded system

    CN101008939A

  • Printing method and device and storage medium

    CN112486428A

  • Printing processing method, device and equipment

    CN118051192A