Skip to content

Releases: ymw0407/jamo

jamo v1.0.0 released

07 Apr 08:38
Compare
Choose a tag to compare

What's Changed

  • README.md generated by Open-Set-Go 🚀 by @ymw0407 in #1
  • Issue Template generated by Open-Set-Go 🚀 by @ymw0407 in #2
  • Pull-Request Template generated by Open-Set-Go 🚀 by @ymw0407 in #3
  • CONTRIBUTING.md generated by Open-Set-Go 🚀 by @ymw0407 in #4

New Contributors

Full Changelog: v0.0.2...v1.0.0

  • ClassifySyllables Function added

    • ClassifySyllables for Hangeul's Consonant, Vowel, and Undefined
  • ComposeHangeul Function added

    • ComposeHangeul only available with Hangeul's syllable (' ', '!','a-z'... is not available)
      • e.g. "english" -> [], JamoError.ErrImpossibleToCompose
      • e.g. "한ㅇ글" -> [], JamoError.ErrImpossibleToCompose
      • e.g. "한 글" -> [], JamoError.ErrImpossibleToCompose
      • e.g. "한글!" -> [], JamoError.ErrImpossibleToCompose
      • e.g. "ㅎㅏㄴ글" -> [], JamoError.ErrImpossibleToCompose
    • ComposeHangeul supporting any other decomposing Hangeul options(Qwerty or Jamo option)
      • e.g. "ㅇㅔㅔㅅㅣ" -> ["예시"], nil
      • e.g. "ㅇㅕㅣㅅㅣ" -> ["예시"], nil
    • ComposeHangeul, if it can be combined into several other characters, it returns all of them.
      • e.g. "ㄱㄱㅏㄱㄱㅣ" -> ["깍기", "까끼"], nil
      • e.g. "ㄱㄱㅏㄱㅅㅅㅣ" -> ["깏시", "깍씨"], nil
  • README.md & CONTRIBUTING.md & IssueTemplates & PullRequestTemplate added

jamo v0.0.2 released

06 Apr 14:18
Compare
Choose a tag to compare

Full Changelog: v0.0.1...v0.0.2

library name golang-jamo changed to jamo

golang-jamo library initialized

06 Apr 14:11
Compare
Choose a tag to compare

Full Changelog: https://github.com/ymw0407/golang-jamo/commits/v0.0.1

  • decomposing hangeul("한글") into syllables("음절") function added
  • option for decomposing syllables more added
    1. Qwerty: decompose syllables more with qwerty keyboard layout
      QwertyDecomposer = map[string]string{
        "ㅘ": "ㅗㅏ",
        "ㅙ": "ㅗㅐ",
        "ㅚ": "ㅗㅣ",
        "ㅝ": "ㅜㅓ",
        "ㅞ": "ㅜㅔ",
        "ㅟ": "ㅜㅣ",
        "ㅢ": "ㅡㅣ",
        "ㄳ": "ㄱㅅ",
        "ㄵ": "ㄴㅈ",
        "ㄶ": "ㄴㅎ",
        "ㄺ": "ㄹㄱ",
        "ㄻ": "ㄹㅁ",
        "ㄼ": "ㄹㅂ",
        "ㄽ": "ㄹㅅ",
        "ㄾ": "ㄹㅌ",
        "ㄿ": "ㄹㅍ",
        "ㅀ": "ㄹㅎ",
        "ㅄ": "ㅂㅅ",
      }
      • 2 addtional shiftOptions available
        1. QwertyShiftOption1
          QwertyOnlyShiftDecomposer1 = map[string]string{
            "ㄲ": "ㄱㄱ",
            "ㄸ": "ㄷㄷ",
            "ㅃ": "ㅂㅂ",
            "ㅆ": "ㅅㅅ",
            "ㅉ": "ㅈㅈ",
            "ㅒ": "ㅑㅣ",
            "ㅖ": "ㅕㅣ",
          }
        2. QwertyShiftOption2
          QwertyOnlyShiftDecomposer2 = map[string]string{
          "ㄲ": "ㄱㄱ",
          "ㄸ": "ㄷㄷ",
          "ㅃ": "ㅂㅂ",
          "ㅆ": "ㅅㅅ",
          "ㅉ": "ㅈㅈ",
          "ㅒ": "ㅐㅐ",
          "ㅖ": "ㅔㅔ",
          }
    2. Jamo: decompose syllables more with jamo options(complex consonants, tense consonants, diphthong)
      1. TenseConsonants(된소리 자음)
        TenseConsonantsDecomposer = map[string]string{
          "ㄲ": "ㄱㄱ",
          "ㄸ": "ㄷㄷ",
          "ㅃ": "ㅂㅂ",
          "ㅆ": "ㅅㅅ",
          "ㅉ": "ㅈㅈ",
        }
      2. ComplexConsonants(복합 자음)
        ComplexConsonantsDecomposer = map[string]string{
          "ㄳ": "ㄱㅅ",
          "ㄵ": "ㄴㅈ",
          "ㄶ": "ㄴㅎ",
          "ㄺ": "ㄹㄱ",
          "ㄻ": "ㄹㅁ",
          "ㄼ": "ㄹㅂ",
          "ㄽ": "ㄹㅅ",
          "ㄾ": "ㄹㅌ",
          "ㄿ": "ㄹㅍ",
          "ㅀ": "ㄹㅎ",
          "ㅄ": "ㅂㅅ",
        }
      3. Diphthong(이중 모음)
        DiphthongDecomposer = map[string]string{
          "ㅐ": "ㅏㅣ",
          "ㅒ": "ㅑㅣ",
          "ㅔ": "ㅓㅣ",
          "ㅖ": "ㅕㅣ",
          "ㅘ": "ㅗㅏ",
          "ㅙ": "ㅗㅏㅣ",
          "ㅚ": "ㅗㅣ",
          "ㅝ": "ㅜㅓ",
          "ㅞ": "ㅜㅓㅣ",
          "ㅟ": "ㅜㅣ",
          "ㅢ": "ㅡㅣ",
        }