Skip to content

Commit

Permalink
Fixed Korean ipa converter to handle batchim more than ㄱㄴㄷㄹㅁㅂㅇ
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Oct 15, 2024
1 parent 2f2498b commit eb2ee40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
platform: [win-x64, linux-x64, osx-x64]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public override string ConvertToIPA(string phoneme, bool isFirstPhoneme)
if (KoreanPhonemizerUtil.IsHangeul(phoneme))
{

var splited = KoreanPhonemizerUtil.Separate(phoneme);
string phoneme_ = KoreanPhonemizerUtil.Variate(null, phoneme, null);
var splited = KoreanPhonemizerUtil.Separate(phoneme_);
string firstConsonant = (string)splited[0];

if ( isFirstPhoneme && (firstConsonant == "ㄱ" || firstConsonant == "ㄷ" || firstConsonant == "ㅂ"))
Expand Down

0 comments on commit eb2ee40

Please sign in to comment.