WML reference needed

Discussion and development of scenarios and campaigns for the game.

Moderators: Forum Moderators, Developers

Post Reply
sanna
Posts: 425
Joined: June 5th, 2004, 9:59 am
Location: Halmstad, Sweden

WML reference needed

Post by sanna »

As you know, the documentation on WML is, in spite of hard work from many of you, quite incomplete. I recently f ex did a grep on the wesnoth data directory to extract what WML-tags are used there, and found quite a few not listed on the WIKI. I added these to the ReferenceWML, but they have no description/explanation there.

I intend to also grep for the keys, and make a list of which keys are used together with which tags (a slightly more complicated operation *smile*) and add that to the WIKI too.

However, I am not a campaign writer. It would be great if those of you who have any insight into the use of these tags (and later keys) would add such info to the WIKI.

ott
Inactive Developer
Posts: 838
Joined: September 28th, 2004, 10:20 am

Post by ott »

Thanks for adding the new tags to the Wiki. How did you extract them?

sanna
Posts: 425
Joined: June 5th, 2004, 9:59 am
Location: Halmstad, Sweden

Post by sanna »

ott wrote:Thanks for adding the new tags to the Wiki. How did you extract them?
With 'grep' and postprocessing of strings.

ott
Inactive Developer
Posts: 838
Joined: September 28th, 2004, 10:20 am

Post by ott »

For reference, here is the tagfind utility that was discussed on IRC. I've made it a lot more robust; thanks to Ayin for the original idea of using a simple stack. I've included the output on a recent CVS tree:

Code: Select all

find /usr/share/wesnoth -name '*.cfg' -print | xargs tagfind
Attachments
tagfind-1.1.zip
(5.08 KiB) Downloaded 404 times

Post Reply