Suppose there is this line in English and its requirement to highlight in bold or color, etc. for a specific part of a line of text:
"word1 word2 WORD3 word4"
This can be done by setting the attribute for the appropriate range.
The range can be hard-coded (13.5), but then, of course, it will not be localizable.
Thus, a range can be dynamically determined, knowing that its third word, which should be in bold, is applied to it.
But this is also not localized. Suppose that if this sentence is translated into N, it contains only 2 words or contains 5 words in M?
So my question is, how can you use attribute strings in combination with localization without a lot of hard coding?
source share