Stefan de Konink
2008-10-30 15:46:13 UTC
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
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