# Patent

## Title
Print driver localization support from printing device to support multiple user profiles

## Abstract

According to an approach for printing, a print driver is configured to retrieve printing device capabilities data from a Web service-enabled printing device. The printing device capabilities data specifies for a particular feature and a particular option supported by the Web service-enabled printing device, a plurality of languages in which the particular feature and the particular option may be displayed. The print driver generates, based at least upon the capabilities data, printer description data that specifies display data that indicates how the particular feature and the particular option are to be displayed, on a GUI, in the plurality of languages. In response to user input, the print driver generates, based at least upon the display data and language data that specifies a particular language, GUI data which, when processed, causes the particular feature and the particular option to be displayed on a GUI in the particular language.

## Background
RELATED APPLICATION DATA
This application is related to U.S. patent application Ser. No. 12/399,799 entitled “Driverless Architecture For Printing Systems”, filed Mar. 6, 2009, U.S. patent application Ser. No. 12/399,891 entitled “Paper Size Support For A Print System”, filed Mar. 6, 2009, and U.S. patent application Ser. No. 12/399,884 entitled “Approach For Printing to Web Services-Enabled Printing Devices”, filed Mar. 6, 2009, U.S. patent application Ser. No. 11/846,884 entitled “Capability-Based Control Of A Computer Peripheral Device”, filed Aug. 29, 2007, U.S. patent application Ser. No. 11/846,926 entitled “Automatically Generating Capability-Based Computer Peripheral Device Drivers”, filed Aug. 29, 2007, U.S. patent application Ser. No. 12/019,610 entitled “On-Demand Print Driver”, filed Jan. 24, 2008, U.S. patent application Ser. No. 12/253,823 entitled “Providing Device Defined User Interface Modifiers To A Computer System”, filed Oct. 17, 2008, and U.S. patent application Ser. No. 12/360,794 entitled “Automatically Updating A Printer Driver With New Printing Device Features”, filed Jan. 27, 2009, the contents all of which are incorporated by reference in their entirety for all purposes as if fully set forth herein.
FIELD OF THE INVENTION
The present invention relates generally to printing systems and printing to Web service-enabled printing devices.
BACKGROUND
The approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section.
When a user wishes to print an electronic document on a printing device, a print subsystem on the user's client device processes application data generated by an application program and generates print data. The print data includes all the information required by the printing device to print the electronic document. For example, a user creates an electronic document using a word processing application on a PC. The user then selects a print option in the word processing application to request that the electronic document be printed to a particular printer. The print subsystem on the PC processes this request by processing the application data generated by the word processing application to generate print data in a format supported by the particular printer, and sends the print data to the particular printer. Generally, print data is sent to a printing device as part of a print job that is recognized by the printing device.
Generating print data conventionally involves the use of a print driver that is specific to the target printing device. That is, each print driver converts print data into a format supported by the target printing device. Therefore, in order for a client device to correctly print to a particular printing device, the client device must have installed on it the print driver for the particular printing device.
Current print systems suffer from multiple disadvantages. For example, print drivers do not provide language support for certain languages in which a user might be prefer. The only available option for such a user is to either (a) locate a print driver that has language support for a particular language or (b) do without that language support. However, one of the problems with having to locate a new print driver that supports a particular language is that the new print driver must be generated and distributed to a large number of users. Printing device manufacturers attempt to provide current print drivers available on their Website for download, but many users do not know to check a manufacturer's Website for current drivers. Furthermore, many print drivers must be certified by the company that makes the operating system or by printing device manufactures, which can be time consuming and expensive. Any changes to a print driver typically trigger a re-certification requirement.
SUMMARY
An approach is provided for printing to Web service-enabled printing devices. A print driver, executing on a client device, retrieves, from a Web service-enabled printing device, printing device capabilities data that specifies a plurality of features and options currently supported by the Web service-enabled printing device. The printing device capabilities data specifies, for a particular feature and a particular option of the plurality of features and options, a plurality of languages in which the particular feature and the particular option may be displayed. The print driver generates, based at least upon the printing device capabilities data, printer description data that specifies display data that indicates how the particular feature and the particular option are to be displayed, on a graphical user interface, in the plurality of languages. In response to user input, the print driver generates, based at least upon the display data contained in the printer description data and language data, graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a graphical user interface in the particular language. The language data specifies a particular language of the plurality of languages that is currently selected for the client device. The print driver receives, from an application program, application data generated by the application program. The print driver generates, based at least upon the application data, print data and a print job ticket. The print driver causes the print data and the print job ticket to be transmitted to the Web service-enabled printing device.
The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a flow diagram that depicts an approach for printing to a Web service-enabled printing device.
FIG. 2 is a block diagram that depicts an example printing arrangement that includes a client device and a printing device communicatively coupled via a network.
FIG. 3 is a flow diagram that depicts an approach for printing to a WSD printing device.
FIGS. 4A-B are diagrams that depict screen shots of GUIs that may be generated based on the language setting of different users or of the same user.
FIG. 5 is a flow diagram depicting an approach for generating printer description data.
FIG. 6 is a flow diagram that depicts an approach for updating printer description data.
FIG. 7 is a block diagram of a computer system on which embodiments of the invention may be implemented.



DETAILED DESCRIPTION
In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the present invention.
I. OVERVIEW
II. PRINTING SYSTEM ARCHITECTURE
III. PRINTING TO WSD PRINTING DEVICES

    
    
        A. Graphical User Interfaces in Different LANGUAGES
    
    


