Step-by-step scripts to create a Finnish town name NewGRF for OpenTTD.
Run ./crawler.sh
to fetch the web pages containing location names (not included in this repo).
Run ./analyze.py
to create name list (already included).
Run ./compound-finder.py
to discover common parts of Finnish location names.
Run ./nmlgen.py
to generate the needed NML files.
To generate the .grf
file, run:
cd nml-project/main
make
Similarly, go to nml-project/chn
to generate the Chinese transliteration version.
Different Finland places have different official langauges (Finnish, Swedish or different dialects of Sami), but since the compound finder (step 3) uses a frequency-based filter, non-Finnish roots seem to be filtered out, and no attempts have been made to create separate generators for them.
The Chinese Transliteration uses a lookup table, and does not properly work with non-Finnish name.