mirror of
https://github.com/shadoll/sLogos.git
synced 2025-12-20 03:26:59 +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:
4443
public/data/MapChart_Map.svg
Normal file
4443
public/data/MapChart_Map.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 1.2 MiB |
562
public/data/worldmap.svg
Normal file
562
public/data/worldmap.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 2.1 MiB |
24
public/data/worldmap_orig.svg
Normal file
24
public/data/worldmap_orig.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 2.2 MiB |
Reference in New Issue
Block a user