IV. GENERATING PRINTER DESCRIPTION DATA
V. DYNAMIC UPDATING OF PRINTER DESCRIPTION DATA
VI. IMPLEMENTATION MECHANISMS
VII. APPENDIX A—EXAMPLE DEVICE CAPABILITIES DATA
VIII. APPENDIX B—EXAMPLE CORE MAPPING DATA
IX. APPENDIX B—EXAMPLE PRINTER DESCRIPTION DATA
I. Overview
An approach is provided that allows the installation of a print driver that supports a minimum set of Web service-enabled printing device features and options. The print driver can be customized to support the current configuration of multiple Web service-enabled printing devices, support multiple languages for one or more features and/or options supported by Web service-enabled printing devices, and change the language of displayed features and/or options depending on the language setting for the user that is currently logged into the computer system.
FIG. 1 is a flow diagram that depicts an approach for printing to a Web service-enabled printing device, according to an embodiment of the invention. In step 102, a print driver that is installed and executing on a client device retrieves printing device capabilities data from a Web service-enabled printing device. The printing device capabilities data specifies a plurality of features and options currently supported by the Web service-enabled printing device. The printing device capabilities data also specifies, for at least a particular feature and a particular option, a plurality of languages in which the particular feature and particular option may be displayed on a graphical user interface (GUI).
In step 104, the print driver generates printer description data based at least upon the printing device capabilities data. Printer description data specifies display data for one or more features and options currently supported by the Web service-enabled printing device. The display data indicates how the particular feature and the particular option are to be displayed, on a GUI, in the plurality of languages.
In step 106, the print driver determines a language setting for a user of the client device. The language setting may be indicated, for example, by an operating system (OS) variable that corresponds to the user. The value of the language setting indicates a language in which to display data to the user that is currently logged in to the computer system. Thus, if a different user logs in to the computer system and the different user is associated with a different language setting than the language setting for the previous user (e.g., French instead of English), then some of the printing features and/or options are displayed in a GUI in the different language, depending on whether those printing features and/or options are associated with display names in the different language.
In step 108, the print driver generates GUI data based at least upon the display data contained in the printer description data. Generating the GUI data comprises the print driver locating the appropriate language string from the printer description data based on the language setting. When processed at the client device, the graphical user interface data causes at least a portion of the features and options to be displayed on a graphical user interface.
In step 110, the print driver receives application data generated by an application program and generates print data and a print job ticket based at least upon the application data.
In step 112, the print driver causes the print data and the print job ticket to be transmitted to the Web service-enabled printing device for processing.
II. Printing System Architecture
FIG. 2 is a block diagram that depicts an example printing arrangement 200 that includes a client device 202 and a Web service-enabled (WSD) printing device 204 communicatively coupled via a network 206. Network 206 may be implemented by any medium or mechanism that provides for the exchange of data between client device 202 and WSD printing device 204. Examples of network 206 include, without limitation, a network such as a Local Area Network (LAN), Wide Area Network (WAN), Ethernet or the Internet, or one or more terrestrial, satellite or wireless links.
WSD printing device 204 includes a WSD printing service 208. Client device 202 includes a user interface 210, an application program 212, a print driver installation application 214, a print driver 216, with a User Interface (UI) module and a rendering module 220, a port monitor and Web service Device (WSD) Application Program Interface (API) module 222, a spooler 224 and a storage 226. Storage 226 stores printing capabilities data 228, print data 230 and a print job ticket 232. Storage also includes a print driver storage 234 and a registry 236 that stores printer description data 238 and a default print ticket 240. Each of these elements is briefly described below and in more detail hereinafter.
User interface 210 is a mechanism and/or medium for presenting information to a user and allowing user input. Application program 212 may be any type of program that prints data. Examples of application program 212 include, without limitation, a word processing program, a spreadsheet program, an email client, etc. A single application program 212 is depicted in FIG. 2 for purposes of explanation, but client device 202 may have any number of application programs.
Printer driver installation application 214 performs installation of print driver 216 which may include installing any data or files required by print driver 216. Installation of print driver 216 may also include obtaining data and/or files from other sources and locations, depending upon an implementation, as well as performing any configuration required by an operating system.
Print driver 216 interacts with application program 212 to generate print data for printing on WSD printing device 204. UI module 218 generates graphical user interface data which, when processed by application program 212, provides a graphical user interface on user interface 210 for a user to select the features and options to be used when printing a particular electronic document. Rendering module 220 processes application data generated by application program 212 and generates print data which, when processed by WSD printing device 204, cause a printed version of an electronic document reflected in the print data to be printed at WSD printing device 204. Print driver 216 performs various other functions that are described in more detail hereinafter.
Port monitor and WSD API module 222 allows communications between print driver 216 and WSD printing device 204. For example, the WSD API module 222 may be installed on a custom port and print driver 216 communicates with the WSD API module 222 via the custom port. The port monitor and WSD API module 222 communicates with WSD printing device 204. Thus, port monitor and WSD API module 222 is capable of converting client side commands, e.g., BiDi function calls, to SOAP requests, in the form of SOAP envelopes, and is also capable of extracting XML information from SOAP responses received from WSD printing device 204, in the form of SOAP envelopes, and generating BiDi function call responses. Port monitor and WSD API module 222 sends SOAP requests to the port associated with WSD printing service 208.
Printing device capabilities data 228 is data that specifies the current features and options, i.e., allowed values for each feature, of WSD printing device 204. Examples of printing device features include, without limitation, a paper tray, duplex printing, stapling, hole punching, ultraviolet (UV) coating, etc. Each feature has one or more options, i.e., values. Some features may only have two options. For example, UV coating typically has two options, such as “enabled” or “disabled”. Other features, for example, paper size, may have many options, e.g., “A4”, “legal”, “81⁄2×11”, etc. Printing device capabilities data 228 stored on client device 202 may include printing device capability data for any number of WSD printing devices.
Print data 230 is data generated by print driver 216, based at least upon application data generated by application program 212, which when processed by WSD printing device 204, causes a printed version of an electronic document represented in the print data 230 to be printed. Print job ticket 232 specifies one or more parameters that indicate how print data 230 is to be processed at WSD printing device 204. Print data 230 may include data for multiple print jobs and print job ticket 232 may include multiple print job tickets.
Printer driver storage 234 contains one or more print drivers that are used by client device to print on printing devices. Registry 236 is an area of storage 226 for storing printer description data 238 and the default print ticket 240. Registry 236 may be a protected area of storage 226 that is under the control of an operating system on client device 202. Default print ticket 240 includes data that indicates default options for the features supported by WSD printing device 204. Default print ticket 240 may include default print tickets for any number of printing devices.
Print driver 216 generates printer description data 238 based at least upon printing device capabilities data 228. Printer description data 238 specifies display data for one or more feature and options currently supported by WSD printing device 204. Print driver 216 uses printer description data 238 to generate graphical user interface data and also for generating print data 230 and/or print job ticket 232.
III. Printing to WSD Printing Devices
FIG. 3 is a sequence diagram 300 that depicts an approach for printing to a WSD printing device, according to an embodiment of the invention. In this depicted approach, the client device operating system does not support compatible device IDs. One example situation in which the approach depicted in FIG. 3 may be used is where the operating system on client device 202 does not support the use of a compatible identification. That is, the operating system requires a print driver that matches the target printing device. Examples of these types of operating systems include Windows XP, Windows Vista and other non-Windows operating systems. Typically, the operating system will obtain a device ID of the printing device to be installed and will search for a print driver having the same device ID. For example, in the context of the Windows operating system, the operating system will search for a setup file (known as an INF file) that has a device ID that matches the device ID of the printing device to be installed.
However, embodiments of the invention are not limited to the depicted approach. In another approach, the client device operating system does support compatible device IDs. This means that the operating system will search for a setup file that exactly matches the printing device to be installed. If an exact match is not found, the operating system will attempt to locate a setup file for the class, type, or group of printing device to be installed. An example of this type of operating system is Windows 7.
Returning to FIG. 3, it is presumed that the print driver installation application 214 has discovered the available printing devices and that WSD printing device 204 has been selected for installation. Print driver installation application 214 installs a basic print driver with a basic Generic Printer Description (GPD) file that contains the information necessary, for a standard set of minimum features, to generate a graphical user interface and to generate print data.
In Step 1, print driver installation application 214 retrieves device information from WSD printing device 204, for example, using a unicast request for the metadata of WSD printing device 204. The device information may include, for example, a model number of WSD printing device 204. In Step 2, a port is created using the UUID of WSD printing device 204. In Step 3, print driver installation application 214 installs the print driver on the created port by interacting with a setup API. In Step 4, the setup API notifies spooler 224, which in Step 5 triggers a printer initialization event. For example, this printer initialize event may have an event code of PRINTER_EVENT_INITIALIZE.
In Step 6, UI module 218 responds to the printer initialization event by sending to the port monitor and WSD API module 222 a request for the device capabilities of WSD printing device 204. The request may be implemented, for example, by a call to a SendRecvBiDiData function that contains a request for the device capabilities data of WSD printing device 204. In this situation, the SendRecvBiDiData function makes a call to port monitor and WSD API module 222.
In Step 7, the port monitor and WSD API module 222 receives from UI module 218 the request for the device capabilities data of WSD printing device 204. Port monitor and WSD API module 222 generates a SOAP request, in the form of a SOAP envelope, based at least upon the request received from UI module 218 and forwards the SOAP request to WSD printing device 204. WSD printing device 204 generates and sends to port monitor and WSD API module 222 a SOAP response (in the form of a SOAP envelope) that includes the device capabilities data for WSD printing device 204. The device capabilities data for WSD printing device 204 specifies the features and options currently supported by WSD printing device 204. The device capabilities data in the SOAP response may include any portion or all of the device capabilities data available on WSD printing device 204, depending upon a particular implementation. In addition, the device capability data may be retrieved using any number of SOAP requests and responses. The SOAP response may also include a default print ticket that specifies default options for WSD printing device 204.
In Step 8, port monitor and WSD API module 222 sends to UI module 218 a response that contains the device capabilities data of WSD printing device 204. This may include port monitor and WSD API module 222 extracting XML information from the SOAP response and generating a response that includes the extracted information. In the situation where the request was implemented using a call to SendRecvBiDiData function, the response to the function call contains the device capabilities data from WSD printing device 204.
In Step 9, UI module 218 generates printer description data 238 for WSD printing device 204 and stores printer description data 238 in registry 236. The process for generating printer description data 238 is described in more detail hereinafter. Printer description data 238 and default print ticket 240 are stored in registry 236.
In Step 10, application program 212 makes a request to UI module 218 for Graphical User Interface (GUI) data. In step 11, UI module 218 determines the language setting for the current user.
In Step 12, UI module 218 retrieves printer description data 238 from registry 236 and generates GUI data based at least in part upon on the display data (in printer description data 238) that indicates how one or more of the features and/or options are to be displayed in a plurality of languages. This may include, for example, obtaining strings that correspond to string variables contained in printer description data 238. As described in more detail hereinafter, the string variables are retrieved from a core mapping file (identified therein by rcNameID Value tags) and added to printer description data 238. Strings for the string variables are retrieved from one or more data files that may be maintained, for example, to support different languages, and included in the GUI data. For example, the one or more data files may contain a list of the string variables and corresponding strings that display a feature name or an option name in a particular language. To change the GUI to another language, the one or more data files are substituted with one or more other data files that contain the list of the string variables and corresponding strings that display a feature name or an option name in another language.
The GUI data includes data which, when processed by application program 212, allows a user to view and change the features and settings supported by WSD printing device 204. The GUI data may include, for example, display data that includes display strings that correspond to features and options currently supported by WSD printing device 204.
In Step 13, UI module 218 provides the GUI data to application program 212. If one or more of the features and/or options in printer description data 238 are associated with a particular language that is the same as the language indicated by the language setting, then those one or more features and/or options will be displayed in a resulting GUI in the particular language.
A user interacts with application program 212 to view and select particular features and options to be used for printing a particular electronic document. For example, the user may select duplex, color printing with hole punching.
A. Graphical User Interfaces in Different Languages
FIGS. 4A and 4B are diagrams that depict screen shots of GUIs 402 and 404, respectively, that may be generated based on the language setting of different users or of the same user. In FIG. 4A, the language setting is English. In this example, all the features and options of the printing device (i.e., RICOH Future Printer 2010 PCL6) depicted in GUI 402 are associated with display data that indicates how the features and options are to be displayed in English.
In FIG. 4B, the language setting is Mandarin Chinese. The language setting may reflect the language setting of a different user. For example, GUI 402 depicted in FIG. 4A may be displayed for a first user and GUI 404 in FIG. 4B may be displayed for a second user that is different than the first user.
As another example, GUI 402 depicted in FIG. 4A may be displayed for a first user. Then, in response to input from the first user, GUI 404 depicted in FIG. 4B is displayed for the first user. The user input may be a change to the language setting or a selection of one or more GUI elements (not shown) that cause the language of one or more features and/or options to be displayed in another language.
As yet another example, GUI 402 may be generated using a print driver and displayed for a first user that wants to print to a first WSD printing device. GUI 404 may be generated using the same print driver and displayed for a second user (either the same as or different than the first user) that wants to print to a second WSD printing device that is different than the first WSD printing device. Thus, the printing device capabilities data and the printer description data associated with the first WSD printing device are different, respectively, than the printing device capabilities data and the printer description data associated with the second WSD printing device.
Not all of the features and options in GUI 404 depicted in FIG. 4B are associated with display data that indicates how those features and options are to be displayed in Mandarin Chinese. Some of the features and options are displayed in English because those features and options do not have (e.g., in the device capabilities data and the printer description data) corresponding display data that indicate how those features and options are to be displayed in Mandarin Chinese.
Returning to FIG. 3, once the user has selected various options elected to print the particular electronic document, in Step 14, application program 212 generates and provides to rendering module 220 a print job with a device mode (DEVMODE) structure that has a single string variable that holds the print job ticket that specifies the job settings. In Step 15, rendering module sends to port monitor and WSD API module 222 a BiDi request for the endpoint address of the device with the port name of the UUID, which in the present example is WSD printing device 204. In Step 16, port monitor and WSD API module 222 generates and sends to WSD printing device 204 a request for the IP address of WSD printing device 204. WSD printing device 204 provides its IP address to port monitor and WSD API module 222, which provides the IP address to rendering module 220.
In Step 17, rendering module 220 extracts the print job ticket from the DEVMODE structure and sends the print job ticket as one or more Printer Job Language (PJL) commands to port monitor and WSD API module 222 with print data 230. The PJL commands may be included as part of print data 230, or sent separately. In Step 18, port monitor and WSD API module 222 submits the print job, including print data 230 and print job ticket 232, to WSD printing device 204 over HTTP. The print data 230 and print job ticket 232 may be sent to WSD printing device 204 using the W3C Message Transmission Optimization Mechanism (MTOM).
IV. Generating Printer Description Data
As previously described herein, UI module 218 is configured to generate and store, in registry 236, printer description data 238 and is also configured to store default print tickets received from WSD printing device 204. Printer description data 238 is used by UI module 218 to generate GUI data which, when processed by application program 212, causes a GUI to be displayed on user interface 210 that displays the features and options supported by WSD printing device 204 and allows a user to select one or more features and options to be used when printing a particular electronic document.
The process for generating printer description data 238 generally involves combining information from the printing device capabilities data 228 for WSD printing device 204 and data from Core Mapping Data that is provided as part of the basic installed print driver. Appendix A includes example printing device capabilities data, Appendix B includes example core mapping data and Appendix C includes example printer description data.
According to one embodiment of the invention, UI module 218 examines the printing device capabilities data 228 and identifies the printing device features specified therein. For each feature and option in printing device capabilities data 228, UI module 218 determines whether the feature is defined in the core mapping data. Core mapping data includes PDLKeywords and rcNameIDs for a standard set of printing device features and options. If a particular feature in printing device capabilities data 228 is defined in the core mapping data, then UI module 218 retrieves PDLkeyWord value and rcNameID Value for the particular feature and each of the corresponding options from the core mapping file and stores the PDLkeyWord values and the rcNameID Values in printer description data 238. The PDLkeyWord value provides a mapping between a feature or option terminology understood by print driver 216 and the terminology understood by WSD printing service 208 for the same feature or option. The rcNameID Value indicates the name of a string variable (resource ID, which is defined in the resource file with the string value) that contains the string for the feature or option. The string (rcNameID Value) is included in the GUI data that is generated by UI module 218 and provided to application program 212. Consider the following example. Suppose that printing device capabilities data 228 includes a feature named “InputTray4”. Suppose further that this feature is defined in the core mapping data as indicated below in Table I.









TABLE I









<DeviceFeature Value=“InputTray4”>



 <PDLKeyword Value=“InputTray4”/>



 <rcNameID Value=“RC_STR_TRAY4” />



 <FeatureOption Value=“NotInstalled”>



  <PDLKeyword Value=“NotInstalled” />



  <rcNameID Value=“RC_STR_NOTINSTALLED” />



 </FeatureOption >



 <FeatureOption Value=“Installed”>



  <PDLKeyword Value=“Installed” />



  <rcNameID Value=“RC_STR_INSTALLED” />



 </FeatureOption >



</DeviceFeature >










As indicated in Table I, the feature InputTray4 has two options that include “NotInstalled” and “Installed”. Note that the feature and each option has both a specified PDLKeyword value and a specified rcNameID value, which UI module 218 retrieves and stores in printer description data.
If the particular feature in printing device capabilities data 228 is not defined in the core mapping file, then the particular feature is typically a new feature. In this situation, UI module 218 uses the feature name for the particular feature from the printing device capabilities data 228 to generate the PDLKeyWord value for printer description data 238. In addition, UI module 218 includes the DisplayName values for the particular feature in printer description data 238. Multiple DisplayName values may be included in printer description data 238 for one or more features and/or options to provide support for multiple languages for those features and/or options. The display name values are included in the GUI data that is generated by UI module 218 and provided to application program 212.
Referring to the prior example, suppose that the feature named “InputTray4” is not defined in the core mapping data. Suppose further that this feature is defined in printing device capabilities data 228 as indicated below in Table II.







