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
Elias Pschernig
a42f90daaa
[wmlunits] Fixed issue with old-style .cfg files...
...
...in user add-on parse-test script.
2010-12-12 15:35:58 +00:00
Elias Pschernig
f75d178cec
[wmlunits] fix two minor issues
2010-12-12 15:13:08 +00:00
Alexander van Gessel
372d50c847
Add support for ifhave/ifnhave to wmllint and wmliterator (bug #17159 )
2010-11-27 21:45:10 +01:00
Eric S. Raymond
381931b3a7
Teach wmlscope about unit_image,
...
...and clean up one call to make types clearer.
2010-11-24 00:50:09 +00:00
Elias Pschernig
f95c4c8a32
[wmlunits] For units who differ on easy/normal/hard,
...
...use the normal variant for display, for now.
2010-11-23 21:54:59 +00:00
Eric S. Raymond
118052920d
Fix an asset failure triggered by same base_unit cases.
2010-11-23 21:43:57 +00:00
Alexander van Gessel
ffdecb28a3
Remove references to python validation from wesnoth_addon_manager
2010-11-18 22:20:53 +01:00
Anonymissimus
e0c3b23db9
made the # wmllint: notecheck on/off and deathcheck on/off directives work
...
usage:
[unit_type]
# wmllint: notecheck off
description=...{SPECIAL_NOTES}
...
[/unit_type]
# wmllint: notecheck on
(since the message is omitted once that [/unit_type] is reached so it must still be off)
and
[event]
name=die
...
[message]
# wmllint: deathcheck off
id=...
# wmllint: deathcheck on
2010-11-10 22:43:41 +00:00
Ignacio R. Morelle
4f212d032c
Ignore *.wesnoth and *.project files when uploading to add-ons server
...
This commit adds new default ign patterns to the C++ and Python
implementations of the add-ons upload interface.
2010-10-24 20:25:03 +00:00