Commit graph

2674 commits

Author SHA1 Message Date
pentarctagon
ea8cdf9282 1.19.4+dev 2024-09-17 21:22:35 -05:00
pentarctagon
ff9c4461ae 1.19.4 2024-09-17 21:21:55 -05:00
Gunter Labes
45558f52ee
Use correct wesnoth option 2024-09-09 16:22:01 +02:00
Gunter Labes
0bb7395804
Make sure stdout encoding is UTF-8 2024-08-19 08:51:05 +02:00
pentarctagon
04fe19bf6c 1.19.3+dev 2024-08-18 23:24:17 -05:00
pentarctagon
e865a5fd61 1.19.2 2024-08-18 23:22:05 -05:00
Eric Gallager
4915f3be86 wmlscope: fix format of magic comment in documentation
It's not just `prune`, but rather `wmlscope: prune`
2024-08-18 10:56:50 +02:00
pentarctagon
aba0abeb79 1.19.2+dev 2024-07-21 22:40:10 -05:00
pentarctagon
7cf3a8d853 1.19.2 2024-07-21 22:38:25 -05:00
Subhraman Sarkar
4c1b1ebe20 reduce hardcoded extensions in python files, only instance at wmltool3.py 2024-07-05 09:05:26 +05:30
Steve Cotton
c930a7e476 Delete the wmltools3.Translation class
Appears to be unused, and is still Python2 code. To be Python3, these
lines need to change:

- f = file(fn)
+ f = open(fn, encoding="utf-8")

- gettext = f.read().decode("utf8")
+ gettext = f.read()

Even knowing how to make it work, it still doesn't seem useful to keep.

wmlunits uses html_output.Translation, but that's not this class. It's
a wrapper around Python's standard gettext library, in html_output.py.
2024-07-04 16:37:39 +02:00
Steve Cotton
91f59a794b wmltools3: fix regexp compatibility with Python 3.12 2024-07-02 19:42:13 +02:00
pentarctagon
1712b357c2 1.19.1+dev 2024-06-17 10:50:57 -05:00
pentarctagon
6189964a77 1.19.1 2024-06-17 10:49:01 -05:00
Gunter Labes
6d6bb8dc0c
Update generator calls since the method was removed in 2413e2f 2024-06-16 21:51:16 +02:00
Gunter Labes
28a8959854 Fix "span" regex
This disallows matching "0-11-2" and "1," for example. It also avoids an exponential backtracking issue which could make this regex very slow.
2024-06-12 19:52:50 +02:00
Severin Glöckner
c2fbb745f7 terrain2wiki tool: link to images on stable 1.18 branch 2024-06-08 21:18:03 +02:00
Severin Glöckner
564c96a7e9 terrain2wiki tool: python 3.12 compatibility 2024-06-08 20:56:21 +02:00
Gunter Labes
f2d22d6364
Fix indentation 2024-06-04 23:15:49 +02:00
Gunter Labes
f4e8635723 Implement table sorting without tablesorter.js
This allows getting rid of a bunch of dependencies for minimal own code.
2024-06-03 17:08:33 +02:00
pentarctagon
279c7daa33 1.19.0+dev 2024-05-26 15:16:01 -05:00
pentarctagon
d39e42b672 1.19.0 2024-05-26 15:13:59 -05:00
Wedge009
73cc52b506 wmlxgettext: Remove unused WmlDefineState class disabled-as-comment/string and resolve #8867 (Python 3.12 highlighting invalid escape sequence in string with SyntaxError). 2024-05-21 14:55:09 +02:00
Steve Cotton
6f95b062cb wmlxgettext: Fix "fix invalid escape sequence"
The original code was probably meant to strip trailing whitespace, which
turned out to be a bug when 4be9aa8584
fixed the buggy regexp so that it started working. That has now been
removed.

Fixed handling of multiline plural strings, which was broken too.

One feature has been left unimplemented, and will cause wmlxgettext to error
out. For "long bracketed" strings, Lua allows the contents to start with a
newline, which is automatically stripped from the resulting string. Trying to
understand the original purpose lead me to this feature of Lua strings which we
don't use in Wesnoth; and I finally concluded that, if someone wants to use
that feature, it can be their problem to implement it.

This fixes commit 4be9aa8584.

