最近辅导孩子学习语文:声母,韵母。现在将其组合起来。打印所有拼音集合
以下是整理出的有关拼音的内容。
声母(23个):
b、p、m、f、d、t、n、l、g、k、h、j、q、x、zh、ch、sh、r、z、c、s、y、w。
韵母(24个):
6个单韵母:a、o、e、i、u、ü;
9个复韵母:ai、ei、ui、ao、ou、iu、ie、üe、er;
5个前鼻韵母:an、en、in、un、ün;
4个后鼻韵母:ang、eng、ing、ong。
韵母连音(10个):
ia、ian、iang、iao、iong、ua、uai、uan、uang、uo;
整体认读音节(16个):
zhi、chi、shi、ri、 zi、ci、si、 yi、wu、yu、 ye、yue、yin、yun、yuan、ying。
易错认读音节:
整体认读音节只有16个,不要把yan, you, wo, ya, er 等误认为整体认读音节。
声调易错的地方:第二声与第三声容易混淆,特别是在音节词中第三声会标成第二声。
复韵母及音节中的声调容易标错位置,要牢记标调规则:有a不放过,没a找o,e; i, u 并列标在后。
j, q, x 只和 u 相拼,不与 u 相拼,j, q, x 和 u 在一起时,u 上两点要去掉,如ju, qu, xu, jue, que, xue, juan, quan, xuan中的都是去掉两点的 ü 。在这些音节中要写成u,分开时要记住写成ü
同样记住, yu, yue, yun, yuan 中的u 其实是去掉两点的ü。
所有声母韵母可组成拼接如下:
参考:
http://www.jinmingxuan.com/news_view.asp?id=4016
所有汉语拼音组合种类
----------------------------------------------------------------------
A 5个
ɑ 阿
ɑi 艾 爱
ɑn 安 岸
ɑnɡ 昂 盎
ɑo 奥 澳 敖 傲 遨 骜 翱
----------------------------------------------------------------------
B 16个
bɑ 八 巴 拔 笆 霸
bɑi 白 百 柏 拜
bɑn 办 伴 扮 班 板 瓣
bɑnɡ 邦 帮 棒 榜
bɑo 宝 报 保 抱 葆 豹 堡
bei 贝 北 备 倍 杯 蓓
ben 本 奔 犇
benɡ 迸 蹦
bi 比 必 毕 笔 碧 璧
biɑn 变 边 扁 遍 辩
biɑo 标 彪 飙 骉
bie 别
bin 宾 彬 斌 滨 缤 槟
binɡ 丙 兵 并 冰 炳 柄 秉 槟
bo 泊 伯 波 勃 铂 播 博 搏 渤
bu 布 步 部
----------------------------------------------------------------------
C 34个
cɑ 擦
cɑi 才 采 材 彩 财 猜 裁
cɑn 灿 粲 璨
cɑnɡ 仓 苍 藏
cɑo 草
ce 策 测
cen 岑
cenɡ 层
chɑ 茶 查 姹 察
chɑi 钗
chɑn 婵 蝉 蟾
chɑnɡ 厂 长 昌 唱 畅 常 昶 嫦
chɑo 超 朝 潮 巢
che 车 彻 澈
chen 臣 辰 宸 晨 琛
chenɡ 丞 成 诚 城 程 承 乘 橙 澄 骋
chi 赤 池 持 驰 翅 箎
chonɡ 虫 充 冲 宠 崇
chou 丑 筹 畴
chu 初 楚
chuɑi 踹
chuɑn 川 传 船
chuɑnɡ 窗 创 闯
chui 吹 锤
chun 春 纯 淳 椿
chuo 绰
ci 赐 辞 慈 瓷
conɡ 从 丛 匆 琮 淙 聪 琮 葱
cou 凑
cu 簇
cuɑn 篡
cui 翠 萃 脆 璀
cun 寸 存 村
cuo 错
----------------------------------------------------------------------
D 20个
dɑ 大 达
dɑi 代 带 岱 黛 玳 戴
dɑn 丹
dɑnɡ 当 党
dɑo 导 岛 道 稻
de 得 德
denɡ 灯 登
di 笛 迪 蒂 荻
diɑn 点 典 殿 巅
diɑo 貂 雕
die 蝶
dinɡ 丁 定 顶 鼎
diu 丢
donɡ 冬 东 动 栋 咚 懂
dou 斗 豆 抖
du 度 渡 督 笃
duɑn 端
dui 对
dun 盾 敦 顿
duo 多 朵 铎
----------------------------------------------------------------------
E 3个
e 鹅 娥
en 恩
er 二 儿 尔 而 耳 迩
----------------------------------------------------------------------
F 9个
fɑ 发 法
fɑn 凡 帆 梵 繁 范 璠
fɑnɡ 方 芳 放 舫
fei 飞 菲 妃 斐 霏 翡
fen 奋 芬 纷 粉
fenɡ 丰 风 凤 枫 峰 封 奉 逢 锋 烽 蜂
fo 佛
fou 否
fu 夫 芙 孚 富 福 复 馥
----------------------------------------------------------------------
G 19个
ɡɑ 嘎
ɡɑi 盖
ɡɑn 甘 竿 敢 感
ɡɑnɡ 冈 岗 刚 钢 港
ɡɑo 告 高
ɡe 个 戈 革 格 阁 歌 鸽
ɡei 给
ɡen 根 跟
ɡenɡ 更 耿 庚 耕
ɡonɡ 工 公 共 功 弓 恭 宫 供 巩
ɡou 勾 钩 够
ɡu 古 谷 固 顾
ɡuɑ 瓜
ɡuɑi 怪
ɡuɑn 关 观 官 管 冠 贯
ɡuɑnɡ 广 光
ɡui 龟 贵 桂 癸 瑰
ɡun 滚
ɡuo 果 国 郭 蝈
----------------------------------------------------------------------
H 19个
hɑ 哈
hɑi 亥 海
hɑn 含 汉 菡 涵 晗 寒 翰 瀚
hɑnɡ 行 杭 航
hɑo 好 昊 皓 浩 豪 颢 灏
he 合 禾 和 河 荷 贺 赫 鹤
hei 黑
hen 很
henɡ 亨 恒 衡
honɡ 红 虹 宏 洪 弘 泓 鸿
hou 厚 候 猴
hu 护 沪 狐 虎 琥 湖 鹄
huɑ 化 花 华 桦 画 婳 划 骅 铧
huɑi 怀 槐 淮
huɑn 欢 环 焕 桓 唤 寰
huɑnɡ 黄 皇 凰 煌 簧
hui 卉 会 汇 荟 挥 绘 惠 蕙 慧 辉 晖
hun 魂
huo 火 获
----------------------------------------------------------------------
J 14个
ji 己 吉 计 记 季 机 基 际 姬 继 济 霁 骥
jiɑ 甲 加 佳 家 嘉 驾
jiɑn 见 尖 坚 笕 兼 建 简 舰 荐 剑 健 键 渐 检 箭
jiɑnɡ 江 匠 将 奖
jiɑo 娇 矫 骄 较 姣 蛟 教 皎
jie 节 杰 洁 桀 婕 捷
jin 今 巾 尽 近 金 进 劲 矜 晋 堇 瑾 槿 谨 锦 津
jinɡ 井 京 晶 经 竞 竟 净 敬 靖 静 景 兢 精 婧 菁 荆 璟 憬 旌 警 镜 箐
jionɡ 炅 炯
jiu 九 久 究 玖
ju 巨 局 居 炬 钜 俱 举 驹 菊 橘 琚 聚
juɑn 涓 娟 娟 鹃 绢
jue 珏 觉 爵 崛
jun 君 军 隽 俊 骏 峻 钧 均 郡 珺
----------------------------------------------------------------------
K 18个
kɑ 卡
kɑi 开 凯 恺 楷 锴
kɑn 看
kɑnɡ 康
kɑo 靠
ke 可 克 柯 珂 恪 科 颗
ken 肯 恳
kenɡ 坑
konɡ 空
kou 蔻
ku 库 酷
kuɑ 夸 跨
kuɑi 快
kuɑn 宽
kuɑnɡ 矿 旷
kui 奎 葵 魁 逵
kun 昆 焜 锟 鲲 琨 坤 堃
kuo 扩 廓 阔
----------------------------------------------------------------------
L 25个
lɑ 拉
lɑi 来 莱
lɑn 兰 烂 岚 览 蓝 篮 斓 澜
lɑnɡ 郎 朗 浪 琅 廊
lɑo 老 劳
le 乐
lei 雷 蕾 垒 磊 镭
lenɡ 冷
li 力 历 立 里 礼 利 丽 理 俪 莉 粒 荔 俐 黎 鲤 鹂 励 砺 梨
liɑ 俩
liɑn 连 莲 恋 怜 帘 联 廉 涟 琏
liɑnɡ 两 良 量 凉 亮 梁 凉 谅 粮 粱 靓
liɑo 辽
lie 烈
lin 林 临 琳 霖 粼 麟 璘
linɡ 令 灵 凌 玲 领 岭 羚 菱 翎 瓴 龄 铃
liu 流 柳
lonɡ 龙 珑 隆
lou 楼
lu 路 陆 禄 鹿 璐 露 鹭 麓
lü 绿 旅
luɑn 鸾
lüe 略
lun 伦 论
luo 罗 萝 洛
---------------------------------------------------------------------
M 18个
mɑ 马 玛
mɑi 麦 迈
mɑn 曼 蔓 漫 嫚
mɑnɡ 芒 茫
mɑo 卯 猫 茂
me 么
mei 玫 妹 美 莓 眉 梅 媚 湄 魅 鹛
men 门
menɡ 蒙 萌 梦 猛 檬 盟 朦 濛
mi 米 觅 蜜 密 幂 迷 咪
miɑn 眠 勉 棉 冕
miɑo 苗 妙 秒 淼 渺
mie 灭
min 民 旻 敏 闽
minɡ 名 茗 铭 明 鸣
mo 茉 默 墨
mou 谋
mu 木 沐 牧 暮 慕
----------------------------------------------------------------------
N 23个
nɑ 纳 娜
nɑi 乃 奈 耐
nɑn 南 楠
nɑnɡ 囊
nɑo 闹
nei 内
nen 嫩
nenɡ 能
ni 泥 妮
niɑn 年 念
niɑnɡ 娘
niɑo 袅
nie 聂
nin 您
ninɡ 宁 柠 凝
niu 牛 妞 纽
nonɡ 农
nou 耨
nu 努
nü 女
nuɑn 暖
nüe 虐
nuo 诺
----------------------------------------------------------------------
O 1个
ou 鸥 欧
----------------------------------------------------------------------
P 17个
pɑ 葩
pɑi 派 湃
pɑn 盼 盘 磐 攀 畔 蟠
pɑnɡ 胖
pɑo 跑
pei 沛 佩 培 霈
pen 喷
penɡ 朋 捧 蓬 澎 鹏
pi 皮
piɑn 片 篇 翩
piɑo 漂 飘
pie 瞥
pin 品
pinɡ 平 苹 屏 萍
po 魄
pou 剖
pu 朴 圃 普 璞
----------------------------------------------------------------------
Q 14个
qi 齐 奇 其 启 起 杞 玘 琪 绮 旗 祺 栖 萁 淇 骐 棋 琦 麒
qiɑ 恰
qiɑn 千 芊 茜 前 浅 谦 倩 迁 乾 骞
qiɑnɡ 蔷 强
qiɑo 乔 巧 俏 桥 翘 樵
qie 茄
qin 亲 芹 琴 勤 钦
qinɡ 庆 青 清 情 请 轻 晴 倾 卿 擎
qionɡ 琼 穹
qiu 秋
qu 曲 趣
quɑn 全 权 荃 诠 泉 铨
que 雀 鹊
qun 群
----------------------------------------------------------------------
R 14个
rɑn 冉 苒 染 然 燃
rɑnɡ 让
rɑo 饶
re 热
ren 壬 认 仁 任 韧 忍
renɡ 仍
ri 日
ronɡ 荣 容 蓉 榕 融 熔 镕 嵘 瑢
rou 柔
ru 如 茹 汝 儒
ruɑn 软
rui 芮 锐 瑞 睿 蕊
run 闰 润
ruo 若
----------------------------------------------------------------------
S 34个
sɑ 洒 飒
sɑi 赛
sɑn 三 伞
sɑnɡ 桑
sɑo 骚
se 色
sen 森
senɡ 僧
shɑ 沙 莎
shɑi 晒
shɑn 山 闪 杉 善 姗 珊
shɑnɡ 上 尚
shɑo 少 芍 韶
she 舍 社
shen 申 神 绅 身 慎 深 燊
shenɡ 圣 生 声 升 笙 胜 盛 晟 乘
shi 十 石 士 识 世 实 仕 适 诗 师 施 狮
shou 首 守 寿 收
shu 术 书 舒 树 姝 枢 殊 疏 曙 淑 蜀
shuɑ 耍
shuɑi 帅 率
shuɑn 栓
shuɑnɡ 双 爽 霜
shui 水
shun 舜 顺
shuo 朔 硕 烁 铄
si 四 思 巳 斯 丝
sonɡ 送 松 颂 耸 嵩
sou 搜
su 苏 速 粟 素
suɑn 算
sui 岁 随 穗
sun 笋
suo 索 锁
----------------------------------------------------------------------
T 19个
tɑ 塔 踏
tɑi 太 泰
tɑn 探 檀
tɑnɡ 堂 棠
tɑo 滔 涛 淘 韬 桃 焘
te 特
tenɡ 腾
ti 提
tiɑn 天 田 甜 恬 添
tiɑo 迢 跳
tie 铁
tinɡ 婷
tonɡ 同 桐 同 童 彤 统
tou 投
tu 土 图 途
tuɑn 团
tui 推
tun 吞
tuo 拓
----------------------------------------------------------------------
W 9个
wɑ 娃 娲 蛙
wɑi 外
wɑn 万 玩 湾 菀 婉 莞 晚 弯
wɑnɡ 王 旺 汪 望
wei 未 卫 为 苇 伟 维 巍 薇 威
wen 文 玟 问 雯 闻
wenɡ 嗡
wo 我 沃
wu 五 吾 午 舞 戊 武
----------------------------------------------------------------------
X 14个
xi 西 兮 习 汐 喜 细 希 溪 玺 席 惜 熙 禧 曦 熹
xiɑ 侠 夏 霞 遐
xiɑn 先 仙 显 闲 贤 献 鲜 现 弦 娴 咸 宪 羡
xiɑnɡ 向 相 香 想 享 象 祥 响 翔
xiɑo 小 笑 孝 箫 啸 潇 霄 晓 骁 筱
xie 协 谐
xin 心 辛 欣 芯 昕 新 信 馨 鑫
xinɡ 兴 杏 幸 星 醒
xionɡ 雄
xiu 秀 袖 修 绣
xu 戌 旭 续 需 须 绪
xuɑn 玄 选 轩 煊 萱 旋 暄 宣 炫 绚 瑄 璇
xue 学 雪
xun 寻 迅 巡 洵 勋 逊
----------------------------------------------------------------------
Y 15个
yɑ 丫 亚 芽 娅 雅
yɑn 言 炎 严 彦 妍 艳 焱 燕 颜 延 岩 雁 砚 琰 嫣 俨
yɑnɡ 羊 央 阳 杨 养 洋 扬
yɑo 尧 要 瑶 遥 垚 耀
ye 业 叶 野 烨
yi 一 乙 弋 义 已 以 亿 忆 艺 亦 仪 怡 奕 弈 异 伊 易 宜 怿 翌 益 意 依 铱 轶 绎 译 贻 逸 羿 毅 颐 翊 谊 熠 翼
yin 印 寅 吟 音 荫 茵 垠
yinɡ 应 英 莹 映 樱 莺 颖 鹰 瑛 营 迎 影 缨 璎 滢 盈 颍
yo 哟
yonɡ 永 咏 勇 泳 拥 雍
you 又 尤 酉 由 友 有 优 佑 幼 幽 柚 悠 游
yu 予 玉 羽 昱 宇 鱼 禹 余 雨 语 欲 育 钰 愈 愉 裕 誉 瑜 煜 渔 豫 渝
yuɑn 元 远 原 园 苑 媛 源 渊 愿 援
yue 月 岳 悦 越 跃 钥 玥
yun 云 匀 允 芸 运 昀 耘 纭 韵 蕴
----------------------------------------------------------------------
Z 36个
zɑ 咋
zɑi 在 再
zɑn 赞 瓒
zɑnɡ 奘
zɑo 早 枣 藻
ze 则 泽
zei 贼
zen 怎
zenɡ 赠 增
zhɑ 闸
zhɑi 斋
zhɑn 占 站 展 战 湛 瞻 绽
zhɑnɡ 章 璋
zhɑo 兆 召 昭 照 朝 肇 钊
zhe 哲 喆
zhen 贞 真 珍 镇 振 震 祯 臻
zhenɡ 正 争 峥 铮 征 政 筝
zhi 之 芝 至 志 知 枝 直 智 致 质 植
zhonɡ 中 众 忠 仲
zhou 州 舟 周 洲
zhu 竹 祝 柱 珠 逐 筑 铸
zhuɑ 抓
zhuɑi 拽
zhuɑn 专
zhuɑnɡ 庄 壮
zhui 追
zhun 准
zhuo 卓 灼
zi 子 自 籽 紫 梓 姿
zonɡ 总 宗 棕
zou 走 奏
zu 祖
zuɑn 钻
zui 最 醉
zun 尊 遵
zuo 左 佐 作
需求:
现在我们做一个窗体应用程序,显示出所有的汉语拼音,以及声母与韵母合并在一起是否可组成有效拼接,如果无效,就按×标识,点击某一个单元格可以显示是否可组成拼接,如果可组成拼音,就显示出示例汉字。
新建窗体应用程序ChinesePhoneticDemo
将默认的Form1重命名为FormChinesePhonetic,
窗体FormChinesePhonetic的设计器代码如下:
文件FormChinesePhonetic.Designer.cs
namespace ChinesePhoneticDemo
{partial class FormChinesePhonetic{/// <summary>/// 必需的设计器变量。/// </summary>private System.ComponentModel.IContainer components = null;/// <summary>/// 清理所有正在使用的资源。/// </summary>/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>protected override void Dispose(bool disposing){if (disposing && (components != null)){components.Dispose();}base.Dispose(disposing);}#region Windows 窗体设计器生成的代码/// <summary>/// 设计器支持所需的方法 - 不要修改/// 使用代码编辑器修改此方法的内容。/// </summary>private void InitializeComponent(){this.dgvPhonetic = new System.Windows.Forms.DataGridView();this.rtxtMessage = new System.Windows.Forms.RichTextBox();((System.ComponentModel.ISupportInitialize)(this.dgvPhonetic)).BeginInit();this.SuspendLayout();// // dgvPhonetic// this.dgvPhonetic.AllowUserToAddRows = false;this.dgvPhonetic.AllowUserToDeleteRows = false;this.dgvPhonetic.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;this.dgvPhonetic.Location = new System.Drawing.Point(2, 2);this.dgvPhonetic.Name = "dgvPhonetic";this.dgvPhonetic.ReadOnly = true;this.dgvPhonetic.RowHeadersWidth = 25;this.dgvPhonetic.RowTemplate.Height = 23;this.dgvPhonetic.Size = new System.Drawing.Size(1681, 837);this.dgvPhonetic.TabIndex = 0;this.dgvPhonetic.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPhonetic_CellClick);this.dgvPhonetic.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPhonetic_CellContentClick);this.dgvPhonetic.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPhonetic_CellEnter);// // rtxtMessage// this.rtxtMessage.Location = new System.Drawing.Point(12, 845);this.rtxtMessage.Name = "rtxtMessage";this.rtxtMessage.ReadOnly = true;this.rtxtMessage.Size = new System.Drawing.Size(990, 114);this.rtxtMessage.TabIndex = 1;this.rtxtMessage.Text = "";// // FormChinesePhonetic// this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;this.ClientSize = new System.Drawing.Size(1675, 961);this.Controls.Add(this.rtxtMessage);this.Controls.Add(this.dgvPhonetic);this.Name = "FormChinesePhonetic";this.Text = "汉语拼音表格【斯内科】";this.Load += new System.EventHandler(this.FormChinesePhonetic_Load);((System.ComponentModel.ISupportInitialize)(this.dgvPhonetic)).EndInit();this.ResumeLayout(false);}#endregionprivate System.Windows.Forms.DataGridView dgvPhonetic;private System.Windows.Forms.RichTextBox rtxtMessage;}
}
窗体FormChinesePhonetic逻辑代码如下:
文件FormChinesePhonetic.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;namespace ChinesePhoneticDemo
{public partial class FormChinesePhonetic : Form{/// <summary>/// 有效的汉语拼音组合列表/// 所有汉语拼音组合与示例汉字/// </summary>static Dictionary<string, string> validPhoneticCombination = new Dictionary<string, string>(){{"a", "阿"},{"ai", "爱"},{"an","安"},{"ang","昂"},{"ao","奥"},{"ba","八"},{"bai","白"},{"ban","办"},{"bang","帮"},{"bao","宝"},{"bei","贝"},{"ben","本"},{"beng","崩"},{"bi","比"},{"bian","边"},{"biao","表"},{"bie","别"},{"bin","宾"},{"bing","冰"},{"bo","波"},{"bu","布"},{"ca","擦"},{"cai","菜"},{"can","餐"},{"cang","仓"},{"cao","草"},{"ce","测"},{"cen","岑"},{"ceng","层"},{"cha","茶"},{"chai","钗"},{"chan","产"},{"chang","厂"},{"chao","超"},{"che","车"},{"chen","晨"},{"cheng","成"},{"chi","吃"},{"chong","虫"},{"chou","抽"},{"chu","出"},{"chuai","踹"},{"chuan","川"},{"chuang","床"},{"chui","吹"},{"chun","春"},{"chuo","戳"},{"ci","次"},{"cong","从"},{"cou","凑"},{"cu","粗"},{"cuan","篡"},{"cui","翠"},{"cun","村"},{"cuo","错"},{"da","大"},{"dai","带"},{"dan","丹"},{"dang","当"},{"dao","到"},{"de","德"},{"deng","灯"},{"di","低"},{"dian","点"},{"diao","雕"},{"die","叠"},{"ding","丁"},{"diu","丢"},{"dong","冬"},{"dou","斗"},{"du","读"},{"duan","端"},{"dui","对"},{"dun","盾"},{"duo","多"},{"e","鹅"},{"en","恩"},{"er","耳"},{"fa","发"},{"fan","凡"},{"fang","方"},{"fei","飞"},{"fen","分"},{"feng","风"},{"fo","佛"},{"fou","否"},{"fu","福"},{"ga","嘎"},{"gai","该"},{"gan","甘"},{"gang","刚"},{"gao","高"},{"ge","哥"},{"gei","给"},{"gen","根"},{"geng","更"},{"gong","工"},{"gou","勾"},{"gu","谷"},{"gua","瓜"},{"guai","怪"},{"guan","关"},{"guang","光"},{"gui","龟"},{"gun","棍"},{"guo","国"},{"ha","哈"},{"hai","海"},{"han","汉"},{"hang","航"},{"hao","好"},{"he","喝"},{"hei","黑"},{"hen","很"},{"heng","恒"},{"hong","红"},{"hou","后"},{"hu","呼"},{"hua","花"},{"huai","怀"},{"huan","欢"},{"huang","黄"},{"hui","灰"},{"hun","婚"},{"huo","火"},{"ji","计"},{"jia","家"},{"jian","坚"},{"jiang","江"},{"jiao","交"},{"jie","杰"},{"jin","金"},{"jing","晶"},{"jiong","窘"},{"jiu","九"},{"ju","巨"},{"juan","卷"},{"jue","决"},{"jun","君"},{"ka","卡"},{"kai","开"},{"kan","看"},{"kang","康"},{"kao","靠"},{"ke","可"},{"ken","肯"},{"keng","坑"},{"kong","空"},{"kou","口"},{"ku","哭"},{"kua","夸"},{"kuai","快"},{"kuan","宽"},{"kuang","狂"},{"kui","亏"},{"kun","昆"},{"kuo","括"},{"la","拉"},{"lai","来"},{"lan","蓝"},{"lang","狼"},{"lao","老"},{"le","乐"},{"lei","雷"},{"leng","冷"},{"li","力"},{"lia","俩"},{"lian","连"},{"liang","良"},{"liao","料"},{"lie","列"},{"lin","林"},{"ling","零"},{"liu","流"},{"long","龙"},{"lou","楼"},{"lu","鲁"},{"lü","绿"},{"luan","乱"},{"lüe","略"},{"lun","轮"},{"luo","落"},{"ma","马"},{"mai","麦"},{"man","满"},{"mang","忙"},{"mao","猫"},{"me","么"},{"mei","没"},{"men","门"},{"meng","梦"},{"mi","米"},{"mian","面"},{"miao","秒"},{"mie","灭"},{"min","民"},{"ming","明"},{"mo","磨"},{"mou","谋"},{"mu","木"},{"na","拿"},{"nai","奶"},{"nan","南"},{"nang","囊"},{"nao","闹"},{"nei","内"},{"nen","嫩"},{"neng","能"},{"ni","你"},{"nian","年"},{"niang","娘"},{"niao","鸟"},{"nie","聂"},{"nin","您"},{"ning","宁"},{"niu","牛"},{"nong","农"},{"nou","耨"},{"nu","奴"},{"nü","女"},{"nuan","暖"},{"nüe","虐"},{"nuo","诺"},{"ou","偶"},{"pa","爬"},{"pai","排"},{"pan","盘"},{"pang","旁"},{"pao","跑"},{"pei","配"},{"pen","盆"},{"peng","朋"},{"pi","皮"},{"pian","片"},{"piao","飘"},{"pie","瞥"},{"pin","拼"},{"ping","平"},{"po","破"},{"pou","剖"},{"pu","普"},{"qi","七"},{"qia","恰"},{"qian","前"},{"qiang","枪"},{"qiao","巧"},{"qie","切"},{"qin","亲"},{"qing","请"},{"qiong","穷"},{"qiu","求"},{"qu","区"},{"quan","全"},{"que","缺"},{"qun","群"},{"ran","然"},{"rang","让"},{"rao","绕"},{"re","热"},{"ren","人"},{"reng","仍"},{"ri","日"},{"rong","荣"},{"rou","柔"},{"ru","如"},{"ruan","软"},{"run","闰"},{"rui","锐"},{"ruo","弱"},{"sa","洒"},{"sai","赛"},{"san","三"},{"sang","桑"},{"sao","扫"},{"se","色"},{"sen","森"},{"seng","僧"},{"sha","杀"},{"shai","晒"},{"shan","山"},{"shang","上"},{"shao","少"},{"she","蛇"},{"shen","深"},{"sheng","圣"},{"shi","是"},{"shou","手"},{"shu","书"},{"shua","刷"},{"shuai","帅"},{"shuan","栓"},{"shuang","双"},{"shui","水"},{"shun","顺"},{"shuo","硕"},{"si","死"},{"song","松"},{"sou","搜"},{"su","素"},{"suan","酸"},{"sui","岁"},{"sun","孙"},{"suo","锁"},{"ta","塔"},{"tai","太"},{"tan","坦"},{"tang","堂"},{"tao","逃"},{"te","特"},{"teng","疼"},{"ti","体"},{"tian","天"},{"tiao","条"},{"tie","铁"},{"ting","亭"},{"tong","同"},{"tou","头"},{"tu","土"},{"tuan","团"},{"tui","推"},{"tun","吞"},{"tuo","脱"},{"wa","挖"},{"wai","外"},{"wan","玩"},{"wang","王"},{"wei","位"},{"wen","文"},{"weng","翁"},{"wo","我"},{"wu","五"},{"xi","西"},{"xia","夏"},{"xian","先"},{"xiang","香"},{"xiao","小"},{"xie","写"},{"xin","新"},{"xing","星"},{"xiong","熊"},{"xiu","休"},{"xu","徐"},{"xuan","选"},{"xue","学"},{"xun","寻"},{"ya","压"},{"yan","盐"},{"yang","杨"},{"yao","药"},{"ye","叶"},{"yi","一"},{"yin","引"},{"ying","鹰"},{"yo","哟"},{"yong","用"},{"you","有"},{"yu","鱼"},{"yuan","圆"},{"yue","月"},{"yun","云"},{"za","杂"},{"zai","再"},{"zan","暂"},{"zang","脏"},{"zao","早"},{"ze","择"},{"zei","贼"},{"zen","怎"},{"zeng","赠"},{"zha","炸"},{"zhai","宅"},{"zhan","战"},{"zhang","张"},{"zhao","赵"},{"zhe","这"},{"zhen","真"},{"zheng","正"},{"zhi","值"},{"zhong","中"},{"zhou","周"},{"zhu","竹"},{"zhua","爪"},{"zhuai","拽"},{"zhuan","转"},{"zhuang","壮"},{"zhui","追"},{"zhun","准"},{"zhuo","桌"},{"zi","字"},{"zong","总"},{"zou","走"},{"zu","组"},{"zuan","钻"},{"zui","最"},{"zun","尊"},{"zuo","左"},};public FormChinesePhonetic(){InitializeComponent();}private void FormChinesePhonetic_Load(object sender, EventArgs e){//声母23个,需要增加 行头 和 无声母两种情况string[] initialArray = new string[25]{"韵母\\声母", "b", "p", "m", "f", "d", "t", "n", "l", "g", "k", "h", "j", "q", "x", "zh", "ch", "sh", "r", "z", "c", "s", "y", "w", "(无声母)"};dgvPhonetic.EnableHeadersVisualStyles = false;//改变DataGridView的列标题字体颜色,需要加上该行,否则改变列头颜色无效//加载数据表格的列for (int i = 0; i < initialArray.Length; i++){ DataGridViewTextBoxColumn dgvcOnset = new DataGridViewTextBoxColumn();dgvcOnset.HeaderText = initialArray[i];dgvcOnset.Name = $"dgvc{i + 1}";dgvcOnset.ReadOnly = true;//列头显示为红色粗体dgvcOnset.HeaderCell.Style.Font = new Font("宋体", 9F, FontStyle.Bold);dgvcOnset.HeaderCell.Style.ForeColor = Color.Red;if (i == 0) {//韵母列显示为蓝色粗体dgvcOnset.DefaultCellStyle.Font = new Font("宋体", 9F, FontStyle.Bold);dgvcOnset.DefaultCellStyle.ForeColor = Color.Blue;}if (i == 0 || i + 1 == initialArray.Length){dgvcOnset.Width = 90;}else{dgvcOnset.Width = 65;}dgvPhonetic.Columns.Add(dgvcOnset);}dgvPhonetic.Rows.Clear(); //加载数据表格的行//韵母24个,连音10个,共34个:string[] finalConsonantArray = new string[34]{"a","o","e","i","u","ü","ai","ei","ui","ao","ou","iu","ie","üe","er","an","en","in","un","ün","ang","eng","ing","ong","ia","ian","iang","iao","iong","ua","uai","uan","uang","uo"};for (int i = 0; i < finalConsonantArray.Length; i++){string[] datas = new string[initialArray.Length];datas[0] = finalConsonantArray[i];for (int j = 1; j < initialArray.Length - 1; j++){string phonetic = $"{initialArray[j]}{finalConsonantArray[i]}";//声母韵母拼接形成【拼音】datas[j] = validPhoneticCombination.ContainsKey(phonetic) ? phonetic : "×";}datas[initialArray.Length - 1] = validPhoneticCombination.ContainsKey(finalConsonantArray[i]) ? finalConsonantArray[i] : "×";dgvPhonetic.Rows.Add(datas);}}private void dgvPhonetic_CellContentClick(object sender, DataGridViewCellEventArgs e){rtxtMessage.Clear();if (e.ColumnIndex <= 0 || e.RowIndex < 0) {return;}//onset and rime 首尾音,声母韵母string onset = dgvPhonetic.Columns[e.ColumnIndex].HeaderText;if (e.ColumnIndex == dgvPhonetic.Columns.Count - 1) {onset = string.Empty;//最后一列无声母}string rime = Convert.ToString(dgvPhonetic[0, e.RowIndex].Value);string example = validPhoneticCombination.ContainsKey($"{onset}{rime}") ? validPhoneticCombination[$"{onset}{rime}"] : "";rtxtMessage.Text = $"声母:{onset}\n韵母:{rime}\n拼音:{onset}{rime}\n显示:{dgvPhonetic[e.ColumnIndex, e.RowIndex].Value}\n示例:{example}";}private void dgvPhonetic_CellClick(object sender, DataGridViewCellEventArgs e){dgvPhonetic_CellContentClick(sender, e);}private void dgvPhonetic_CellEnter(object sender, DataGridViewCellEventArgs e){dgvPhonetic_CellContentClick(sender, e);}}
}
程序运行如图:
①有效汉语拼音
②无效汉语拼音