TABLE II







<rodp:InputTray4>


  <rodp:DisplayName xml:lang=“en-US”>Tray 4</rodp:DisplayName>


  <rodp:DefaultOption>NotInstalled</rodp:DefaultOption>


  <rodp:InputTray4Entry Name=“NotInstalled”>


   <rodp:DisplayName xml:lang=“en-US”>Not


   Installed</rodp:DisplayName>


  </rodp:InputTray4Entry>


  <rodp:InputTray4Entry Name=“Installed”>


   <rodp:DisplayName


   xml:lang=“en-US”>Installed</rodp:DisplayName>


  </rodp:InputTray4Entry>


 </rodp:InputTray4>









As indicated in TABLE II, there are no PDLKeyword values or rcNameID values contained in the definition of the InputTray4 feature in printing device capabilities data 228. In this example, the feature name “InputTray4” is stored in printer description data 238 as the PDLKeyword value. Also, UI module 218 retrieves the DisplayName values for the feature and each option and stores the DisplayName values in printer description data 238.
Consider the following example that illustrates multiple language support for a feature (and each of corresponding options) supported by WSD printing device 304. Suppose that printing device capabilities data 228 includes the following data:







TABLE III







<rodp:UVCoating>


 <rodp:DisplayName xml:lang=“en-US”>UV Coating</rodp:DisplayName>


 <rodp:DisplayName xml:lang=“zh-CN”>  </rodp:DisplayName>


 <rodp:DefaultOption>Option1</rodp:DefaultOption>


 <rodp:UVCoatingEntry Name=“Option1”>


 <rodp:DisplayName xml:lang=“en-US”>Option 1</rodp:DisplayName>


 <rodp:DisplayName xml:lang=“zh-CN”>  1</rodp:DisplayName>


 </rodp:UVCoatingEntry>


 <rodp:UVCoatingEntry Name=“Option2”>


 <rodp:DisplayName xml:lang=“en-US”>Option 2</rodp:DisplayName>


 <rodp:DisplayName xml:lang=“zh-CN”>  2</rodp:DisplayName>


 </rodp:UVCoatingEntry>


