hyphenation

Hyphenation in c#

二次信任 提交于 2019-12-03 15:32:29
I'm looking for a sample project that will perform hyphenation of text in C#. Ideally, this would be derived from the TeX hyphenation algorithm, or similar. I'm interested in English currently, although other languages may be required in the future. Anyone seen something like that? background I'm planning on including this in a MonoTouch project using CoreText. JasCav Obviously, Donald Knuth's algorithms are excellent. Although there is not a C# implementation available, have you considered converting another implementation to C#? (For example, you could convert the Java implementation which

Which JavaScript library should I use for client-side hyphenation?

不问归期 提交于 2019-12-03 11:49:16
I would like to implement client-side hyphenation via JavaScript on some large texts on my site. (I know about CSS3 hyphenation and will use it instead when available, but it's usually not available.) I have been using Hyphenator.js , and it works well but is very large (my optimized, compiled build with just English comes out to 106 KB) and pretty slow. It's large and slow enough that I'm considering dropping hyphenation altogether. It's just a luxury anyway. But recently I came across what seems to be an alternative: Hypher . What baffles me is how Hypher can me so much smaller and do the

Hyphenation in native iOS app

余生长醉 提交于 2019-12-02 18:30:05
How can I activate automatic hyphenation in iOS? I have tried to set the hyphenation factor to 1 in the attributed text options of an UILabel, however I don't get any hyphens though. The iOS 7 way . Use an UITextView instead of an UILabel . The hyphenationFactor (either as a NSParagraphStyle attribute or as a NSLayoutManager property) should work then (thanks to the new TextKit). The Web way . Use an UIWebView and the -webkit-hyphens CSS properties. The Core Text or the hard way . Use the CFStringGetHyphenationLocationBeforeIndex() function that you mentioned in a comment. This function only

Why does the Synopse hyphenation code give different results from TeX's?

匆匆过客 提交于 2019-12-01 06:34:14
This question follows previous question but different. Synopse's delphi hyphenation is very fast and builts on OpenOffice libhnj library that uses TeX hyphenation . A simple test is : If I input 'pronunciation', the Synopse hyphenation outputs 'pro=nun=ci=ation' (4 possible hyphens or syllables). //(not 'pro=nun=ci=a=tion', 5 hyphens or syllables). I read 2 papers ( here and here ) about Tex hyphenation algorithm uses in syllabification. Authors stated about 95% accuracy in syllabification. I tested Synopse hyphenation only for counting syllables on CMU Pronouncing Dictionary , but only about

Why does the Synopse hyphenation code give different results from TeX's?

不羁的心 提交于 2019-12-01 04:11:24
问题 This question follows previous question but different. Synopse's delphi hyphenation is very fast and builts on OpenOffice libhnj library that uses TeX hyphenation. A simple test is : If I input 'pronunciation', the Synopse hyphenation outputs 'pro=nun=ci=ation' (4 possible hyphens or syllables). //(not 'pro=nun=ci=a=tion', 5 hyphens or syllables). I read 2 papers (here and here) about Tex hyphenation algorithm uses in syllabification. Authors stated about 95% accuracy in syllabification. I

HTML: Soft hypen (­) without dash?

▼魔方 西西 提交于 2019-12-01 03:39:39
I have a little layout problem: on a clients website, we show contact information of people in a little box. The width of that box is constrained. As it happens, there are people with very long names (this is in Germany, after all...), and the email address is a concatenation of the given name and family name. The result: with certain names, the email address overflows the constraints given by the about box. Inserting a ­ before the @ results in the correct line break, but looks like this: john.doe- @example.com Is it possible to suppress that dash? I don't want to use <br /> , because for 90%

WebKit Hyphenation

牧云@^-^@ 提交于 2019-11-30 17:36:10
Has anyone successfully been able to implement hyphenation in any of the WebKit browsers? I've tried the CSS3 hyphenation style as well as -webkit-hyphens: auto . No dice for either of those. Or maybe I'm doing something wrong? Note: I've only tried Safari and Chrome on a Mac. Update: Code example <html> <head> <style> div { -webkit-hyphens: auto; } </style> </head> <body> <div style="width: 150px; border: solid 1px black;"> <p>Anaideia, spirit of ruthlessness, shamelessness, and unforgivingness</p> <p>Supercalifragilisticexpialidocious, Antidisestablishmentarianism,

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

前提是你 提交于 2019-11-28 16:50:38
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? Ninja 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 CSS3 adds six properties to the list of useful thing. These are: The most important one is hyphens .

Stretch overflow not working in excel jasper report

我只是一个虾纸丫 提交于 2019-11-28 10:07:38
问题 I am trying to export report to Excel ( XLSX format) using jasper report, but get problems with stretching when text field is overflow. I get just empty cells when value of textfield is bigger than textfield size. I tried to use these parameters, but it isn't helping me: <property name="net.sf.jasperreports.export.xls.collapse.row.span" value="true"/> <property name="net.sf.jasperreports.print.keep.full.text" value="true"/> <property name="net.sf.jasperreports.export.xls.detect.cell.type"

What's the opposite of a nbsp?

房东的猫 提交于 2019-11-27 17:16:35
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'm aware of the soft-hyphen character , but for my purposes, I specifically do not want a hyphen added