
30 Oct
2008
30 Oct
'08
3:46 p.m.
Hi,
I'm trying to get soft-hyphenation to work in an acceptable fashion before going into deeper details.
I want te solve the following task;
- In the _measureUnbrokenSpan loop (Layout-TNG-Compute.cpp) soft-hyphens are detected. It can nicely break in such situation. - Currently a soft-hypen is invisible, but clearly the position in the source stream is know. - Based on this position I want to *replace* the softhypen in this rendering run with a '-' - This might need an a priori knowledge of the '-' width
Could anyone suggest how to append a Span with only a "-" or replace the soft-hyphen with a hard one in this run?
Thanks in advance,
Stefan de Konink