Jump to content

Commons:Bots/Requests/Mdann52 bot 2

From Wikimedia Commons, the free media repository

Operator: Mdann52 (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Fixing SVG maps uploaded by a given user which no longer display due to a SVG engine change. Please see phab:T367645, w:Wikipedia:Teahouse#Infobox probelem and w:Wikipedia:Teahouse#Us couties on article map for impact/discussion. Example fixes are at 1, 2 and 3 (and in my recent uploads)


Automatic or manually assisted: Automatic, but will review changes Automatic script, all changes reviewed prior to upload.

Edit type (e.g. Continuous, daily, one time run): One Time Run

Maximum edit rate (e.g. edits per minute): 5 epm max

Bot flag requested: (Y/N): Y

Programming language(s): Python, pywikibot, code available on request

--Mdann52talk to me! 17:16, 19 June 2024 (UTC)[reply]

Discussion

Looking at your example 1, it appears that you removed the ‎<g id="state_outline"> tag and its matching ‎</g>, and moved the ‎<g stroke="black" fill="none" stroke-linejoin="round" stroke-width="119" clip-path="url(#state_clip_path)"> tag so that instead of following the ‎</clipPath> it now precedes the ‎<clipPath id="state_clip_path">. But just after that ‎</clipPath> there is a ‎<use xlink:href="#state_outline" fill="white" stroke-width="524" /> which now has nothing to refer to as the state_outline id no longer exists in the doc. --Redrose64 (talk; at English Wikipedia) 20:04, 19 June 2024 (UTC)[reply]

I've corrected the code to handle this now (the edit there was manual), and it now puts the <g> following the <clipPath> section. It doesn't seem to make a difference anyway due to how it is rendered, but happy to get the bot to loop back through the manual ones if needed to fix this. --Mdann52talk to me! 20:34, 19 June 2024 (UTC)[reply]
@Mdann52 I already have a bot that uploads this. See more in Phab. Nux (talk··dyskusja) 00:19, 21 June 2024 (UTC)[reply]
@Nux: are you planning to file a BRFA, I'll withdraw this one if so. Or are you happy if I do so semi-manually using your tool from an alt account, just to avoid spamming the RC feed! --Mdann52talk to me! 06:00, 21 June 2024 (UTC)[reply]
@Mdann52 don't need a bot account for that. Already done around 1000 uploads of fixed SVG images. The most time takes to prepare base SVG for a county. The rest is automatic. See phab:T367645. Nux (talk··dyskusja) 18:10, 23 June 2024 (UTC)[reply]
Request withdrawn - thanks Nux for dealing! --Mdann52talk to me! 11:23, 26 June 2024 (UTC)[reply]

Withdrawn. --Krd 04:29, 27 June 2024 (UTC)[reply]