EA 1.1.1

.NET 6.0 .NET Standard 2.0
dotnet add package EA --version 1.1.1
NuGet\Install-Package EA -Version 1.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EA" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EA --version 1.1.1
#r "nuget: EA, 1.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EA as a Cake Addin
#addin nuget:?package=EA&version=1.1.1

// Install EA as a Cake Tool
#tool nuget:?package=EA&version=1.1.1


East Asian text utility library


The EastAsianWidth class provides utilities for working with the East Asian Width property of every Unicode code point.

Using EastAsianWidth

Getting width category:

// Width kind of char '音' (calls int codePoint overload)
// Width kind of code point U+1F49C
// Width of code point starting at char 0 in "💜"
Console.WriteLine($"{EastAsianWidth.GetWidthKind("💜", 0)}");

Boolean checks:

// Checks if char 'x' is narrow (calls int codePoint overload)
// Checks if "音楽の聴き方" contains any wide code points

Getting width:

// Gets width of code point 'x' (calls int codePoint overload)
// default values 1 for ambiguous, neutral, and private use chars
// Gets width of string "💜"
// 2 for ambiguous, 1 for neutral, 0 for private use
Console.WriteLine($"{EastAsianWidth.GetWidth("💜", ambiguousWidth: 2, neutralWidth: 1, privateUseWidth: 0)}");
// Gets width of string "音楽の聴き方"
// 1 for neutral, 0 for private use, lambda evaluated for ambiguous because no explicit value was specified
Console.WriteLine($"{EastAsianWidth.GetWidth("音楽の聴き方", v => v == 0x212B ? 2 : 1, neutralWidth: 1, privateUseWidth: 0)}");


EastAsianWidth.txt is used in tests and original category generation, licensed as follows

Copyright © 1991-2021 Unicode, Inc. All rights reserved.
Distributed under the Terms of Use in https://www.unicode.org/copyright.html.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

  • .NETStandard 2.1

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on EA:

Package Downloads

Console text formatting


terminal music interface

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 646 12/18/2021
1.1.0 228 12/18/2021
1.0.0 271 12/17/2021