(Some notes relating to this work that I thought would be more easily retrievable if I put them here rather than in the Bugzilla entry.)
I had to forgo the soft hyphen approach due to a hack in XGC that replaces soft hyphens with normal hyphens when no glyph is available in the font for soft hyphen. So the o.a.f.fonts.Font.hasChar method will return true for soft hyphen while it should actually return false. Removing that hack will not work without making further changes to the layout engine, which in some cases tries to render the soft hyphen like any normal character, instead of treating it merely as a hyphenation hint. However, this is getting beyond the scope of this work. This will have to be re-visited at another time. Vincent On 02/11/12 20:47, wrote: > Author: vhennebert > Date: Fri Nov 2 20:47:32 2012 > New Revision: 1405158 > > URL: http://svn.apache.org/viewvc?rev=1405158&view=rev > Log: > Bugzilla #54081: properly tag hyphenated words in PDF output when > accessibility is enabled
