Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Korean markers (조사. e.g. 은/는, 이/가, 을/를, 와/과, ...) support? #335

Open
foriequal0 opened this issue Aug 17, 2021 · 2 comments

Comments

@foriequal0
Copy link

foriequal0 commented Aug 17, 2021

I couldn't find an example for supporting korean markers.

Some korean markers depend on whether a previous noun ends with a consonant or with a vowel (without a consonant).
With a consonant, we use 은, 이, 을, 과, and without a consonant, we use 는, 가, 를, 와.

Let me assume that I want to translate following sentence:
Do you want to delete a user?

Then it might be translated into 사용자를 삭제하시겠습니까?.
'를' after '사용자' is an object marker. The last character of '사용자' is '자', and it doesn't have a letter at its bottom, so it ends with a vowel (ㅓ), without a consonant.
If we change '사용자' to '계정' (account), the message should be 계정을 삭제하시겠습니까?.
'을' after '계정' is also an object marker. The last character of '계정' is '정', and it has a letter 'ㅇ' at its bottom, so it ends with a consonant.
This is similar to other markers. Their usages depend on whether a previous noun ends with a consonant or not.

If we make '사용자' or '계정' a variable such as $type, then we should have a way to tell whether $type ends wth a consonant or not.
Should this be implemented in custom function like this?

delete-prompt = { KOREAN_ENDS_WITH($type) ->
  [consonant] {$type}을 삭제하시겠습니까?
  [vowel]     {$type}를 삭제하시겠습니까?
}
@doodoori2
Copy link

I'm sorry it wasn't an answer your question. ;)

Unreal engines have similar functions. see also hangulpost-positions section.
it seems to be a reference about your question.
https://docs.unrealengine.com/4.26/en-US/ProductionPipelines/Localization/Formatting/#hangulpost-positions

@armoha
Copy link

armoha commented Jan 16, 2022

This seems to related with #80.
Localization example on (comment):

-creature-fairy = fairy
-creature-elf = elf
    .StartsWith = vowel

you-see =
    You see { $object.StartsWith ->
        [vowel] an { $object }
       *[consonant] a { $object }
    }.

(r-)eul 을/를 Korean postposition with same example:

-creature-fairy = 요정
-creature-elf = 엘프
    .EndsWith = vowel

you-see =
    당신은 { $object.EndsWith ->
        [vowel] { $object }
       *[consonant] { $object }
    } 발견했다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants