hyphenation

Hyphenation in Android

ぃ、小莉子 提交于 2019-11-27 11:39:57
As part of internationalizing an Android application I have come across the need to dynamically word wrap or hyphenate at the right position. All my strings are externalized in strings.xml files but I have not found any documentation about hyphenation in Android. I would like to be able to suggest hyphenation positions similar to how I can do it in LaTeX: http://en.wikipedia.org/wiki/Hyphenation_algorithm But I have not found any indication if this is possible. Is there anything in the framework I have missed? What are other people doing e.g. with Japanese strings that have no obvious position

Is it possible to enable auto-hyphenation in HTML/CSS?

核能气质少年 提交于 2019-11-27 00:17:05
问题 My client has requested to enable auto-hyphenation on this page: http://carlosdinizart.com/biography/ , and I realized I've never actually seen it done on a web-page. Is it possible to set up auto-hyphenation in an HTML document with just HTML/CSS? If not - what are the options? 回答1: CSS3 provides some support for this. Source: http://drublic.de/blog/css3-auto-hyphenation-for-text-elements/ You can check the w3c documentation here: http://www.w3.org/TR/2011/WD-css3-text-20110901/#hyphenation

What's the opposite of a nbsp?

时光毁灭记忆、已成空白 提交于 2019-11-26 18:55:45
问题 A   character is a space which doesn't allow for line breaking. <p>lorem ipsum here are some words and so on</p> | lorem ipsum | | here are some words and so | | on | What's the opposite of that? That is, a character which is NOT rendered as a space, but CAN be used for line breaking. <p>foo supercalifragilisticexpialidocious bar</p> <!-- put char here ^ and here ^ --> |foo supercalifragi | |listicexpiali | |docious bar | or with wider size: |foo supercalifragilisticexpiali | |docious bar | I

Hyphenation in Android

我与影子孤独终老i 提交于 2019-11-26 15:40:15
问题 As part of internationalizing an Android application I have come across the need to dynamically word wrap or hyphenate at the right position. All my strings are externalized in strings.xml files but I have not found any documentation about hyphenation in Android. I would like to be able to suggest hyphenation positions similar to how I can do it in LaTeX: http://en.wikipedia.org/wiki/Hyphenation_algorithm But I have not found any indication if this is possible. Is there anything in the

Detecting syllables in a word

ε祈祈猫儿з 提交于 2019-11-26 11:58:40
I need to find a fairly efficient way to detect syllables in a word. E.g., Invisible -> in-vi-sib-le There are some syllabification rules that could be used: V CV VC CVC CCV CCCV CVCC *where V is a vowel and C is a consonant. E.g., Pronunciation (5 Pro-nun-ci-a-tion; CV-CVC-CV-V-CVC) I've tried few methods, among which were using regex (which helps only if you want to count syllables) or hard coded rule definition (a brute force approach which proves to be very inefficient) and finally using a finite state automata (which did not result with anything useful). The purpose of my application is

No line-break after a hyphen

浪尽此生 提交于 2019-11-26 11:32:16
I'm looking to prevent a line break after a hyphen - on a case-by-case basis that is compatible with all browsers. Example: I have this text: 3-3/8" which in HTML is this: 3-3/8” The problem is that near the end of a line, because of the hyphen, it breaks and wraps to the next line instead of treating it like a full word... 3- 3/8" I've tried inserting the "zero width no break character",  with no luck... 3-3/8” I'm seeing this in Safari and thinking it will be the same in all browsers. The following is my doctype and character encoding... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Detecting syllables in a word

僤鯓⒐⒋嵵緔 提交于 2019-11-26 03:34:57
问题 I need to find a fairly efficient way to detect syllables in a word. E.g., Invisible -> in-vi-sib-le There are some syllabification rules that could be used: V CV VC CVC CCV CCCV CVCC *where V is a vowel and C is a consonant. E.g., Pronunciation (5 Pro-nun-ci-a-tion; CV-CVC-CV-V-CVC) I\'ve tried few methods, among which were using regex (which helps only if you want to count syllables) or hard coded rule definition (a brute force approach which proves to be very inefficient) and finally using

No line-break after a hyphen

僤鯓⒐⒋嵵緔 提交于 2019-11-26 02:28:07
问题 I\'m looking to prevent a line break after a hyphen - on a case-by-case basis that is compatible with all browsers. Example: I have this text: 3-3/8\" which in HTML is this: 3-3/8” The problem is that near the end of a line, because of the hyphen, it breaks and wraps to the next line instead of treating it like a full word... 3- 3/8\" I\'ve tried inserting the \"zero width no break character\",  with no luck... 3-3/8” I\'m seeing this in Safari and thinking it will be the same in all