| 123456789101112131415161718192021222324252627282930313233343536 |
- using Terminal.Gui;
- namespace UICatalog.Scenarios;
- [ScenarioMetadata ("Combining Marks", "Illustrates how Unicode Combining Marks work (or don't).")]
- [ScenarioCategory ("Text and Formatting")]
- public class CombiningMarks : Scenario
- {
- public override void Main ()
- {
- Application.Init ();
- var top = new Toplevel ();
- top.DrawComplete += (s, e) =>
- {
- top.Move (0, 0);
- top.AddStr ("Terminal.Gui only supports combining marks that normalize. See Issue #2616.");
- top.Move (0, 2);
- top.AddStr ("\u0301\u0301\u0328<- \"\\u301\\u301\\u328]\" using AddStr.");
- top.Move (0, 3);
- top.AddStr ("[a\u0301\u0301\u0328]<- \"[a\\u301\\u301\\u328]\" using AddStr.");
- top.Move (0, 4);
- top.AddRune ('[');
- top.AddRune ('a');
- top.AddRune ('\u0301');
- top.AddRune ('\u0301');
- top.AddRune ('\u0328');
- top.AddRune (']');
- top.AddStr ("<- \"[a\\u301\\u301\\u328]\" using AddRune for each.");
- };
- Application.Run (top);
- top.Dispose ();
- Application.Shutdown ();
- }
- }
|