It would be possible to script this.........but.
I think another approach would be better. OpenCPN can convert the data just before writing to
screen. A choice between all metric and all imperial/US measurements would then be possible thorough some user settings.
To start from the beginning. I don't know if there is much point in editing to much before we know what Dave intends to do in the future regarding tides. He is considering to change to xtides binary format, which seems to be some kind of industry standard.
If it is possible to separate the code, I think there is a good argument for making the tides into a plugins, or maybe an Tide&
Current Manager, that accepts input in different formats.
*The old format ( we use presently) could be one
plugin. All the existing versions of HARMONIC & HARMONC.IDX can still be used.
*The standard xtide binary format could be one
plugin.
*Possibility for an up to date
commercial tide plugin. For areas where tidal data are not provided by governments or other institutions for free, existing data are getting very old. For some users this could be an attractive solution.
Regarding "Hornafjörður" and similar names. These names now works, as the tidal files are pure UTF-8. (except for comments in the beginning of the files that I did not bother with.) All editing needs to be done in this format as well! A lot of the tidal files floating around on this and other
forums are not UTF-8 and the "tides" for "Hornafjörður" would probably only be displayed as a vertical red line in the middle of the dialog.
Thomas