How To Use Linux For Language Learning (Part 3: LWT, mpv, qutebrowser)

  • Written byDonovan Nagel
  • Read time2 mins
  • Comments4

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 $filesed -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” “$filetext=$(cat “$file”)

done

The purpose of this particular setup:

  1. Make LWT look pretty. Because why not!
  2. 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!). 🙂


Support me by sharing:

Here's what you should read next:

How To Install Learning With Texts On Your Own Computer

How To Use Audacity For Language Learning [+ Subtitles]

How To Use Linux For Language Learning (Part 2: youtube-dl, mpv, qutebrowser + ranger bindings)

Love languages?
JOIN THE GUILD:

Language you're learning...
Donovan Nagel - B. Th, MA AppLing
I'm an Applied Linguistics graduate, teacher and translator with a passion for language learning (especially Arabic).
Currently learning: Icelandic

COMMENTS

Comment Policy: I love comments and feedback (positive and negative) but I have my limits. You're in my home here so act accordingly.
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 […]

"The limits of my language mean the limits of my world."
- Ludwig Wittgenstein