Appendix talk:Korean Hanja by KS X 1001 hangyol code
Jump to navigation
Jump to search
Source code used to generate this
[edit]#!/usr/bin/env python3
# -*- mode: python; coding: utf-8 -*-
a = 42
b = 0xCA
print("""__NOTOC__
{|""")
for i in range(a, 95):
if (i - a) and not ((i - a) % 5):
print("|-")
print("|")
print("===Row %d===" % i)
ii = (i-a) + b
for j in range(1, 95):
jj = j + 0xA0
try:
print("[[", bytes([ii, jj]).decode("euc-kr"), sep = "", end = "]] ")
except UnicodeError:
break
print()
print("|}")