</rodp:UVCoating>









As indicated in Table III, WSD printing device 304 contains support for English and Chinese display names for the UV coating printing feature. From this portion of printing device capabilities data 228, UI module 218 generates the following printer description data indicated in Table IV:








TABLE IV








<DeviceFeature Value=“UVCoating”>



 <PDLKeyword Value=“UVCoatingPDLName”/>



 <DisplayName xml:lang=“en-US” Value=“UV Coating” />



 <DisplayName xml:lang=“zh-CN” Value=“ ” />



 <FeatureOption Value=“Option1”>



  <PDLKeyword Value=“Option1PDLKeyWord” />



  <DisplayName xml:lang=“en-US” Value=“Option1” />



  <DisplayName xml:lang=“zh-CN” Value=“  1” />



 </FeatureOption >



 <FeatureOption Value=“Option2”>



  <PDLKeyword Value=“2PDLKeyWord” />



  <DisplayName xml:lang=“en-US” Value=“Option2” />



 <DisplayName xml:lang=“zh-CN” Value=“  2” />



 </FeatureOption>



</DeviceFeature>









As indicated in Table IV, the printing feature “UVCoating” is associated with a PDLKeyword value and display name data that indicates how to display the feature in English and in Mandarin Chinese. In this example, as evidence that the printing device feature “UVCoating” is not defined in the core mapping data, the printing feature “UVCoating” is not associated with an rcNameID value.
FIG. 5 is a flow diagram 500 depicting an approach for generating printer description data 238 for a particular feature from printing device capabilities data 228, according to one embodiment of the invention. This approach may be used for any number of features and also for any number of options for each feature. In step 502, a feature is retrieved from printing device capabilities data 228. In step 504, a determination is made whether the feature is defined in the core mapping data. In step 506, if the feature is defined in the core mapping data, then in step 508, the PDLkeyword and rcNameID are retrieved from the core mapping data. In step 510, the PDLkeyword and rcNameID are stored in printer description data 238. As previously mention herein, printer description data 238 may include printer description data for any number of WSD printing devices.
If, in step 506, a determination is made that the feature is not defined in the core mapping data, then in step 512, the feature name and display name(s) are retrieved from printing device capabilities data 228. As previously described herein, multiple display names may be used to provide support for multiple languages. In step 514, the feature name is stored in printer description data 238 as the PDLkeyword for the feature. Also, the display name(s) are stored in printer description data 238 in association with the feature.
V. Dynamic Updating of Printer Description Data
FIG. 6 is a flow diagram that depicts an approach for updating printer description data, according to one embodiment of the invention. In Step 1, WSD printing device 204 generates an event indicating a change in printing features or options. This may include the deletion, addition, or change of a printing feature or option. Port monitor and WSD API module 222 has subscribed to receive this event and receives the event. For example, port monitor and WSD API module 222 may receive an event notification in the form of a SOAP message specifying the event.
In Step 2, port monitor and WSD API module 222 receives the event notification and notifies spooler 224. In Step 3, spooler 224 notifies UI module 218. In Step 4, UI module sends to the port monitor and WSD API module 222 a request for the device capabilities of WSD printing device 204. The request may be implemented, for example, by a call to a SendRecvBiDiData function that contains a request for the device capabilities data of WSD printing device 204. In this situation, the SendRecvBiDiData function makes a call to port monitor and WSD API module 222.
In Step 5, the port monitor and WSD API module 222 receives from UI module 218 the request for the device capabilities data of WSD printing device 204. Port monitor and WSD API module 222 generates a SOAP request, in the form of a SOAP envelope, based at least upon the request received from UI module 218 and forwards the SOAP request to WSD printing device 204.
In Step 6, WSD printing device 204 generates and sends to port monitor and WSD API module 222 a SOAP response, in the form of a SOAP envelope, that includes the device capabilities data for WSD printing device 204. The device capabilities data for WSD printing device 204 specifies the features and options currently supported by WSD printing device 204. The device capabilities data in the SOAP response may include any portion or all of the device capabilities data available on WSD printing device 204, depending upon a particular implementation. For example, the device capabilities data retrieved in response to the event notification may include all of the device capabilities data available on WSD printing device 204. Alternatively, only the device capabilities data that corresponds to the change in features or options may be retrieved from WSD printing device 204. In addition, the device capability data may be retrieved using any number of SOAP requests and responses. The SOAP response may also include a default print ticket that specifies default options for WSD printing device 204.
In Step 7, port monitor and WSD API module 222 sends to UI module 218 a response that contains the device capabilities data of WSD printing device 204. This may include port monitor and WSD API module 222 extracting XML information from the SOAP response and generating a response that includes the extracted information. In the situation where the request was implemented using a call to SendRecvBiDiData function, the response to the function call contains the device capabilities data from WSD printing device 204.
In Step 8, UI module 218 generates printer description data 238 for WSD printing device 204 and stores printer description data 238 in registry 236 as previously described herein. Alternatively, UI module 218 may update the existing printer description data for WSD printing device 204 to reflect the change in the features and/or options made to WSD printing device 204.
In Step 9, application program 212 makes a request to UI module 218 for GUI data. In Step 10, UI module 218 retrieves printer description data 238 from registry 236 and generates the requested GUI data. The GUI data includes data which, when processed by application program 212, allows a user to view and change the features and settings supported by WSD printing device 204. The GUI data may include, for example, display data that includes display strings that correspond to features and options currently supported by WSD printing device 204. In Step 11, UI module 218 provides the GUI data to application program 212. The process for processing a print job then continues as previously described in FIGS. 3 and 4.
VI. Implementation Mechanisms
According to one embodiment of the invention, the techniques described herein are implemented by one or more special-purpose computing devices. The special-purpose computing devices may be hard-wired to perform the techniques, or may include digital electronic devices such as one or more application-specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs) that are persistently programmed to perform the techniques, or may include one or more general purpose hardware processors programmed to perform the techniques pursuant to program instructions in firmware, memory, other storage, or a combination. Such special-purpose computing devices may also combine custom hard-wired logic, ASICs, or FPGAs with custom programming to accomplish the techniques. The special-purpose computing devices may be desktop computer systems, portable computer systems, handheld devices, networking devices or any other device that incorporates hard-wired and/or program logic to implement the techniques.
FIG. 7 is a block diagram that depicts an example computer system 700 upon which embodiments of the invention may be implemented. Computer system 700 includes a bus 702 or other communication mechanism for communicating information, and a processor 704 coupled with bus 702 for processing information. Computer system 700 also includes a main memory 706, such as a random access memory (RAM) or other dynamic storage device, coupled to bus 702 for storing information and instructions to be executed by processor 704. Main memory 706 also may be used for storing temporary variables or other intermediate information during execution of instructions to be executed by processor 704. Computer system 700 further includes a read only memory (ROM) 708 or other static storage device coupled to bus 702 for storing static information and instructions for processor 704. A storage device 710, such as a magnetic disk or optical disk, is provided and coupled to bus 702 for storing information and instructions.
Computer system 700 may be coupled via bus 702 to a display 712, such as a cathode ray tube (CRT), for displaying information to a computer user. An input device 714, including alphanumeric and other keys, is coupled to bus 702 for communicating information and command selections to processor 704. Another type of user input device is cursor control 716, such as a mouse, a trackball, or cursor direction keys for communicating direction information and command selections to processor 704 and for controlling cursor movement on display 712. This input device typically has two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), that allows the device to specify positions in a plane.
Computer system 700 may implement the techniques described herein using customized hard-wired logic, one or more ASICs or FPGAs, firmware and/or program logic or computer software which, in combination with the computer system, causes or programs computer system 700 to be a special-purpose machine. According to one embodiment of the invention, those techniques are performed by computer system 700 in response to processor 704 executing one or more sequences of one or more instructions contained in main memory 706. Such instructions may be read into main memory 706 from another computer-readable medium, such as storage device 710. Execution of the sequences of instructions contained in main memory 706 causes processor 704 to perform the process steps described herein. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions to implement the invention. Thus, embodiments of the invention are not limited to any specific combination of hardware circuitry and software.
The term “computer-readable medium” as used herein refers to any medium that participates in providing data that causes a computer to operation in a specific manner. In an embodiment implemented using computer system 700, various computer-readable media are involved, for example, in providing instructions to processor 704 for execution. Such a medium may take many forms, including but not limited to, non-volatile media and volatile media. Non-volatile media includes, for example, optical or magnetic disks, such as storage device 710. Volatile media includes dynamic memory, such as main memory 706. Common forms of computer-readable media include, for example, a floppy disk, a flexible disk, hard disk, magnetic tape, or any other magnetic medium, a CD-ROM, any other optical medium, a RAM, a PROM, and EPROM, a FLASH-EPROM, any other memory chip or memory cartridge, or any other medium from which a computer can read.
Various forms of computer-readable media may be involved in carrying one or more sequences of one or more instructions to processor 704 for execution. For example, the instructions may initially be carried on a magnetic disk of a remote computer. The remote computer can load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to computer system 700 can receive the data on the telephone line and use an infra-red transmitter to convert the data to an infra-red signal. An infra-red detector can receive the data carried in the infra-red signal and appropriate circuitry can place the data on bus 702. Bus 702 carries the data to main memory 706, from which processor 704 retrieves and executes the instructions. The instructions received by main memory 706 may optionally be stored on storage device 710 either before or after execution by processor 704.
Computer system 700 also includes a communication interface 718 coupled to bus 702. Communication interface 718 provides a two-way data communication coupling to a network link 720 that is connected to a local network 722. For example, communication interface 718 may be an integrated services digital network (ISDN) card or a modem to provide a data communication connection to a corresponding type of telephone line. As another example, communication interface 718 may be a local area network (LAN) card to provide a data communication connection to a compatible LAN. Wireless links may also be implemented. In any such implementation, communication interface 718 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information.
Network link 720 typically provides data communication through one or more networks to other data devices. For example, network link 720 may provide a connection through local network 722 to a host computer 724 or to data equipment operated by an Internet Service Provider (ISP) 726. ISP 726 in turn provides data communication services through the world wide packet data communication network now commonly referred to as the “Internet” 728. Local network 722 and Internet 728 both use electrical, electromagnetic or optical signals that carry digital data streams.
Computer system 700 can send messages and receive data, including program code, through the network(s), network link 720 and communication interface 718. In the Internet example, a server 730 might transmit a requested code for an application program through Internet 728, ISP 726, local network 722 and communication interface 718. The received code may be executed by processor 704 as it is received, and/or stored in storage device 710, or other non-volatile storage for later execution.
In the foregoing specification, embodiments of the invention have been described with reference to numerous specific details that may vary from implementation to implementation. Thus, the sole and exclusive indicator of what is, and is intended by the applicants to be, the invention is the set of claims that issue from this application, in the specific form in which such claims issue, including any subsequent correction. Hence, no limitation, element, property, feature, advantage or attribute that is not expressly recited in a claim should limit the scope of such claim in any way. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.

