printer
The printer addresses the issue of mismatched character encoding systems by using conversion tables to adapt character codes, ensuring accurate character rendering regardless of the encoding system in the print data.
Patent Information
- Application Number
- JP2023069341
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2024-10-31
AI Technical Summary
Printers that use built-in font information may fail to correctly print characters when the character encoding system in the print data differs from the system included in the font information, leading to inappropriate character rendering.
A printer equipped with a memory that stores conversion tables for different character encoding systems, allowing it to convert character codes from the print data to a predetermined system, such as Unicode, ensuring accurate font rendering.
Enables the printer to correctly render characters even when the encoding system in the print data differs from the font's encoding system, enhancing printing accuracy.
Smart Images

Figure 2024155010000001_ABST
Abstract
Description
[Technical field]
[0001] The technical field disclosed in this specification relates to a printer capable of printing based on print data described in a page description language. [Background technology]
[0002] Conventionally, among printers capable of printing based on print data written in a page technology language, there are those that store font information for built-in fonts in advance and use that font information for printing, as disclosed in Patent Document 1, for example. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2014-56583 A Summary of the Invention [Problem to be solved by the invention]
[0004] Depending on the print data, a character code system different from the one included in the font information may be specified. In such cases, the characters indicated by the character codes may not match, and appropriate characters may not be printed with the specified font, so there is room for improvement. [Means for solving the problem]
[0005] A printer made to solve this problem is a printer equipped with a memory, a print engine, and a controller, wherein the memory is capable of storing a character code conversion table for each character code system consisting of a plurality of characters and character codes corresponding to each character, the conversion table being a table that associates a first character code in the character code system to be converted with a second character code in a predetermined character code system, and the controller is configured to be able to execute an acquisition process for acquiring print data, a specification process for identifying a character code system based on the acquired print data when the acquisition process acquires print data including a character code in a character code system other than the predetermined character code system, a read process for reading from the memory the conversion table corresponding to the character code system identified in the specification process, a conversion process for converting the character code included in the print data acquired in the acquisition process into the second character code using the conversion table read in the read process as the first character code, and a print process for generating raster data using the second character code converted in the conversion process, and causing the print engine to perform printing based on the generated raster data.
[0006] When the printer disclosed in this specification acquires print data including character codes in a character coding system other than the predetermined character coding system, the printer reads from memory a conversion table corresponding to the character coding system identified based on the print data. The printer then uses the conversion table to convert the character codes included in the print data into character codes in the predetermined character coding system. This allows the printer to generate raster data using character codes in the predetermined character coding system, increasing the likelihood that the printer can properly print characters in the font specified in the print data.
[0007] A printing system including the printer, a control method for implementing the functions of the printer, a computer program, and a computer-readable storage medium storing the program are also novel and useful. Effect of the Invention
[0008] The technology disclosed in this specification realizes a technology that increases the likelihood of printing appropriate characters even for a print job that specifies a character code system different from the character code system included in the font information. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram showing a schematic configuration of a printer. [Diagram 2] FIG. 2 is an explanatory diagram showing an example of the configuration of font information. [Diagram 3] 10 is a flowchart showing a procedure for print job processing. [Figure 4] 11 is a flowchart showing a procedure for a font determination process. [Diagram 5] FIG. 2 is an explanatory diagram showing an example of the configuration of a conversion table; [Figure 6] 13 is a flowchart showing a procedure for an intermediate data acquisition process. [Figure 7] 13 is a flowchart showing a procedure for a conversion table acquisition process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A printer according to an embodiment will be described in detail below with reference to the accompanying drawings. The present embodiment discloses a printer capable of printing based on print data described in a page description language.
[0011] As shown in Fig. 1, the printer 1 includes a control unit 10 including a CPU 11 and a memory 12. The printer 1 also includes a user interface (hereinafter referred to as "user IF") 13, a communication interface (hereinafter referred to as "communication IF") 14, and a print engine 15. The CPU 11 is an example of a controller. The user IF 13, the communication IF 14, and the print engine 15 are all electrically connected to the control unit 10. Note that the control unit 10 in Fig. 1 is a general term for hardware and software used to control the printer 1, and does not necessarily represent a single piece of hardware actually present in the printer 1.
[0012] The CPU 11 executes various processes according to a program read from the memory 12 or based on a user's operation. Various programs and various data are stored in the memory 12. The memory 12 is also used as a working area when various processes are executed. The memory 12 may include a buffer provided in the CPU 11.
[0013] An example of memory 12 is not limited to a ROM, RAM, HDD, etc. built into printer 1, but may be a storage medium that is readable and writable by CPU 11. A storage medium that is readable by CPU 11 is a non-transitory medium. In addition to the above examples, non-transitory media also include recording media such as CD-ROM and DVD-ROM. Non-transitory media are also tangible media. On the other hand, an electrical signal that carries a program downloaded from server 100 on the Internet is a type of medium that is readable by CPU 11, but is not included in an example of memory 12.
[0014] The user IF 13 includes hardware for displaying a screen for notifying the user of information and hardware for accepting operations by the user. The user IF 13 may include a touch panel, or may be a combination of a display unit and an operation button.
[0015] The communication IF 14 includes hardware for communicating with an external device. The communication standards of the communication IF 14 are Ethernet (registered trademark), Wi-Fi (registered trademark), USB, etc. The printer 1 may be provided with a plurality of communication IFs 14 compatible with a plurality of communication standards.
[0016] Print engine 15 includes a device capable of printing based on image data by, for example, an electrophotographic method or an inkjet method. Print engine 15 may be equipped with coloring materials of multiple colors and capable of color printing, or may be equipped with coloring materials of only one color and perform monochrome printing.
[0017] In the memory 12, for example, as shown in FIG. 1, a print control program 21, built-in font information 22, downloaded font information (hereinafter referred to as "DL font information") 23, and a conversion table 24 are stored.
[0018] The conversion table 24 is a table that associates character codes of different character code systems with each other. The conversion table 24 is information that may or may not be stored when the printer 1 is shipped from the factory. The details of the conversion table 24 will be described later.
[0019] The built-in font information 22 is font information including glyph data of multiple characters. The built-in font information 22 is font information of built-in fonts that are pre-installed in the printer 1. The built-in font information 22 is information stored in the memory 12 when the printer 1 is shipped from the factory.
[0020] DL font information 23 is font information that includes glyph data of multiple characters. DL font information 23 is font information for downloaded fonts (hereinafter referred to as "DL fonts") that are not fonts that are pre-installed in printer 1. DL font information 23 is information that is not stored in printer 1 when it is shipped from the factory.
[0021] 1, the printer 1 can communicate with a server 100 that has font information via a communication IF 14. After being shipped from the factory, the printer 1 can store DL font information 23 in the memory 12 by downloading the DL font information 23 from the server 100 based on, for example, a user's instruction. Also, the user can connect a USB memory in which the DL font information 23 is stored to the printer 1 to cause the printer 1 to use the DL font information 23. The DL font information 23 is provided as information in the format of, for example, a TrueType font, an OpenType font, or a PostScript font.
[0022] The built-in font information 22 and DL font information 23 stored in the printer 1 include font information in TrueType font format. The font information in TrueType font format includes font information 30 for each font type, for example, configured as shown in Fig. 2. The font information 30 includes a header table 31, a character table 32, a location table 33, and a glyph table 34. The font information 30 may further include information indicating the print position and information indicating the character width for each character.
[0023] The header table 31 is a table that stores information including the position information of the character table 32, the position information of the place table 33, and the position information of the glyph table .
[0024] Character table 32 is a table that associates the character code of each character with the glyph ID of the character. A character code is information that identifies each character based on a character coding system. A character coding system is a standard for identifying characters, and is information that indicates a set that includes multiple character codes that represent each character. There are multiple types of character coding systems, and the same character may be represented by different character codes in different character coding systems.
[0025] The location table 33 is a table in which the glyph ID is associated with the location information of the glyph data corresponding to the glyph ID for each glyph ID. The glyph ID is identification information for identifying the glyph data of each character.
[0026] The glyph table 34 is a table that stores a plurality of glyph data such as glyph data 341, 342, etc. Each glyph data is information that indicates the outline of each character, and each glyph data is assigned a unique glyph ID.
[0027] Font information 30 in TrueType font format uses character codes in the Unicode system. That is, in the case of TrueType font format, character codes in the Unicode system and glyph IDs are associated with each other in character table 32 of font information 30. The Unicode system is an example of a predetermined character code system. Font information 30 in TrueType font format is an example of font information in which each glyph data is associated with a character code in a predetermined character code system.
[0028] The printer 1 may have font information in which character codes in the Unicode system correspond to glyph data as the built-in font information 22 and DL font information 23. The built-in font information 22 and DL font information 23 of the printer 1 may also include font information in which character codes in a character code system other than the Unicode system correspond to glyph data.
[0029] Next, the operation of the printer 1 of the embodiment will be described. The following process basically indicates the processing of the CPU 11 according to the commands written in the program. The processing by the CPU 11 also includes hardware control via the API of the operating system (hereinafter referred to as "OS"). In this specification, the description of the OS may be omitted and the operation of each program may be described. Also, "acquisition" is used as a concept that includes acquisition by request and acquisition without request. Data that has the same substantial meaning but different formats will be treated as the same data.
[0030] The printer 1 can acquire a print job and execute printing based on the acquired print job. The print job is, for example, print data indicating an image to be printed, and includes PDL data described in a page description language and PJL data indicating various parameters related to printing. The PDL data is, for example, print data in a format such as PCL or PDF. The printer 1 may receive and acquire the print job from an external device via the communication IF 14, or may read and acquire the print job from a USB memory attached to the communication IF 14.
[0031] Print data written in a page description language may contain text objects that are to print characters. The print data includes information on each character to be printed, such as font type, character code, character size, and character color, but does not include information indicating the outline of the character. When rasterizing print data that includes a text object, the printer 1 acquires glyph data from font information such as the built-in font information 22 and DL font information 23, and uses the acquired glyph data to generate raster data that indicates the shape of the character.
[0032] The character codes that specify the characters to be printed in a text object are written in a specific character code system for each print data format. For example, print data in PDF format is written using character codes in the Unicode system, which is the character code system used in font information 30 in TrueType font format (see FIG. 2). If the print data is in PDF format, the printer 1 can correctly search for glyph data from the font information 30 using the character codes included in the print data. This is because the character codes in the font information 30, which uses character codes in the Unicode system, correspond to the character codes included in the print data.
[0033] On the other hand, print data in the PCL5 format provided by Hewlett-Packard (registered trademark) uses a character code system different from the Unicode system. Since the character code system used in the print data is not the Unicode system, the printer 1 may not be able to correctly search for glyph data from the font information 30 using the character code included in the print data in the PCL5 format. This is because the character code in the font information 30, which uses character codes in the Unicode system, may not correspond to the character code included in the print data.
[0034] The following describes the procedure of print job processing, which is executed when an instruction to execute a print job including print data in PCL5 format is received, with reference to the flowchart in Fig. 3. The print job processing is executed by the CPU 11 of the printer 1 based on the print control program 21. Print data in PCL5 format is print data that includes character codes in a character code system other than the Unicode system. Note that the printer 1 can determine the type of PDL data based on, for example, the PJL data.
[0035] In the print job process, the CPU 11 sequentially acquires print data included in the accepted print job (S101). S101 is an example of an acquisition process. The CPU 11 then determines whether the acquired print data is data indicating a font selection instruction (S102). If the print data includes a command specifying a font, the CPU 11 determines that a font selection instruction has been accepted. If it is determined that a font selection instruction has been accepted (S102: YES), the CPU 11 executes a font determination process (S103).
[0036] The procedure of the font determination process will be described with reference to the flowchart in Fig. 4. In the font determination process, the CPU 11 determines whether or not there is font information for a specified font (S201). For example, if the font information is embedded in the print data, the CPU 11 determines that there is font information. Also, if the specified font is one of the built-in font information 22 or DL font information 23 and is stored in the memory 12, the CPU 11 determines that there is font information.
[0037] If it is determined that font information is present (S201: YES), the CPU 11 acquires the font information of the specified font (S202). For example, if font information is embedded in the print data, the CPU 11 acquires the font information from the print data and stores it in a predetermined area of the memory 12. Also, for example, if built-in font information 22 or DL font information 23 stored in the memory 12 is designated, the CPU 11 reads out the font information of the specified font from the memory 12. The CPU 11 may process the read out font information into a format that is easy to use in subsequent processes.
[0038] The CPU 11 determines whether the acquired font information is suitable for the print data (S205). Specifically, the CPU 11 determines whether the character code system used in the acquired font information matches the character code system used in the print data.
[0039] For example, font information embedded in print data is configured based on the character code system used in that print data. Also, some of the built-in font information 22 and DL font information 23 are configured based on the character code system used in PCL5 format print data. Therefore, if the specified font is a font embedded in print data or a font configured based on the character code system used in PCL5 format print data, the CPU 11 determines that the font information is suitable for the print data. On the other hand, if a font with a character code system different from the character code system used in PCL5 format print data is specified, such as the above-mentioned TrueType font format, the CPU 11 determines that the font information is not suitable for the print data.
[0040] If it is determined that the symbol set does not match the print data (S205: NO), the CPU 11 determines whether or not a symbol set setting instruction has been received (S206). If the print data includes a command instructing to set a symbol set, the CPU 11 determines that a symbol set setting instruction has been received. In PCL5 format print data, the character code system is specified by set information indicating the symbol set. The symbol set is information that specifies the character code system in PCL5 format print data. S206 is an example of a specification process.
[0041] When it is determined that a symbol set setting instruction has been received (S206: YES), the CPU 11 determines whether the received setting instruction is a setting instruction for the symbol set "18N" (S207). The character code of the symbol set "18N" is a character code system compatible with the character code of the Unicode system. Therefore, if the character code included in the print data is the character code of the symbol set "18N", the CPU 11 can obtain glyph data from the font information 30 that uses the character code of the Unicode system, using the character code included in the print data. When it is determined that the character code is compatible with the specified character code system, the determination of YES in S206 corresponds to a case where the character code has been specified.
[0042] If it is determined that the instruction is to set a symbol set other than "18N" (S207: NO), the CPU 11 determines whether or not a conversion table 24 corresponding to the specified symbol set is stored in the memory 12 (S211). The conversion table 24 is a table that stores the correspondence between character codes of different character code systems, for example, as shown in FIG. 5. The printer 1 stores a plurality of conversion tables 24, including conversion tables 241 and 242 shown in FIG. 5, in advance in the memory 12. The conversion table 24 may be stored in the memory 12 when the printer 1 is shipped from the factory, or may be stored in the memory 12 by downloading it after the shipment from the factory based on a user's instruction, as described later.
[0043] For example, conversion table 241 shown in Fig. 5(A) is a table in which character codes in the character coding system of symbol set "8U" are associated with character codes in the Unicode system. Conversion table 242 shown in Fig. 5(B) is a table in which character codes in the character coding system of symbol set "0H" are associated with character codes in the Unicode system. The character coding systems of symbol set "8U" and "0H" are different character coding systems. Therefore, for example, a character represented by character code "68" in each character coding system is a different character as shown in Fig. 5, and corresponds to different character codes in the Unicode system.
[0044] If it is determined that the conversion table 24 corresponding to the specified symbol set is stored in the memory 12 (S211: YES), the CPU 11 reads out the conversion table 24 (S215). S215 is an example of a read process. Furthermore, the CPU 11 determines that the font specified in the print data is a font to be converted (S216).
[0045] On the other hand, if it is determined that there is no font information for the specified font (S201: NO), or if it is determined that the print data does not include a symbol set setting instruction (S206: NO), the CPU 11 determines that there is an error (S221). If the font information for the specified font is not embedded in the print data and is not stored in memory 12, the CPU 11 cannot obtain the font information for that font.
[0046] Furthermore, if a symbol set has not been set, CPU 11 cannot identify the character code system. If S206 returns NO, this corresponds to the case where the character code system of the print data could not be identified. Note that the print data may not contain an instruction to set a symbol set if the print data is corrupted, if the symbol set setting command was not received, or if the number of the received symbol set setting command is unknown. If the character code system cannot be identified, the appropriate conversion table 24 cannot be obtained, and printer 1 ends the process with an error without printing.
[0047] Moreover, if it is determined that there is no conversion table 24 corresponding to the specified symbol set (S211: NO), the CPU 11 recommends downloading the conversion table 24 (S231). For example, the CPU 11 displays information about a download site provided by the vendor of the printer 1, and notifies the user that the font will become available if the conversion table is downloaded. If there is no conversion table 24 corresponding to the specified symbol set, the CPU 11 cannot convert the character code. If it is determined NO in S211, this corresponds to a case where the conversion table could not be read. The CPU 11 may attempt to download, for example, based on a user instruction.
[0048] Furthermore, the CPU 11 determines whether or not there is an alternative font (S232). An alternative font is a font that uses the character code system of the print data and can be used in place of the specified font. An alternative font is an example of a predetermined font. The printer 1 may have font information corresponding to various symbol sets as the built-in font information 22, for example.
[0049] If it is determined that an alternative font is available (S232: YES), the CPU 11 changes the font to be used to the alternative font (S233). That is, the CPU 11 reads out font information of the alternative font stored in the memory 12 and replaces it with the font information acquired in S202. The CPU 11 may notify the user that the font has been changed. If the printer 1 does not have a conversion table 24 corresponding to the specified symbol set, it can generate raster data using a predetermined font. This prevents problems such as characters to be printed being completely erased and an image containing no characters being printed.
[0050] If it is determined that there is no alternative font (S232: NO), the CPU 11 determines that an error has occurred (S221). If there is no conversion table 24 corresponding to the specified symbol set and no alternative font is available, printing cannot be performed properly, and the printer 1 ends the process with an error without printing.
[0051] On the other hand, after changing to an alternative font in S233, or when it is determined that the font information acquired in S202 matches the print data (S205: YES), the CPU 11 determines that the font is not subject to conversion (S241). If a font with the same character code system as the character code included in the print data is specified, there is no need to convert the character code.
[0052] Furthermore, if it is determined that a setting instruction for the symbol set "18N" has been received (S207: YES), the CPU 11 determines that the font is not subject to conversion (S241). Even if the specified font is a font in the Unicode system, if the character code system of the print data is compatible with the Unicode system, there is no need to convert the character code. If a character code system compatible with the Unicode system is specified, the printer 1 generates raster data without converting the character code, thereby eliminating unnecessary processing.
[0053] After S216, S221, or S241, the CPU 11 ends the font determination process and returns to the print job process.
[0054] Returning to the description of the print job processing procedure in Fig. 3, the CPU 11 judges whether or not an error has been determined in the font determination process of S103 (S105). If it is determined that an error has been determined (S105: YES), the CPU 11 notifies the error (S107) and ends the print job processing. If the printer 1 is unable to select an appropriate font or to read out an appropriate conversion table, it will be deemed an error since it will be unable to print appropriately.
[0055] If it is determined that a font selection instruction has not been received (S102: NO), or if it is determined that the result of the font determination process is not an error (S105: NO), the CPU 11 determines whether or not a character rendering instruction has been received (S111). If it is determined that a character rendering instruction has been received (S111: YES), the CPU 11 executes intermediate data acquisition processing (S112).
[0056] The procedure of the intermediate data acquisition process will be described with reference to the flowchart in Fig. 6. In the intermediate data acquisition process, the CPU 11 determines whether or not the font to be used for printing has been determined and the font information has been acquired (S301). For example, if a font selection instruction has not been received, the CPU 11 has not executed the font determination process and the font has not been determined. If it is determined that the font information has not been acquired (S301: NO), the CPU 11 reads out font information of a predetermined font that is included in the built-in font information 22 and is suitable for the print data to be printed (S302).
[0057] The font information read out in S302 is information on a specific font that is predetermined to be used by the printer 1 when no font designation is accepted. The CPU 11 may read out font information on an alternative font, for example, in the same manner as in S232 to S233 of the font determination process (see FIG. 4). Note that the CPU 11 may end the process with an error if no font designation is accepted.
[0058] After S302, or if it is determined that font information has already been acquired (S301: YES), CPU 11 acquires character codes indicating characters to be printed from the print data (S311). Furthermore, CPU 11 determines whether the font to be used is a font to be converted (S312). If CPU 11 determines in S216 of the font determination process (see FIG. 4) that the font is a font to be converted, it determines YES in S312.
[0059] If it is determined that the font is to be converted (S312: YES), CPU 11 converts the character code using conversion table 24 read out in S215 of the font determination process (S313). S313 is an example of the conversion process. Specifically, CPU 11 obtains a character code in the Unicode system that corresponds to the character code of the print data from conversion table 24. The character code of the print data is an example of a first character code. The character code in the Unicode system after conversion in conversion table 24 is an example of a second character code.
[0060] Furthermore, CPU 11 searches for glyph data from the font information of the font to be used, using the character code in the Unicode system, which is the character code after conversion (S314). CPU 11 can obtain a glyph ID corresponding to the character code in the Unicode system, for example, from character table 32 of font information 30 (see FIG. 2), and can obtain glyph data corresponding to the glyph ID by using location table 33 and glyph table 34.
[0061] On the other hand, if it is determined that the font to be used is not a font to be converted (S312: NO), there is no need to convert the character code, and CPU 11 searches the font information for glyph data corresponding to the character code of the print data (S317). For example, if font information corresponding to a specified symbol set has been acquired, or if the character code of the specified symbol set is compatible with the character code of the Unicode system, CPU 11 can appropriately acquire the glyph data using that character code.
[0062] Then, after S314 or S317, the CPU 11 determines whether or not the glyph data has been acquired (S321). If it is determined that the glyph data has been acquired (S321: YES), the CPU 11 generates intermediate data indicating the shape of the character to be printed based on the glyph data (S322).
[0063] On the other hand, if it is determined that the glyph data could not be acquired (S321: NO), the CPU 11 acquires intermediate data indicating a blank character (S325). For example, if the CPU 11 is unable to acquire a glyph ID corresponding to the character code, or if the CPU 11 is unable to acquire glyph data corresponding to the glyph ID, the CPU 11 determines NO in S321. Note that the CPU 11 is not limited to acquiring blank characters, and may acquire glyph data indicating, for example, a specific symbol that has been determined in advance. After S322 or S325, the CPU 11 ends the intermediate data acquisition process, and returns to the print job process.
[0064] Returning to the description of the print job processing procedure in Fig. 3, after the intermediate data acquisition process in S112, or if it is determined that a character rendering instruction has not been received (S111: NO), the CPU 11 determines whether or not a page end command has been received (S121). If it is determined that a page end command has not been received (S121: NO), the CPU 11 proceeds to S102 and determines whether or not any of a font selection instruction, a character rendering instruction, or a page end command has been received.
[0065] Note that the print data may include selection instructions other than fonts and drawing instructions other than characters. When an instruction other than a font selection instruction, a character drawing instruction, or a page end command is received, the CPU 11 appropriately generates and arranges intermediate data based on the received instruction. For example, when a drawing object other than a text object is received, the CPU 11 generates intermediate data based on the received object.
[0066] If it is determined that the page end command has been accepted (S121: YES), CPU 11 generates one page of raster data based on the generated intermediate data (S122). Furthermore, CPU 11 passes the generated raster data to print engine 15 (S123). Print engine 15 executes printing of one page based on the raster data. The intermediate data acquisition process S321 to S322 and the print job process S122 to S123 are an example of print processing.
[0067] The CPU 11 determines whether or not a job end command has been received (S131). If it determines that print data for the next page has been received instead of the job end command (S131: NO), the CPU 11 proceeds to S102 and executes processing based on the received print data. If it determines that a job end command has been received (S131: YES), the CPU 11 ends the print job processing.
[0068] When the printer 1 acquires print data in PCL5 format, it identifies the character code system of the print data based on the received symbol set setting instruction. The printer 1 then converts the character code using a conversion table 24 corresponding to the character code system, thereby acquiring glyph data from font information in a different character code system. In other words, the printer 1 can correctly print characters included in the print data in PCL5 format using font information 30 in TrueType font format (see FIG. 2).
[0069] The character code system of the print data in PDF format matches the character code system of the font information 30 in TrueType font format. Therefore, when the print data of the accepted print job is in PDF format and the specified font is a font in the Unicode system, the printer 1 determines YES in S205 of the font determination process (see FIG. 4) and determines NO in S312 of the intermediate data generation process (see FIG. 6). The printer 1 can then obtain glyph data corresponding to the character code of the print data from the font information 30. In other words, the printer 1 can correctly print characters included in the print data in PDF format using the font information 30.
[0070] Next, the procedure of the conversion table acquisition process for acquiring a conversion table will be described with reference to the flowchart in Fig. 7. The conversion table acquisition process is executed by the CPU 11 of the printer 1 based on the print control program 21, for example, when an instruction to acquire the conversion table 24 is received via the user IF 13. Note that the user can issue an instruction to acquire the conversion table 24, for example, when downloading is recommended in S231 of the font determination process (see Fig. 4).
[0071] In the conversion table acquisition process, the CPU 11 accepts the selection of a symbol set (S401). Information on the symbol set is displayed, for example, on a screen that recommends downloading. Instead of accepting the selection of a symbol set, the CPU 11 may be able to accept an instruction to download the conversion tables 24 for all symbol sets at once.
[0072] The CPU 11 determines whether or not a download instruction has been received (S405). S405 is an example of a reception process. The download instruction is an example of a command to download. For example, the user connects the printer 1 to a predetermined server 100 that stores the conversion table 24, prepares a communication environment that allows downloading, and then issues an instruction to execute the download. The server 100 that stores the conversion table 24 is an example of an external device.
[0073] The printer 1 may be capable of receiving a command instructing downloading from a personal computer connected to the printer 1. In this case, the printer 1 may be capable of receiving a command including a symbol set designation and an instruction to download.
[0074] If it is determined that the download instruction has been received (S405: YES), the CPU 11 attempts to download the conversion table 24 (S406). Then, the CPU 11 determines whether the download has been successful (S407).
[0075] If it is determined that the download has been successful (S407: YES), the CPU 11 stores the downloaded conversion table 24 in the memory 12 (S408). S406 to S408 are an example of the download process. If a conversion table 24 with the same symbol set as the downloaded one is already stored in the memory 12, the CPU 11 may overwrite it or may inquire of the user as to whether or not to overwrite it.
[0076] After S408, or if an instruction to cancel the download is received instead of an instruction to download (S405: NO), or if the download is not possible due to a communication error or the like (S407: NO), the CPU 11 ends the conversion table acquisition process. Note that if the download is not possible, the CPU 11 may be able to receive an instruction to retry.
[0077] The printer 1 can download and store the conversion table 24. This allows the printer 1 to add and store a new conversion table 24 even after it has been shipped from the factory. The printer 1 can also easily store a modified version of an existing conversion table 24. On the other hand, if multiple conversion tables 24 for each symbol set are stored in the memory 12 at the time of shipment from the factory, the process or operation for downloading the conversion table 24 becomes unnecessary.
[0078] As described above in detail, when the printer 1 of the embodiment acquires print data in the PCL5 format that includes character codes other than those in the Unicode system, it reads from the memory 12 the conversion table 24 that corresponds to the symbol set that indicates the character code system specified in the print data. Furthermore, the printer 1 uses the read conversion table 24 to convert the character codes included in the print data into character codes in the Unicode system. This enables the printer 1 to generate raster data using a font that uses character codes in the Unicode system. Therefore, even with print data in the PCL5 format, it is more likely that characters can be printed properly using the specified font.
[0079] The embodiment is merely an example and does not limit the present invention in any way. Therefore, the technology disclosed in this specification can be improved and modified in various ways without departing from the spirit of the technology. For example, the printer 1 is not limited to a printer with a single function, but can be a multifunction machine, a copier, a fax machine, or any other device with a printing function.
[0080] The illustrated font information 30 and conversion table 24 are merely examples, and are not limited to these. For example, font information may include multiple character tables written in multiple character code systems. Also, for example, a conversion table may be provided that indicates the relationship between a character code system indicated by a specific symbol set and a character code system other than the Unicode system.
[0081] 4, for example, if there is no conversion table 24 corresponding to the specified symbol set (NO in S211), and if there is an alternative font (YES in S232), the CPU 11 uses the alternative font (S233), but it is not necessary to use an alternative font. In other words, if there is no conversion table 24 corresponding to the specified symbol set, the printer 1 may end printing with an error.
[0082] Also, it is not necessary to be able to download the conversion table 24. In other words, the printer 1 may be provided with a plurality of conversion tables 24 at the time of shipment from the factory, and additions or modifications to the conversion tables 24 may not be accepted. Alternatively, the printer 1 may not be provided with the conversion table 24 at the time of shipment from the factory. In that case, for example, a user who wishes to print based on print data in PCL5 format may download the conversion table 24 before printing.
[0083] Also, in the embodiment, the printer 1 outputs an error, for example, if there is no font information for the specified font (NO at S201 in the font determination process (see FIG. 4)) or if the symbol set setting has not been accepted (NO at S206), but it may also be possible to use predetermined font information.
[0084] In addition, in any of the flowcharts disclosed in the embodiments, the order of execution of multiple processes in any of the steps can be arbitrarily changed or the processes can be executed in parallel as long as no contradiction occurs in the process content.
[0085] The processes disclosed in the embodiments may be executed by a single CPU, multiple CPUs, hardware such as ASIC, or a combination of these. The processes disclosed in the embodiments may be realized in various forms, such as a recording medium having a program for executing the processes recorded thereon, or a method. [Explanation of symbols]
[0086] 1. Printer 11 CPU 12. Memory 15 Printing Engine
Claims
1. Memory, A print engine; A controller; A printer comprising: The memory includes: A character code conversion table can be stored for each character code system consisting of a plurality of characters and character codes corresponding to each character, The conversion table is a table that associates a first character code in a character code system to be converted with a second character code in a predetermined character code system; The controller: An acquisition process for acquiring print data; a process of identifying a character code system based on the acquired print data when the acquisition process acquires print data including character codes in a character code system other than the predetermined character code system; a read process for reading from the memory the conversion table corresponding to the character code system identified in the identification process; a conversion process of converting the character code included in the print data acquired in the acquisition process into the second character code as the first character code by using the conversion table read in the reading process; a printing process for generating raster data using the second character code converted in the conversion process, and causing the print engine to perform printing based on the generated raster data; It is possible to The printer that is configured to:
2. 2. The printer according to claim 1, The controller: If the character code system cannot be identified in the identification process, a process based on the print data acquired in the acquisition process is terminated as an error. The printer that is configured to:
3. 2. The printer according to claim 1, The controller: If the character code system is identified as compatible with the predetermined character code system in the identification process, The read process and the conversion process are not performed, In the printing process, raster data is generated using the character code included in the print data acquired in the acquisition process, and printing based on the generated raster data is performed by the print engine. The printer that is configured to:
4. 2. The printer according to claim 1, The controller: If the conversion table cannot be read in the read process, The conversion process and the printing process are not executed, terminating a process based on the print data acquired in the acquisition process due to an error; The printer that is configured to:
5. 2. The printer according to claim 1, The controller: If the conversion table cannot be read in the read process, The conversion process is not performed, In the printing process, raster data is generated using a predetermined font, and printing based on the generated raster data is performed by the print engine. The printer that is configured to:
6. 2. The printer according to claim 1, The memory includes: The conversion tables corresponding to a plurality of character code systems are stored in advance, The controller: In the reading process, the conversion table corresponding to the character code system identified in the identification process is read out from the plurality of conversion tables stored in the memory. The printer that is configured to:
7. 2. The printer according to claim 1, The controller: a reception process for receiving a command to download the conversion table for each character code system; a download process of downloading the conversion table from an external device and storing the conversion table in the memory when the command is accepted in the acceptance process; It is possible to execute The controller: In the reading process, the conversion table corresponding to the character code system identified in the identification process is read out from among a plurality of conversion tables including the conversion table stored in the memory by the download process. The printer that is configured to:
8. 2. The printer according to claim 1, The predetermined character code system is Unicode. The printer that is configured to:
9. 2. The printer according to claim 1, The memory includes: a plurality of glyph data including information indicating an outline of a character are included, and font information in which each glyph data is associated with the second character code in the predetermined character code system can be stored; The controller: In the printing process, the glyph data corresponding to the second character code converted in the conversion process is obtained from the font information stored in the memory, the raster data is generated using the obtained glyph data, and printing based on the generated raster data is performed by the print engine. The printer that is configured to:
Citation Information
Patent Citations
Recording apparatus, control method of recording apparatus and program
JP2014056583A
