If a webpage provides exchange rates, you can import these values into
the NumericalChameleon. The website has to provide exchange rates and their
corresponding ISO-4217-codes (e. g. USD, EUR, etc.). The ISO-codes are
stored in "<installationdirectory>/data/lists/iso4217.list
".
You can delete lines in this file to specify only the exchange rates
you want. Exchange rate filters are stored in the direcotry "<installationdirecotry>/data/rates/
". The name of a filter ends with the suffix ".filter".
An example of an exchange rate filter for the "Pacific Exchange Rate
Services" website is
(Installationdirectory/data/rates/pacific.commerce.ubc.ca.filter)
name=Pacific Exchange Rate Service
visit=http://pacific.commerce.ubc.ca/xr/rates.html description=\ Service from University of British Columbia, Vancouver, Canada.\n\n\ This service provides 264 exchange rates (172 unique).\n\ Filter written by jonelo.\n\ instruction=Save webpage as file and then include the file. syntax=perl5 date=<title>Rates as of (.+?) Pacific Time</title> before_iso=<tt> after_iso=</tt></td>(\\s+?<td.+?>.+?</td>){3}\\s+?<td.+?>(<b>)?\\s*(.+?)(</b>)?</td> decimalSeparator=, decimalPoint=. |
Description of all keys:
name | the name of the exchange rate service |
visit | the URL of the exchange rate service |
description | a short description of the exchange rate service |
instruction | some instructions what to do at the website of the exchange rate service |
syntax | which language should be uses for regular expressions ("perl4" or "perl5") |
date | a regular expression for the date, brackets will define the string |
before_iso | a regular expression before the ISO 4217 code, brackets will define strings |
before_iso_inv | seit NC 1.5.0; a regular expression before the ISO 4217 code, brackets will define strings (rate will be recalculated with 1/rate) |
after_iso | a regular expression after the ISO 4217 code, brackets will define strings |
after_iso_inv | seit NC 1.5.0; a regular expression after the ISO 4217 code, brackets will define strings (rate will be recalculated with 1/rate) |
decimalSeparator | which character represents the separator between digits? |
decimalPoint | which character represents the decimal point? |
logic | since NC 1.3.0; will be put in in field logic of category "exchange rates", default ist "false", optional |
filechooser | since NC 1.3.0; which file postfixes should be supported by the open dialog? (e. g. "html, htm"), optional |
valuepos | since NC 1.3.0; which bracket content defines the value in String "before_iso+ISO+after_iso"? (e. g. "1"), optional |
base | since NC 1.4.0; a three character ISO 4217 code which represents factor 1, (e. g. "USD"), optional |