This application is based upon, and claims priority to corresponding Japanese Patent Application No. 2013-109311, filed in the Japan Patent Office on May 23, 2013, the entire contents of which are incorporated herein by reference.
Unless otherwise indicated herein, the description in this field section or the background section is not prior art to the claims in this application and is not admitted to be prior art by inclusion in this section. The present disclosure relates to an image forming apparatus and a method for adding a webpage language.
A typical image forming apparatus includes data, such as messages to be displayed, as a language file depending on a language to be used by a user, and provides, by a web server, a webpage based on the language file to a web browser of a user terminal
The typical image forming apparatus includes language files for a plurality of languages, and provides the webpage in the language selected on the web browser side.
The typical image forming apparatus includes the language files in controller firmware for realizing a controller in the image forming apparatus. Further, the controller firmware includes template data incorporating attribute information corresponding to a language, such as a writing direction (right to left (RtoL) and left to right (LtoR)), and presence and absence of furigana (syllabic characters for reading aid) representation. The controller generates, based on the template data and the language file, the webpage data in the language through a process based on the identified attribute information. For example, the template data is described in the hypertext markup language (HTML) so that the webpage is displayed in a format corresponding to the attribute information thereof
The typical image forming apparatus may sometimes be required to have an ability to provide the webpage in a language other than the default language. In this case, the language file for the new language needs to be added to the firmware. Further, a process based on the attribute information is described in the template data in the controller firmware, and the controller firmware thus needs to be updated in order to enable the process based on attribute information to correspond to the new language.
Thus, in the typical image forming apparatus, the controller firmware needs to be updated each time the language for the webpage is added.
However, it takes a significant amount of time to update the controller firmware, and the image forming apparatus is not available during the update time. Further, if the update of the controller firmware fails, the image forming apparatus may become no longer available. Therefore, the frequency of updates to the controller firmware preferably should be reduced.
The present disclosure relates to an image forming apparatus and a method of adding a webpage language without updating controller firmware.
An image forming apparatus according to an embodiment of the present disclosure includes a storage device, a webpage generation unit, and a web server.
The storage device independently stores controller firmware including a controller program, and language firmware including, for each language, a language file and attribute information corresponding to each language.
The webpage generation unit reads the language file corresponding to a specified language and the attribute information corresponding to the specified language in the language firmware, and generates webpage data based on the read language file and the read attribute information.
The web server transmits, to a web browser, the webpage data generated by the webpage generation unit.
Additional features and advantages are described herein, and will be apparent from the following Detailed Description and the figures.
All drawings are intended to illustrate some aspects and examples of the present disclosure. The drawings described are only schematic and non-limiting, and are not necessarily drawn to scale.
Various embodiments are described below with reference to the figures. It should be understood, however, that numerous variations from the depicted arrangements and functions are possible while remaining within the scope and spirit of the claims. For instance, one or more elements may be added, removed, combined, distributed, substituted, re-positioned, re-ordered, and/or otherwise changed. Further, where this description refers to one or more functions being implemented on and/or by one or more devices, one or more machines, and/or one or more networks, it should be understood that one or more of such entities could carry out one or more of such functions by themselves or in cooperation, and may do so by application of any suitable combination of hardware, firmware, and/or software. For instance, one or more processors may execute one or more sets of programming instructions as at least part of carrying out one or more of the functions described herein.
The image forming apparatus 1 illustrated in
The image forming apparatus 1 is coupled to a network 2 such as a local area network, and communicates to/from a web browser 3a of a client apparatus 3 coupled to the network 2 by using a web server 31 in the image forming apparatus 1 in conformity with the hypertext transfer protocol (HTTP). The web server 31 receives a transmission request for a webpage at a specified uniform resource locator (URL).
The communication device 11, which is a network interface or the like, is coupled to the network 2 and performs data communication in conformity with a specified protocol.
The storage device 12 is a nonvolatile and rewritable storage device that stores firmware. The storage device 12 independently stores controller firmware 21 and language firmware 22.
The controller firmware 21 includes a controller program and various pieces of data.
It should be noted that the controller firmware 21 includes template data for webpage data. The template data is described in HTML, JavaScript, or the like. It should be noted that the template data does not include attribute information unique to a language.
The language firmware 22 includes language files for respective languages, and pieces of attribute information respectively unique to the languages.
As illustrated in
In other words, the attribute information is included in the attribute file 42-1, which is distinct from the language file 41-1, and the attribute file 42-1 is included in the language firmware 22 according to this embodiment. It should be noted that the language file 41-1 and the attribute file 42-1 may be described in JavaScript or in text files.
The arithmetic processing device 13 is a computer including a central processing unit (CPU), a read only memory (ROM), and a random access memory (RAM). The arithmetic processing device 13 loads, on the RAM, the programs stored in the ROM and the storage device 12, and the CPU executes the programs, to thereby form various processing units.
The web server 31 is realized in the arithmetic processing device 13, and the controller 32 is realized by executing the controller program in the control firmware 21.
The web server 31 uses the communication device 11 to carry out the data communication in conformity with HTTP.
The controller 32 performs various types of processes, and controls an internal device, such as the printing device 14, the image reading device 15, and the facsimile device 16.
It should be noted that the printing device 14 prints an image based on printing data received from an external apparatus such as the client apparatus 3, an image read by the image reading device 15, an image generated by the facsimile device 16, and the like. The image reading device 15 optically reads an original image from an original, and generates image data on the original image. The facsimile device 16 generates a facsimile signal based on an image based on the printing data received from the client apparatus 3, the image read by the image reading device 15, and the like, and transmits the generated signal. Further, the facsimile device 16 receives a facsimile signal from the outside, and generates an image based on the facsimile signal.
Moreover, the controller 32 includes a webpage generation unit 32a. The webpage generation unit 32a reads, from the language firmware 22, a language file 41-1 corresponding to a language specified by the web browser 3a and attribute information (attribute information in an attribute file 42-1) corresponding to the specified language, and generates webpage data based on the read language file 41-1 and attribute information. The webpage data generated by the webpage generation unit 32a is transmitted by the web server 31 to the web browser 3a which is a source of the transmission request for the webpage data. The attribute information described in the attribute file may be described in the language file. In this case, the attribute file is no longer necessary.
A description is now given of an operation of the image forming apparatus.
(1) Operation for Providing Webpage
When the web server 31 receives a transmission request for a webpage from the web browser 3a, the webpage generation unit 32a uses template data, and a language file 41-1 and an attribute file 42-1 of a language specified by the web browser 3a to generate webpage data. Then, the web server 31 transmits the generated webpage data to the web browser 3a.
(2) Operation for Adding Language Available on Webpage
Consider the case in which a language available on a webpage (hereinafter referred to as additional language) is added, for example, an update package including an update program, and a language file and an attribute file for the additional language are generated, and the update package is downloaded to the image forming apparatus 1 from the client apparatus 3, a server (not illustrated), or a recording medium (not illustrated). In such a case, the update program is executed on the arithmetic processing device 13, and the language file for the additional language and the attribute information (attribute file 42-1) for the additional language are added to the language firmware 22 based on the update program.
As described above, the storage device 12 according to this embodiment independently stores the controller firmware 21 including the controller program, and the language firmware 22 including, for each of the languages, a language file 41-1 and attribute information unique to the language. The webpage generation unit 32a reads the language file 41-1 corresponding to the specified language and the attribute information corresponding to the specified language in the language firmware 22, and generates webpage data based on the read language file and attribute information.
According to this embodiment, a language available on a webpage can be added by simply changing the language firmware 22 separated from the controller firmware 21, and hence an update of the controller firmware 21 due to the addition of the language available on the webpage provided by the image forming apparatus 1 is not necessary.
While various aspects and embodiments have been disclosed herein, other aspects and embodiments are possible. Other designs may be used in which the above-described components are each present.
For example, the image forming apparatus 1 may include two storage devices. Then, the controller firmware 21 including language files for standard languages may be stored in the first storage device, and a language file for an additional language may be stored in the rewritable second storage device.
In other words, the arithmetic processing device 13 reads, from the first storage device, a language file for a standard language specified by the client apparatus 3 among the language files for one or more standard languages, and transmits the read language file to the client apparatus 3, while storing a different language file received from the client apparatus 3 in the second storage device.
In the client apparatus 3, the standard language is translated into the different language, and the different language file is transmitted to the image forming apparatus 1. Further, the webpage generation unit 32a reads the language file from the second storage device, and generates specified webpage data based on the read language file. The web server 31 transmits the generated webpage data to the web browser 3a.
As a result, the specified webpage data is generated by using the language file stored in the storage device different from the storage device 12 for the controller firmware 21. Further, a language file in the controller firmware 21 can be downloaded and edited, and the edited language file can be uploaded as a language file for a different language and registered as a language file. Thus, in the image forming apparatus 1, a language file for a language different from the standard languages can be added and a specified webpage can be displayed in the new language without updating the controller firmware 21.
It should be understood that various changes and modifications to the embodiments described herein will be apparent to those skilled in the art. Such changes and modifications may be made without departing from the spirit and scope of the present subject matter and without diminishing its intended advantages. It is therefore intended that such changes and modifications be covered by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2013-109311 | May 2013 | JP | national |