boxes/test/177_utf8_generate_box.cfg
Thomas Jensen 2984cda0ca
Add test for generating a colored unicode box which
includes some double-wide characters
2023-05-19 22:12:51 +02:00

48 lines
1.1 KiB
INI
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# This config contains UTF-8-encoded elements used correctly, and a simple colored box design.
BOX designA
sample
┏━┳━ 沐宸 若汐 ━┓
┃ ┃ ┋
┃ ┃ ┃
┃ ┃ ┋
┣━╋━━━━━━━━━━━━━┫
┗━┻━━━━━━━━━━━━━┛
ends
# Monochrome sample (with UTF-8):
# ┏━┳━ 沐宸 若汐 ━┓
# ┃ ┃ ┋
# ┃ ┃ ┃
# ┃ ┃ ┋
# ┣━╋━━━━━━━━━━━━━┫
# ┗━┻━━━━━━━━━━━━━┛
shapes {
n (" 沐宸 若汐 ",
" ")
nw ("┏━┳", "┃ ┃")
nnw ("━", " ")
nne ("━", " ")
ne ("┓", "┋")
e ("┃", "┋")
w ("┃ ┃")
se ("┫", "┛")
s ("━", "━")
sw ("┣━╋", "┗━┻")
}
elastic (
nnw, nne, e, w, s
)
padding {
horiz 1
}
replace "ä" with "ö"
reverse "ö" to "ä"
END designA