Download euro-cruncher.hqx (924,576 KB)
From: eurema
Subject: eurocruncher v1 - batch conversion FRF-EUR inside text files
EuroCruncher v1 by gege2000@libertysurf.fr
Perform currency conversions between French Francs and Euros inside any
text file.
Use it to convert bank accounts from minitel or web, exported price
lists, bills, web pages and any text file including amounts .
It must be used by open a text file.
The main window allowyou to choose how to treat numbers not followed by
any currency symbol : FRF= French Francs; EUR= Euros.
You could also choose the output format of the converted numbers:
1- FRF (EUR) output numbers in Francs followed by amount in Euros
between parenthesis.
2- EUR (FRF) output numbers in Euros followed by amount in Francs
between parenthesis.
1- EUR output numbers in Euros only.
The following procedure is used to perform conversion:
1- only numbers having a two numbers decimal part are treated : x.xx.
2- commas for decimal part is replaced by a point : xx,xx => xx.xx
3- spaces are removed from numbers like x xxx xxx.xx
4- trailing plus or minus signs (xxxx.xx- or +) are placed before the
number (- or + xxxx.xx)
5- every unit in the range : F, FR, f, fr is replaced with FRF
6- every unit in the range : , euro, euros is replaced with EUR
7- ht, HT, ttc, TTC, Fht, FHT, fht, fHT, fTTC, FTTC, Fttc, fttc are
treated similarly with an added space after EUR or FRF.
8- the unit choosen in first dialog is added to numbers without currency
unit (ie: EUR or FRF).
9- formated and rounded output number is placed inside the document
following the choice made in the second dialog.
10- The converted file is saved at the same folder level with the same
name completed by the characters .cv
An overall control of the converted file must be made to verify that the
preceding rules have not been contradicted by an exotic number format
not taken into account.
The program has been developed with MacPerl 5 that is Perl 5, ported to
the Mac by Matthias Neeracher
and ported on powerPC with relBasic v3.5
If you have internet access, you can obtain the newest versions of Perl
by anonymous ftp from one of the following address:
sunsite.cnlab-switch.ch [195.176.255.9] software/platform/macos/perl
As this is my first use of perl regExp's , I surely have made many
misconceptions in my use of RegExps but I hope to increase my knowledge
with future enhancements of the program (other currencies, handling
multiple files, adding input file dialogs, and adding portability).
If you find that my work and this program is good enough to merit some
retribution, please feel free to send me a cheque of any amount to:
gerard samson
couix
07410 colombier le vieux
This could help me to buy some programming software and continue
development of the many waiting projects.
This program could be included in any archive or CD-ROM (please tell me
where as I could maitain updates)