(cherry picked from commit e4239634e5)
2024-04-02 16:12:23 +02:00
Toom
4be9aa8584 fix invalid escape sequence 2024-03-24 21:33:47 +01:00
Gunter Labes
01db35ae56
Add the 1.19.x campaignd to port list 2024-03-22 22:30:22 +01:00
Iris Morelle
642828b375
wesmere: Bump CSS version 2024-03-21 18:38:49 -03:00
Iris Morelle
df147dab9c
wesmere: Use the correct version of jQuery 2024-03-21 18:38:07 -03:00
Iris Morelle
14dda3ea1b
wesmere: Remove Google Fonts requirement 2024-03-21 18:36:12 -03:00
Iris Morelle
5751cd1a33
wesmere: Death to the trailing stops in the site footer 2024-03-09 06:30:54 -03:00
Steve Cotton
f431e724f8 wmllint: drop the rule about [campaign]rank= being a multiple of 5
The idea of using multiples of 5 seems like a way to avoid having to change
multiple campaigns' ranks at once, because it leaves space to rearrange a
mainline campaign between two other campaigns.

But enforcing "it must be a multiple of 5, even if that means changing other
campaigns" loses the advantage of using multiples. For example, WoF currently
has rank=152, which triggers the warning, which has caused a PR to be opened
that changes WoF, SoF, LoW and SotA - because keeping them in order requires
four campaigns to change.

(cherry picked from commit 42822ac374)
2024-03-06 08:58:08 +01:00
pentarctagon
60debe854c more copyright updates 2024-02-29 09:48:20 -06:00
Tahsin Jahin Khalid
24ee61b2d3
WML tools GUI app: updated copyright (#8327)
String Change to update to year 2024
2024-02-27 11:37:03 +06:00
Gunter Labes
9371562454
Add 1.17 port number back
Once the server gets turned off the port number should be moved to the deactivated list instead of removed.
2024-02-25 19:31:25 +01:00
pentarctagon
6a8d4bc1db 1.19.0-dev 2024-02-19 21:12:01 -06:00
pentarctagon
d1b3ede924 1.17.26 2024-02-19 21:05:54 -06:00
pentarctagon
820bbc53b8 update add-on server port for 1.18, also here 2024-02-19 18:52:20 -06:00
P. J. McDermott
39fb741309 Make TeamColorizer and update_pathfinding executable
These scripts get installed but were missing execute mode bits.
2024-02-15 17:27:44 -06:00
Steve Cotton
ec1c336078 wmlxgettext: treat gender as a po hint
This will automatically record the gender (if specified) of each
[unit], [unit_type] and [side].

The hint "gender=male,female" is often applied to [unit_type]name=,
although that's usually the male name. I believe that's the only
downside of this change.
2024-02-12 23:42:59 +01:00
P. J. McDermott
73824b95cc Update COPYING.txt for jQuery and tablesorter
Commit 81c31c40c5 updated jQuery to 3.7.0 and tablesorter to 2.31.3.

Update homepages, in particular for the tablesorter fork.

jQuery dropped the confusing and unnecessary dual licensing in 2012:
- https://blog.jquery.com/2012/09/10/jquery-licensing-changes/

Also specify the GPL version used by tablesorter and clarify the "MIT"
license.  The license actually comes from Expat and is one of many
licenses used by MIT (including the X11 license, which is also commonly
called "the MIT license"):
- https://en.wikipedia.org/wiki/MIT_License#Ambiguity_and_variants
- https://www.gnu.org/licenses/license-list.html#Expat
2024-02-08 21:39:17 -06:00
Elvish_Hunter
10733b1071 wmllint: check if campaigns are in the 'campaigns' folder before considering them as mainline for the rank check 2024-01-26 21:46:37 +01:00
Elvish_Hunter
1c9274faea wmllint: make the 'ignore' magic comment actually work in certain situations
Fixes #8182
2024-01-26 21:31:56 +01:00
Toom
8f01f11065
Remove warning about weapon specials with no name since name is not mandatory 2024-01-26 16:21:15 +01:00
pentarctagon
78dff4cf8e 1.17.25+dev 2024-01-20 20:04:23 -06:00
pentarctagon
971e05c63a 1.17.25 2024-01-20 20:02:42 -06:00
Toom
8da8b96b07 Set filelist parameter in CrossRefLister constructor call, fixes #7841 2024-01-19 14:20:08 +01:00
Gunter Labes
f8d8b1b161
Allow overriding tmpout 2024-01-18 22:29:16 +01:00
Toom
c3bc1f3bbe
Show accuracy/parry as weapon specials in html, fixes #7895 (#8259) 2024-01-18 22:01:53 +01:00
Elvish_Hunter
28cea58aff wmllint: warn about [filter] in [kill] tags 2023-12-25 21:15:45 +01:00
pentarctagon
b5436a0576 1.17.24+dev 2023-12-16 21:11:49 -06:00