I am not able to hyphenate strings using jQuery. It seems there is no library available. I tried this link but failed. Please help if you know how to hyphenate a string in a textarea according to a textarea's width using a jQuery plugin.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I think Hypher is what you're looking for:
https://github.com/bramstein/hypher
回答2:
As of 2016 there is another JavaScript library available that you could use: https://github.com/ytiurin/hyphen
Compared to Hypher, hy-phen is easier to include on your page, since it does not depend on Node.js or jQuery. You simply have to include the JavaScript file for the library and the pattern file for your desired language using a <script>
tag.