-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
427 additions
and
180 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Package `kansuji` | ||
================= | ||
|
||
[![Go Report Card](https://goreportcard.com/badge/github.com/GreenYun/kansuji)](https://goreportcard.com/report/github.com/GreenYun/kansuji) | ||
[![GoDoc](https://godoc.org/github.com/GreenYun/kansuji?status.svg)](https://godoc.org/github.com/GreenYun/kansuji) | ||
[![PkgGoDev](https://pkg.go.dev/badge/github.com/GreenYun/kansuji)](https://pkg.go.dev/github.com/GreenYun/kansuji) | ||
|
||
Package kansuji provides kansuji conversion. | ||
|
||
The "kansuji" is the romanization form of japanese "漢数字", which has the same meaning of Chinese "中文數字" ("中文数字", means Chinese number). As a matter of fact, these numbers have been used originally by Chinese for thousands of years. The reason to use "kansuji" was just for simple and short. | ||
|
||
In the age of Ming dynasty, the Hongwu Emperor (Chu Yuan-chang) has forced the domestic financial system to use the financial style numbers, which are Chinese characters with lots of strokes, that can hardly be modified, compared to the very simple characters originally stand for numbers. This package supports both forms of kansuji. | ||
|
||
Reference | ||
--------- | ||
|
||
1. 中文数字, https://zh.wikipedia.org/wiki/%E4%B8%AD%E6%96%87%E6%95%B0%E5%AD%97 | ||
2. 漢数字, https://ja.wikipedia.org/wiki/%E6%BC%A2%E6%95%B0%E5%AD%97 | ||
3. 中华人民共和国国家标准 GB/T 15835—2011 出版物上数字用法 | ||
4. 大字 (数字), https://ja.wikipedia.org/wiki/%E5%A4%A7%E5%AD%97_(%E6%95%B0%E5%AD%97) | ||
5. 大正十一年大蔵省令第四十三号(会計法規ニ基ク出納計算ノ数字及記載事項ノ訂正ニ関スル件), https://elaws.e-gov.go.jp/search/elawsSearch/elaws_search/lsg0500/detail?lawId=211M10000040043 | ||
|
||
Status | ||
------ | ||
|
||
This project is under developing, you may make any [pull requests](https://github.com/GreenYun/kansuji/pulls) to add features or sending ideas by writing [issues](https://github.com/GreenYun/kansuji/issues). |
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,3 @@ | ||
package kansuji | ||
|
||
type group [4]rune |
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 was deleted.
Oops, something went wrong.
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,14 @@ | ||
// Package kansuji provides kansuji conversion. | ||
// | ||
// The "kansuji" is the romanization form of japanese "漢数字", which has the same | ||
// meaning of Chinese "中文數字" ("中文数字", means Chinese number). As a matter of | ||
// fact, these numbers have been used originally by Chinese for thousands of years. | ||
// The reason to use "kansuji" was just for simple and short. | ||
// | ||
// In the age of Ming dynasty, the Hongwu Emperor (Chu Yuan-chang) has forced the | ||
// domestic financial system to use the financial style numbers, which are Chinese | ||
// characters with lots of strokes, that can hardly be modified, compared to the | ||
// very simple characters originally stand for numbers. | ||
// | ||
// This package supports both forms of kansuji. | ||
package kansuji |
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
Oops, something went wrong.