4 ms·
I wrote a pretty-printer for bash scripts using PHP. Colouring the keywords was fun, but I moved on to other personal projects instead of tackling line breaks.
by peterburkimsher 9y ago
I wrote a pretty-printer for bash scripts using PHP. Colouring the keywords was fun, but I moved on to other personal projects instead of tackling line breaks.
More recently I've been trying to learn Chinese, and one of the features of Pingtype is to put spaces between words.
http://pingtype.github.io http://pingtype.github.io
To my surprise, this article linked to a Wikipedia page about line wrapping, which says that line wrapping in CJK is unsolved.
https://en.wikipedia.org/wiki/Line_wrap_and_word_wrap#Word_wrapping_in_text_containing_Chinese.2C_Japanese.2C_and_Korean https://en.wikipedia.org/wiki/Line_wrap_and_word_wrap#Word_w...
"Most existing word processors and typesetting software cannot handle either [personal names or compound words]."
My method works, but I don't know who to give it to. This is Hacker News and there's people from all different backgrounds here, so I'll just throw it out there - if anyone is interested, please contact me.
- bmn__ 9y ago> if anyone is interested, please contact me This is not how things are done. Just put your code and documentation on the public Web, then submit the link to Hackernews or other relevant forums.
- peterburkimsher 9y agoDid that. Nobody noticed. https://news.ycombinator.com/item?id=14907618 https://news.ycombinator.com/item?id=14907618
- bmn__ 9y agoYou are correct that no one is interested in yet another translation Web application, especially since it does not say how it's different or better than the rest. That's all anyone got to see so far. If you want to be successful in communicating your improved method for word segmentation to the world at large, extract the code, publish it, and document the relevant details what makes it better and how it compares against existing solutions. I am a hobby computational linguist. "Contact me" is an outmoded concept, most of us are doing our collaboration in the open.