The herein-described embodiments enable users to view converted representations of numerical values such as measurements and monetary values on-demand, and to do so in a manner that enables users to view the converted representations alongside the original (unconverted) representations so as to enable such users to appreciate the relationship between the converted and unconverted representations.
A numerical value capable of being processed by on-demand conversion may represent any quantitative value capable of being represented in more than one unit, and thus capable of being converted between different units. In this regard, a numerical value is considered to be “convertible” if that numerical value is capable of being converted from the unit in which it is currently represented to another unit, while a converted numerical value represents the value after the conversion has been performed.
A numerical value may represent, for example, a measurement, e.g., length, area, volume, mass, weight, time, density, temperature, velocity, acceleration, force, electrical, or any other suitable scientific or technical value, whereby the various units for a numerical value may be different depending upon the type of numerical value (e.g., meters, inches, etc. for length, pounds or kilograms for weight, etc.). A numerical value may also represent a monetary amount, whereby the various units for a numerical value may differ based upon locale or system of currency, e.g., U.S. Dollars, British Pounds, Euros, etc. In this regard, the conversion of a numerical value between units may be based upon a fixed formula derived from a physical or scientific equation (e.g., 1 inch=2.54 cm), or may be based upon a variable formula that changes from time to time (e.g., based upon an exchange rate).
The units for which it may be desirable to convert numerical values often differ from one another based upon the inclusion of the units in different standards, e.g., the metric system (or International System of Units) vs. the English or imperial measurement system still widely used in the United States. While it may be desirable to convert between units in the same metric or standard (e.g., to convert between centimeters and millimeters), often it is desirable to convert between units of different metrics or standards given that users often are more versed with one standard over another (e.g., Europeans are typically no longer well versed in English measurements).
Turning now to the Drawings, wherein like numbers denote like parts throughout the several views,
Computer 10 typically includes a central processing unit 16 including at least one microprocessor coupled to a memory 18, which may represent the random access memory (RAM) devices comprising the main storage of computer 10, as well as any supplemental levels of memory, e.g., cache memories, non-volatile or backup memories (e.g., programmable or flash memories), read-only memories, etc. In addition, memory 18 may be considered to include memory storage physically located elsewhere in computer 10, e.g., any cache memory in a processor in CPU 16, as well as any storage capacity used as a virtual memory, e.g., as stored on a mass storage device 20 or on another computer coupled to computer 10. Computer 10 also typically receives a number of inputs and outputs for communicating information externally. For interface with a user or operator, computer 10 typically includes a user interface 22 incorporating one or more user input devices (e.g., a keyboard, a mouse, a trackball, a joystick, a touchpad, and/or a microphone, among others) and a display (e.g., a CRT monitor, an LCD display panel, and/or a speaker, among others). Otherwise, user input may be received via another computer or terminal.
For additional storage, computer 10 may also include one or more mass storage devices 20, e.g., a floppy or other removable disk drive, a hard disk drive, a direct access storage device (DASD), an optical drive (e.g., a CD drive, a DVD drive, etc.), and/or a tape drive, among others. Furthermore, computer 10 may include an interface 24 with one or more networks 12 (e.g., a LAN, a WAN, a wireless network, and/or the Internet, among others) to permit the communication of information with other computers and electronic devices. It should be appreciated that computer 10 typically includes suitable analog and/or digital interfaces between CPU 16 and each of components 18, 20, 22 and 24 as is well known in the art.
Computer 10 operates under the control of an operating system 26, and executes or otherwise relies upon various computer software applications, components, programs, objects, modules, data structures, etc. (e.g., a browser 28 with a metric converter plug-in 30). Moreover, various applications, components, programs, objects, modules, etc. may also execute on one or more processors in another computer coupled to computer 10 via a network, e.g., in a distributed or client-server computing environment, whereby the processing required to implement the functions of a computer program may be allocated to multiple computers over a network.
In general, the routines executed to implement the embodiments of the invention, whether implemented as part of an operating system or a specific application, component, program, object, module or sequence of instructions, or even a subset thereof, will be referred to herein as “computer program code,” or simply “program code.” Program code typically comprises one or more instructions that are resident at various times in various memory and storage devices in a computer, and that, when read and executed by one or more processors in a computer, cause that computer to perform the steps necessary to execute steps or elements embodying the various aspects of the invention. Moreover, while the invention has and hereinafter will be described in the context of fully functioning computers and computer systems, those skilled in the art will appreciate that the various embodiments of the invention are capable of being distributed as a program product in a variety of forms, and that the invention applies equally regardless of the particular type of computer readable media used to actually carry out the distribution. Examples of computer readable media include but are not limited to tangible, recordable type media such as volatile and non-volatile memory devices, floppy and other removable disks, hard disk drives, magnetic tape, optical disks (e.g., CD-ROMs, DVDs, etc.), among others, and transmission type media such as digital and analog communication links.
In addition, various program code described hereinafter may be identified based upon the application within which it is implemented in a specific embodiment of the invention. However, it should be appreciated that any particular program nomenclature that follows is used merely for convenience, and thus the invention should not be limited to use solely in any specific application identified and/or implied by such nomenclature. Furthermore, given the typically endless number of manners in which computer programs may be organized into routines, procedures, methods, modules, objects, and the like, as well as the various manners in which program functionality may be allocated among various software layers that are resident within a typical computer (e.g., operating systems, libraries, API's, applications, applets, etc.), it should be appreciated that the invention is not limited to the specific organization and allocation of program functionality described herein.
In the illustrated implementation, on-demand numerical conversion is implemented in a browser, e.g., using a plug-in 30 in a conventional browser 28 to permit numerical values in web pages downloaded from the Internet to be converted on-demand. Those skilled in the art will recognize, however, that the exemplary environment illustrated in
Furthermore, in the illustrated implementation, on-demand numerical conversion is based in part upon user preference data that identifies, for each of one or more types of convertible numerical values, a preferred unit or standard of units for that type of convertible numerical value. It may be desirable, for example, to store user preference data in a user profile, e.g., user profile 32 illustrated in
User preference data may be stored and managed by operating system 26, or may alternately be stored and managed by browser 28 or plug-in 30. Furthermore, the user preference data may be stored remotely, e.g., on a network server, and retrieved by plug-in 30 as necessary.
Local units for a particular user may be directly selected by the user on a unit-by-unit basis, or alternatively, local units may be selected in groups, e.g., by standard or metric. For example, a user may be able to select “metric system” or “English system” and have the local units for numerous types of numerical values set accordingly. Local units may also be selected inferentially or indirectly, e.g., based upon a user's known location. For example, local units may be selected based upon a user's native language, country, time-zone, etc., e.g., as is typically stored in the user profiles of conventional operating systems. Such selections may only be default selections, and may permit users to override the default selections. As such, a user known to be in the United States may be defaulted to the English units, with an ability provided for the user to select metric units instead if so desired.
In addition, even in instances where a user selects a group of local units, individual units within such groups may be selectively overridden by a user. Furthermore, a user may be able to customize the local units to use for different types of conversions. For example, a meter may be represented in the English system in a wide variety of ways, e.g., as 1.09 yards, 3.28 feet, 39.37 inches, 39⅜ inches, 3 feet and 3.37 inches, etc., and a user may be able to select a specific local unit display format in some embodiments of the invention. In addition, in some embodiments it may be desirable to enable a user to input additional customized conversions, e.g., to accommodate conversions that are not natively supported by the converter.
Embodiments consistent with the invention typically implement on-demand numerical conversion in response to detecting the movement of a user manipulated pointer (e.g., via user manipulation of a GUI pointer via a mouse, touchpad, track ball, cursor key, touch screen input, gesture, voice or other suitable user input) over a region in a document within which a convertible numerical value is located. Whenever a pointer is manipulated in such a manner, and when the native unit for the convertible numerical value does not match the local unit for that value, a converted numerical value is displayed proximate to or adjacent to the convertible numerical value, desirably along with an identification of the local unit for the value, and desirably without substantially occluding the convertible numerical value so that the two values are concurrently displayed and the user can readily ascertain the relationship between the two values.
In one embodiment of the invention, the display of the converted numerical value is implemented within a pop-up window, e.g., a dialog box, a tool tip, a “bubble” or other suitable graphical control, and typically adjacent to or proximate to the pointer.
Web page 38 includes a first region 40 within which is displayed a first convertible numerical value, here a temperature value of “28.” As can be seen from the figure, the native unit for the convertible numerical value is degrees Fahrenheit. Assuming, for example, that the local unit for temperature for the user is degrees Celsius, the metric converter plug-in described hereinafter will automatically detect the movement of a user manipulated pointer 42 over region 40 and perform on-demand numerical conversion, and as a result display a pop-up window 44 within which is disposed a converted numerical value 46, here the same temperature reading converted to degrees Celsius. Desirably, the local unit (degrees Celsius) is also displayed adjacent the converted numerical value.
Routine 50 begins in block 52 by loading the user profile, typically either locally, or alternatively remotely if the user profile is stored on a server. Next, block 52 waits on pointer movement. If pointer movement is detected, block 56 passes control to block 58. Otherwise, control returns to block 54 to continue to wait on pointer movement.
If pointer movement is detected, block 58 determines whether a pop-up window is already displayed. Assuming that no window is currently displayed, control passes to block 60 to perform text analysis on the text currently disposed under the pointer to attempt to locate a convertible numerical value, e.g., by performing a text string search for various types of unit identifiers in the text (e.g., “$”, “mph”, “° F.”, etc.) to identify both the native unit and to identify a nearby numerical value.
Block 62 then determines whether a convertible numerical value was found, and if not, returns control to block 54. If a convertible numerical value is found, however, control passes to block 64 to determine whether the native unit for the convertible numerical value matches the local unit in the user profile. If so, no conversion is required, so control returns to block 54. If the units do not match, however, control passes to block 66 to perform the numerical conversion, and then to block 68 to display the converted numerical value in a pop-up window adjacent the pointer. As noted above, it is also desirable to identify the local unit for the converted numerical value in the pop-up window as well. Once the pop-up window is displayed, control returns to block 54.
Returning to block 58, if pointer movement is detected while the pop-up window is displayed, control passes to block 70 to determine whether the pointer is still disposed over the same convertible numerical value for which the pop-up window was generated. If so, control returns to block 54. Otherwise, block 70 passes control to block 72 to remove the pop-up window. Control then passes to block 60 to look for a convertible numerical value in the new region over which the pointer is disposed.
It will be appreciated that pointer movement may be detected in a number of manners consistent with the invention. For example, routine 50 may monitor for pointer movement events such as mouseover, mouseenter, mouseout, mousemove events. In addition, it will be appreciated that the region searched upon detecting pointer movement may vary in different embodiments. The region may be based, for example, upon a certain distance from the pointer position, upon the graphical object over which the pointer is positioned, upon a number of words in either direction of the current text over which the pointer is positioned, etc. In addition, it will be appreciated that rather than requiring a user to merely position a pointer over a numerical value, some embodiments may further require a user to explicitly request the conversion, e.g., via clicking or double-clicking on the numerical value. In such embodiments, the detection of pointer movement may further be responsive to events such as click or double-click events.
Routine 50, it should be noted, performs both conversion of a convertible numerical value, and display of the converted numerical value, on-demand, and in response to pointer movement over a region including an appropriate convertible numerical value. In other embodiments, however, conversion may be performed prior to, and thus, non-responsive to pointer movement over a convertible numerical value.
Routine 100 begins in block 102 by loading the user profile. Next, block 104 determines whether numerical conversion has already been performed on the current web page displayed in the browser. If not, control passes to block 106 to scan the web page and perform text analysis on the page to attempt to locate a convertible numerical value. Block 108 then determines whether a convertible numerical value was found, and if so, passes control to block 110 to determine whether the native unit for the convertible numerical value matches the local unit in the user profile. If so, no conversion is required, so control returns to block 106 to search for other convertible numerical values in the web page. If the units do not match, however, control passes to block 112 to perform the numerical conversion, and to store the converted numerical value. For example, it may be desirable for block 112 to create a record that identifies the convertible numerical value, the converted numerical value and the units associated with each, such that the record can later be retrieved when the pointer is disposed over a region incorporating the convertible numerical value. Upon completion of block 112, control returns to block 106 to search for other convertible numerical values in the web page.
Once all convertible numerical values have been processed, block 108 passes control to block 114. Likewise, control is passed to block 114 if block 104 determines that conversion has already been performed on the current web page.
Block 114 waits on pointer movement. If pointer movement is detected, block 116 passes control to block 118. Otherwise, control returns to block 104 to check whether a new page has been loaded for which conversion has not yet been performed.
If pointer movement is detected, block 118 determines whether a pop-up window is already displayed. Assuming that no window is currently displayed, control passes to block 120 to determine whether the pointer is disposed over a region including a convertible numerical value displayed in a non-local unit, e.g., by searching for a record generated in block 112 that corresponds to the convertible numerical value under the pointer. If so, control passes to block 122 to display the previously converted numerical value in a pop-up window adjacent the pointer, whereby control then returns to block 104.
Returning to block 118, if pointer movement is detected while the pop-up window is displayed, control passes to block 124 to determine whether the pointer is still disposed over the same convertible numerical value for which the pop-up window was generated. If so, control returns to block 104. Otherwise, block 124 passes control to block 126 to remove the pop-up window. Control then passes to block 120 to look for an appropriate convertible numerical value in the new region over which the pointer is disposed.
Various modifications may be made to the illustrated embodiments without departing from the spirit and scope of the invention. The invention therefore lies in the claims hereinafter appended.