PeachDrawing.Text
PeachDrawing.Text.Unicode.Scripts
Scripts.Resolve(IReadOnlyList<int>) Method
Gives every code point of a text the script it is to be treated as (UAX #24 section 5.1): a character with a real script keeps it, and one that is Common or Inherited takes the nearest preceding real script, or the nearest following one if the text opens with such characters. A text with no real script at all has nothing to resolve against: its Inherited characters become Common and the others stay as they are.
public static System.Collections.Generic.IReadOnlyList<string> Resolve(System.Collections.Generic.IReadOnlyList<int> codepoints);
Parameters
codepoints System.Collections.Generic.IReadOnlyList<System.Int32>
The text as code points.
Returns
System.Collections.Generic.IReadOnlyList<System.String>
One script per entry of codepoints.