[C# , AS3 , ETC] 한글 유니 코딩 조합 원리


 





//참고 원문 : http://uuzazuk9.egloos.com/906488


한글 조합 공식 :
[{(초성)×588}+{(중성)×28}+(종성)]+44032

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace TEST_Keyboard2
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);
            string result = ResultKorean("ㅇ", "ㅢ", "ㅇ"); //읭
            Console.WriteLine(result);
        }

        private string row_chosung = "ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎ";
        private string row_jungsung = "ㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ";
        private string row_jongsung = " ㄱㄲㄳㄴㄵㄶㄷㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅄㅅㅆㅇㅈㅊㅋㅌㅍㅎ";

        private string ResultKorean(string chosung, string jungsung, string jongsung)
        {
            int chosungIndex = row_chosung.IndexOf(chosung);
            int jungsungIndex = row_jungsung.IndexOf(jungsung);
            int jongsungIndex = row_jongsung.IndexOf(jongsung);


            //공식
            int result = ((chosungIndex * 588) + ((jungsungIndex * 28) + jongsungIndex)) + 44032;


            char temp = Convert.ToChar(result);
            return temp.ToString();
        }

    }
}



간단한 유니코드의 연속 이라 .. 다른 언어에도 쉽게 적용할수 있을것 같다.
Yamecoder 야매코더_
C# 2011. 11. 21. 17:07

댓글을 달아 주세요

  1. 이전 댓글 더보기
  2. 匿名 2014.10.10 10:26  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  3. 匿名 2014.10.10 10:27  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  4. 匿名 2014.10.10 10:28  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  5. BlogIcon Cheap Gucci Bags 2014.10.14 18:14  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  6. BlogIcon mont blanc fountain pen��mont blanc pen��mont blanc pens��mont b 2014.10.23 13:50  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  7. BlogIcon moncler-jackets.us.com 2014.10.25 00:03  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  8. BlogIcon spaccio woolrich 2014.11.01 23:27  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  9. BlogIcon fake moncler jackets uk 2014.11.09 10:36  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  10. BlogIcon 深圳眼镜批发 2014.11.12 00:50  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  11. BlogIcon ralph lauren outelt 2014.11.23 08:08  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  12. BlogIcon Moncler Jackets For Girls 2014.12.30 08:19  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  13. 匿名 2015.01.07 17:45  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  14. 匿名 2015.01.15 12:20  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  15. BlogIcon clubmaster Sunglasses 2015.03.05 17:04  수정/삭제  댓글쓰기

    지및simplyif you are looking to lose fat you want to undoubtedly attempt anythingthat truly works.

    Phen37fiveis actually an appetite suppressant concurrently an overly wonderfulbody fat burner. it's mainly for that folks who find themselves substantially obese. Phen37fiveis usually a pharmacy grade additionalfat burner concurrently getting very efficient appetite suppressant.

    How can we fully어데

  16. BlogIcon Burberry sac 2015.03.31 00:03  수정/삭제  댓글쓰기

    로메Les enquteurs de l'aviation de l'aile et le copilote oculaires - sohu nouvelle doute

    Source: Sohu.com mise à jour: 2015-03-30 03: 34: 29: la nouvelle classification des mots - clés: le crash, les enquteurs

    crash aérien de l'aile et l'oeil sceptique copilote oculaires - sohu nouvelle enquteurs crash aérien de l'aile et le copilote de maladies de l'oeil concern&eac로어

  17. 匿名 2015.03.31 08:50  수정/삭제  댓글쓰기

    크는When shopping for golfing apparel and equipment there are a number of different choices open to you. Many prefer to use the high street stores or a discount golf warehouse as they have many advantages. First and foremost the majority of actual golf shops will allow you to try and test the equipment before you actually make an investment, this can be key especially with golf clubs, having the right에분

  18. 匿名 2015.04.01 06:28  수정/삭제  댓글쓰기

    가할Lacoste boots and a beret big mesh, or even the entire pleated skirt,Managing a Bike Tour in Thail, tights and wool biker boots. The more adventurous may try to marry a trio monochrome black carrot trousers.



    Badia will be a mini-skirt skater, opaque tights and Minnetonka for a look kindly teenager, as she wants deliciously shifted pair of trousers,Save Over $1600 While You Sho, sweater and 표마

  19. 匿名 2015.04.03 13:49  수정/삭제  댓글쓰기

    지에and even better news is that their greatest extent EVER!Beautiful flowers and fittings add a touch of tartan jackets that unmistakable feminine essence, while injections of red.



    Purple and orange make this the biggest ever range of colors.Barbour waxed jackets, Barbour International Quilt Jacket, Jackets Barbour Polar Quilt .


    I kid you not. Do a search for easy shopping cart software i어마

  20. 匿名 2015.04.03 17:37  수정/삭제  댓글쓰기

    메한One more method to set out with cheap wholesale products is for house hold stuff such as clothing when you want them in addition to other necessities that are used for granted yet utilized every day like lavatory items and paper mops. Dish detergent, laundry detergent, even shower soap can also be found when shopping cheap wholesale. You can get a 2 months supply of everything for the price of one습지

  21. 匿名 2015.04.04 02:54  수정/삭제  댓글쓰기

    부일火车采集器html简单模板示范






    Delhi Motorcycle Trailer







    [标签:来源]








    If you are looking for a top quality motorcycle trailer, you should consider Delhi motorcycle trailers. As manufacturers of top-notch trailers and trailer accessories, Delhi offers many different kinds of trailers for your needs. Read on to learn of the options in Delhi motorcycle trailers and where to 적선

Powerd by Tistory, designed by criuce
rss