## Claims

1. A computer-implemented method for printing to a Web service-enabled printing device, comprising:
a print driver executing on a client device and retrieving, from the Web service-enabled printing device, printing device capabilities data that specifies a plurality of features and options currently supported by the Web service-enabled printing device;
wherein the printing device capabilities data specifies, for a particular feature and a particular option of the plurality of features and options, a plurality of languages in which the particular feature and the particular option may be displayed;
the print driver generating, based at least upon the printing device capabilities data, printer description data that specifies display data that indicates how the particular feature and the particular option are to be displayed, on a graphical user interface, in the plurality of languages;
in response to user input, the print driver generating, based at least upon the display data contained in the printer description data and language data, graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a graphical user interface in a particular language of the plurality of languages that is currently selected for the client device, wherein the language data specifies the particular language;
the print driver receiving, from an application program, application data generated by the application program;
the print driver generating, based at least upon the application data, print data and a print job ticket; and
the print driver causing the print data and the print job ticket to be transmitted to the Web service-enabled printing device.

2. The method of claim 1, wherein the language data is a localization setting of an operating system of the client device.

3. The method of claim 1, wherein:
the display data specifies a string variable that corresponds to the particular feature, and
generating the graphical user interface data includes retrieving a string that corresponds to the string variable.

4. The method of claim 1, further comprising:
in response to a particular user logging in to a computer system, causing the language data to specify a second language that is different than the particular language; and
in response to second user input, the print driver generating, based at least upon the display data contained in the printer description data and the language data, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language.

5. The method of claim 1, wherein:
the graphical user interface data includes an option to display the particular feature and the particular option in another language that is different than the particular language and is of the plurality of languages;
the method further comprising, in response to second user input selecting a second language that is different than the particular language, the print driver generating, based at least upon the display data contained in the printer description data and the second language, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language.

6. The method of claim 1, further comprising:
the print driver retrieving, from the Web service-enabled printing device, second printing device capabilities data that specifies the plurality of features and options of the Web service-enabled printing device;
wherein the second printing device capabilities data specifies, for the particular feature and the particular option of the plurality of features and options, a second plurality of languages in which the particular feature and the particular option may be displayed;
wherein the second plurality of languages includes a second language that is not included in the plurality of languages;
the print driver generating, based at least upon the printing device capabilities data, second printer description data that specifies second display data that indicates how the particular feature and the particular option are to be displayed, on a another graphical user interface, in the second plurality of languages;
in response to second user input, the print driver generating, based at least upon the second display data contained in the second printer description data and second language data that specifies the second language, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language.

7. The method of claim 1, further comprising:
the print driver retrieving, from a second Web service-enabled printing device that is different than the Web service-enabled printing device, second printing device capabilities data that specifies a second plurality of features and options currently supported by the second Web service-enabled printing device;
wherein the second printing device capabilities data specifies, for a second particular feature and a second particular option of the second plurality of features and options, a second plurality of languages in which the second particular feature and the second particular option may be displayed;
wherein the second plurality of languages includes a second language that is not included in the plurality of languages;
the print driver generating, based at least upon the second printing device capabilities data, second printer description data that specifies second display data that indicates how the second particular feature and the second particular option are to be displayed, on another graphical user interface, in the second plurality of languages;
in response to second user input, the print driver generating, based at least upon the second display data contained in the second printer description data and second language data that specifies the second language, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language, wherein the second language is currently selected for the client device.

8. A non-transitory computer-readable medium for printing to a Web services-enabled printing device, the non-transitory computer-readable medium carrying instructions which, when processed by one or more processors, causes:
a print driver executing on a client device and retrieving, from the Web service-enabled printing device, printing device capabilities data that specifies a plurality of features and options currently supported by the Web service-enabled printing device;
wherein the printing device capabilities data specifies, for a particular feature and a particular option of the plurality of features and options, a plurality of languages in which the particular feature and the particular option may be displayed;
the print driver generating, based at least upon the printing device capabilities data, printer description data that specifies display data that indicates how the particular feature and the particular option are to be displayed, on a graphical user interface, in the plurality of languages;
in response to user input, the print driver generating, based at least upon the display data contained in the printer description data and language data, graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a graphical user interface in a particular language of the plurality of languages that is currently selected for the client device, wherein the language data specifies the particular language;
the print driver receiving, from an application program, application data generated by the application program;
the print driver generating, based at least upon the application data, print data and a print job ticket; and
the print driver causing the print data and the print job ticket to be transmitted to the Web service-enabled printing device.

9. The non-transitory computer-readable medium of claim 8, wherein the language data is a localization setting of an operating system of the client device.

10. The non-transitory computer-readable medium of claim 8, wherein:
the display data specifies a string variable that corresponds to the particular feature, and generating the graphical user interface data includes retrieving a string that corresponds to the string variable.

