286 Commits

Author SHA1 Message Date
Patrick Parker
e91062abff be a little smarter about newlines in messages 2008-11-23 01:43:15 +00:00
Eric S. Raymond
aa6e7629e0 wmllint double-quotes IDs containing single-quote.
This diff also fixes two comments where the lift code was 
a bit overzealous.  No real harm done, fortunately.
2008-11-10 12:03:47 +00:00
Eric S. Raymond
434d0bcf28 Systematically doublequote enclose IDs containing single quotes.
This avoids confusing wesnoth-mode.el.
2008-11-10 11:25:55 +00:00
Eric S. Raymond
c3211b57ff Minor wmllint enhancements to handle TDH. 2008-11-10 03:27:05 +00:00
Eric S. Raymond
f72622c4ea Refactor to use WmlIterator more. 2008-11-07 14:08:52 +00:00
Eric S. Raymond
1e6a01c9d4 Fix a bug in error reporting. 2008-11-07 03:09:25 +00:00
Eric S. Raymond
90e8b6e052 Passing an error reoter hook into WmlIterator was dumb.
This sort of thing is what subclassing is for.
2008-11-06 23:45:59 +00:00
Eric S. Raymond
7800a69318 Start using WmlIterator more systematically. 2008-11-06 23:28:24 +00:00
Eric S. Raymond
df828afeec Teach wmllint to do the safe part of the music namespace changes,
...and document what has already been done.
2008-11-05 22:07:11 +00:00
Eric S. Raymond
10340ccbf5 Fix incomplete error-hook conversion. 2008-11-05 11:46:27 +00:00
Alexander van Gessel
0720bce8ec Pass the error handler to both invocations of WmlIterator. 2008-11-05 12:26:31 +01:00
Alexander van Gessel
7566a3163b Make wmllint's spellcheck somewhat compatible with python-enchant 1.3.1. 2008-11-05 11:48:52 +01:00
Eric S. Raymond
7a4f530069 Document some thinking. 2008-11-05 08:07:41 +00:00
Eric S. Raymond
a01fd55508 Further extend spellchecking.
Drop an equivalent of Sapient's error-reporting code back in
wmliterator.py, but do the actual reporting through a callback passed
at instance-nitialization time.
2008-11-05 08:04:54 +00:00
Eric S. Raymond
a3591151c2 Further extend spellchecking. 2008-11-05 03:38:10 +00:00
Eric S. Raymond
1d1e5343cc Extend the range of WML attributes that get spellchecked,
...and fix a glitch that turned up.
2008-11-05 02:45:03 +00:00
Eric S. Raymond
92fa8298c8 Correct some documentation. 2008-11-04 12:59:52 +00:00
Eric S. Raymond
39553800ce Sff a check for incorrect sentence-ending punctuation. 2008-11-04 12:46:05 +00:00
Eric S. Raymond
1afb992b06 Tighten up spellchecking yet again. 2008-11-04 00:05:29 +00:00
Eric S. Raymond
950897fb10 Tighten up the spekll-checking, and catch some more glitches. 2008-11-03 22:38:07 +00:00
Eric S. Raymond
7571ffb728 Tighten up the implementation of spell-checking a bit,
...and fix some edge cases it catches.  Also, implement a method to
check ancestor scomes in WmlIterator (not yet used).
2008-11-03 19:47:46 +00:00
Eric S. Raymond
f8d75639b9 Remove an unneeded stripping operation. 2008-11-03 08:37:37 +00:00
Eric S. Raymond
9352e992fc Correct handling of exceptional cases involving legitimate spellings...
...ending in single quote.
2008-11-03 08:32:35 +00:00
Eric S. Raymond
2cc7e6f954 Document what the spellchecker scanner is doing. 2008-11-03 08:25:16 +00:00
Eric S. Raymond
53d2b62b88 When a spelling exception occurs, report the non-case-smashed token. 2008-11-03 07:41:08 +00:00
Eric S. Raymond
c279bd6ba1 Teach the spellchecker to handle another edge case. 2008-11-03 07:17:31 +00:00
Eric S. Raymond
2dee5c7a2b Fix some minor bugs in the spellchecker scanner. 2008-11-03 04:51:15 +00:00
Eric S. Raymond
3863275e23 Refactoring step. 2008-11-03 03:04:00 +00:00
Eric S. Raymond
ff898341e1 This revision fixes almost all spellcheck exceptions in mainline.
The few that remaim probably indicate spellchecker bugs.
2008-11-03 00:49:29 +00:00
Eric S. Raymond
a055f9fbe2 Spell checking for WML text strings.
This is the infrastructure; there are still about 1500 exceptions to
be chased down.
2008-11-01 23:58:38 +00:00
Eric S. Raymond
7306eced9e wmllint missed a case in converting the track-marking macros. 2008-10-20 11:25:36 +00:00
Eric S. Raymond
c1ed694a9a Minor bug fix for wmllint. 2008-10-14 22:59:46 +00:00
Eric S. Raymond
aadd4578cd Various tweaks for wmllint hygiene. 2008-10-14 22:46:24 +00:00
Eric S. Raymond
3ad3d589d8 Remove unneeded code to lift death animations (under --future, never used). 2008-10-11 13:49:40 +00:00
Eric S. Raymond
e5245aefb8 Change the DOT*/CROSS*/FLAG* macros to {NEW,OLD}_{JOURNEY_BATTLE_REST}.
Convert coordinates in DOT and CROSS to the centered version.
This commit makes no behavioral change at all -- it is pure mechanism,
no policy -- but will make it easier to restyle the tracking markers.

