As an extension to the macros (\FormatChar - \FormatChars - \ColorNthChar - \colorrange) posted in:
Is it possible to modify the above macros in order to:
- Highlight "accents / glyphs" as enquired here \textarabic highlight specifc letters or elements of text (It is already stated that if you use xelatex or lualatex any unicode character will work, but not clusters of combining characters, just wondering if it can be modified or if there is an alternative): I have attached the image posted in the above link for more emphasis
- Apply a different type of formatting for a selected number characters within the same word (Mainly the macros were directed towards applying the same type of formatting to multiple characters, yet it may be needed to format a selected number of characters where each character may be needed to have a different formatting: bold underlined character + boxed character with gray highlight....): so that you may be able to select any number of characters in each word and select the type of formatting to be applied to each of the selected characters (bold,colored,italic,underlined,dashed or continous box with colored boundaries, highlight....)


differentand select 3rd thing do you want the f (3rd input character) of the ff (3rd output glyph) in English this isn't often an issue but in some languages it affects every word. But if you are selecting characters explicitly it isn't an issue at all\textbf{di}\textcolor{red}{ffer}\textit{ent}selects substrings of that word in three styles – David Carlisle Aug 16 '20 at 09:31