diff options
author | Choe Hwanjin <choe.hwanjin@gmail.com> | 2018-06-06 21:01:53 +0900 |
---|---|---|
committer | Choe Hwanjin <choe.hwanjin@gmail.com> | 2018-06-06 21:01:53 +0900 |
commit | 42f764082508467e4fdcf453cff06a2c04580969 (patch) | |
tree | 4315695d1f9a68f6fc55685ba4171e569b24de38 | |
parent | 5a06be7d1c49fc3e99b2f0417b10591dfd1ff564 (diff) | |
download | libhangul-42f764082508467e4fdcf453cff06a2c04580969.tar.gz |
doc: keyboard 문서 생성할때 매핑 안된 글자 처리 추가
이전 fb9fc71 수정에서 두벌식 자판의 영문을 더이상 매핑하지 않도록
수정했는데, 이것으로 자판 문서가 제대로 생성되지 않는 문제가 발생했다.
매핑되지 않은 글자는 회색으로 표현되도록 한다.
https://github.com/libhangul/libhangul/issues/27
-rwxr-xr-x | doc/gen_hangulkeyboards.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/gen_hangulkeyboards.py b/doc/gen_hangulkeyboards.py index 701b0cb..b6cdfa0 100755 --- a/doc/gen_hangulkeyboards.py +++ b/doc/gen_hangulkeyboards.py @@ -177,6 +177,10 @@ def print_cell_with_table(table, upper_index, lower_index, span = 4): upper = table[upper_index]; lower = table[lower_index]; + if upper == 0 and lower == 0: + print '<td class="graykeycell" colspan="%d">%s<br/>%s</td>' % (span, to_html_entity(upper_index), to_html_entity(lower_index)) + return + if upper == lower: upper = ord(' ') |