wesnoth/data/tools/wesnoth
2024-11-26 12:17:36 -06:00
..
trackplacer3 trackplacer3 a utility to export and import tmx files (#4365) 2019-11-14 13:43:25 +01:00
__init__.py Removed a lot of trailing whitespaces. Shouldn't be anymore in python scripts. 2011-03-12 02:22:21 +00:00
base64url.py wmlunits: Use safe charset for image paths 2023-05-25 10:35:57 +02:00
campaignserver_client.py Add the 1.19.x campaignd to port list 2024-03-22 22:30:22 +01:00
libgithub.py Compare to None using identity is operator 2018-10-31 12:21:01 +11:00
README.md Added --version flag to wmllint, wmlscope and wmlindent 2021-12-26 22:10:44 +01:00
version.py 1.19.6+dev 2024-11-26 12:17:36 -06:00
wescamp.py Compare to None using identity is operator 2018-10-31 12:21:01 +11:00
wmldata.py Ported wmlparser to Python 3 2019-09-28 11:50:30 +02:00
wmliterator3.py wmltools3: fix regexp compatibility with Python 3.12 2024-07-02 19:42:13 +02:00
wmlparser.py Final part of the Python 2 removal, including updating install-pytools (#5027) 2020-08-05 21:56:12 +02:00
wmlparser3.py Use correct wesnoth option 2024-09-09 16:22:01 +02:00
wmltools3.py reduce hardcoded extensions in python files, only instance at wmltool3.py 2024-07-05 09:05:26 +05:30

README

The programs in this directory data/tools/wesnoth are for checking, analysing and maintenance of WML-files.

The modules intended to be imported by other programs are documented in the parent directory's README.md. These are version.py, wmltools3.py, wmldata.py, wmlparser.py, wmlparser3.py and wmliterator3.py.

__init__.py Cause Python to execute any code in this directory on "import wesnoth".

campaignserver_client.py textmode-client for uploading + downloding campaigns to the server.

version.py This module reports the current version of Wesnoth to any script which might need it.

wescamp.py This utility provides two tools

  • sync a campaign with the version on wescamp (using the packed campaign as base)
  • update the translations in a campaign (in the packed campaign)

From IRC #wesnoth-dev - 2007-11-27

<hajo> I just don't see the big picture about the files in that directory - who needs it for what task ?

<Sapient> well, let's say you want to process some WML files and transform them or understand them in a program
<Sapient> if you want to perform lexical analysis, then using wmliterator would save you a lot of work
<Sapient> if you want to parse it and get the overall tree, then wmlparser would be the choice

<hajo> Ok, but campaign / scenario-authors rarely do that
<Sapient> right...

<Sapient> if you want to write tools to help you author those campaigns, 
<Sapient> you might write some programs or to maintain them
<Sapient> so it is only useful if you are a programmer

<Sapient> although wmliterator can do a decent job of detecting unbalanced WML 
<Sapient> if that's all you need to do just run it from the command line for that
<Sapient> so it would let you know that [a][/b][/a] is invalid, and give you a line number
<Sapient> or [a][b][/a]

<hajo> it just says "reading x.cfg" and "y lines read"
<Sapient> right, no errors
<Sapient> it iterated successfully