QDoc: Improve handling of hyphens in titles


QDoc uses hyphens as placeholders for non-alphanumeric characters in its
internal representation for titles. Titles are also simplified to remove
redundant hyphens.

As a result, titles originally containing hyphens can be converted to
internal representations that are shared with other titles, making it
impossible to distinguish between them and make links to specific
resources.

This change includes hyphens with alphanumeric characters in the set of
characters to retain, relying on spaces to represent other characters
before converting them to hyphens in the internal representation of
titles.

Fixes: QTBUG-136247
Change-Id: I90512a961ee9b1e56bfd53df4d1950f4daf22b82
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commitb15c0a1e3dcfb177c5c93f40779f32f3c1f43af9
parentae210a8b15e9afd48d210b4da58879c18366c1ca
authorDavid Boddie <david.boddie@qt.io>
committerDavid Boddie <david.boddie@qt.io>
commit timeFri, 5 Jun 2026 11:31:26 +0000