From c5f633e12a36b3db6808d68d5923398b806f18d7 Mon Sep 17 00:00:00 2001 From: "kujiu (@jackrum)" Date: Tue, 30 Apr 2024 20:52:25 +0200 Subject: [PATCH] Add: braille functions --- desktop/.config/fish/functions/brf_to_unicode.fish | 7 +++++++ desktop/.config/fish/functions/musicbrf_to_fr.fish | 6 ++++++ desktop/.config/fish/functions/txt_to_ubrl_fr.fish | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100755 desktop/.config/fish/functions/brf_to_unicode.fish create mode 100755 desktop/.config/fish/functions/musicbrf_to_fr.fish create mode 100755 desktop/.config/fish/functions/txt_to_ubrl_fr.fish diff --git a/desktop/.config/fish/functions/brf_to_unicode.fish b/desktop/.config/fish/functions/brf_to_unicode.fish new file mode 100755 index 0000000..5d31b9a --- /dev/null +++ b/desktop/.config/fish/functions/brf_to_unicode.fish @@ -0,0 +1,7 @@ + +#!/usr/bin/env fish +# + +function brf_to_unicode -d "convert music brf files to french encoding" + sed -e "s/\\\\/\\\\\\\\/" $argv | lou_translate language:en dots:6 +end diff --git a/desktop/.config/fish/functions/musicbrf_to_fr.fish b/desktop/.config/fish/functions/musicbrf_to_fr.fish new file mode 100755 index 0000000..93440c3 --- /dev/null +++ b/desktop/.config/fish/functions/musicbrf_to_fr.fish @@ -0,0 +1,6 @@ +#!/usr/bin/env fish +# + +function musicbrf_to_fr -d "convert music brf files to french table" + sed -e "s/\\\\/\\\\\\\\/" $argv | lou_translate language:en dots:6 | lou_translate fr-bfu-comp8.utb -b +end diff --git a/desktop/.config/fish/functions/txt_to_ubrl_fr.fish b/desktop/.config/fish/functions/txt_to_ubrl_fr.fish new file mode 100755 index 0000000..197f833 --- /dev/null +++ b/desktop/.config/fish/functions/txt_to_ubrl_fr.fish @@ -0,0 +1,6 @@ +#!/usr/bin/env fish +# + +function txt_to_ubrl_fr -d "convert text to unicode braille (french table)" + lou_translate fr-bfu-comp8.utb < $argv +end