Itaiji 0.3.0
dotnet add package Itaiji --version 0.3.0
NuGet\Install-Package Itaiji -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" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Itaiji" Version="0.3.0" />
<PackageReference Include="Itaiji" />
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 --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Itaiji, 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@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&version=0.3.0
#tool nuget:?package=Itaiji&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 | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- 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.