Skip to content

Commit fa0d319

Browse files
committed
Auto merge of #14 - mozillazg:develop, r=mozillazg
v0.8.0
2 parents 22525f5 + 2877f71 commit fa0d319

File tree

6 files changed

+84
-14
lines changed

6 files changed

+84
-14
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Changelog
22

33

4+
## 0.8.0 (2016-08-19)
5+
6+
* **Changed** use [pinyin-data](https://github.com/mozillazg/pinyin-data) v0.3.0
7+
* Fixed [#13](https://github.com/mozillazg/go-pinyin/issues/13)
8+
* Fixed pinyin of 罗
9+
10+
411
## 0.7.0 (2016-08-02)
512

613
* **Changed** use [pinyin-data](https://github.com/mozillazg/pinyin-data) v0.2.0

TODO.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

pinyin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
// Meta
99
const (
10-
Version = "0.7.0"
10+
Version = "0.8.0"
1111
Author = "mozillazg, 闲耘"
1212
License = "MIT"
1313
Copyright = "Copyright (c) 2016 mozillazg, 闲耘"

pinyin_dict.go

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18386,7 +18386,7 @@ var PinyinDict = map[int]string{
1838618386
0x7F54: "wǎng,wáng",
1838718387
0x7F55: "hǎn,hàn",
1838818388
0x7F56: "luó",
18389-
0x7F57: "luō,luó",
18389+
0x7F57: "luó",
1839018390
0x7F58: "fú",
1839118391
0x7F59: "shēn",
1839218392
0x7F5A: "fá",
@@ -26663,6 +26663,76 @@ var PinyinDict = map[int]string{
2666326663
0x9FCF: "mài",
2666426664
0x9FD4: "gē",
2666526665
0x9FD5: "dān",
26666+
0xE815: "yè",
26667+
0xE816: "zuǒ,yǒu",
26668+
0xE818: "gǔn",
26669+
0xE81A: "zhòu,zhū",
26670+
0xE81B: "zhòu,zhū",
26671+
0xE81D: "jié,jiē",
26672+
0xE81F: "wāi",
26673+
0xE820: "hǎn",
26674+
0xE821: "hǎn",
26675+
0xE824: "zhòu",
26676+
0xE825: "zhòu",
26677+
0xE826: "shǒu",
26678+
0xE827: "gāng",
26679+
0xE828: "kuǎi",
26680+
0xE829: "sǒng",
26681+
0xE82A: "sǒng",
26682+
0xE82B: "fēng",
26683+
0xE82C: "gòng",
26684+
0xE82D: "gāng",
26685+
0xE82E: "huì,kuì",
26686+
0xE82F: "tà",
26687+
0xE830: "jiān",
26688+
0xE831: "ēn",
26689+
0xE832: "xiǎo",
26690+
0xE834: "lóu,lǘ",
26691+
0xE835: "cǎn,shān,cēn",
26692+
0xE836: "zhú",
26693+
0xE837: "chōu,chóu",
26694+
0xE838: "wǎng",
26695+
0xE83A: "yáng,xiáng",
26696+
0xE83B: "zāi",
26697+
0xE83C: "bà,bēi",
26698+
0xE83D: "bà,bēi",
26699+
0xE83F: "zhuān,chuán,chún,zhuǎn",
26700+
0xE840: "qióng",
26701+
0xE841: "kuì,huì",
26702+
0xE842: "kuì,huì",
26703+
0xE843: "juǎn",
26704+
0xE844: "xīn",
26705+
0xE845: "yàn",
26706+
0xE846: "qíng",
26707+
0xE847: "qíng",
26708+
0xE849: "shàn",
26709+
0xE84A: "yé,yá",
26710+
0xE84B: "pō",
26711+
0xE84C: "shàn",
26712+
0xE84D: "zhuō",
26713+
0xE84E: "shàn",
26714+
0xE84F: "jué",
26715+
0xE850: "chuài",
26716+
0xE851: "zhèng",
26717+
0xE852: "chuài",
26718+
0xE853: "zhèng",
26719+
0xE854: "zhuó",
26720+
0xE855: "yíng",
26721+
0xE856: "yú",
26722+
0xE857: "yìn",
26723+
0xE858: "chūn",
26724+
0xE859: "qiū",
26725+
0xE85A: "yú",
26726+
0xE85B: "téng",
26727+
0xE85C: "shī",
26728+
0xE85D: "jiāo",
26729+
0xE85E: "liè",
26730+
0xE85F: "jīng",
26731+
0xE860: "jú",
26732+
0xE861: "tī",
26733+
0xE862: "pì",
26734+
0xE863: "yǎn",
26735+
0xE864: "luán",
2666626736
0x20000: "hē",
2666726737
0x20001: "qī",
2666826738
0x20003: "qiě,jī",

tools/gen_pinyin_dict.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ var PinyinDict = map[int]string{
3131
} else if err != nil {
3232
panic(err)
3333
}
34+
if strings.HasPrefix(line, "#") {
35+
continue
36+
}
37+
3438
// line: `U+4E2D: zhōng,zhòng # 中`
3539
dataSlice := strings.Split(line, " #")
3640
dataSlice = strings.Split(dataSlice[0], ": ")

0 commit comments

Comments
 (0)