1453 Commits

Author SHA1 Message Date
Steven Panek
464b1a5764 Made wmllint ignore UTF-8 minus signs when spellchecking. 2011-04-19 00:08:54 +00:00
Elias Pschernig
c330fb8263 [wmlunits] fixed ignored unit-specific resistance/movement-cost/defence values 2011-04-16 14:27:21 +00:00
Elias Pschernig
f57cbe99e0 Added --pbl option to wesnoth_addon_manager as requested by Espreon. 2011-03-31 21:15:05 +00:00
Nils Kneuper
f660ba74fd ran utils/wesnoth-optipng:
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
2011-03-27 11:06:40 +00:00
Thibault Févry
6674487fb0 Remove W604 pep8 warning on files. Use repr(x) instead of deprecated 2011-03-25 20:46:50 +00:00
Thibault Févry
bc98136f7a Update the README: Fix a typo, change terrain2wiki extension...
(we now use python instead of ruby).
2011-03-24 20:59:45 +00:00
Thibault Févry
46ce51c8ff More whitespace removal 2011-03-24 20:52:22 +00:00
Ignacio R. Morelle
9e94b3410c wmlindent: Update for #ifver, #ifnver 2011-03-23 03:26:58 +00:00
Ignacio R. Morelle
e0b0a18104 WML preprocessor: implement #ifver, #ifnver MACRO <op> <version>
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.
2011-03-23 03:20:39 +00:00
Ignacio R. Morelle
5341c62319 wmlindent: Update for #ifhave, #ifnhave 2011-03-23 03:20:20 +00:00
Thibault Févry
9a13492bcc Make terrain2wiki.py compatible with python3...
...(Doesn't break python2 obviously). This might be usefull for Linux
distribs that come with python3 by default.
2011-03-21 22:32:18 +00:00
Elias Pschernig
8d3bedaf67 [wesnoth_addon_manager] Properly encode description strings...
...when uploading a campaign.
2011-03-20 22:02:15 +00:00
Elias Pschernig
915faaf868 [wesnoth_addon_manager] Allow empty lines in ignore lists. 2011-03-20 21:55:30 +00:00
Alexander van Gessel
c3b5a73ada Guard a print statement with the verbose flag,
so it won't corrupt json or XML output.
2011-03-18 00:09:00 +01:00
Alexander van Gessel
1da4dbaa7c Remove a hacky json.dumps approximation.
The json module is part of mainline python since 2.6, which is
included in debian stable.
2011-03-18 00:08:57 +01:00
Eric S. Raymond
2afb4a71f4 Clean up things so all macros are argument-typechecked again. 2011-03-15 02:45:11 +00:00
Mark de Wever
231c8929b1 Some minor tweaks to terrain2wiki.py.
The output of this version is used to generate the current version of
the wiki page [1].

[1] http://wiki.wesnoth.org/TerrainCodeTableWML
2011-03-13 18:59:32 +00:00
Mark de Wever
d9f311abcb Remove the obsolete terrain2wiki.rb script.
It has been replaced by terrain2wiki.py.
2011-03-13 18:59:30 +00:00
Thibault Févry
2288ef0939 Removed a lot of trailing whitespaces. Shouldn't be anymore in python scripts. 2011-03-12 02:22:21 +00:00
Nils Kneuper
0d5aa46e74 ran utils/wesnoth-optipng
(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
2011-03-11 14:17:45 +00:00
Steven Panek
9a6855f78c Set svn:executable and svn:eol-style. 2011-03-06 06:29:07 +00:00
Thibault Févry
3d95e9f7fa Use a default value similar to the one used in wiki_grabber.py.
Also a small doc update.
2011-03-05 23:54:45 +00:00
Thibault Févry
a7c96bb4d6 Added a new script: data/tools/terrain2wiki.py
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.
2011-03-05 23:37:07 +00:00
Thibault Févry
0af201063e Make scoutDefault work with python 2.6
(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.
2011-03-05 18:40:23 +00:00
Thibault Févry
1c5c0d602a Remove one useless line. Remove many lines that were too long.
Use triple-quotes when it's clearer.
2011-03-05 17:32:20 +00:00
Thibault Févry
5349412ca5 Remove one uneeded include and minor changes. 2011-03-05 17:06:33 +00:00
Nils Kneuper
627f8b7c61 revert 2011-02-26T23:14:32Z!crazy-ivanovic@gmx.net and the image part of 2011-02-26T22:13:29Z!crazy-ivanovic@gmx.net
(the intended translation/changelog part is still left)
2011-02-27 10:05:39 +00:00
Nils Kneuper
f146642ca5 ran utils/wesnoth-optipng
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
2011-02-26 23:14:32 +00:00
Eric S. Raymond
a9ed162e55 Address bug #17752:
wmllint wants to apply special notes for commented abilities.
2011-02-20 14:21:14 +00:00
Alexander van Gessel
3abd28ef34 Allow spaces in notepairs 2011-02-20 02:51:41 +01:00
Alexander van Gessel
f051dbedfd Don't complain that a [unit] misses a side key...
...if it's located in a [side] tag
2011-02-19 19:13:11 +01:00
Alexander van Gessel
5b9b9f243c Don't make wmllint check if the usage type matches a standard one.
Non-standard ones work just fine
2011-02-19 15:48:40 +01:00
Alexander van Gessel
9d008ac25b Add a skip-side directive to wmllint to make it not complain...
...about breaking up the [side] list into multiple files
2011-02-19 05:49:32 +01:00
Alexander van Gessel
878f5d38bf Widen the usability of wmllint: ignore a bit 2011-02-19 05:30:21 +01:00
Alexander van Gessel
19d9757ea9 Fix a wmllint crash 2011-02-19 01:12:38 +01:00
Alexander van Gessel
c8e1f39da3 Make ignore/noconvert work for pangoization 2011-02-19 01:12:34 +01:00
Alexander van Gessel
b7b3d320bf Make the ignore and noconvert directives work for adding underscores...
...as well as removing them
2011-02-19 00:41:29 +01:00
Ignacio R. Morelle
2966c02ce8 New year copyright notice update 2011-02-13 07:56:23 +00:00
Alexander van Gessel
1958a0c2ba Make wmllint accept all [*_frame] variants, not just a specific subset 2011-02-10 18:11:55 +01:00
Elias Pschernig
b477391b6c [wmlunits] Make parser not choke on malformed WML. 2011-01-30 22:29:59 +00:00
Ignacio R. Morelle
2ffcfc2ac8 New year copyright notice update 2011-01-17 23:20:24 +00:00
Eric S. Raymond
3b0190d7ae With this change, all sanity checks run clean. 2011-01-16 22:54:04 +00:00
Eric S. Raymond
a1fdc572ce wmllint cleanup. 2011-01-16 22:37:27 +00:00
Alexander van Gessel
20ce467146 Make some tooltips attach to the right button 2011-01-12 03:19:00 +01:00
Alexander van Gessel
e4cf41321f Update trackplacer to use gtk.Tooltip...
...instead of the deprecated gtk.Tooltips
2011-01-12 03:18:55 +01:00
Elias Pschernig
e472e4c7ab [wmlunits] Delete directories created by mkdtemp after use...
...so as not to clutter up /tmp.
2011-01-03 21:49:56 +00:00
Elias Pschernig
22f7e80164 [wmlunits]fix navbar for translations 2010-12-23 19:27:21 +00:00
Elias Pschernig
7524e6befc [wmlunits] use translations only for mainline units...
...(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 :/)
2010-12-22 23:34:08 +00:00
Mark de Wever
36574dc37a Fix some typos.
(Part of patch #2261.)
2010-12-20 20:31:15 +00:00
Elias Pschernig
c51f7b701f [wmlunits] Try to make it robust enough again to survive user-made WML. 2010-12-12 16:22:35 +00:00