TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Coloring Korean Keystrokes: 11'172 Characters

5 点作者 samtoday9 个月前

1 comment

lifthrasiir9 个月前
Hangul syllable composition is systematic enough that you could have just used some thresholding and flood fill instead. There are only 9 distinct layouts [1] possible after all, all of which can be determined via a simple decision tree, so you collect syllables for each layout and determine the optimal horizontal or vertical line to split them. That alone wouldn&#x27;t fully segment, say, 고 where a bounding box for ㄱ typically overlaps with that for ㅗ, but you can then assume that no path doesn&#x27;t belong to multiple segments (which is true for most non-novelty fonts). You can also add more branches to your decision tree if your font is too atypical to be cleanly segmented.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Hangul#Letter_placement_within_a_block" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Hangul#Letter_placement_within...</a>