2541 Commits

Author SHA1 Message Date
Toom
07dc953875
Escape < and > even if only one of them exists or if found multiple times (#7154)
* Escape < and > even if only one of them exists

In python negative index counts from the end, so without this change or another solution
"example with only < one side" would be converted to 
"example with only < one sid&gt;example with only < one side"

* Escape < and > even if found multiple times
2022-12-20 20:07:17 +01:00
Gunter Labes
2b47e63e8b
wmlunits: ignore a dependency on the addon itself 2022-12-19 16:16:35 +01:00
Pentarctagon
ec05dcd06d Wesnoth 1.17.11+dev. 2022-12-17 19:15:04 -06:00
Pentarctagon
ba8227e994 Wesnoth 1.17.11. 2022-12-17 19:14:04 -06:00
Pentarctagon
6c7dd0a25b 1.17.10+dev. 2022-11-19 23:38:26 -06:00
Pentarctagon
79b2385140 1.17.10. 2022-11-19 23:38:25 -06:00
Wedge009
26adbf4416 wmllint: As requested, adding recognition of WebP image labels.
Extension of #7079.
2022-11-03 11:26:30 +11:00
Wedge009
2010ffdbba
wmllint: Ignore labels for translation if a PNG extension is found (#7079)
* wmllint: Ignore labels for translation if a PNG extension is found.

Resolves #6995.
2022-11-03 11:16:37 +11:00
Dou1622
a667740fe5
Fix wmllint translation mark errors (#6966)
* Fix wmllint translation mark errors

* Added wesnoth-help domain

* Try to give better labels for the WC map generator settings which are now marked for translation.

Co-authored-by: Wedge009 <wedge009@wedge009.net>
2022-11-01 13:40:49 +11:00
Pentarctagon
5700e96a59 1.17.9+dev. 2022-10-15 21:09:26 -05:00
Pentarctagon
6682ef8ab8 1.17.9. 2022-10-15 21:09:25 -05:00
Tahsin Jahin Khalid
fde3c8df29 wmllint: add terrain code updaters
Allows updating maps by wmllint. Accommodates #7042
2022-10-10 21:47:42 +08:00
Pentarctagon
490434bc3c 1.17.8+dev 2022-09-18 23:20:45 -05:00
Pentarctagon
3b2cf63779 1.17.8 2022-09-18 23:19:48 -05:00
Steve Cotton
a2747cc651 wmllint: stop adding wesnoth-icon.png to messages
We're had at least two people look at the "good first issue" list, pick up
the wmllint warnings, open a PR, and then get a response that these .pngs
shouldn't be added by default. That's not a welcoming introduction.

IIRC we didn't get full consensus that these should never be added, but I
think it's time to open a "just drop that code, no options" PR. If someone
wants it back in a subset of circumstances, they can always create a PR to
readd it along with adding an option to enable it.
2022-08-31 21:27:15 +02:00
Pentarctagon
5549900c96 1.17.7+dev 2022-08-20 19:55:18 -05:00
Pentarctagon
8a4ff22985 1.17.7 2022-08-20 19:55:18 -05:00
Tommy
2d37a13bb8 WML: Add macros for screen_fade, and modify FLASH to use it as well
New macros:
 * SCREEN_FADE_OUT - to replace FADE_TO_BLACK in most cases
 * SCREEN_FADE_IN - to replace FADE_IN in most cases
 * SCREEN_FADE r g b duration
   - convenience wrapper for [screen_fade] with 255 alpha
 * SCREEN_UNFADE duration
   - convenience wrapper for [screen_fade] with 0 alpha
 * FLASH r g b actionWML
   - like FLASH_WHITE etc but takes a colour
 * FLASH_LIGHTNING actionWML
   - flashes an appropriate colour and plays lightning.ogg

Modified macros:
 * FLASH_WHITE/RED/GREEN/BLUE}
   - these now use [screen_fade] not [color_adjust]
2022-08-07 23:11:21 +12:00
Pentarctagon
78764ccd58
1.17.6+dev 2022-07-19 19:31:18 -05:00
Pentarctagon
ab8fe65b83
1.17.6 2022-07-19 19:30:24 -05:00
mattsc
ce9ba142bc Add new AI aspect allow_ally_villages 2022-06-22 08:00:50 -07:00
Elvish_Hunter
f1fb3a73a8 wmlunits: used os.path.join() to build paths instead of string concatenation 2022-06-21 18:29:57 +02:00
Elvish_Hunter
b1c6029917 wmlunits: used shutil.move() instead of calling mv as a subprocess
This also means moving files in a more pythonic way and removing two functions (bash and shell) which aren't used anywhere else.
2022-06-20 23:24:47 +02:00
Pentarctagon
5857964d61
1.17.5+dev. 2022-06-19 09:07:13 -05:00
Pentarctagon
f6cfad7b50
1.17.5. 2022-06-19 09:07:13 -05:00
Elvish_Hunter
d16557bae1 wmlscope: used an enumerator instead of strings in scan_for_definitions() state checks 2022-06-18 19:06:07 +02:00
Elvish_Hunter
cfbad6b81c wmlscope: avoid crashing on non-UTF8 files 2022-06-18 19:06:07 +02:00
Celtic Minstrel
473c6e468e
Fix wmlindent quote detection (#6764)
* wmlindent: Fix parsing quotes in comments

* Remove unnecessary wmlindent ignores

* Run wmlindent
2022-06-18 09:37:55 +02:00
Elvish_Hunter
8b8f99e65a wmllint: fixed translation marks not being removed from values when checking if a string is empty 2022-05-28 22:03:25 +02:00
Elvish_Hunter
f7859ad104 wmllint: automatically remove {SOUND:SLOW} and {SOUND:POISON} lines
Part of point 5 of issue #6403
2022-05-17 23:57:08 +02:00
Pentarctagon
9753b9538d
1.17.4+dev 2022-05-15 09:43:37 -05:00
Pentarctagon
712a7c96be
1.17.4 2022-05-15 09:42:25 -05:00
Tahsin Jahin Khalid
4c42228c52
wmllint: add Giant Stoat -> Frost Stoat monster ID change (#6694) 2022-05-14 23:24:03 +02:00
Elvish_Hunter
62ef86e2bd wmllint: updated mainline campaigns tuple 2022-05-06 20:53:22 +02:00
Elvish_Hunter
52da1fa774 wmllint: replaced gif with webp in two regexps 2022-05-01 11:24:28 +02:00
Pentarctagon
9469f8af63 Update wmllint. 2022-04-30 14:23:32 -05:00
Elvish_Hunter
f65e434428 wmllint: finish removing support for the old special notes system
The magic comments 'notecheck off', 'notecheck on' and 'match <ability> with <note>' no longer have any effect.
2022-04-26 11:19:43 +02:00
Elvish_Hunter
2c993867cf wmllint: removed --stringfreeze command line flag
This flag was supposed to disable repair attempts for newlines in messages, however it never did so, even when the non-standard word wrap check was still available. Instead, it just disabled repair attempts for double spaces after sentence ends.
2022-04-25 23:05:39 +02:00
Pentarctagon
073d4111b2
1.17.3+dev 2022-04-16 19:35:46 -05:00
Pentarctagon
4a6ba74ea8
1.17.3 2022-04-16 19:34:19 -05:00
Elvish_Hunter
c2ece934bd wmlindent: refactored indentation level handling code 2022-04-01 22:53:44 +02:00
Steve Cotton
5c07604c01 wmlxgettext: add a --no-sort-by-file option
Some users of wmlxgettext have scripts that already provide the file list in
a deterministic order, and the sorting added in 3761faf925 was choosing a
different order to the one desired.

(cherry picked from commit 904bb9bfb82c391d20e89dfbaacc1e71749dc3d9)
2022-03-28 10:36:12 +02:00
Pentarctagon
3f41d911f2
1.17.2+dev. 2022-03-20 12:03:51 -05:00
Pentarctagon
7ce603e565
1.17.2. 2022-03-20 12:02:51 -05:00
Elvish_Hunter
e1553e8c52 wmllint: added conversion rule for maps/background.png to WebP 2022-03-15 22:47:17 +01:00
Elvish_Hunter
9e98be3676 wmlscope: recognize webp images 2022-03-15 18:35:46 +01:00
Elvish_Hunter
21bd75c12f wmlscope: allow reporting deprecated macro calls 2022-03-01 10:12:15 +01:00
Pentarctagon
3c742717cc
1.17.1+dev. 2022-02-20 11:32:16 -06:00
Pentarctagon
437bf5a9ec
1.17.1. 2022-02-20 11:32:14 -06:00
Alexander Lacson
518becac59 [wmltools] Fix Docstrings
docstrings of the keyboardinterrupt handler.
2022-02-16 12:12:37 +01:00