This is a follow-on from Part 1 and Part 2.
In this video I show you a few things I’m working on to improve the usability of Learning With Texts.
One is purely asthetic – just trying to make LWT look a little less plain and blend in with the color scheme of my desktop automagically.
The rest is me showing you how I’ve been attempting to add a video component to LWT and further automate the process of adding new texts/media to learn with. Last week I said I was trying to find a way to clean up the subtitle files I’d downloaded with keybindings.
Here I demonstrate that working.
More screencasts to follow.
Featured in this video:
OS: Arch Linux
WM: i3 (i3-gaps to be specific)
Software: LWT (How-to), youtube-dl, mpv, qutebrowser, ranger
Bash script used to clean up a subtitle file so it can be used in Learning With Texts:
#!/bin/bash
files=”\*.vtt”
for file in $files ; do
echo “Processing $file”
sed -i “/\[0-2\]\[0-9\]:\[0-5\]\[0-9\]:\[0-5\]\[0-9\].\*\\-\\->.\*\[0-2\]\[0-9\]:\[0-5\]\[0-9\]:\[0-5\]\[0-9\].\*/d” “$file” && tail -n +5 “$file” > “$file.tmp” && mv “$file.tmp” “$file”
text=$(cat “$file”)
done
The purpose of this particular setup:
- Make LWT look pretty. Because why not!
- Automate adding media and texts. To speed up the process of adding new material to learn from and make it easy to add videos to Learning With Texts (currently only audio works).
Does this style of post/video interest you?
Make sure to let me know in the comment section so I know if I should do more of it in the future (or not!). 🙂
COMMENTS
NO ADVERTISING. Links will be automatically flagged for moderation.
Brett
As someone with zero coding skills, I must say this is pretty impressive!
Merry Christmas
Donovan Nagel
Thanks Brett.
Merry Christmas to you too.
How To Become a Freelance Translator and Earn Money On The Road
[…] to get started with is OmegaT which is completely free (I still often use this as it runs well on Linux). The benefits of using CAT tools is that as you translate, the software stores what you’ve […]
Koine Greek Is Difficult Because Of The Way It's Taught (+ How To Fix It)
[…] of John (a simple example to begin with), you see that I’ve begun to highlight (using LWT) what I call […]