Itaiji.NetFramework
0.3.0
dotnet add package Itaiji.NetFramework --version 0.3.0
NuGet\Install-Package Itaiji.NetFramework -Version 0.3.0
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="Itaiji.NetFramework" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Itaiji.NetFramework" Version="0.3.0" />
<PackageReference Include="Itaiji.NetFramework" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Itaiji.NetFramework --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Itaiji.NetFramework, 0.3.0"
#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.
#:package Itaiji.NetFramework@0.3.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Itaiji.NetFramework&version=0.3.0
#tool nuget:?package=Itaiji.NetFramework&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Itaiji
概要
Itaijiは、.NETでUnicodeの異体字(Ideographic Variation Sequence)を便利に扱うためのライブラリです。 .Net 5+, .Net Framework 3.5/4.0/4.5/4.6/4.7/4.8 に対応しています。
https://www.nuget.org/packages/Itaiji/ https://www.nuget.org/packages/Itaiji.NetFramework/
主な機能
- 文字列から異体字セレクタの削除
- IVS/SVSの両方に対応
- IVSのうち、SVSで表されるものはSVSで表すオプションあり
- 互換漢字を統合漢字+SVSを用いた表現に変換
- Adobe-Japan1, Moji_Johoの表現への変換にも対応
- 異体字がどのコレクションに含まれるかの判定
- 特定のコレクションで扱えない異体字セレクタが含まれるかの判定
- 異体字セレクタを考慮した文字列の比較・検索
- 異体字セレクタやサロゲートペアを考慮した文字の列挙
- .NET Framework向けにSystem.Text.Rune互換構造体を提供
使い方
- 異体字を除去
using Itaiji.Extensions;
var removed = str.RemoveVariationSelector();
- IVSをSVSに変換
using Itaiji.Extensions;
var removed = str.RemoveIvs(RemoveIvsOption.RemoveToSvs);
- 互換漢字を統合漢字+SVSに変換
using Itaiji.Extensions;
var converted = str.ComvertCompabilityVariationSelector();
- 異体字を無視して置換
using Itaiji.Extensions;
var replaced = str.ReplaceWithIvs("田中", "鈴木");
- Moji-Johoで扱えない異体字セレクタが含まれるかの判定
using Itaiji.Extensions;
var illegal = str.HasInvalidVariationSelectorAsMojiJoho();
詳細はAPIドキュメントをご覧ください。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net35 is compatible. net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 is compatible. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETFramework 4.6
- No dependencies.
-
.NETFramework 4.7
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.