All Projects → sakapon → Zipangu

sakapon / Zipangu

Licence: MIT License
A library for compatibility about Japan.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Zipangu

Nihonoari-App
A little and minimalist Japanese Kana training
Stars: ✭ 66 (+144.44%)
Mutual labels:  japanese, kana, japanese-kana
Jconv
Pure-JavaScript converter for Japanese character encodings.
Stars: ✭ 91 (+237.04%)
Mutual labels:  encoding, japanese
kanji-web-app
Angular.js kanji web application
Stars: ✭ 45 (+66.67%)
Mutual labels:  japanese, kana
Kawazu
A C# library for converting Japanese sentence to Hiragana, Katakana or Romaji with furigana and okurigana modes supported. Inspired by project Kuroshiro.
Stars: ✭ 33 (+22.22%)
Mutual labels:  japanese, kana
wana kana rust
Utility library for checking and converting between Japanese characters - Hiragana, Katakana - and Romaji
Stars: ✭ 46 (+70.37%)
Mutual labels:  japanese, kana
Haxe-Macro-Book
Haxeのマクロ本
Stars: ✭ 20 (-25.93%)
Mutual labels:  japanese
x264
🎥 A safe x264 wrapper for Rust.
Stars: ✭ 35 (+29.63%)
Mutual labels:  encoding
Base62
PHP Base62 encoder and decoder for integers and big integers with Laravel 5 support.
Stars: ✭ 16 (-40.74%)
Mutual labels:  encoding
gb-convert
Gameboy tile conversion and map editor tool
Stars: ✭ 26 (-3.7%)
Mutual labels:  encoding
SublimeXssEncode
Converts characters from one encoding to another using a transformation.
Stars: ✭ 37 (+37.04%)
Mutual labels:  encoding
Crypto
封装多种CTF和平时常见加密及编码C#类库
Stars: ✭ 20 (-25.93%)
Mutual labels:  encoding
VarintBitConverter
Varint encoding and decoding for .NET
Stars: ✭ 21 (-22.22%)
Mutual labels:  encoding
sia
Sia - Binary serialisation and deserialisation
Stars: ✭ 52 (+92.59%)
Mutual labels:  encoding
cattonum
Encode Categorical Features
Stars: ✭ 31 (+14.81%)
Mutual labels:  encoding
babelfish
Universal translater for encodings
Stars: ✭ 13 (-51.85%)
Mutual labels:  encoding
zbase32
Human-oriented encoding for binary data
Stars: ✭ 31 (+14.81%)
Mutual labels:  encoding
activitypub
私家版ActivityPub日本語訳
Stars: ✭ 23 (-14.81%)
Mutual labels:  japanese
KanjiRecognitionDictionary
Perfect for those who forgets kanji pronunciation
Stars: ✭ 14 (-48.15%)
Mutual labels:  japanese
nginx-module-url
Nginx url encoding converting module
Stars: ✭ 17 (-37.04%)
Mutual labels:  encoding
sample-ui-react
Material-UI+ React.js + Redux [ Pug / Scss / Babel ]
Stars: ✭ 15 (-44.44%)
Mutual labels:  japanese

Zipangu

license NuGet NuGet

A library for compatibility about Japan.
日本で利用される機能を集めたライブラリです。

Setup

Zipangu は NuGet Gallery に登録されています。
Zipangu を利用するには、Visual Studio の [NuGet パッケージの管理] でインストールするか、
あるいは [パッケージ マネージャー コンソール] で次のコマンドを実行します。

Install-Package Zipangu

NuGet Gallery | Zipangu

Features

文字の変換

.NET Framework の Microsoft.VisualBasic.dll の Strings.StrConv メソッドとの互換性は完全ではありません。
仕様の詳細はこちら

  • ASCII 文字 → 全角 ASCII 文字
  • 全角 ASCII 文字 → ASCII 文字
  • ひらがな → カタカナ
  • カタカナ → ひらがな
  • 半角カタカナ → ひらがな
  • 半角カタカナ → カタカナ

文字エンコーディング

各エンコーディングのインスタンスにアクセスするためのプロパティを提供します。

  • Shift_JIS (932)
  • ISO-2022-JP (50220)
  • EUC-JP (51932)

Usage

まず、Zipangu 名前空間の using ディレクティブを追加します。

using System;
using Zipangu;

文字の変換

各メソッドは拡張メソッドとして提供されています。

// べーとーゔぇん、「ぴあの・そなた」。
var result = "ベートーヴェン、「ピアノ・ソナタ」。".HalfKatakanaToHiragana();

変換の種類を組み合わせるには、Convert メソッドを呼び出します。

// モモイロクローバーZ
var result = "ももいろクローバーZ".Convert(KanaConv.AllKanaToKatakana, AsciiConv.ToWide);

文字エンコーディング

EncodingHelper クラスの静的プロパティで各エンコーディングのインスタンスを取得できます。

// { 188, 172, 151, 144, 81 }
var result = EncodingHelper.ShiftJIS.GetBytes("シャ乱Q");

Target Frameworks

Dependencies

Release Notes

  • v1.1.8 変換される文字を追加。
  • v1.1.6 文字エンコーディングのプロパティを追加。
  • v1.0.3 初版リリース。
  • v1.0.1 β版リリース。
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].