Overall statistics (only for files with a smaller recompressed size):
Original size: 485 KiB on 277 files
Optimized size: 447 KiB
Total saving: 37 KiB = 7% decrease
Currently, the specified MACRO is not expanded further, so if it
contains code inclusions with {} those will not be resolved.
Furthermore, MACRO should not take arguments. The whole idea is that it
should be defined to simple text such as "1.7.5" like Wesnoth does for
WESNOTH_VERSION since 2011-03-22T06:40:15Z!shadowm@wesnoth.org.
(not commiting any files that were reported as broken, there are many!)
Original size: 130846 KiB on 10530 files
Optimized size: 127520 KiB
Total saving: 3325 KiB = 2% decrease
Same as data/tools/terrain2wiki.rb except it works with current format
It also works with arguments, so you can choose source and destination
files
Still need some changes but it already works. Only feature that was in
ruby tool and not in this one is stats from. It will be added in a
future version.
mvt_alias and def_alias will also be added in a future version in the
alias column.
Another thing to not is that the tool does not parse terrains with an
'hidden=yes' because these shouldn't appear in a terrain reference.
Pep8 and Pylint results are good.
(Was only working with 2.5), remove one unused argument, use booleans
instead of 0 and 1, use triple quotes when it's better to, try to
respect more python standards, several other enhancements. There might
me some bugs so just ping me on irc.
NOTE: Extremely many files received (smaller) changes but due to the
extremely large amount of changes I am not 100% sure that this
conversion is correct. This is the output of
utils/png_format_check.sh:
RGBA: 10247 RGB: 10 Gray+A: 256 Gray: 0 Index+A: 0 Index: 0 Other: 0
Overall statistics (only for files with a smaller recompressed size):
Original size: 128949 KiB on 9778 files
Optimized size: 125813 KiB
Total saving: 3135 KiB = 2% decrease
...(very few addon units had translations but creating all the addon
units in each language takes a lot of time and .html files). Also
report less errors for addons (the addon authors don't get to read
them anyway i'm afraid :/)