必威体育Betway必威体育官网
当前位置:首页 > IT技术

C# 名字五格测试

时间:2019-08-22 10:40:00来源:IT技术作者:seo实验室小编阅读:66次「手机版」
 

姓名五格测试

先申明,看着这个罗莊罗大师罗半仙的文章

https://blog.csdn.net/luozhuang/article/details/8725396

https://blog.csdn.net/luozhuang/article/details/8729523

他这是java版本的 

我看了下,把它改成了C#版本

直接上代码吧 比较乱 没有优化命名啥的都没动 只是能跑起来

public class LuozhuangNameClass
    {

        private int namesky;//天格
        private int nameearth;//地格
        private int nameout;//外格
        private int namepeople;//人格
        private int total;
        private int[] BH;//笔画数组
        private int[] wuxing;//五行数组
        private int[] nameliborder;//在库顺序
        private String name;
        //    天格计算法:天格是姓氏画数之和,但单复姓有区别。
        // 1  单姓氏:姓的文字画数+1。
        //    2  双姓氏或四字名:前两个字的笔画总数。
        //人格(主运):姓+名
        //人格是姓名之中心,与人一生之命运关系最紧密。凡欲判断人的吉凶,务先着眼此部,就能看出其人之中心命运性格和体质能力,是关系天格、地格之数理,变化无穷。
        //    人格计算法:人格就是姓的最下一字和名的最上一字的合计数。
        //    1  单姓氏:姓与第二个字笔画总数。
        //    2  双姓氏或四字名,第二个字与第三个字的笔画总和。
        //地格(前运):
        //地格是名字之全画数,亦称前运。主中年前的运势、与子女或下属的关系。
        //    地格计算法:是名字之全画数,亦称前运
        //    1  单姓氏:后两个字笔画总数。
        //    2  双姓氏或四字名:后两个字的笔画总数。
        //    3  单字名(即两字名):后一字笔画数加上“1”。
        //    总格(后运):姓与名之字画数之和称为总格。主壮年至晚年之命运。但壮年前亦颇有灵动。
        //    总格计算法:    姓氏连名全体笔画总数。
        //    外格(副运):总格减去人格的剩余数。其司命运之灵力,次于“主运”,别名“副运”。此格可见家族缘之厚薄或本人对社会之关系。
        //外格计算法:   姓名各字的笔画数全部相加(即总格),减去人格数。
        //如是单字名或单姓,结果再分别加1。
        //算法就是名字三个字姓氏补1,不够三个字后面补1 运算方法一样
        //天格0+1 人格1+2 地格2+3 外格0+3  ——大师♂罗莊
        Luozhuangnamewuxing myLuozhuangnamewuxing = new Luozhuangnamewuxing();

        public LuozhuangNameClass(String name)
        {
            this.name = name;
            nameliborder = myLuozhuangnamewuxing.getnameliborder(name);
            wuxing = myLuozhuangnamewuxing.getnameWX(nameliborder);
            BH = myLuozhuangnamewuxing.getnameBH(nameliborder);
            int[] nametemp = new int[] { 1, 1, 1, 1 };
            if (BH.Length == 4)
            {
                nametemp = BH;
                total = BH[0] + BH[1] + BH[2] + BH[3];
            }
            if (BH.Length == 3)
            {
                nametemp[1] = BH[0];
                nametemp[2] = BH[1];
                nametemp[3] = BH[2];
                total = BH[0] + BH[1] + BH[2];
            }
            if (BH.Length == 2)
            {
                nametemp[1] = BH[0];
                nametemp[2] = BH[1];
                total = BH[0] + BH[1];
            }
            namesky = nametemp[0] + nametemp[1];
            namepeople = nametemp[1] + nametemp[2];
            nameearth = nametemp[2] + nametemp[3];
            nameout = nametemp[0] + nametemp[3];

        }

        /**
         * 取笔画五行
         *
         * @return the namesky
         */
        public String getNameWX(int Bihua)
        {
            int tempwx_idx = myLuozhuangnamewuxing.myBhWxLib.get_wx_idx(Bihua);
            if (tempwx_idx == -1)
            {
                return ("没有收录该汉字");
            }
            return myLuozhuangnamewuxing.getnameWXnaying(tempwx_idx);
        }

        /**
         * @return the namesky
         */
        public int getNamesky()
        {
            return namesky;
        }

        /**
         * @return the nameearth
         */
        public int getNameearth()
        {
            return nameearth;
        }

        /**
         * @return the nameout
         */
        public int getNameout()
        {
            return nameout;
        }

        /**
         * @return the namepeople
         */
        public int getNamepeople()
        {
            return namepeople;
        }

        /**
         * @return the BH
         */
        public int[] getBH()
        {
            return BH;
        }

        /**
         * @return the wuxing
         */
        public int[] getWuxing()
        {
            return wuxing;
        }

        /**
         * @return the nameliborder
         */
        public int[] getNameliborder()
        {
            return nameliborder;
        }

        /**
         * @return the total
         */
        public int getTotal()
        {
            return total;
        }

        /**
         * @return the name
         */
        public String getName()
        {
            return name;
        }
    }


    /**名字测试
     *
     * @author luozhuang 大师♂罗莊
     */
    public class JavaLuozhuangtestnameClass
    {

        public List<ArraytotalModel> arraytotal = new List<ArraytotalModel>{
        new ArraytotalModel{Index="1", JxDetails="(太极之数)太极之数,万物开泰,生发无穷,利禄亨通。",Jx= "(吉)"},
        new ArraytotalModel{Index="2", JxDetails="(两仪之数)两仪之数,混沌未开,进退保守,志望难达。",Jx= "(凶)"},
        new ArraytotalModel{Index="3", JxDetails="(三才之数)三才之数,天地人和,大事大业,繁荣昌隆。",Jx= "(吉)"},
        new ArraytotalModel{Index="4", JxDetails="(四象之数)四象之数,待于生发,万事慎重,不具营谋。",Jx= "(凶)"},
        new ArraytotalModel{Index="5", JxDetails="(五行之数)五行俱权,循环相生,圆通畅达,福祉无穷。",Jx= "(吉)"},
        new ArraytotalModel{Index="6", JxDetails="(六爻之数)六爻之数,发展变化,天赋美德,吉祥安泰。",Jx= "(吉)"},
        new ArraytotalModel{Index="7", JxDetails="(七政之数)七政之数,精悍严谨,天赋之力,吉星照耀。",Jx= "(吉)"},
        new ArraytotalModel{Index="8", JxDetails="(八卦之数)八卦之数,乾坎艮震,巽离坤兑,无穷无尽。",Jx=  "(半吉)"},
        new ArraytotalModel{Index="9", JxDetails="(大成之数)大成之数,蕴涵凶险,或成或败,难以把握。",Jx= "(凶)"},
        new ArraytotalModel{Index="10",JxDetails= "(终结之数)终结之数,雪暗飘零,偶或有成,回顾茫然。",Jx= "(凶)"},
        new ArraytotalModel{Index="11", JxDetails="(旱苗逢雨)万物更新,调顺发达,恢弘泽世,繁荣富贵。",Jx= "(吉)"},
        new ArraytotalModel{Index="12", JxDetails="(掘井无泉)无理之数,发展薄弱,虽生不足,难酬志向。",Jx= "(凶)"},
        new ArraytotalModel{Index="13", JxDetails="(春日牡丹)才艺多能,智谋奇略,忍柔当事,鸣奏大功。",Jx= "(吉)"},
        new ArraytotalModel{Index="14", JxDetails="(破兆)家庭缘薄,孤独遭难,谋事不达,悲惨不测。",Jx= "(凶)"},
        new ArraytotalModel{Index="15", JxDetails="(福寿)福寿圆满,富贵荣誉,涵养雅量,德高望重。",Jx= "(吉)"},
        new ArraytotalModel{Index="16", JxDetails="(厚重)厚重载德,安富尊荣,财官双美,功成名就。",Jx= "(吉)"},
        new ArraytotalModel{Index="17", JxDetails="(刚强)权威刚强,突破万难,如能容忍,必获成功。",Jx= "(半吉)"},
        new ArraytotalModel{Index="18", JxDetails="(铁镜重磨)权威显达,博得名利,且养柔德,功成名就。",Jx= "(半吉)"},
        new ArraytotalModel{Index="19", JxDetails="(多难)风云蔽日,辛苦重来,虽有智谋,万事挫折。",Jx= "(凶)"},
        new ArraytotalModel{Index="20", JxDetails="(屋下藏金)非业破运,灾难重重,进退维谷,万事难成。",Jx= "(凶)"},
        new ArraytotalModel{Index="21", JxDetails="(明月中天)光风霁月,万物确立,官运亨通,大搏名利。女性不宜此数。",Jx= "(吉)"},
        new ArraytotalModel{Index="22", JxDetails="(秋草逢霜)秋草逢霜,困难疾弱,虽出豪杰,人生波折。",Jx= "(凶)"},
        new ArraytotalModel{Index="23", JxDetails="(壮丽)旭日东升,壮丽壮观,权威旺盛,功名荣达。女性不宜此数。",Jx= "(吉)"},
        new ArraytotalModel{Index="24", JxDetails="(掘藏得金)家门余庆,金钱丰盈,白手成家,财源广进。",Jx= "(吉)"},
        new ArraytotalModel{Index="25", JxDetails="(荣俊)资性英敏,才能奇特,克服傲慢,尚可成功。",Jx= "(半吉)"},
        new ArraytotalModel{Index="26", JxDetails="(变怪)变怪之谜,英雄豪杰,波澜重叠,而奏大功。",Jx= "(凶)"},
        new ArraytotalModel{Index="27", JxDetails="(增长)欲望无止,自我强烈,多受毁谤,尚可成功。",Jx= "(半吉)"},
        new ArraytotalModel{Index="28", JxDetails="(阔水浮萍)遭难之数,豪杰气概,四海漂泊,终世浮躁。女性不宜此数。",Jx= "(凶)"},
        new ArraytotalModel{Index="29", JxDetails="(智谋)智谋优秀,财力归集,名闻海内,成就大业。",Jx= "(吉)"},
        new ArraytotalModel{Index="30", JxDetails="(非运)沉浮不定,凶吉难变,若明若暗,大成大败。",Jx= "(半吉)"},
        new ArraytotalModel{Index="31", JxDetails="(春日花开)智勇得志,博得名利,统领众人,繁荣富贵。",Jx= "(吉)"},
        new ArraytotalModel{Index="32", JxDetails="(宝马金鞍)侥幸多望,贵人得助,财帛如裕,繁荣至上。",Jx= "(吉)"},
        new ArraytotalModel{Index="33", JxDetails="(旭日升天)旭日升天,鸾凤相会,名闻天下,隆昌至极。女性不宜此数。",Jx= "(吉)"},
        new ArraytotalModel{Index="34", JxDetails="(破家)破家之身,见识短小,辛苦遭逢,灾祸至极。",Jx= "(凶)"},
        new ArraytotalModel{Index="35", JxDetails="(高楼望月)温和平静,智达通畅,文昌技艺,奏功洋洋。",Jx= "(吉)"},
        new ArraytotalModel{Index="36", JxDetails="(波澜重叠)波澜重叠,沉浮万状,侠肝义胆,舍己成仁。",Jx= "(半吉)"},
        new ArraytotalModel{Index="37", JxDetails="(猛虎出林)权威显达,热诚忠信,宜着雅量,终身荣富。",Jx= "(吉)"},
        new ArraytotalModel{Index="38", JxDetails="(磨铁成针)意志薄弱,刻意经营,才识不凡,技艺有成。",Jx= "(半吉)"},
        new ArraytotalModel{Index="39", JxDetails="(富贵荣华)富贵荣华,财帛丰盈,暗藏险象,德泽四方。",Jx= "(半吉)"},
        new ArraytotalModel{Index="40", JxDetails="(退安)智谋胆力,冒险投机,沉浮不定,退保平安。",Jx= "(半吉) "},
        new ArraytotalModel{Index="41", JxDetails="(有德)纯阳独秀,德高望重,和顺畅达,博得名利。此数为最大好运数。",Jx= "(吉)"},
        new ArraytotalModel{Index="42", JxDetails="(寒蝉在柳)博识多能,精通世情,如能专心,尚可成功。",Jx= "(半吉)"},
        new ArraytotalModel{Index="43", JxDetails="(散财破产)散财破产,诸事不遂,虽有智谋,财来财去。",Jx= "(凶)"},
        new ArraytotalModel{Index="44", JxDetails="(烦闷)破家亡身,暗藏惨淡,事不如意,乱世怪杰。",Jx= "(凶)"},
        new ArraytotalModel{Index="45", JxDetails="(顺风)新生泰和,顺风扬帆,智谋经纬,富贵繁荣。",Jx= "(吉)"},
        new ArraytotalModel{Index="46", JxDetails="(浪里淘金)载宝沉舟,浪里淘金,大难尝尽,大功有成。",Jx= "(半吉)"},
        new ArraytotalModel{Index="47", JxDetails="(点石成金)花开之象,万事如意,祯祥吉庆,天赋幸福。",Jx= "(吉)"},
        new ArraytotalModel{Index="48", JxDetails="(古松立鹤)智谋兼备,德量荣达,威望成师,洋洋大观。",Jx= "(吉)"},
        new ArraytotalModel{Index="49", JxDetails="(转变)吉临则吉,凶来则凶,转凶为吉,配好三才。",Jx= "(半吉)"},
        new ArraytotalModel{Index="50", JxDetails="(小舟入海)一成一败,吉凶参半,先得庇荫,后遭凄惨。",Jx= "(半吉)"},
        new ArraytotalModel{Index="51", JxDetails="(沉浮)盛衰交加,波澜重叠,如能慎始,必获成功。",Jx= "(半吉)"},
        new ArraytotalModel{Index="52", JxDetails="(达眼)卓识达眼,先见之明,智谋超群,名利双收。",Jx= "(吉)"},
        new ArraytotalModel{Index="53", JxDetails="(曲卷难星)外祥内患,外祸内安,先富后贫,先贫后富。",Jx= "(凶)"},
        new ArraytotalModel{Index="54", JxDetails="(石上栽花)石上栽花,难得有活,忧闷烦来,辛惨不绝。",Jx= "(凶)"},
        new ArraytotalModel{Index="55", JxDetails="(善恶)善善得恶,恶恶得善,吉到极限,反生凶险。",Jx= "(半吉)"},
        new ArraytotalModel{Index="56", JxDetails="(浪里行舟)历尽艰辛,四周障碍,万事龃龌,做事难成。",Jx= "(凶)"},
        new ArraytotalModel{Index="57", JxDetails="(日照春松)寒雪青松,夜莺吟春,必遭一过,繁荣白事。",Jx= "(吉)"},
        new ArraytotalModel{Index="58", JxDetails="(晚行遇月)沉浮多端,先苦后甜,宽宏扬名,富贵繁荣。",Jx= "(半吉)"},
        new ArraytotalModel{Index="59", JxDetails="(寒蝉悲风)寒蝉悲风,意志衰退,缺乏忍耐,苦难不休。",Jx= "(凶)"},
        new ArraytotalModel{Index="60", JxDetails="(无谋)无谋之人,漂泊不定,晦暝暗黑,动摇不安。",Jx= "(凶)"},
        new ArraytotalModel{Index="61", JxDetails="(牡丹芙蓉)牡丹芙蓉,花开富贵,名利双收,定享天赋。",Jx= "(吉)"},
        new ArraytotalModel{Index="62", JxDetails="(衰败)衰败之象,内外不和,志望难达,灾祸频来。",Jx= "(凶)"},
        new ArraytotalModel{Index="63", JxDetails="(舟归平海)富贵荣华,身心安泰,雨露惠泽,万事亨通。",Jx= "(吉)"},
        new ArraytotalModel{Index="64", JxDetails="(非命)骨肉分离,孤独悲愁,难得心安,做事不成。",Jx= "(凶)"},
        new ArraytotalModel{Index="65", JxDetails="(巨流归海)天长地久,家运隆昌,福寿绵长,事事成就。",Jx= "(吉)"},
        new ArraytotalModel{Index="66", JxDetails="(岩头步马)进退维谷,艰难不堪,等待时机,一跃而起。",Jx= "(凶)"},
        new ArraytotalModel{Index="67", JxDetails="(顺风通达)天赋幸运,四通八达,家道繁昌,富贵东来。",Jx= "(吉)"},
        new ArraytotalModel{Index="68", JxDetails="(顺风吹帆)智虑周密,集众信达,发明能智,拓展昂进。",Jx= "(吉)"},
        new ArraytotalModel{Index="69", JxDetails="(非业)非业非力,精神迫滞,灾害交至,遍偿痛苦。",Jx= "(凶)"},
        new ArraytotalModel{Index="70", JxDetails="(残菊逢霜)残菊逢霜,寂寞无碍,惨淡忧愁,晚景凄凉。",Jx= "(凶)"},
        new ArraytotalModel{Index="71", JxDetails="(石上金花)石上金花,内心劳苦,贯彻始终,定可昌隆。",Jx= "(半吉)"},
        new ArraytotalModel{Index="72", JxDetails="(劳苦)荣苦相伴,阴云覆月,外表吉祥,内实凶祸。",Jx= "(半吉)"},
        new ArraytotalModel{Index="73", JxDetails="(无勇)盛衰交加,徒有高志,天王福祉,终世平安。",Jx= "(半吉)"},
        new ArraytotalModel{Index="74", JxDetails="(残菊经霜)残菊经霜,秋叶寂寞,无能无智,辛苦繁多。",Jx= "(凶)"},
        new ArraytotalModel{Index="75", JxDetails="(退守)退守保吉,发迹甚迟,虽有吉象,无谋难成。",Jx= "(凶)"},
        new ArraytotalModel{Index="76", JxDetails="(离散)倾覆离散,骨肉分离,内外不和,虽劳无功。",Jx= "(凶)"},
        new ArraytotalModel{Index="77",JxDetails= "(半吉)家庭有悦,半吉半凶,能获援护,陷落不幸。",Jx= "(半吉)"},
        new ArraytotalModel{Index="78", JxDetails="(晚苦)祸福参半,先天智能,中年发达,晚景困苦。",Jx= "(凶)"},
        new ArraytotalModel{Index="79", JxDetails="(云头望月)云头望月,身疲力尽,穷迫不伸,精神不定。",Jx= "(凶)"},
        new ArraytotalModel{Index="80", JxDetails="(遁吉)辛苦不绝,早入隐遁,安心立命,化凶转吉。",Jx= "(凶)"},
        new ArraytotalModel{Index="81", JxDetails="(万物回春)最吉之数,还本归元,吉祥重叠,富贵尊荣。",Jx= "(吉)"}
        };

        public List<TdrgModel> arrayTDRG = new List<TdrgModel>{
        new TdrgModel{Td="木木木",Jx= "吉", JxDetails="★基礎安定,成功順調,希望到成,能向上發展,所求之事頗能如願;家業興隆,身心健全,保養得宜,能得長壽。若數理有凶,須防仇害之慮。"},
        new TdrgModel{Td="木木火",Jx= "吉", JxDetails="★天賦機智而靈敏,成功順調,少有障礙而向上發展,基礎運勢安泰;頗得人緣,受人之助而順調成功,能享受幸福、繁榮,一生有福壽。"},
        new TdrgModel{Td="木木土",Jx= "吉", JxDetails="★性情穩健,境遇堅固,幸福長壽;然,與人相處要培養寬恕之道。辛勤創業,一生可以吉順,尤其中年之後能夠一展才學;家庭美滿,妻賢子孝,晚年聚財。健康注意腸胃、肝疾。"},
        new TdrgModel{Td="木木金",Jx= "凶", JxDetails="★有轉動,難得平安,一生比較勞苦,精神壓力大;為人正直,比較缺乏耐性,有時候情緒很難掌控,因此夫妻之間爭吵多見。健康注意呼吸系統、肺功能、泌尿、精神壓力,並防腦神經或肺部氣管方面的病疾。"},
        new TdrgModel{Td="木木水",Jx= "凶", JxDetails="★為人意志堅定,一生辛勞勤奮,雖然財運平常,倒能夠守成度日;雖有一時成功順利發展的機會,容易因不節制而招致失敗。夫妻感情難言和偕。由於憂悶或病弱之故,罹患耳、腎、骨等病疾。"},
        new TdrgModel{Td="木火木",Jx= "吉", JxDetails="★能得到上下的幫助而得發展、幸福、長壽。待人誠懇,做事積極,三十五歲後有成就,最好穩定中求發展;個性達觀積極,能展抱負,晚年幸福,夫妻和偕、子女賢孝有相當成就,是完美的格局。"},
        new TdrgModel{Td="木火火",Jx= "吉", JxDetails="★人緣很好,特別有異性緣,一生財錢無缺、而且貴人多助,是富裕的格局;夫妻相處合樂、子女可以賢孝。早年自信心過強,缺乏忍耐力,為人衝動而積極,可以一展才華,得到相當的成就;但由於耐心不夠,恐怕終致失敗。此格火氣旺盛,若能凡事要三思而行,則更能增加成功機會。晚年注意心臟、高血壓病。"},
        new TdrgModel{Td="木火土",Jx= "吉", JxDetails="★一生多能受到長輩的賞識提拔而發展成功。主觀而熱情,有責任心,對下親切,事業有成就、財運豐厚,有人緣;夫妻可望圓滿幸福,子女能出人頭地。此乃長壽幸福之格,晚年吉祥如意;健康注意肝臟、高血壓病。"},
        new TdrgModel{Td="木火金",Jx= "凶", JxDetails="★為人坦誠直率,做事衝動而積極,能得朋友相助,花錢較浪費;事業不振,身心過勞,雖然能夠得到一時的成功,但防因為基礎不穩固而致不幸。家庭運差,夫妻常見爭吵不悅,個性有不和現象。健康注意腦神經衰弱、呼吸系統、肢體災疾、皮膚病。"},
        new TdrgModel{Td="木火水",Jx= "凶", JxDetails="★能言善道,急性不服輸,爭強好勝,易得罪人,乃畢生最大缺失;或有一時之成就,只恐曇花一現,好景不長,做事最好三思退守。夫妻一般感情不好,常有不悅事生;晚年財運不穩,心神比較不安寧。健康注意外傷、心、腎之災。"},
        new TdrgModel{Td="木土木",Jx= "凶", JxDetails="★運途不佳,性情孤獨,雖有理想大志,很難如願。待人處事很熱心,意志力卻很不堅定,目標變化大,造成容易失去許多好機會;縱有努力,財錢收穫不多,一生比較勞心勞力,最好步步為營,才是良策。夫妻常為小事爭吵。健康注意腸胃、肝疾。"},
        new TdrgModel{Td="木土火",Jx= "小吉",JxDetails="★為人表面達觀,內心實多憂苦,有人緣,能成功發展。有堅強意志力,能夠辛勤努力以赴,財錢還算小有積蓄。夫妻時有爭吵,感情大致圓滿。晚年健康注意腸胃、皮膚病、精神難得安寧。"},
        new TdrgModel{Td="木土土",Jx= "小吉",JxDetails="★待人誠懇,表現樂觀,其實是一個內心多存苦憂之人。一生辛勤勞力,財錢收益不多。做事缺乏果斷力,很容易衝動,難以掌握目標。夫妻時有相爭,家內不太合睦。切勿爭強好勝,其實平安才是真正的幸福。健康注意腸胃、筋骨、肝疾"},
        new TdrgModel{Td="木土金",Jx= "吉", JxDetails="★常為家庭而辛勤奮力,是一個能負責任的人。行為處事謙恭有禮,人緣很好,工作能力也強,可惜耐心不足、眼高手低。雖有展穫,四十歲前只能小見成就;若要發展,除去前述缺失,中年而後,定能事業如意,名利兼得。夫妻大致和樂,要防桃花情遇事生。健康注意腸胃、外傷。"},
        new TdrgModel{Td="木土水",Jx= "凶", JxDetails="★人緣不錯,要領欠佳,事職過程比較辛苦,諸事很難如意,心情苦惱事多;必須自力更生,貴人少助,作事總是勞碌,財錢收穫不多,一生財運難旺,只能勤儉行事。夫妻相處不和,家運有欠平安。健康注意腸胃、肝、腎之疾。"},
        new TdrgModel{Td="木金木",Jx= "凶", JxDetails="★做事雖然勤奮,主觀太強,意志也不很堅定,乃造成見有食無現象,表面風光,其實內心憂鬱、很難一展才能;財運很差,終生勞苦少成少得,晚年有難以預測的災厄。夫妻感情難偕,家運方面,亦多見不幸情形只怕中途孤雁紛飛。健康注意腦神經、筋骨肢體、肺、外傷事故。"},
        new TdrgModel{Td="木金火",Jx= "凶", JxDetails="★基礎不穩,成功運亦不佳。內心多有熬煎,容易罹患神經衰弱及呼吸器官的病疾。"},
        new TdrgModel{Td="木金土",Jx= "凶", JxDetails="★如果加倍努力,亦可得成功。此格者,容易身心過勞而遭遇不幸的病難,多有肝病、胃病。"},
        new TdrgModel{Td="木金金",Jx= "凶", JxDetails="★個性頑強,與人不和。容易孤獨、遭難。家庭易生離散。"},
        new TdrgModel{Td="木金水",Jx= "凶", JxDetails="★經常不安。容易有急變之事,有腦溢血或其它之病難。"},
        new TdrgModel{Td="木水木",Jx= "吉", JxDetails="★喜歡幫助他人,能成功。"},
        new TdrgModel{Td="木水火",Jx= "凶", JxDetails="★能成功,但恐不能持久。易生急變及病患,有心臟或腦部之病災。"},
        new TdrgModel{Td="木水土",Jx= "凶", JxDetails="★一旦成功,即會崩潰。有災難、突變與病難之可能性。"},
        new TdrgModel{Td="木水金",Jx= "凶", JxDetails="★可得成功。但,容易有腦部的病疾。"},
        new TdrgModel{Td="木水水",Jx= "中吉",JxDetails="★有成功的機會。但,容易有破亂及病難。假如數理多帶吉數者,則可長壽、富豪"},
        new TdrgModel{Td="火木木",Jx= "吉", JxDetails="★勤儉。有生機,境遇安泰,能得長壽享福。"},
        new TdrgModel{Td="火木火",Jx= "吉", JxDetails="★基礎穩固,順利發展。身心健康,能得長壽。喜歡幫助他人;但,容易受人利用。"},
        new TdrgModel{Td="火木土",Jx= "吉", JxDetails="★有進取心則成功富貴。基礎穩固,身心健全,能得長壽。"},
        new TdrgModel{Td="火木金",Jx= "凶", JxDetails="★一成功,即多變。耐力不足。易見身心過於勞累,有腦部及胸部之病疾。"},
        new TdrgModel{Td="火木水",Jx= "凶", JxDetails="★為人機智。此格者,家庭易生雜亂,有急變的災難。"},
        new TdrgModel{Td="火火木",Jx= "吉", JxDetails="★一帆風順。基礎穩固,身心健全,長壽享福。但,須節制色慾。"},
        new TdrgModel{Td="火火火",Jx= "中吉",JxDetails="★雖然有進展的機會,但因基礎不穩且缺乏耐力,所以易成易敗。要注意心臟及血管方面的健康"},
        new TdrgModel{Td="火火土",Jx= "中吉",JxDetails="★可成功。但因缺乏耐力,易生分離作用。假若能忍柔當事,則可保持吉祥"},
        new TdrgModel{Td="火火金",Jx= "凶", JxDetails="★身心過勞。故,容易罹患腦部及呼吸系統的病疾。"},
        new TdrgModel{Td="火火水",Jx= "凶", JxDetails="★易生意外的凶厄。有腦溢血或心臟麻痺之病災。"},
        new TdrgModel{Td="火土木",Jx= "凶", JxDetails="★依靠祖上餘德或長輩的提拔,而得成功發展。然而,個人之基礎多見不穩固。容易有腹部、胃腸方面之病疾。"},
        new TdrgModel{Td="火土火",Jx= "吉", JxDetails="★能得長輩提拔,而發展成功。身心健康,長壽享福。"},
        new TdrgModel{Td="火土土",Jx= "吉", JxDetails="★受長輩栽培而向上發展。境遇安泰,身心健全,長壽享福。"},
        new TdrgModel{Td="火土金",Jx= "吉", JxDetails="★可發展成功。不過,有消極的傾向。容易身心過勞;但,總能安穩的生活。"},
        new TdrgModel{Td="火土水",Jx= "凶", JxDetails="★可成功於一時。但是,有急變或病難而致死的情形。"},
        new TdrgModel{Td="火金木",Jx= "凶", JxDetails="★遭受壓抑,難以成功。此格者,須特別注意呼吸系統之病災,恐發狂致死。"},
        new TdrgModel{Td="火金火",Jx= "凶", JxDetails="★基礎不穩。容易罹患腦部與肺部的病疾,有急變的凶厄。"},
        new TdrgModel{Td="火金土",Jx= "凶", JxDetails="★多見煩惱,身心過勞。容易產生腦部及肺部的病疾。"},
        new TdrgModel{Td="火金金",Jx= "凶", JxDetails="★容易陷於孤獨的情形。容易有腦部與肺部的病疾。"},
        new TdrgModel{Td="火金水",Jx= "凶", JxDetails="★成功運不能伸張。容易罹患腦溢血或心臟麻痺的病疾。並,防急難情形。"},
        new TdrgModel{Td="火水木",Jx= "凶", JxDetails="★易生困難。有急變不測之禍。"},
        new TdrgModel{Td="火水火",Jx= "凶", JxDetails="★易生急變、災禍、死亡。多災多難,有自殺之慮。"},
        new TdrgModel{Td="火水土",Jx= "凶", JxDetails="★無法伸張,常見苦悶與煩惱。病弱而短壽。"},
        new TdrgModel{Td="火水金",Jx= "凶", JxDetails="★難以發展。容易有病痛,多災多難。"},
        new TdrgModel{Td="火水水",Jx= "凶", JxDetails="★難以成功。多困苦,多災多難。"},
        new TdrgModel{Td="土木木",Jx= "凶", JxDetails="★多有苦悶與煩惱。晚年稍可平安。"},
        new TdrgModel{Td="土木火",Jx= "中吉",JxDetails="★身心多苦悶。只有數理很好的情況下,才能平安。"},
        new TdrgModel{Td="土木土",Jx= "凶", JxDetails="★常感苦悶。有神經衰弱或其它病難。"},
        new TdrgModel{Td="土木金",Jx= "凶", JxDetails="★日常不安。有神經衰弱及呼吸器官的病疾。"},
        new TdrgModel{Td="土木水",Jx= "凶", JxDetails="★流轉離難,多病難。有急變的災厄而損失生命與財產。"},
        new TdrgModel{Td="土火木",Jx= "中吉",JxDetails="★數理吉,則身心平安能得長壽幸福。若數理凶,則有腦病之慮。"},
        new TdrgModel{Td="土火火",Jx= "吉", JxDetails="★若能柔忍當事,可得成功;且,足以揚名。"},
        new TdrgModel{Td="土火土",Jx= "吉", JxDetails="★飛黃騰達。基礎穩固而安泰,身心健全,長壽享福。"},
        new TdrgModel{Td="土火金",Jx= "凶", JxDetails="★身心勞病。基礎不穩,家庭不幸。"},
        new TdrgModel{Td="土火水",Jx= "凶", JxDetails="★基礎不穩。易生急變,易生災厄。"},
        new TdrgModel{Td="土土木",Jx= "凶", JxDetails="★基礎不穩,易生變動。容易罹患腹部、胃腸、神經衰弱等病疾。"},
        new TdrgModel{Td="土土火",Jx= "吉", JxDetails="★名利雙收。基礎穩固,長壽享福。"},
        new TdrgModel{Td="土土土",Jx= "中吉",JxDetails="★可以成功、平安。但,假如數理多帶凶數者,則有不足與災難;婦女則不貞。"},
        new TdrgModel{Td="土土金",Jx= "吉", JxDetails="★成功發展。身心健全,長壽享福。"},
        new TdrgModel{Td="土土水",Jx= "凶", JxDetails="★基礎不穩。容易崩潰與失敗。有急禍而致失財。"},
        new TdrgModel{Td="土金木",Jx= "凶", JxDetails="★基礎不穩。有腦病與意外的災難。男命則剋妻與子。"},
        new TdrgModel{Td="土金火",Jx= "凶", JxDetails="★境遇不安。易生腦病與肺病。家庭不睦。"},
        new TdrgModel{Td="土金土",Jx= "吉", JxDetails="★成功發展,境遇安泰。身心健和,能得長壽享福。"},
        new TdrgModel{Td="土金金",Jx= "吉", JxDetails="★名利雙收。但,性情剛強而與人不睦。假如能和氣待人,則可成功。"},
        new TdrgModel{Td="土金水",Jx= "中吉",JxDetails="★數理吉,可得平安。數理凶,則多悲運。"},
        new TdrgModel{Td="土水木",Jx= "凶", JxDetails="★徒勞無功。多病弱,有短命之慮。"},
        new TdrgModel{Td="土水火",Jx= "凶", JxDetails="★多破亂,有失財或失命之慮。男命剋妻子。"},
        new TdrgModel{Td="土水土",Jx= "凶", JxDetails="★境遇不安,徒勞無功。容易有腦溢血或心臟麻痺的病疾。"},
        new TdrgModel{Td="土水金",Jx= "凶", JxDetails="★心理有不滿現狀的激動情緒,使得心神不安,容易興風作浪。一生多見病災。"},
        new TdrgModel{Td="土水水",Jx= "凶", JxDetails="★難伸展。多病難,家庭不和。"},
        new TdrgModel{Td="金木木",Jx= "凶", JxDetails="★難得成功。容易罹患神經衰弱或半身不遂。"},
        new TdrgModel{Td="金木火",Jx= "凶", JxDetails="★多見中途而廢,難受提拔。容易罹患腦病握神經衰弱的病疾。"},
        new TdrgModel{Td="金木土",Jx= "凶", JxDetails="★無法與人和睦相處。身心過勞而容易罹患神經衰弱的病疾。"},
        new TdrgModel{Td="金木金",Jx= "凶", JxDetails="★上下夾攻的形勢,造成孤立無援的情形。多受迫害,坐立不安。有腦部及胸部的災禍。"},
        new TdrgModel{Td="金木水",Jx= "凶", JxDetails="★早年失敗,晚年則漸入佳境。本身無多大發展;但,子孫則可使家業中興。"},
        new TdrgModel{Td="金火木",Jx= "凶", JxDetails="★難得發展,一籌莫展。容易罹患腦部及肺部的病痛。"},
        new TdrgModel{Td="金火火",Jx= "凶", JxDetails="★心理不滿現狀。中年有變化。容易罹患腦部及肺部的病痛。"},
        new TdrgModel{Td="金火土",Jx= "凶", JxDetails="★不滿現狀而陷入苦悶之中。有腦病。"},
        new TdrgModel{Td="金火金",Jx= "凶", JxDetails="★身心過勞,妻離子散。易罹患肺病。"},
        new TdrgModel{Td="金火水",Jx= "凶", JxDetails="★上下不和,難以成長,終形成孤立無援的窘境。容易罹患腦溢血或心臟麻痺的病疾。"},
        new TdrgModel{Td="金土木",Jx= "凶", JxDetails="★基礎不穩,易生變動。有胃腸及肝臟方面的病疾。"},
        new TdrgModel{Td="金土火",Jx= "吉", JxDetails="★順利發展,名利雙收。"},
        new TdrgModel{Td="金土土",Jx= "吉", JxDetails="★順利進展而成功,名利雙收。身心健全,長壽享福。"},
        new TdrgModel{Td="金土金",Jx= "吉", JxDetails="★喜歡幫助他人,可順利成功。若能節制色慾,則能健壯而福壽雙全。"},
        new TdrgModel{Td="金土水",Jx= "凶", JxDetails="★基礎不穩,難得成功。容易罹患腎臟病疾。女命則多見子宮炎"},
        new TdrgModel{Td="金金木",Jx= "凶", JxDetails="★性情過剛,不易與人和睦相處,以致常與人爭是論非。健康方面則有車禍之厄,並防半身不遂之大災難。"},
        new TdrgModel{Td="金金火",Jx= "凶", JxDetails="★身心過勞。容易有腦溢血或肺疾。多災厄。"},
        new TdrgModel{Td="金金土",Jx= "吉", JxDetails="★身心健全。能和氣待人,則可成功。"},
        new TdrgModel{Td="金金金",Jx= "凶", JxDetails="★性情過剛,不易與人和睦相處,致常與人有口舌之爭,造成人際關係的不佳。家庭多雜亂。"},
        new TdrgModel{Td="金金水",Jx= "凶", JxDetails="★性情頑固,與人不和,而造成事業不順。有急變的災厄。"},
        new TdrgModel{Td="金水木",Jx= "凶", JxDetails="★雖能成功;家庭多不幸。多病厄。"},
        new TdrgModel{Td="金水火",Jx= "凶", JxDetails="★雖能成功;但,基礎不穩,有急變之災厄。"},
        new TdrgModel{Td="金水土",Jx= "凶", JxDetails="★性情憂悶,難以成功。有急變災厄。"},
        new TdrgModel{Td="金水金",Jx= "吉", JxDetails="★假如數理多帶吉數者,可被愛戴而引荐成功。假如數理多帶凶數者,有急變的災厄。"},
        new TdrgModel{Td="金水水",Jx= "凶", JxDetails="★若得提拔,也能成功。但是,大部份是流落異鄉,且有急變的災厄。"},
        new TdrgModel{Td="水木木",Jx= "吉", JxDetails="★能得長輩引進而順利發展,基礎安穩,身心健全,繁榮昌盛。長壽享福,家業隆昌。"},
        new TdrgModel{Td="水木火",Jx= "凶", JxDetails="★有成功運和發達運。但,天格與地格的水火相剋,所以家庭常有不祥的事情發生,有不幸和招致災禍的可能。"},
        new TdrgModel{Td="水木土",Jx= "吉", JxDetails="★能得長輩的提拔,順利成功發展。基礎運如立磐石之上;若更能堅忍,則可順利安泰。"},
        new TdrgModel{Td="水木金",Jx= "凶", JxDetails="★可以得到發展,成功運尚佳。防境遇不穩,生有變動,致迫害臨身。身心過勞,容易罹患肝病或防外傷。"},
        new TdrgModel{Td="水木水",Jx= "凶", JxDetails="★順利發展的成功運,防性情飄忽不定,行動輕浮乃致失敗。困苦勞心,有變動、病難之慮。"},
        new TdrgModel{Td="水火木",Jx= "凶", JxDetails="★成運運易見受外在環境壓抑而受挫。防突發性之災禍、困難,容易罹患腦溢血或心臟麻痺的病疾。"},
        new TdrgModel{Td="水火火",Jx= "凶", JxDetails="★遭受壓抑,不能有所伸展,難以成功。有急變的災禍或其他的不祥事。"},
        new TdrgModel{Td="水火土",Jx= "凶", JxDetails="★財來財去,力不從心。家庭分離,不和睦。容易發生急變之事而短命。"},
        new TdrgModel{Td="水火金",Jx= "凶", JxDetails="★與人難相處,身心易見過勞。多災厄。"},
        new TdrgModel{Td="水火水",Jx= "凶", JxDetails="★孤力無援。多災厄。容易罹患腦溢血或心臟麻痺的病疾。"},
        new TdrgModel{Td="水土木",Jx= "凶", JxDetails="★做事多受阻礙,難以成功。容易罹患胃腸或肺部的病疾。"},
        new TdrgModel{Td="水土火",Jx= "凶", JxDetails="★基礎運健全,可保平安。但是,家庭中常有明爭暗鬥的事情發生。"},
        new TdrgModel{Td="水土土",Jx= "吉", JxDetails="★穩重,能得平安。"},
        new TdrgModel{Td="水土金",Jx= "中吉",JxDetails="★年輕時較消極。中年而後,漸得進展,安定吉祥"},
        new TdrgModel{Td="水土水",Jx= "凶", JxDetails="★做事多阻礙。性情頑固。有急變的災厄,容易罹患胃病或腎臟方面的病疾。"},
        new TdrgModel{Td="水金木",Jx= "凶", JxDetails="★基礎不穩,常有變動。有外傷之慮。"},
        new TdrgModel{Td="水金火",Jx= "凶", JxDetails="★基礎不穩。容易過勞,而致肺病。有急變或急死之慮。"},
        new TdrgModel{Td="水金土",Jx= "吉", JxDetails="★順調進展,達成目的。基礎平穩,身心健全。長壽,享福。"},
        new TdrgModel{Td="水金金",Jx= "吉", JxDetails="★可向上發展,得到成功。有勇氣。"},
        new TdrgModel{Td="水金水",Jx= "凶", JxDetails="★喜歡幫助他人,而自己受累。容易被色情所牽累。"},
        new TdrgModel{Td="水水木",Jx= "凶", JxDetails="★性情放蕩。容易產生急變的災厄。"},
        new TdrgModel{Td="水水火",Jx= "凶", JxDetails="★飄浮不定乃致失敗。有急變的災厄。"},
        new TdrgModel{Td="水水土",Jx= "凶", JxDetails="★時常變化,境遇不穩。有急變災厄。"},
        new TdrgModel{Td="水水金",Jx= "凶", JxDetails="★自我心過強。好動而不知自我控制,終致失敗,病弱,流離。"},
        new TdrgModel{Td="水水水",Jx= "凶", JxDetails="★病弱而短壽。流離失所,行為不檢。"}
        };
        private LuozhuangNameClass myName;

        public LuozhuangNameClass getNameClass()
        {
            return myName;

        }

        public JavaLuozhuangtestnameClass(String name)
        {
            myName = new LuozhuangNameClass(name);
            int[] nameint = myName.getNameliborder();
            for (int i = 0; i < nameint.Length; i++)
            {
                if (nameint[i] == -1)
                {
                    myName = null;
                    //throw new illegalargumentException("没有收录该汉字");


                }
            }


        }

        public TdrgModel getwuxji()
        {

            //天地人三才格
            String TDR = myName.getNameWX(myName.getNamesky()) + myName.getNameWX(myName.getNameearth()) + myName.getNameWX(myName.getNamepeople());
            foreach (var item in arrayTDRG)
            {
                var panbitemp = item.Td;
                if (panbitemp == TDR)
                {
                    return item;
                }
            }
            //for (int i = 0; i < arrayTDRG.Length; i++)
            //{

            //    var panbitemp = arrayTDRG[i][0];
            //    if (panbitemp == (TDR))
            //    {
            //        return arrayTDRG[i];
            //    }
            //}
            return null;

        }

        public ArraytotalModel gettotalnameji(int number)
        {
            if (number > arraytotal.Count || number < 1)
            {
                return null;

            }
            return arraytotal.FirstOrDefault(c => c.Index == number.ToString());
            //return arraytotal[number - 1];
        }

        public string testname()
        {
            var str = "";
            Luozhuangnamewuxing myLuozhuangnamewuxing = new Luozhuangnamewuxing();
            int[] temp = myLuozhuangnamewuxing.getnameliborder(myName.getName());
            int[] wuxing = myLuozhuangnamewuxing.getnameWX(temp);
            int[] BH = myLuozhuangnamewuxing.getnameBH(temp);
            str += "</br>" + (myName.getName() + "的五行");
            str += "</br>" + (myLuozhuangnamewuxing.getnameWXarray(wuxing).ToJson());
            str += "</br>" + (myName.getName() + "的笔画");
            str += "</br>" + (BH.ToJson());


            str += "</br>" + (myName.getName() + "的天格");
            str += "</br>" + (getMyName().getNamesky());
            str += "</br>" + (myName.getNameWX(getMyName().getNamesky()));

            str += "</br>" + (myName.getName() + "的地格");
            str += "</br>" + (getMyName().getNameearth());

            str += "</br>" + (myName.getNameWX(getMyName().getNameearth()));
            str += "</br>" + (myName.getName() + "的人格");
            str += "</br>" + (getMyName().getNamepeople());

            str += "</br>" + (myName.getNameWX(getMyName().getNamepeople()));
            str += "</br>" + (myName.getName() + "的外格");
            str += "</br>" + (getMyName().getNameout());
            str += "</br>" + (myName.getNameWX(getMyName().getNameout()));

            str += "</br>" + ("此人总笔画");
            str += "</br>" + ((myName.getTotal()));

            str += "</br>" + ("说明:字的笔划以《康熙字典》为准,康熙笔划计算方法与简体笔划有所区别,不能以现在计算笔划的方法去计算。为保证本站提供的测算内容精准,编辑人员花费了大量时间和精力与《康熙字典》原版进行核对。如果您发现错误,敬请及时与我们联系,谢谢!");

            str += "</br>" + ("天格的解析:天格数是先祖留传下来的,其数理对人影响不大。 什么是天格?\n"
                    + "什么是天格:天格是由您的姓决定的,姓是祖辈流传下来的。它的数理对人生并无直接的影响。所以,天格的吉凶数理不用重视。在测名字的时候,也会有天格的数理吉凶解释,那是对这个数字的解释,本身无太大意义。  ");
            //myLuozhuangnamewuxing.pringst(gettotalnameji(myName.getNamesky()).ToJson());
            str += "</br>" + (gettotalnameji(myName.getNamesky()).ToJson());



            str += "</br>" + ("人格的解析:人格数又称主运,是姓名的中心点,影响人一生的命运。 什么是人格?\n"
                    + "什么是人格:人格非常重要,是这个名字的中心、精髓!人格的吉凶,对人的影响很大,就如四柱当中的日柱一样,是判断名字好坏吉凶的一个标准。  ");
            //myLuozhuangnamewuxing.pringst(gettotalnameji(myName.getNamepeople()).ToJson());
            str += "</br>" + (gettotalnameji(myName.getNamepeople()).ToJson());


            str += "</br>" + ("地格的解析:地格数又称前运,影响人中年(36岁)以前的活动力。 什么是地格?\n"
                    + "什么是地格:地格和人格有密切的关系,主要影响人年轻时的命运,地格也比较重要。其数理吉凶,也代表与子女、部属、晚辈的关系。  ");
            //myLuozhuangnamewuxing.pringst(gettotalnameji(myName.getNameearth()).ToJson());
            str += "</br>" + (gettotalnameji(myName.getNameearth()).ToJson());


            str += "</br>" + ("外格的解析:外格又称变格,影响人的社交能力、智慧等。 什么是外格?\n"
                    + "什么是外格:外格通常指和社会上的关系的融洽程度,在实际预测中其准确度较低,对人生的作用不是很大,在专业预测当中也很少去用。外格的数理不用重视。  ");
            //myLuozhuangnamewuxing.pringst(gettotalnameji(myName.getNameout()).ToJson());
            str += "</br>" + (gettotalnameji(myName.getNameout()).ToJson());


            str += "</br>" + ("总格的解析:总格又称后运,影响人中年(36岁)以后的命运。 什么是总格?\n"
                    + "什么是总格:判断名字的吉凶,一般先看总格,再看人格。总格对人的晚运和一生运势均有影响。总格就如植物的根,根好则枝繁叶茂。因此,名字吉凶一定要看总格。  ");
            //myLuozhuangnamewuxing.pringst(gettotalnameji(myName.getTotal()).ToJson());
            str += "</br>" + (gettotalnameji(myName.getTotal()).ToJson());

            str += "</br>" + ("此人天地人三才格参考");
            //myLuozhuangnamewuxing.pringst(getwuxji().ToJson().ToJson());
            str += "</br>" + (getwuxji().ToJson().ToJson());
            return str;
        }

        /**
         * @param args the command line arguments
         */
        public static void main(String[] args)
        {

            JavaLuozhuangtestnameClass myJavaLuozhuangtestname = new JavaLuozhuangtestnameClass("罗庄");
            myJavaLuozhuangtestname.testname();
        }

        /**
         * @return the myName
         */
        public LuozhuangNameClass getMyName()
        {
            return myName;
        }


        /**汉字五行笔画库
         *
         * @author luozhuang 大师♂罗莊
         */

    }
    /*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

    public class BhWxLib
    {

        private List<MetaLibItem> libs = new List<MetaLibItem>();

        /**
         * 以数理来划分五行列表如下: 数始于1而终于10。按传统的五行理论来划分,则:     以1、2为木,1为阳木,2为阴木。    
         * 以3、4为火,3为阳火,4为阴火。     以5、6为土,5为阳土,6为阴土。     以7、8为金,7为阳金,8为阴金。    
         * 以9、10为水,9为阳水,10为阴水。
         */
        public enum wuxing
        {

            木,//0
            火,// 1
            土,// 2
            金,//3
            水,//4
        }

        /**
         * 姓名五行生克法: 在数理中包含有五行生克的原理,故以数理来剖析姓名时,必须把各数理所属的五行要素辨认清楚。
         * 在辩认五行时,只计l——10的数,超过10的数,就去掉十份数而取其个位数, 这样仍还原成l——10之间的数;如果个位数为0,则计为10即可。
         *
         * @param paramInt
         * @return
         */
        public int get_wx_idx(int paramInt)
        {
            if (paramInt > 10)
            {
                paramInt = paramInt % 10;

            }
            switch (paramInt)
            {
                default:
                    return -1;
                case 1:
                case 2:
                    return 0;
                case 3:
                case 4:
                    return 1;
                case 5:
                case 6:
                    return 2;
                case 7:
                case 8:
                    return 3;
                case 0:
                case 9:
                    return 4;
            }

        }

        public BhWxLib()
        {
            this.libs.Add(new MetaLibItem(1, 2, "一乙"));
            this.libs.Add(new MetaLibItem(2, 0, "九几"));
            this.libs.Add(new MetaLibItem(2, 1, "二丁了力乃刁"));
            this.libs.Add(new MetaLibItem(2, 2, "又"));
            this.libs.Add(new MetaLibItem(2, 3, "七人十入刀"));
            this.libs.Add(new MetaLibItem(2, 4, "卜八乜"));
            this.libs.Add(new MetaLibItem(3, 0, "久工口乞干弓广"));
            this.libs.Add(new MetaLibItem(3, 1, "大女巳孒"));
            this.libs.Add(new MetaLibItem(3, 2, "也于丸己土山个"));
            this.libs.Add(new MetaLibItem(3, 3, "三小千士川上才寸刃夕尸"));
            this.libs.Add(new MetaLibItem(3, 4, "万下亡凡子"));
            this.libs.Add(new MetaLibItem(4, 0, "介牛五公月元及孔今亢卞欠犬斤牙勾勻木气"));
            this.libs.Add(new MetaLibItem(4, 1, "天六中日丑斗内太屯丹井弔支止之午尺火从丰"));
            this.libs.Add(new MetaLibItem(4, 2, "尹允王友引尤厄曰毋切予"));
            this.libs.Add(new MetaLibItem(4, 3, "仁升氏心什仇手仍少殳戈爪双"));
            this.libs.Add(new MetaLibItem(4, 4, "夫匹巴文方互分比勿反歹户毛父幻不仆化云毋壬水片币仆"));
            this.libs.Add(new MetaLibItem(5, 0, "古加卉玉甲可功瓜甘丘句外去巧札术本卯未"));
            this.libs.Add(new MetaLibItem(5, 1, "代旦只冬立田叮他令召台尼奴冉左丙另叹"));
            this.libs.Add(new MetaLibItem(5, 2, "右央由用永以仔瓦幼叶戊"));
            this.libs.Add(new MetaLibItem(5, 3, "生史仙占册申仕四世市司出仟且示石失尻刊正主矢"));
            this.libs.Add(new MetaLibItem(5, 4, "民弘布平皮丕付玄弁白必目包禾半兄北弗末皿匆母穴疋氷夯"));
            this.libs.Add(new MetaLibItem(6, 0, "交旭价吉仰曲共伎伉企各戎机考件朽竹朵匡朱"));
            this.libs.Add(new MetaLibItem(6, 1, "亘打老至自尖仲灯匠多耳宅虫同年劣全光弛兆旨肉礼"));
            this.libs.Add(new MetaLibItem(6, 2, "亦宇夷因衣有羊伊安圭伍艮地吐圳充羽戌灰优"));
            this.libs.Add(new MetaLibItem(6, 3, "字次守如在而西舟再存夙色早式先冲丞吏寺旬死庄此任州臣曳列舌众"));
            this.libs.Add(new MetaLibItem(6, 4, "好休伏行仿合刑血名后回亥妃百米冰并牟伐牝兇凶危汀印收向后"));
            this.libs.Add(new MetaLibItem(7, 0, "言见見更克角角君吟吾旱改谷究岑我估妓局劫告杆攻却忌困杖杜吴吳杌肖村材杞何杏启"));
            this.libs.Add(new MetaLibItem(7, 1, "良甸男佟里牢廷吕呂住志呈佃伶灶体灸利足町李豆吞弄努低彤但妥卵弟佗求杉巫免采卤听"));
            this.libs.Add(new MetaLibItem(7, 2, "邑佑完位秃禿役余似延均坑岐冶坍辰坟坊坂牡医"));
            this.libs.Add(new MetaLibItem(7, 3, "成助车車作伸身孜佐秀伺坐束宋序赤妆妝私妊壮壯串些吹声忍走辛巡初吢佘系兑酉判系"));
            this.libs.Add(new MetaLibItem(7, 4, "希孚孝宏妙伴甫伯兵尾呆步每妣亨贝貝别妤况形忘佛忙含妨否罕坔江戒池汝冷尨妍"));
            this.libs.Add(new MetaLibItem(8, 0, "狂抗技快玖佳供佶枝析姑炆炘宜奇欣居岳固其果劻季卷斧昂纠糾京空孤官肯券屈卧臥乖穹祁林杵杻东東竺枝具佼杼松羌析杷杭板杯枚昏忽柿"));
            this.libs.Add(new MetaLibItem(8, 1, "两兩肋投侗佻侍侈例岱征妮姐典卓直来來到长長定知忠制争爭冽帖店忝底念的妾弩乳政徂戽折狄決昆易炊咎帑炎旻罔籴昊隶丽炉"));
            this.libs.Add(new MetaLibItem(8, 2, "抑依侑往夜委奄昀宛旺于於亚亞盂艾坤岩坦坡坪忧岭"));
            this.libs.Add(new MetaLibItem(8, 3, "忱沖抄侃使孥姗姓昇尚宗社受虱事承始昌宙舍青叔昔取刹刷儿兒妻所凭垂刺妬社祀姒金庚刻周卒"));
            this.libs.Add(new MetaLibItem(8, 4, "扶沐汾版抛没汶侔佩彼妹武朋孟秉命享和府门門奉明岸沛房放并並味幸咊或帛服氓効弦物虎盲呼非卹阜把昊汽沅岡卦沂汲沚宓沃雨协協汪沁沙沈牧状狀冼庙奋弥怀"));
            this.libs.Add(new MetaLibItem(9, 0, "侠俠俄拘拒柑柯科纪紀祈皆军軍彦彥契姱羿禺轨軌建癸冠客玩肝哄架界劲勁姜剋看竿故急姣虹姬斫肖柱柳相柘柴芒柄柏面"));
            this.libs.Add(new MetaLibItem(9, 1, "侣侶俊待律沺招抽拐纣紂祉重贞貞炤昭亮耐帝南亭盾段泰奏炭致突订訂怠怒赴柬怨昱勅姞祉映歪炳炫厘类邓"));
            this.libs.Add(new MetaLibItem(9, 2, "衩耶押约約怡威勇音要禹囿屋畏姻哀幽宥昶韦韋姚奎垣型盆"));
            this.libs.Add(new MetaLibItem(9, 3, "衫信俗促侵咨拆拙秋是首则則哉前省思帅帥宣叙页頁俞春星食性砂削查柔施姿室昨甚牲峙俟昝厍厙枯怪度姹姝"));
            this.libs.Add(new MetaLibItem(9, 4, "侯保便係衍後河法泊波泓泯抱拍秒红紅飞飛厚屏香美风風品盈巷盼盃勃眇眉炫昧皇表封负負某扁玫毗甭宦羑哈咸奔狐泔计計炬染治注沼拜泥沮油況沿泳泑泱泉宪"));
            this.libs.Add(new MetaLibItem(10, 0, "兼俱纭紜矩倚径徑屐桂格根栓娱娛娟粉家起记記肩芸衿珈括尅恭库庫豈哥拳躬笈氣缺虔贡貢鬼恢骨高耕衾皋奚芝桃桐株芷芯桑栗桌核校桓芬芙芽芳花笏倏样芦"));
            this.libs.Add(new MetaLibItem(10, 1, "恬衲冻凍纳納伦倫倒倬值徒秩娣娜娘娌唐朔烈哲庭珍凌玲玳朕晁展晋晉恕料旃岛島特畜耄讨討留恥疾娲旅斗鬥耿晃烟恣秦祝芮夏烜烘虑敌达积烛玺党恋栾"));
            this.libs.Add(new MetaLibItem(10, 2, "准容员員祐晏益肴恩殷宴案翁袁烟盎乌烏育個原峡峽峨砧轩軒城埋破砲"));
            this.libs.Add(new MetaLibItem(10, 3, "纯純纸紙修倩借徐持娠时時宰孙孫差峻宸财財拾狩指珊师師仓倉钊釗弱素书書租乘射席殉祠座息殊栽神笑讪訕针針闪閃酌索烝隼眞真邛倪刚剛宫宮罡祖晁钉釘祚剖曹斋耸迁蚕"));
            this.libs.Add(new MetaLibItem(10, 4, "娑纹紋纺紡纷紛倍倖候俵俸俯倣秘秤娥派洽肥肪恨珀恒圃训訓峰畝效埋畔旁冥併臭蚊豹配釜马馬勉峰航害眠病疲耘耗恤祜洸洨纽紐洲洞洛流洪洋活纱紗洗津洒酒洼洁"));
            this.libs.Add(new MetaLibItem(11, 0, "卿救规規顷頃健偶偕御械梧悍悟娸康国國教基崑启啟乾区區坚堅苦珪寄崔晤近贯貫眼毬皎眷研竟翊袈寇圈苟邢梯苕笠笞笛救苡英苑圉彬梢梓桶若许許笙笥苫啟枭梟梗梅茂符苻茅盖"));
            this.libs.Add(new MetaLibItem(11, 1, "胎振崙朗侦偵條從埜累将將章翎梨带帶那动動执執犁张張敕斛顶頂鹿梁悌略粒聊豚袋狷软軟聆羚帐帳聃娄婁鹵烷烽戚珣晟袜断离"));
            this.libs.Add(new MetaLibItem(11, 2, "浴涎胃偃伟偉悠移婉英胡庸寅唯庵尉欲迎窕眺翌野异異敖域基崎堀堂崩鸟鳥峥培崩运"));
            this.libs.Add(new MetaLibItem(11, 3, "袖绅紳组組绍紹细細终終侧側得匙处處焌参參紫专專晨祥船常崧崇趾彩钏唱勘阡商问問寂庶彫旌巢宿悉旋叙敘敍斜爽珠悦率产產祭窓粗羞设設船钗釵责責馗赦雀讼訟紮绝絕胙胥邢钓釣眾紬书書副珮钒剩"));
            this.libs.Add(new MetaLibItem(11, 4, "袍胞浦浲海浮斌绊絆培偏徘货貨婚妇婦胖娬背麦麥习習鱼魚匾望望敏凰苗婆务務密閈闬彪败敗晦毫捕晚粕访訪曼邦贩販被麻票班讹訛悖邠毕畢扈浩涓匏浪涕涂浴涎浚消浸浙雪涉習习范还"));
            this.libs.Add(new MetaLibItem(12, 0, "雁絖给給绞絞结結络絡草棋椅棍堦迭掘掛球荃皖捲琹稀期景开開皓尧堯蛟敢傑幾嵌贵貴凯凱欺雅割寓筐棨乔喬窘街强款硬邱栖统統栋棟植筌答茶筑筒棠椒绛絳筳庾茹栈棧森茜茸筍策荏茱最桌荀棚棒棉棼筏荒阮筑茧"));
            this.libs.Add(new MetaLibItem(12, 1, "盗盜诊診场場琉捷探理琅凉涼程敦婷喨軼贴貼登智轴軸痛劳勞量能单單粧短巽凌淩衕闰轸軫循幅迢就寻尋媛邰屠娲硫炀煬晴晶焦焙惇焱欻证"));
            this.libs.Add(new MetaLibItem(12, 2, "詠恶惡围圍为為翔翕蛙黑奠壹贻貽堰越惟勋黄黃砚硯堤堪岚嵐堡费費邮阴阳"));
            this.libs.Add(new MetaLibItem(12, 3, "丝絲绒絨钞鈔絢绚註词詞诏詔诉訴授措推琇净淨税稍竦创創须須絮残殘替尊窗疎胜勝兹黍象裁斯视視超然曾殖掌甦贰貳舜甥善喻顺順舒剩盛竣脂情惜散奢枣棗粟述邵丧喪犀钧鈞钦欽割觇覘问問辜钮鈕钝鈍钠鈉接粟童剀剴甯朝堵鈄钭壶壺邹"));
            this.libs.Add(new MetaLibItem(12, 4, "闷悶冯馮评評迫排虚防媚发發粥弼賁贲徨喜惠斐閒闵閔帽报報备備蛤买買雄寒云雲富復贺賀普贸貿扉悲唤喚傍脉脈博无無雰傅邯邳邴邶彭猛番淇涯淦混顸頇荆现現淋添淡淘幅淹液涴淑清深淞项項渊淵猎蛮"));
            this.libs.Add(new MetaLibItem(13, 0, "琴绢絹经經倾傾楷裙揭暇睽誇勤祺诘詰莞嫁廉献羣舅跪义義感禁解业業鼓极極筠港减減琦琪琨郊窟颂頌愚干幹靴敬畸靳楠莉莨琳莒荻筱椰杨楊预預蛾媵莎莠椿楫榆苋莧莘枫楓楣莆茕煢莽"));
            this.libs.Add(new MetaLibItem(13, 1, "粮传傳楠廊提稔稜暖睦煜炼煉脱煖当當鼎跡督塔农農雉殿追琢退电電虞驰馳煎裹顿頓路寗零詹媸禄祿艇照碖郅偻炀煬扬揚旸暘烟煙炜煒琰徭煊焕煥煤煇煌逄毓"));
            this.libs.Add(new MetaLibItem(13, 2, "筳傭阿犹猶握稚暗话話衙矮意碗奥雍附琬爱愛裔圆圓爷爺饮飲园園嫈恽惲块塊圣聖碑"));
            this.libs.Add(new MetaLibItem(13, 3, "辞送迺绣愉债債催羡捷暄诗詩询詢裕详詳试試荘驯馴伤傷新势勢岁歲歆蜀想斟资資琮琛楚轼軾肆蜃裟载載靖嗣暑装鼠愈剿凖愁酬勣郄禽睢钜钰鈺饬飭铃鈴钲鉦钿鈿邾铅鉛絺触"));
            this.libs.Add(new MetaLibItem(13, 4, "补補雹绥綏粳鈵钵鉢琵换換挥揮晖暉湍琶聘颁頒号號瓶郁陂惶湣浑渾会會蜂微妈媽鸠鳩盟饭飯较較熙莫裘港媲贾賈涂塗雷汤湯渡浈湞渭游湖湛湶测測渝湘溆湫渠渻郇孵募"));
            this.libs.Add(new MetaLibItem(14, 0, "綺绮纲綱魁紧緊降诰誥诫誡语語郡菊槐侨僑侥僥伪偽瑟斳赫旗箇轻輕嘉箕歌犒肇愿管疑郏郜兢菱构構戬戩榴榔莱菅榕莞荣榮算尝嘗箒粽翠笺箋菜菁菑萌幕梦夢榜裴枪槍"));
            this.libs.Add(new MetaLibItem(14, 1, "尽盡寧宁绿綠纶綸绰綽绫綾通连連逐透誌种種郎菱溜嫩嫡对對团團裳奖獎态態端恺愷彰尔爾尘塵畅暢辣獃叹嘆歎领領廖臺台赵趙嫘滕僚摇枪槍榭制製绫綾蜡"));
            this.libs.Add(new MetaLibItem(14, 2, "维維诞誕温溫斲瑛玮瑋瑕顼頊與与嫣境翟硕碩墀"));
            this.libs.Add(new MetaLibItem(14, 3, "绶綬综綜慈绸綢造速认認诵誦说說诚誠称稱僧僖像衔銜阀閥精聚甄饰飾寿壽誓酸赈賑粹实實瑜瑄瑞署察齐齊狮獅綮慎银銀韶铨銓铜銅瑒玚划劃臧铭銘郝郤"));
            this.libs.Add(new MetaLibItem(14, 4, "網网绵綿逢溥诲誨铭銘福僕嫚貌萍窪洼闻聞饲飼飒颯辅輔碧华華饱飽蜜魂凤鳳熊鸣鳴鼻陌宾賓豪阁閣髦熏闽閩舞滑寡源溪灭滅阁閣嘏溶瑚溢沧滄滋滏溲滇郗涤滌"));
            this.libs.Add(new MetaLibItem(15, 0, "葵慷慨廣枢樞萼稼俭儉價仪儀鞏课課驾駕毅靠穀郭箴庆慶宽寬娇嬌谊誼颉頡麫麪驹駒概稽葛樟楼樓稻樑箭竖豎蒂稷樣莹瑩樊耦萱槽箱葫葱葆标標模篇筅筅樗贤賢築药"));
            this.libs.Add(new MetaLibItem(15, 1, "缎緞缇緹练練董缔締缓緩腰徵彻徹德阵陣瑭刘劉谅諒乐樂调調慮弹彈谈談层層轮輪暟敵论論进進頫蝶瑯除萳摘暂暫驻駐践踐质質寮鲁魯鼐儋厉厲黎褚逯郯歎糊热熱僻"));
            this.libs.Add(new MetaLibItem(15, 2, "嫺亿億院阅閱养養逸慰欧歐鞍影頞豌蝴憂蝯葉郵卫衛嶔娴嫻确確逵增墩磋磁磐"));
            this.libs.Add(new MetaLibItem(15, 3, "节節绪緒线線锄鋤锈衝陞升婵嬋赏賞审審帜幟锐銳熟瑲玱趣赐数數蚀蝕媭谆諄请請靓靚敷辤驷駟剧劇剑劍肠腸摯挚闾閭缄緘锋鋒铺鋪劈"));
            this.libs.Add(new MetaLibItem(15, 4, "编編翩暴範廟魄嬉霈蝦蝠饼餅辉輝慧暮漫摸兴興部滹漠漂满滿墨瞑卖賣辈輩虢醇摩履盘盤赔賠箲蝙赋賦萬汉漢缗緡幣漪浒滸滚涨漲霆滺渔漁演霄渍漬漩震漕褒慕"));
            this.libs.Add(new MetaLibItem(16, 0, "遇过過裤褲机機桥橋橘谐諧谚諺颊頰黔圜县縣笃篤器龟龜哙噲蓋蒯蓄蓁麇萤螢蓉颖穎鄂阎閻树樹苍蒼冀亲親整横桦樺义義褰蒲"));
            this.libs.Add(new MetaLibItem(16, 1, "道谘諮遂達錄录燐積灯燈燑瑾燉燄璋陵陈陳陶螣谛諦臻琏璉赖賴历曆靛蹄头頭导導歴龙龍卢盧俦儔璃糖鸯鴦都颓頹骆駱陆陸晓曉璇燃炽熾烧燒熹"));
            this.libs.Add(new MetaLibItem(16, 2, "遐遊運陰谓謂燕衡鸭鴨餘鸳鴛豫融歙嬴瓯甌郓鄆坛壇壁磨勋勳"));
            this.libs.Add(new MetaLibItem(16, 3, "锤錘锥錐锡錫钱錢错錯谕諭縢诸諸辑輯静嫱醒儒蒨侪儕战戰叡雕锦錦钢鋼錡锜锯鋸谒謁谖諼铮錚锭錠撮赪赬穆"));
            this.libs.Add(new MetaLibItem(16, 4, "遍熺烨燁潢谋謀陪学學霏奮颔頷缚縛默憲潘蒙鲍鮑潔浇澆溃潰靦腼霍潭潮润潤澄澂霖寰澍霑霓愤憤"));
            this.libs.Add(new MetaLibItem(17, 0, "颗谦謙玑璣检檢嶽恳懇擎击擊举舉糠艰艱讲講懋罄鞠觊覬赚賺黚矫矯莲蓮联聯檀蒋蔚营營蔡蔓篷豁蓬"));
            this.libs.Add(new MetaLibItem(17, 1, "队隊绩績麋隆赯儡励勵瞳嬭奶瞭辗輾纵縱螳临臨螺擂择擇燧炼煉黛隸襄蒋謄誊灿燦燭燥黏燮繆缪"));
            this.libs.Add(new MetaLibItem(17, 2, "優应應远遠壑陽擁拥醖酝婴嬰邬鄔嶺矶磯壕"));
            this.libs.Add(new MetaLibItem(17, 3, "操赛賽钟鐘齋聲骏駿聳偿償縻禅禪糟徽瞬缩縮聪聰总總逊遜锹鍬谢謝饯餞鲜鮮蹇鄒隋键鍵锅鍋谿锻鍛镀鍍氈舆輿赜"));
            this.libs.Add(new MetaLibItem(17, 4, "鄉鸿鴻繁霞璠璜璟禧賸嫔嬪镁鎂韩韓浓濃潞亵泽澤彌澹霜"));
            this.libs.Add(new MetaLibItem(18, 0, "翘翹谨謹绕繞骐騏槛檻搁擱擬璩归歸睑瞼简簡颜顏骑騎鹃鵑黠觐覲魏瞽蕊簪瞿隗鬆获獲鹄鵠萧蕭旧舊"));
            this.libs.Add(new MetaLibItem(18, 1, "烬燼禮斷戴適爵焘燾糧瞻转轉职職蟲鲤鯉题題釐曜豐燻"));
            this.libs.Add(new MetaLibItem(18, 2, "陨隕醫讴謳鄢壘礎璧"));
            this.libs.Add(new MetaLibItem(18, 3, "翼翱雙织織颛顓璨缮繕蝉蟬觞觴锁鎖秽穢鎗謦聂聶环環阙闕镇鎮鎚鎚储儲铠鎧镒鎰镕鎔迟遲"));
            this.libs.Add(new MetaLibItem(18, 4, "繐馥谟謨滨濱濮闖闯覆蹒蹣鞭涛濤济濟濯濙湿濕杂雜"));
            this.libs.Add(new MetaLibItem(19, 0, "关關麒攀曠鲸鯨遗遺撷願愿蚁蟻蟹繫薊蓟难難签簽繭薛麴薇麓竞競萨薩"));
            this.libs.Add(new MetaLibItem(19, 1, "谭譚韬韜離璽辙轍赠贈證际際麗類绎繹譔韲郑鄭鄧蠊庞龐"));
            this.libs.Add(new MetaLibItem(19, 2, "嬿稳穩"));
            this.libs.Add(new MetaLibItem(19, 3, "选選绣繡遷颠顛赞贊兽獸祷禱锵鏘遵畴疇鹊鵲识識辭绳繩鲭鲰鯫谯譙镜鏡繫链鏈镠鏐鏖镖鏢"));
            this.libs.Add(new MetaLibItem(19, 4, "鵰谱譜鹏鵬簿绘繪穫羹霪薄獵靡"));
            this.libs.Add(new MetaLibItem(20, 0, "琼瓊议議劝勸继繼觉覺警悬懸舰艦严嚴邀牺犧阚闞郐鄶藏纂篮籃籍筹籌骞騫獻薰麵"));
            this.libs.Add(new MetaLibItem(20, 1, "龄齡罗羅腾騰赡贍獭獺阐闡胧朧黨窦竇爐耀宝寶飘飄"));
            this.libs.Add(new MetaLibItem(20, 2, "孆耀矿礦砾礫壤"));
            this.libs.Add(new MetaLibItem(20, 3, "释釋钟鐘馨繻译譯触觸黥齣锏鐧镪鏹鐔镡镫鐙"));
            this.libs.Add(new MetaLibItem(20, 4, "還懷颟顢露"));
            this.libs.Add(new MetaLibItem(21, 0, "艺藝顾顧龈齦驱驅饒鷄嚣囂颢顥藤藥莺鶯樱櫻饶饒"));
            this.libs.Add(new MetaLibItem(21, 1, "跻躋蠟鳎鰨馔饌缠纏"));
            this.libs.Add(new MetaLibItem(21, 2, "趯蠡誉譽跃躍巍"));
            this.libs.Add(new MetaLibItem(21, 3, "随隨镌鐫续續铎鐸属屬镰鐮铁鐵鉴鑒"));
            this.libs.Add(new MetaLibItem(21, 4, "护護鹤鶴轟轰霹辩辯霸黯飜藩瀾澜灌"));
            this.libs.Add(new MetaLibItem(22, 0, "权權龢俨儼笼籠蘆鬻藷蘇苏龚龔"));
            this.libs.Add(new MetaLibItem(22, 1, "叠疊读讀摄攝聽躒跞龛龕颤顫赎贖囊览覽"));
            this.libs.Add(new MetaLibItem(22, 2, "璎瓔隐隱懿鬻窃巅巔"));
            this.libs.Add(new MetaLibItem(22, 3, "衬襯铸鑄鬚癣癬袭襲鑑"));
            this.libs.Add(new MetaLibItem(22, 4, "骅驊穰響响鳗鰻欢歡边邊沣灃霽霁灑"));
            this.libs.Add(new MetaLibItem(23, 0, "驿驛验驗兰蘭籖鱖鳜鹰鷹"));
            this.libs.Add(new MetaLibItem(23, 1, "兰蘭戀麟鳞鱗欒显顯"));
            this.libs.Add(new MetaLibItem(23, 2, "缨纓巖鑛矿鑢"));
            this.libs.Add(new MetaLibItem(23, 3, "攒攢霉铄鑠"));
            this.libs.Add(new MetaLibItem(23, 4, "囏变變黴霉"));
            this.libs.Add(new MetaLibItem(24, 0, "赣搅攪醸霭靄"));
            this.libs.Add(new MetaLibItem(24, 1, "灵靈雳靂鹭鷺篱籬鱣鳣"));
            this.libs.Add(new MetaLibItem(24, 2, "艳艷盐鹽罐"));
            this.libs.Add(new MetaLibItem(24, 3, "鑫蠶"));
            this.libs.Add(new MetaLibItem(24, 4, "鸂"));
            this.libs.Add(new MetaLibItem(25, 0, "观觀缵纘羁羈"));

            this.libs.Add(new MetaLibItem(25, 2, "叆靉"));

            this.libs.Add(new MetaLibItem(25, 4, "蠻灏灝酆"));
            this.libs.Add(new MetaLibItem(26, 0, ""));
            this.libs.Add(new MetaLibItem(26, 1, "逻邏郦酈"));

            this.libs.Add(new MetaLibItem(26, 3, "骥驥讚赞"));
            this.libs.Add(new MetaLibItem(26, 4, "湾灣"));

            this.libs.Add(new MetaLibItem(27, 1, "骧驤缆纜銮鑾"));

            this.libs.Add(new MetaLibItem(27, 3, "钻鑽锣鑼"));
            this.libs.Add(new MetaLibItem(27, 4, "滦灤"));
            this.libs.Add(new MetaLibItem(28, 0, "戆"));

        }

        public int getStringLibs(char item)
        {
            for (int i = 0; i < libs.Count; i++)
            {
                if (libs[i].IfStringexist(item))
                {
                    return i;
                }
            }
            return -1;
        }

        public List<MetaLibItem> getLibs()
        {
            return this.libs;
        }








    }
    /**取汉字五行笔画演示
     *
     * @author luozhuang 大师♂罗莊
     */
    public class Luozhuangnamewuxing
    {

        public BhWxLib myBhWxLib = new BhWxLib();

        /**
         * 取出名字每个字在库中位置
         *
         * @param name
         * @return
         */
        public int[] getnameliborder(String name)
        {
            char[] namechararray = name.ToArray();
            int[] returnarray = new int[namechararray.Length];
            for (int i = 0; i < namechararray.Length; i++)
            {
                int order = getnameliborder(namechararray[i]);
                returnarray[i] = order;
            }
            return returnarray;

        }

        /**
         * 取出字在库中位置
         *
         * @param name
         * @return
         */
        public int getnameliborder(char name)
        {
            List<MetaLibItem> libs = myBhWxLib.getLibs();

            int returnorder = -1;

            returnorder = myBhWxLib.getStringLibs(name);

            return returnorder;

        }

        /**
         * 取出名字笔画
         *
         * @param name
         * @return
         */
        public int getnameBH(int name)
        {
            List<MetaLibItem> libs = myBhWxLib.getLibs();

            int returnorder = -1;

            returnorder = libs[name].getBh();

            return returnorder;

        }

        /**
         * 取出名字五行
         *
         * @param name
         * @return
         */
        public int getnameWX(int name)
        {
            List<MetaLibItem> libs = myBhWxLib.getLibs();

            int returnorder = -1;

            returnorder = libs[name].getWx_indx();

            return returnorder;

        }

        /**
         * 取出名字笔画
         *
         * @param name
         * @return
         */
        public int[] getnameBH(int[] name)
        {
            int[] returnarray = new int[name.Length];
            for (int i = 0; i < name.Length; i++)
            {
                returnarray[i] = getnameBH(name[i]);

            }
            return returnarray;
        }

        /**
         * 取出名字五行
         *
         * @param name
         * @return
         */
        public int[] getnameWX(int[] name)
        {
            int[] returnarray = new int[name.Length];
            for (int i = 0; i < name.Length; i++)
            {
                returnarray[i] = getnameWX(name[i]);

            }
            return returnarray;

        }

        /**
         * 取出名字五行汉字
         *
         * @param name
         * @return
         */
        public String[] getnameWXarray(int[] name)
        {
            String[] returnarray = new String[name.Length];
            for (int i = 0; i < name.Length; i++)
            {
                returnarray[i] = getnameWXnaying(name[i]);

            }
            return returnarray;

        }

        /**
         * 取出名字五行汉字
         *
         * @param name
         * @return
         */
        public String getnameWXnaying(int name)
        {
            switch (name)
            {
                default:
                    return "无";
                case 0:

                    return "木";

                case 1:
                    return "火";

                case 2:
                    return "土";

                case 3:
                    return "金";

                case 4:
                    return "水";
            }

        }

        public String pringst(int[] res)
        {
            stringbuilder result = new StringBuilder();
            for (int i = 0; i < res.Length; i++)
            {
                result.APPend(res[i]);
                result.append("   ");
            }

            result.Append("\n");
            console.WriteLine(result);
            return result.ToString();
        }

        public String pringst(String[] res)
        {
            StringBuilder result = new StringBuilder();
            for (int i = 0; i < res.Length; i++)
            {


                result.Append(res[i]);
                result.Append("   ");
            }

            result.Append("\n");
            Console.WriteLine(result);
            return result.ToString();
        }

        /**
         * @param args the command line arguments
         */
        public static void main(String[] args)
        {

            Console.WriteLine("五行简介:\n"
                    + "\n"
                    + "中国五行学说认为宇宙万物,都由金木水火土五种基本物质的运行和变化所构成,所有事物都是随着这五个要素的盛衰,而使得大自然产生变化,不但影响到人的命运,同时也使宇宙万物循环不已。\n"
                    + "\n"
                    + "其中:\n"
                    + "“木曰曲直”,意思是木具有生长、升发的特性;\n"
                    + "“火曰炎上”,是火具有发热、向上的特性;\n"
                    + "“土爰稼墙”,是指土具有种植庄稼,生化万物的特性;\n"
                    + "“金曰从革”,是金具有肃杀、变革的特性;\n"
                    + "“水曰润下”,是水具有滋润、向下的特性\n"
                    + "五行相生相克\n"
                    + "\n"
                    + "五行相生:金生水,水生木,木生火,火生土,土生金。\n"
                    + "\n"
                    + "五行相克:金克木,木克土,土克水,水克火,火克金。 ");
            Console.WriteLine("中国汉字有那五行?\n"
                    + "根据中国五行理论,汉字分为金、木、水、火、土共五种五行属性,每个汉字对应一种五行属性。");
            Luozhuangnamewuxing my = new Luozhuangnamewuxing();
            int[] temp = my.getnameliborder("大师罗庄");
            int[] wuxing = my.getnameWX(temp);
            int[] BH = my.getnameBH(temp);
            Console.WriteLine("大师罗庄的五行");
            my.pringst(my.getnameWXarray(wuxing));
            Console.WriteLine("大师罗庄的笔画");
            my.pringst(BH);


        }
    }


    public class MetaLibItem
    {
        public int Bhs { get; set; }
        public int Wx { get; set; }
        public string Str { get; set; }
        public MetaLibItem()
        {

        }
        public bool IfStringexist(char str)
        {
            return Str.Contains(str);

            return false;
        }

        internal int getBh()
        {
            return Bhs;
        }

        internal int getWx_indx()
        {
            return Wx;
        }

        public MetaLibItem(int bhs, int temp, string str)

        {
            Bhs = bhs;
            Wx = temp;
            Str = str;
        }
    }
    public class TdrgModel
    {
        public string Td { get; set; }

        public string Jx { get; set; }

        public string JxDetails { get; set; }
    }
    public class ArraytotalModel
    {
        public string Index { get; set; }

        public string Jx { get; set; }

        public string JxDetails { get; set; }
    }

调用也比较简单

var jlz = new JavaLuozhuangtestnameClass("罗庄");

            response.write(jlz.testname());

            response.end();

以上是这罗半仙java写的 博客中放出来的 我只是截了个图 感兴趣可以自己去看

下面的是我这边打印出来的 相同

应该还有些缺点 就是字库不够,谁有时间可以帮忙把这个字库在加点 哈哈

也不要太认真啊 ,看看就好了。

相关阅读

分享到:

栏目导航

推荐阅读

热门阅读