Also deprecates the old macros, and teaches wmllint to do the up-conversion.
2008-10-09 20:48:59 +00:00
Mark de Wever
9227e277cf Tab to space fix. 2008-10-09 18:08:14 +00:00
Eric S. Raymond
76abc35ca6 wmllint now does translation-mark and doublespace checks outside scenrio tags.
This diff fixes some glitches found that way and tells wmllint to ignore
various edge cases.  A few cannot_use_message=NONE instances are removed,
as this simplifies the check and zookeeper says it's safe.
2008-10-09 17:46:10 +00:00
Eric S. Raymond
78328561f2 With these changes (including a slightly smarter wmllint)
Legend of Wesmere wmllints clean.
2008-10-07 04:04:23 +00:00
Eric S. Raymond
ff1f2d30c0 Pacify wmllint about some legitimate macro uses. 2008-09-30 14:24:41 +00:00
Eric S. Raymond
0ac71358e9 Strip attributes for stack checks even when there's no comment. 2008-09-16 22:07:57 +00:00
Eric S. Raymond
654d67fdbd Fix minor bugs reported by AI0867. 2008-09-12 18:15:57 +00:00
Eric S. Raymond
feda165fc1 Teach wmllint to report invalid unit names in advances_to attributes. 2008-09-12 06:49:24 +00:00
Eric S. Raymond
b7d1531b89 Clarify some history. 2008-09-04 18:26:59 +00:00
Eric S. Raymond
2d07184bc9 Since we can rely on map files to have a .map extension now,
...simplify a test a bit and remove an explicit list of exception
extensions.
2008-09-04 18:17:24 +00:00
Eric S. Raymond
4e09e5e06a Check unit-type derivations. 2008-09-04 17:30:48 +00:00
Eric S. Raymond
ccbc77ad6b Add much more rigorous consistency checking...
...of recruitment lists and patterns.
2008-09-04 10:30:36 +00:00
Eric S. Raymond
319492634b Simplify some code, reflecting 1.4 conventions. 2008-09-04 08:04:51 +00:00
Eric S. Raymond
8ac759098c Remove some dead code. 2008-09-04 08:03:08 +00:00
Eric S. Raymond
011cbdf919 Minor cleanup. 2008-09-02 17:54:41 +00:00
Eric S. Raymond
6326aa4ec4 Typo fix. 2008-09-02 16:01:10 +00:00