Mad Snake - Many Python scripts updated to ease its use
New scripts
Featuring extract_custom.py to replace extract_reverse_text_to_english.py
- This new script can customise the source and destination locale for transcript (re)generation.
- It will be useful for non-English-based translations and new episodes.
- It incorporates some recent improvements of extract_text.py.
New script for finding and fixing SVG dimension problems
- fixes problems that result in wrong selection when converting old translation file in Inkscape. (Should select:)
Updated scripts
Updated regenerate_transcripts.py:
- Ability to pass arguments after readme
- Added argument to generate new .md's as alternative interface to extract_text.py
- Improved input argument system (similar to link_creator.py)
- Ability to detect and convert inherited .md files from copied translations
- Added argument to only convert wrong .md files (useful for validate-transcripts.sh)
- some readme improvements
Updated combined_html_generator.py:
- Ability to pass arguments after readme
- single argument filter that extracts data from absolute path + drag & drop for Windows users
- Improved input argument system (similar to link_creator.py)
- some readme improvements
Minor updates:
- link_creator.py - ability to input arguments after readme & minor Windows compatibility improvements
- minor bugfixes for
find_anomalies.py
- Updated polib.py to version 1.2.0
- Added gitignore for Windows' Thumbs.db extra file resulting from samba/Virtualbox sharing from Linux host
Updated extract_text.py and extract_to_html.py:
- Improved user experience: Windows users can drag & drop file/folder to these 2 scripts (works with links too)
- when executed with wrong arguments outside the command line, the script will pause at readme
- single argument filter that extracts data from absolute path or 'episode/locale' (as possible typo)
- extract_text.py: made main() import available for other python scripts
-
(Q.A. passed sticker)
Yes! Now you can do this: (Only on Windows)
Many scripts can now be oppened as normal file and operated from there (ipython on Linux).
Tested on Manjaro with Python 3.12 ; Windows 7 with Python 3.8 ; Windows 11 (couldn't test drag&drop, worked for other user) ... Does anyone care about testing it on OSX?
David, I propose adding $scriptdir/regenerate_transcripts.py convert all
to the beginning of validate-transcripts.sh
to properly convert wrong locales, instead of just renaming and validating it.
Pipeline artifact expire change is a part of the plan to upgrade the documentation.