about summary refs log tree commit diff stats
path: root/build/latex/letter/init.local
blob: ae57756898e011c3eebb81b1ff8e056a872f09f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env sh

prompt LANGUAGE "The language to use in the latex documents" "en_GB"

bable_language=""
case "$LANGUAGE" in
"en_GB")
    bable_language="british"
    ;;
en_*)
    bable_language="english"
    ;;
de_DE | de_*)
    bable_language="ngerman"
    ;;

*)
    echo "'$LANGUAGE' is not yet recognized by the init.local script! Please open an issue." 1>&2
    echo "set 'BABLE_LANGUAGE' to 'NOT_YET_RECOGNIZED_PLEASE_REPLACE' to help you find instances of the variable use." 1>&2
    bable_language="NOT_YET_RECOGNIZED_PLEASE_REPLACE"
    ;;
esac

prompt BABLE_LANGUAGE "The language to use for the bable package" "$bable_language" "dont_ask"
prompt DATE_TIME_LANGUAGE "The language to use for the datetime2 package" "$(echo "$LANGUAGE" | sed 's/_/-/g')" "dont_ask"
prompt SIUNITX_LANGUAGE "The language to use for the siunitx package" "$(echo "$LANGUAGE" | sed 's/\(\w\w\).*/\U\1/')" "dont_ask"

# vim: ft=sh