11. The non-transitory computer-readable medium of claim 8, further comprising additional instructions which, when processed by the one or more processors, causes:
in response to a particular user logging in to a computer system, causing the language data to specify a second language that is different than the particular language; and
in response to second user input, the print driver generating, based at least upon the display data contained in the printer description data and the language data, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language.

12. The non-transitory computer-readable medium of claim 8, wherein:
the graphical user interface data includes an option to display the particular feature and the particular option in another language that is different than the particular language and is of the plurality of languages;
further comprising additional instructions which, when processed by the one or more processors, causes, in response to second user input selecting a second language that is different than the particular language, the print driver generating, based at least upon the display data contained in the printer description data and the second language, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language.

13. The non-transitory computer-readable medium of claim 8, further comprising additional instructions which, when processed by the one or more processors, causes:
the print driver retrieving, from the Web service-enabled printing device, second printing device capabilities data that specifies the plurality of features and options of the Web service-enabled printing device;
wherein the second printing device capabilities data specifies, for the particular feature and the particular option of the plurality of features and options, a second plurality of languages in which the particular feature and the particular option may be displayed;
wherein the second plurality of languages includes a second language that is not included in the plurality of languages;
the print driver generating, based at least upon the printing device capabilities data, second printer description data that specifies second display data that indicates how the particular feature and the particular option are to be displayed, on a another graphical user interface, in the second plurality of languages;
in response to second user input, the print driver generating, based at least upon the second display data contained in the second printer description data and second language data that specifies the second language, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language.

14. The non-transitory computer-readable medium of claim 8, further comprising additional instructions which, when processed by the one or more processors, causes:
the print driver retrieving, from a second Web service-enabled printing device that is different than the Web service-enabled printing device, second printing device capabilities data that specifies a second plurality of features and options currently supported by the second Web service-enabled printing device;
wherein the second printing device capabilities data specifies, for a second particular feature and a second particular option of the second plurality of features and options, a second plurality of languages in which the second particular feature and the second particular option may be displayed;
wherein the second plurality of languages includes a second language that is not included in the plurality of languages;
the print driver generating, based at least upon the second printing device capabilities data, second printer description data that specifies second display data that indicates how the second particular feature and the second particular option are to be displayed, on another graphical user interface, in the second plurality of languages;
in response to second user input, the print driver generating, based at least upon the second display data contained in the second printer description data and second language data that specifies the second language, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language, wherein the second language is currently selected for the client device.

15. An apparatus for printing to a Web services-enabled printing device, the apparatus comprising a memory storing instructions which, when processed by one or more processors, causes:
a print driver executing on a client device and retrieving, from the Web service-enabled printing device, printing device capabilities data that specifies a plurality of features and options currently supported by the Web service-enabled printing device;
wherein the printing device capabilities data specifies, for a particular feature and a particular option of the plurality of features and options, a plurality of languages in which the particular feature and the particular option may be displayed;
the print driver generating, based at least upon the printing device capabilities data, printer description data that specifies display data that indicates how the particular feature and the particular option are to be displayed, on a graphical user interface, in the plurality of languages;
in response to user input, the print driver generating, based at least upon the display data contained in the printer description data and language data, graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a graphical user interface in a particular language of the plurality of languages that is currently selected for the client device, wherein the language data specifies the particular language;
the print driver receiving, from an application program, application data generated by the application program;
the print driver generating, based at least upon the application data, print data and a print job ticket; and
the print driver causing the print data and the print job ticket to be transmitted to the Web service-enabled printing device.

16. The apparatus of claim 15, wherein:
the display data specifies a string variable that corresponds to the particular feature, and
generating the graphical user interface data includes retrieving a string that corresponds to the string variable.

17. The apparatus of claim 15, wherein the memory stores additional instructions which, when processed by the one or more processors, causes:
in response to a particular user logging in to a computer system, causing the language data to specify a second language that is different than the particular language; and
in response to second user input, the print driver generating, based at least upon the display data contained in the printer description data and the language data, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language.

18. The apparatus of claim 15, wherein:
the graphical user interface data includes an option to display the particular feature and the particular option in another language that is different than the particular language and is of the plurality of languages;
the memory stores additional instructions which, when processed by the one or more processors, causes in response to second user input selecting a second language that is different than the particular language, the print driver generating, based at least upon the display data contained in the printer description data and the second language, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language.

19. The apparatus of claim 15, wherein the memory stores additional instructions which, when processed by the one or more processors, causes:
the print driver retrieving, from the Web service-enabled printing device, second printing device capabilities data that specifies the plurality of features and options of the Web service-enabled printing device;
wherein the second printing device capabilities data specifies, for the particular feature and the particular option of the plurality of features and options, a second plurality of languages in which the particular feature and the particular option may be displayed;
wherein the second plurality of languages includes a second language that is not included in the plurality of languages;
the print driver generating, based at least upon the printing device capabilities data, second printer description data that specifies second display data that indicates how the particular feature and the particular option are to be displayed, on a another graphical user interface, in the second plurality of languages;
in response to second user input, the print driver generating, based at least upon the second display data contained in the second printer description data and second language data that specifies the second language, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language.

20. The apparatus of claim 15, wherein the memory stores additional instructions which, when processed by the one or more processors, causes:
the print driver retrieving, from a second Web service-enabled printing device that is different than the Web service-enabled printing device, second printing device capabilities data that specifies a second plurality of features and options currently supported by the second Web service-enabled printing device;
wherein the second printing device capabilities data specifies, for a second particular feature and a second particular option of the second plurality of features and options, a second plurality of languages in which the second particular feature and the second particular option may be displayed;
wherein the second plurality of languages includes a second language that is not included in the plurality of languages;
the print driver generating, based at least upon the second printing device capabilities data, second printer description data that specifies second display data that indicates how the second particular feature and the second particular option are to be displayed, on another graphical user interface, in the second plurality of languages;
in response to second user input, the print driver generating, based at least upon the second display data contained in the second printer description data and second language data that specifies the second language, second graphical user interface data which, when processed at the client device, causes the particular feature and the particular option to be displayed on a second graphical user interface in the second language, wherein the second language is currently selected for the client device.