unicode - How can I apply a combining diacritic to a string in bash -
i want apply combining diacritic (unicode) sequence of chars, not 1 character.
i've come with
var="world" echo hello $var$'\u030a'
but applies diacritic d
only. how can achieve applied world
?
try this.
warp () { # misspelled "wrap" don't want change (-: case "$1" in '') ;; *) echo "${1:0:1}"$'\u030a'"$(warp "${1:1}")";; esac }
Comments
Post a Comment