mirror of
https://github.com/shadoll/sLogos.git
synced 2026-02-04 02:53:22 +00:00
Add SVG cleanup utility for worldmap.svg
This commit introduces a new script, cleanup_worldmap.py, which provides a utility for cleaning and normalizing the SVG file worldmap.svg. The script performs various transformations including: - Normalizing path tags and attributes - Adding data-iso attributes based on a provided JSON mapping - Pretty-printing the SVG output - Creating a backup before overwriting the original file when using the --in-place option The script is designed for ease of use with command-line arguments and includes error handling for XML validation.
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -43,6 +43,11 @@ Temporary Items
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
# Backup files
|
||||
*.bak
|
||||
*.bak.*
|
||||
*.tmp
|
||||
|
||||
# Svelte related
|
||||
.svelte-kit/
|
||||
|
||||
@@ -56,3 +61,4 @@ Temporary Items
|
||||
# Make favicon generation script executable
|
||||
chmod +x ./scripts/generate-favicons.js
|
||||
chmod +x ./scripts/update-data.js
|
||||
chmod +x ./scripts/*
|
||||
|
||||
Reference in New Issue
Block a user