forked from gui-cs/Terminal.Gui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from tig/BDisp-v2_combining-normalize-fix_2616
Forces non-normalized CMs to be ignored.
- Loading branch information
Showing
10 changed files
with
168 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using Terminal.Gui; | ||
|
||
namespace UICatalog.Scenarios { | ||
[ScenarioMetadata (Name: "Combining Marks", Description: "Illustrates how Unicode Combining Marks work (or don't).")] | ||
[ScenarioCategory ("Text and Formatting")] | ||
public class CombiningMarks : Scenario { | ||
public override void Init () | ||
{ | ||
Application.Init (); | ||
ConfigurationManager.Themes.Theme = Theme; | ||
ConfigurationManager.Apply (); | ||
Application.Top.ColorScheme = Colors.ColorSchemes [TopLevelColorScheme]; | ||
} | ||
|
||
public override void Setup () | ||
{ | ||
Application.Top.DrawContentComplete += (s, e) => { | ||
Application.Driver.Move (0, 0); | ||
Application.Driver.AddStr ("Terminal.Gui only supports combining marks that normalize. See Issue #2616."); | ||
Application.Driver.Move (0, 2); | ||
Application.Driver.AddStr ("\u0301\u0301\u0328<- \"\\u301\\u301\\u328]\" using AddStr."); | ||
Application.Driver.Move (0, 3); | ||
Application.Driver.AddStr ("[a\u0301\u0301\u0328]<- \"[a\\u301\\u301\\u328]\" using AddStr."); | ||
Application.Driver.Move (0, 4); | ||
Application.Driver.AddRune ('['); | ||
Application.Driver.AddRune ('a'); | ||
Application.Driver.AddRune ('\u0301'); | ||
Application.Driver.AddRune ('\u0301'); | ||
Application.Driver.AddRune ('\u0328'); | ||
Application.Driver.AddRune (']'); | ||
Application.Driver.AddStr ("<- \"[a\\u301\\u301\\u328]\" using AddRune for each."); | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters