Skip to content

Instantly share code, notes, and snippets.

@lincerely
Created October 18, 2023 10:28
Show Gist options
  • Save lincerely/cb6e3af662c74db0013d266ac0f7b2dd to your computer and use it in GitHub Desktop.
Save lincerely/cb6e3af662c74db0013d266ac0f7b2dd to your computer and use it in GitHub Desktop.
#!/usr/local/bin/bbe -f
# NEC特殊罫線 -> SJIS 変換
# reference: https://hide.maruo.co.jp/lib/hmconv/neckeisen100.html
s/\x86\xA2/\x84\x9F/
s/\x86\xA3/\x84\xAA/
s/\x86\xA4/\x84\xA0/
s/\x86\xA5/\x84\xAB/
s/\x86\xA6/\x84\x9F/
s/\x86\xA7/\x84\xAA/
s/\x86\xA8/\x84\xA0/
s/\x86\xA9/\x84\xAB/
s/\x86\xAA/\x84\x9F/
s/\x86\xAB/\x84\xAA/
s/\x86\xAC/\x84\xA0/
s/\x86\xAD/\x84\xAB/
s/\x86\xAE/\x84\xA1/
s/\x86\xAF/\x84\xA1/
s/\x86\xB0/\x84\xA1/
s/\x86\xB1/\x84\xAC/
s/\x86\xB2/\x84\xA2/
s/\x86\xB3/\x84\xA2/
s/\x86\xB4/\x84\xA2/
s/\x86\xB5/\x84\xAD/
s/\x86\xB6/\x84\xA4/
s/\x86\xB7/\x84\xA4/
s/\x86\xB8/\x84\xA4/
s/\x86\xB9/\x84\xAF/
s/\x86\xBA/\x84\xA3/
s/\x86\xBB/\x84\xA3/
s/\x86\xBC/\x84\xA3/
s/\x86\xBD/\x84\xAE/
s/\x86\xBE/\x84\xA5/
s/\x86\xBF/\x84\xBA/
s/\x86\xC0/\x84\xA5/
s/\x86\xC1/\x84\xA5/
s/\x86\xC2/\x84\xB5/
s/\x86\xC3/\x84\xA5/
s/\x86\xC4/\x84\xA5/
s/\x86\xC5/\x84\xB0/
s/\x86\xC6/\x84\xA7/
s/\x86\xC7/\x84\xBC/
s/\x86\xC8/\x84\xA7/
s/\x86\xC9/\x84\xA7/
s/\x86\xCA/\x84\xB7/
s/\x86\xCB/\x84\xA7/
s/\x86\xCC/\x84\xA7/
s/\x86\xCD/\x84\xB2/
s/\x86\xCE/\x84\xA6/
s/\x86\xCF/\x84\xA6/
s/\x86\xD0/\x84\xA6/
s/\x86\xD1/\x84\xB6/
s/\x86\xD2/\x84\xBB/
s/\x86\xD3/\x84\xA6/
s/\x86\xD4/\x84\xA6/
s/\x86\xD5/\x84\xB1/
s/\x86\xD6/\x84\xA8/
s/\x86\xD7/\x84\xA8/
s/\x86\xD8/\x84\xA8/
s/\x86\xD9/\x84\xB8/
s/\x86\xDA/\x84\xBD/
s/\x86\xDB/\x84\xA8/
s/\x86\xDC/\x84\xA8/
s/\x86\xDD/\x84\xB3/
s/\x86\xDE/\x84\xA9/
s/\x86\xDF/\x84\xA9/
s/\x86\xE0/\x84\xA9/
s/\x86\xE1/\x84\xB9/
s/\x86\xE2/\x84\xA9/
s/\x86\xE3/\x84\xA9/
s/\x86\xE4/\x84\xBE/
s/\x86\xE5/\x84\xA9/
s/\x86\xE6/\x84\xA9/
s/\x86\xE7/\x84\xA9/
s/\x86\xE8/\x84\xA9/
s/\x86\xE9/\x84\xA9/
s/\x86\xEA/\x84\xA9/
s/\x86\xEB/\x84\xA9/
s/\x86\xEC/\x84\xA9/
s/\x86\xED/\x84\xB4/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment