Skip to content

Instantly share code, notes, and snippets.

@glowinthedark
Created November 23, 2020 12:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glowinthedark/cbb9941f72ae1776b9fbbfff39666ce7 to your computer and use it in GitHub Desktop.
Save glowinthedark/cbb9941f72ae1776b9fbbfff39666ce7 to your computer and use it in GitHub Desktop.
Babylon BGL to AppleDict converter
#!/usr/bin/env bash
shopt -s nocasematch
shopt -s nocaseglob
output=`echo ${1} | sed 's/.[bB][gG][lL]//'`
python3 ~/projects/pyglossary/pyglossary.pyw --read-format=BabylonBgl --read-options=resPath=OtherResources --write-format=AppleDict "$1" "$output"
cd $output
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment