根据字母表的顺序,以每个字母为单词的第一个字母写出单词:
C# 汉字转为拼音,然后再按照自己定义的规则进行排序
Code Snippet
public class chs2py
{///
///将汉字转换成为拼音
///
private static int[] pyvalue=new int[]{-20319,-20317,-20304,-20295,-20292,-20283,-20265,-20257,-20242,-20230,-20051,-20036,-20032,-20026,
-20002,-19990,-19986,-19982,-19976,-19805,-19784,-19775,-19774,-19763,-19756,-19751,-19746,-19741,-19739,-19728,
-19725,-19715,-19540,-19531,-19525,-19515,-19500,-19484,-19479,-19467,-19289,-19288,-19281,-19275,-19270,-19263,
-19261,-19249,-19243,-19242,-19238,-19235,-19227,-19224,-19218,-19212,-19038,-19023,-19018,-19006,-19003,-18996,
-18977,-18961,-18952,-18783,-18774,-18773,-18763,-18756,-18741,-18735,-18731,-18722,-18710,-18697,-18696,-18526,
-18518,-18501,-18490,-18478,-18463,-18448,-18447,-18446,-18239,-18237,-18231,-18220,-18211,-18201,-18184,-18183,
-18181,-18012,-17997,-17988,-17970,-17964,-17961,-17950,-17947,-17931,-17928,-17922,-17759,-17752,-17733,-17730,
-17721,-17703,-17701,-17697,-17692,-17683,-17676,-17496,-17487,-17482,-17468,-17454,-17433,-17427,-17417,-17202,
-17185,-16983,-16970,-16942,-16915,-16733,-16708,-16706,-16689,-16664,-16657,-16647,-16474,-16470,-16465,-16459,
-16452,-16448,-16433,-16429,-16427,-16423,-16419,-16412,-16407,-16403,-16401,-16393,-16220,-16216,-16212,-16205,
-16202,-16187,-16180,-16171,-16169,-16158,-16155,-15959,-15958,-15944,-15933,-15920,-15915,-15903,-15889,-15878,
-15707,-15701,-15681,-15667,-15661,-15659,-15652,-15640,-15631,-15625,-15454,-15448,-15436,-15435,-15419,-15416,
-15408,-15394,-15385,-15377,-15375,-15369,-15363,-15362,-15183,-15180,-15165,-15158,-15153,-15150,-15149,-15144,
-15143,-15141,-15140,-15139,-15128,-15121,-15119,-15117,-15110,-15109,-14941,-14937,-14933,-14930,-14929,-14928,
-14926,-14922,-14921,-14914,-14908,-14902,-14894,-14889,-14882,-14873,-14871,-14857,-14678,-14674,-14670,-14668,
-14663,-14654,-14645,-14630,-14594,-14429,-14407,-14399,-14384,-14379,-14368,-14355,-14353,-14345,-14170,-14159,
-14151,-14149,-14145,-14140,-14137,-14135,-14125,-14123,-14122,-14112,-14109,-14099,-14097,-14094,-14092,-14090,
-14087,-14083,-13917,-13914,-13910,-13907,-13906,-13905,-13896,-13894,-13878,-13870,-13859,-13847,-13831,-13658,
-13611,-13601,-13406,-13404,-13400,-13398,-13395,-13391,-13387,-13383,-13367,-13359,-13356,-13343,-13340,-13329,
-13326,-13318,-13147,-13138,-13120,-13107,-13096,-13095,-13091,-13076,-13068,-13063,-13060,-12888,-12875,-12871,
-12860,-12858,-12852,-12849,-12838,-12831,-12829,-12812,-12802,-12607,-12597,-12594,-12585,-12556,-12359,-12346,
-12320,-12300,-12120,-12099,-12089,-12074,-12067,-12058,-12039,-11867,-11861,-11847,-11831,-11798,-11781,-11604,
-11589,-11536,-11358,-11340,-11339,-11324,-11303,-11097,-11077,-11067,-11055,-11052,-11045,-11041,-11038,-11024,
-11020,-11019,-11018,-11014,-10838,-10832,-10815,-10800,-10790,-10780,-10764,-10587,-10544,-10533,-10519,-10331,
-10329,-10328,-10322,-10315,-10309,-10307,-10296,-10281,-10274,-10270,-10262,-10260,-10256,-10254};
private static string[] pystr=new 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","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","lv","luan","lue","lun","luo",
"ma","mai","man","mang","mao","me","mei","men","meng","mi","mian","miao","mie","min","ming","miu","mo","mou","mu",
"na","nai","nan","nang","nao","ne","nei","nen","neng","ni","nian","niang","niao","nie","nin","ning","niu","nong",
"nu","nv","nuan","nue","nuo","o","ou","pa","pai","pan","pang","pao","pei","pen","peng","pi","pian","piao","pie",
"pin","ping","po","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","rui","run","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 chs2py()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
public static string convert(string chrstr)
{
byte[] array = new byte[2];
string returnstr="";
int chrasc=0;
int i1 = 0;
int i2 =0;
char[] nowchar=chrstr.ToCharArray();
for (int j=0;j<nowchar.Length ;j++)
{
array = System.Text.Encoding.Default.GetBytes(nowchar[j].ToString ());
i1 = (short)(array[0] );
i2 = (short)(array[1] );
chrasc=i1*256+i2-65536;
if (chrasc>0 && chrasc<160)
{
returnstr+=nowchar[j];
}
else
{
for (int i=(pyvalue.Length -1);i>=0;i--)
{
if (pyvalue[i]<=chrasc)
{
returnstr+=pystr[i];
break;
}
}
}
}
return returnstr;
}
}
http://social.microsoft.com/forums/zh-CN/visualcshartzhchs/thread/be9d4c0d-8008-43ad-b8dd-e41a21a8c96f/
终于听懂你的问题了
你的问题是: 谁决定了为什么A是第一个, B是第二个. 对否?
有人给出的一个答麔案是, 这样的顺序是为了让孩子更加好记, 看起来似乎是这样. 其实尽管字母表起源已经不可考究, 可是实际上这样的顺序已经在3000多年内大致保持不变了.
英语以及其他一些欧洲语系的语言中的字母表, 来自semitic闪米特语, 而闪语则是采用的距今4000多年麔前的古埃曱及人的象形文麔字书写顺序. 当前使用的字母表, 最早出现在距今400多年麔前的叙利亚. 然后传播到闪米特语, 希腊语, 伊特鲁里亚,然后罗马语, 然后到现在的各类欧洲语系. 至于到底是哪位贤者吃饱了没事做安排的这个顺序, 谁都不知道.
至于为什么是ABC这个顺序而不是CBA, 这个还真没有太明显的原因. 比如说,现在的埃塞俄比亚用的字母顺序就来源于英语但是顺序就是不一样, 他们可能是根据字母形状来排序的. 阿麔拉麔伯语字母表则和英语字母表顺序基本一样, 但是根据形状和读音又有一些变化. 在古爱尔兰语-欧甘碑文麔字母表中, 用的就是B,L,F,...这种诡异的顺序. 德囯有一个古碑文, 上面的字母表顺序是 f,u,th,a,r,k... th做一个字.
字母最早出现在wū加里特人的wū加里特语中, 这wū加里特语是楔形文麔字, 字母顺序和后来出现的希伯来语, 腓尼基语基本一致, 希腊人在公元前800年左右引进腓尼基语. 又加了chi, upsilon俩字母. 过了大概一个世纪, 伊特鲁里亚人学到了希腊字母, 字母顺序得以保留, 但是发音变了, 比如alpha beta变成了ay, bee. 然后又是100年, 拉丁语学到了伊特鲁里亚语. 他们加入了G. 放在字母表第七个位置, 取代Z(Etruscan: zeta, Brithsh: zed). 几个世纪后Z又回来了, 代麔表希腊语的Zeta. 新加入Y, 代麔表upsilon. 因为这俩是新造出来的, 所以放在字母表的最最后.
现代英语的字母表基于23拉丁字母表, 新加入三个字, W, V和J. 原来的时候,两个U或者两个V一样的字母写在一起, 现在用W代替, 原来U和V不分,现在加入V,分开U和V. I和J就不清楚咋发明的了... 因为是相似字母,所以字母表里面也放在差不多的位置. 现在用的字母表大概在1700年左右确定下来.
这么一路看过来, 字母表顺序可以追溯到公元前14世纪的wū加里特语楔形文麔字. 但是到底是为啥呢! 反正现在也没定论, 所以大家都各种瞎猜. 不过有些人提出论调中, 谈到在闪米特语中, 相邻文麔字的意思是相关的--可能是偶然哈--比如说, 闪米特语中, 字母顺序: yod kaf lamed 代麔表 手臂 手掌, 赶牛羊的鞭麔子. 额.. 这个绝对是偶然... 其他的略微靠谱的解释包括星相学啊(神秘学占卜术,靠谱!), 苏美尔语麔音阶(宫商角徵羽,靠谱!), 或者干脆说上帝写出来的(噗!!!). 有个洒弹学者甚至说腓尼基人根据玛麔雅历fǎ给他们的字母命名和排序(喂喂喂,火星人离腓尼基人更近好不好). 额.反正差不多就是这些乱七八糟的解释啦.
归根结底呢, 有字母表的意义不在于是啥顺序, 而是终于特么有个顺序了.....
以上~
手打的...累死了...打完贴上来都贴了3,4次.
I--(ice) J--(join) K--(kill) L --(look) M--(mean) N--(nice) O--(OK) P--(pig)
Q--(quiet) R--(rain) S--(sale) T--(telephone) U--(use) V--(voice)
W--(watch) X--(x-ray) Y--(year) Z--(zoo)
all bus cell dirction experience full get hill
cost distance easy forever garden high
汉语拼音字母表的读法,怎么读
汉拼拼音字母表 汉语拼音(Hànyǔ Pīnyīn;英语:Chinese Pinyin、Hanyu Pinyin或Chinese Phonetic Alphabets)简称拼音(Pinyin),是中华人民共和国的汉字注音拉丁化方案,于1955年—1957年文字改革时被原中国文字改革委员会(现国家语言文字工作委员会)汉语拼音方案委员会研究制定。该拼音方案主要用于汉语...
26个英文字母的排序是怎样排的?
26个英文字母排序 26个英文字母表顺序 ABCDEFGHIJKLMNOPQRSTUVWXYZ 26个英文字母怎么排序 abcdefghijklmnopqrstuvw 请问ABCD,26个英文字母的排列 ABCDEFGHIJKLMNOPQRSTUVWXYZ 26个英文字母的读音字母是什么?(按顺序排) A a [ei] B b [bi:] C c [si:] D d [di:] E e [i:] F f ...
26个拼音字母表
由于零声母辅音听感并不十分明显,加之汉语拼音属于音位拼音而非音素拼音,汉语拼音方案不承认其声母地位,认为零声母音节是以元音开头的、没有声母而只有韵母和声调的音节。 汉语拼音方案规定的21个声母符号,按照《声母表》原顺序排列如下: 字母b p m f d t n l 发音ㄅ 玻ㄆ坡ㄇ摸ㄈ佛ㄉ得ㄊ特ㄋ讷ㄌ勒 字母...
63个拼音字母表图按顺序
63个拼音字母表按顺序:b、p、m、f、d、t、n、l、g、k、h、j、q、x、zh、ch、sh、r、z、c、s、y、w、a、o、e、i、u、ü、ai、ei、ui、ao、ou、iu、ie、üe、er、an、en、in、un、ün、ang、eng、ing、ong。拼音(汉语拼音)一般指汉语拼音(汉字注音拉丁化方案)从清末至近代...
你知道什么是 ABCD 游戏?
“ABCD”游戏,也被称为“字母接龙”或“字母游戏”,是一种语言类的娱乐活动。在这个游戏中,玩家需要按照字母表的顺序,依次说出一个以指定字母开头的单词,例如从A开始,然后到B,再到C,依此类推。游戏的目标是尽可能快地接龙,同时确保每个单词的首字母与上一个...
英文26个字母的大小写是怎样的?
大写 A B C D,小写 a b c d 英文26个字母的大小写:A a ,B b ,C c , D d , E e, F f , G g , H h ,I i , J j , K k , L l , M m, N n ,O o , P p, Q q, R r, S s, T t ,U u , V v, W w , X x...
24个字母怎么写
在腓尼基字母表中B叫beth,代表房屋,在希伯来语中B也叫beth,也含房屋之意。字母B原来形似原始社会的两室房屋,小写字母b是后来从大写字母B衍变出来的。在今 约旦河西岸有一犹太教,基督教圣地叫Bethlehem。 3、C c 字母C在腓尼基人的文字中叫gimel,代表骆驼。它在字母表中的排列顺序和希腊字母Γ(gamma)相同,实际...
26个英文字母是哪些?
在今 约旦河西岸有一犹太教,基督教圣地叫Bethlehem。该词中至今还包含着beth这一成分。B在字母表中之所以排在第二位也许是因为对人类的生存来说住的重要性仅次于衣食。3、C(c)字母C在腓尼基人的文字中叫gimel,代表骆驼。它在字母表中的排列顺序和希腊字母Γ(gamma)相同,实际上其字形是从后者演变...
英语字典的排列顺序
英语词典里的单词都是按照字母表的顺序(Aa —Zz)来排列的,也就是说所有以字母a开头的单词都排在最前面,接下去是以字母b, c…… 开头的词,最后为字母z开头的词。查某个词时,要先看该词的第一个字母是什么,在词典中找到以这个字母开头的单词,再看所要查找词的第二个字母、第三个字母、第...
澳门车牌号字母代表
1. 澳门车牌号的字母并不具备特定的象征意义。2. 车牌的分配不区分地区,而是根据字母表顺序进行。3. 车牌号码以字母“M”起始,按照车辆登记的时间顺序,依次以“MA”、“MB”、“MC”等格式排列。4. 澳门车牌为黑色,字体颜色为白色或黄色。5. 车牌的主要功能是为车辆提供唯一编号和信息登记,便于...
典泉阿胶:[答案] birthday writing again slabable
澳门特别行政区19731665434: 把打乱顺序的字母按顺序拼成单词1.t i x i g e n c2.s t r e n g i n i t e - ?
典泉阿胶:[答案] 1.exciting 兴奋的 2.interesting 有趣的
澳门特别行政区19731665434: 按字母的顺序写单词?postmannursedriverpolicewomandoctorteacherstudent1.( )2.( )3.( )4.( )5.( )6.( )7.( )8.( ) - ?
典泉阿胶:[答案] post man nurse driver police woman doctor teacher student 是帮孩子写作业吗?下次还是让他自己写吧
澳门特别行政区19731665434: 用字母 wxyz def def pqrs pqrs abc tuv pqrs 用这些字母按顺序组成英语单词 - ?
典泉阿胶:[答案] 有难度哦
澳门特别行政区19731665434: 英语按字母顺序写单词是什么意思 - ?
典泉阿胶: 就是按a至z的顺序为首字母写单词 如ant,banana,cat,dog,egg,fat……yellow,zero
澳门特别行政区19731665434: 用所给字母按正确的顺序组成单词 - ?
典泉阿胶: uoft=tofu豆腐 cahtw=watch表;观看 hserf= fresh 新鲜的 eciptur= picture图画
澳门特别行政区19731665434: 写出正确排列的单词按照正确的字母排列顺序.写出下面的单词.lerur . thmou . penershar . - ?
典泉阿胶:[答案] ruler尺子 mouth 嘴 sharpener铅笔刀
澳门特别行政区19731665434: 按字母的顺序写单词? - ?
典泉阿胶: post man nurse driver police woman doctor teacher student 是帮孩子写作业吗?下次还是让他自己写吧
澳门特别行政区19731665434: 把字母按顺序排列成单词?
典泉阿胶: birthday writing again slabable
澳门特别行政区19731665434: “以A为首字母的单词有那哪些 - ?
典泉阿胶: 以A为首字母的单词有:advertisement、apologize、ambulance、appearance、approach、appointment、appreciate、audience、average、abandon等.部分单词详解:1、advertisement:英 [ədˈvɜ:tɪsmənt]美 [,ædvɚ'taɪzmənt]n.广...