Customization
Unit Conversions and Constants
If you have purchased RealCalc Plus, you can customize the unit conversion and constant tables. These are stored in an xml data file, which can be exported to the SD card, edited, then imported back into the calculator.
To customize the conversions/constants:
- Go to Menu > Settings > Customization Options.
- Select 'Export to SD...'. The data will be written to the card in 'realcalc/data.xml'.
- Connect your phone to your computer and turn on USB storage so that you can view the SD card on your computer.
- Edit the data.xml file, following the existing data as an example. You can add, change or remove units and constants or whole groups. You will need to use a text editor which supports UTF-8, such as Notepad on Windows (but not WordPad). A more powerful editor such as Notepad++ is recommended.
- When finished, turn off USB storage again.
- Select 'Import from SD...' from the Customization Options screen. If there are any errors in your xml file, you will be notified and the import will not change anything. Correct the errors and repeat the import.
- Return to the main calculator screen. The CONV and CNST functions will now use your new custom conversions and constants.
- It is recommended that you keep your data.xml file as a backup. If you have to uninstall RealCalc for any reason, your customizations will be lost, but you can re-import the data.xml file at any time.
To restore the default conversions/constants:
- Go to Menu > Settings and select 'Customization Options'.
- Select 'Reset to defaults...' and confirm.
- Return to the main calculator screen. The default CONV and CNST functions will now be restored.
Examples
Fuel consumption (showing use of inverse units). In this example, the ratio for litres per 100km is set as if the unit were 100km per litre, and the attribute inverse="true" is added.
<group name="Fuel Consumption">
<unit name="Kilometres per litre" symbol="km/l" ratio="1.0" />
<unit name="Litres per 100km" symbol="l/100km" ratio="100.0" inverse="true" />
<unit name="Miles per gallon (Imp)" symbol="mpg (Imp)" ratio="1.609344/4.54609" />
<unit name="Miles per gallon (US)" symbol="mpg (US)" ratio="1.609344/3.785411784" />
</group>
