escpos-printer-db icon indicating copy to clipboard operation
escpos-printer-db copied to clipboard

Add Katakana codepage 1

Open johnnyshields opened this issue 1 year ago • 1 comments

Here's the Katakana code page (codepage 1). ~~This was made by Epson~~This is common in Japan; lines 3-6 are compatible with Shift-JIS but the rest is not.

    katakana:
        - "▁▂▃▄▅▆▇█▏▎▍▌▋▊▉┼"
        - "┴┬┤├¯─│▕┌┐└┘╭╮╰╯"
        - " 。「」、・ヲァィゥェォャュョッ"
        - "ーアイウエオカキクケコサシスセソ"
        - "タチツテトナニヌネノハヒフヘホマ"
        - "ミムメモヤユヨラリルレロワン゙゚"
        - "═╞╪╡◢◣◥◤♠♥♦♣●○╱╲"
        - "╳円年月日時分秒〒市区町村人▓\u00A0"

johnnyshields avatar Aug 13 '22 09:08 johnnyshields

I've done a bit of digging and this charset seems to have originally come from NEC's PC-8000 computer from 1979. https://en.wikipedia.org/wiki/PC-8000_series image

The last 8 chars appear to have been introduced in the Fujitsu FM-7 circa 1982. https://en.wikipedia.org/wiki/FM-7 https://twitter.com/kumokosi/status/1459688336533057536 image

So it doesn't seem to be an Epson-specific invention. You see these half-width katakana forms a lot in legacy mainframe banking systems in Japan for example, so I imagine encoding is probably widely in-use.

The last row contains commonly used kanji characters: 円 = yen (money) 年 = year 月 = month 日 = day 時 = hour 分 = minute 秒 = second 〒 = postal code mark used to indicate zip codes in Japan 市 = city 区 = area/ward 町 = district/town 村 = village 人 = person

johnnyshields avatar Aug 17 '22 15:08 johnnyshields