diff options
Diffstat (limited to 'embolden')
-rwxr-xr-x | embolden | 129 |
1 files changed, 127 insertions, 2 deletions
@@ -43,6 +43,16 @@ # and ASCII has similar codes which nobody ever uses. declare -A bold=( + [0]=$'\xf0\x9d\x9f\x8e' + [1]=$'\xf0\x9d\x9f\x8f' + [2]=$'\xf0\x9d\x9f\x90' + [3]=$'\xf0\x9d\x9f\x91' + [4]=$'\xf0\x9d\x9f\x92' + [5]=$'\xf0\x9d\x9f\x93' + [6]=$'\xf0\x9d\x9f\x94' + [7]=$'\xf0\x9d\x9f\x95' + [8]=$'\xf0\x9d\x9f\x96' + [9]=$'\xf0\x9d\x9f\x97' [A]=$'\xf0\x9d\x90\x80' [B]=$'\xf0\x9d\x90\x81' [C]=$'\xf0\x9d\x90\x82' @@ -144,6 +154,68 @@ declare -A bold=( [Ļ]=$'\xf0\x9d\x9b\x98' [Ļ]=$'\xf0\x9d\x9b\x99' [Ļ]=$'\xf0\x9d\x9b\x9a' +# [š“Ģ±]= +# [šµĢ±]= +# [š¶Ģ±]= +# [š·Ģ±]= +# [šøĢ±]= +# [š¹Ģ±]= +# [šŗĢ±]= +# [š»Ģ±]= +# [š¼Ģ±]= +# [š½Ģ±]= +# [š¾Ģ±]= +# [šæĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [š
Ģ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [š©Ģ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [š Ģ±]= +# [š”Ģ±]= +# [š¢Ģ±]= +# [š£Ģ±]= +# [š¤Ģ±]= +# [š„Ģ±]= +# [š¦Ģ±]= +# [š§]= + [š¢]=$'\xf0\x9d\x9f\xac' + [š£]=$'\xf0\x9d\x9f\xad' + [š¤]=$'\xf0\x9d\x9f\xae' + [š„]=$'\xf0\x9d\x9f\xaf' + [š¦]=$'\xf0\x9d\x9f\xb0' + [š§]=$'\xf0\x9d\x9f\xb1' + [šØ]=$'\xf0\x9d\x9f\xb2' + [š©]=$'\xf0\x9d\x9f\xb3' + [šŖ]=$'\xf0\x9d\x9f\xb4' + [š«]=$'\xf0\x9d\x9f\xb5' ) declare -A italic=( @@ -248,15 +320,68 @@ declare -A italic=( [Ļ]=$'\xf0\x9d\x9c\x92' [Ļ]=$'\xf0\x9d\x9c\x93' [Ļ]=$'\xf0\x9d\x9c\x94' +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [š
Ģ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [šĢ±]= +# [š Ģ±]= +# [š”Ģ±]= +# [š¢Ģ±]= +# [š£Ģ±]= +# [š¤Ģ±]= +# [š„Ģ±]= +# [š¦Ģ±]= +# [š§Ģ±]= +# [šØĢ±]= +# [š©Ģ±]= +# [šŖĢ±]= +# [š«Ģ±]= +# [š¬Ģ±]= +# [šĢ±]= +# [š®Ģ±]= +# [šÆĢ±]= +# [š°Ģ±]= +# [š±Ģ±]= +# [š²Ģ±]= +# [š³]= ) -# TODO: bold italics. +# case $0 in embolden) italicise) script) fracture) double-strike) sans-serif) monospace) stretch) loop) mathise) while IFS= read -r line do for i in $(seq 0 $((${#line}-1))) do c1=${line:$i:1} - if [[ $c1 =~ [a-zA-ZĪ±-ĻĪ-Ī©] ]] + # if [[ ${bold[$c1]} ]] + if [[ $c1 =~ [0-9a-zA-ZĪ±-ĻĪ-Ī©š“Ģ±-šĢ±šĢ±-š§] ]] then replacement+=${bold[$c1]} else replacement+=$'\u0331'$c1 fi |