Not a plea for help since I imagine using the word bank allows the text to be accepted. And no, I’m not trying to get it to fail by using 二 instead of ニ. I’m pretty sure the exercise is bugged.

  • nmtake@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    If you’re familar with Python, can you try this script? (please replace the string a and b with your input and the answer)

    $ python
    >>> import unicodedata
    >>> a = 'はい、 コンビニです。'
    >>> print('\n'.join(f'{hex(ord(c))}, {unicodedata.name(c)}' for c in a))
    0x306f, HIRAGANA LETTER HA
    0x3044, HIRAGANA LETTER I
    0x3001, IDEOGRAPHIC COMMA
    0x3000, IDEOGRAPHIC SPACE
    0x30b3, KATAKANA LETTER KO
    0x30f3, KATAKANA LETTER N
    0x30d3, KATAKANA LETTER BI
    0x30cb, KATAKANA LETTER NI
    0x3067, HIRAGANA LETTER DE
    0x3059, HIRAGANA LETTER SU
    0x3002, IDEOGRAPHIC FULL STOP
    >>> b = 'はい、コンビニです。'
    >>> print('\n'.join(f'{hex(ord(c))}, {unicodedata.name(c)}' for c in b))
    0x306f, HIRAGANA LETTER HA
    0x3044, HIRAGANA LETTER I
    0x3001, IDEOGRAPHIC COMMA
    0x30b3, KATAKANA LETTER KO
    0x30f3, KATAKANA LETTER N
    0x30d3, KATAKANA LETTER BI
    0x30cb, KATAKANA LETTER NI
    0x3067, HIRAGANA LETTER DE
    0x3059, HIRAGANA LETTER SU
    0x3002, IDEOGRAPHIC FULL STOP
    
    • baltakateiOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I didn’t copy and save Duolingo’s correct answer, but here’s what I would have typed via fcitx5 put through your python:

      0x306f, HIRAGANA LETTER HA
      0x3044, HIRAGANA LETTER I
      0x3001, IDEOGRAPHIC COMMA
      0x30b3, KATAKANA LETTER KO
      0x30f3, KATAKANA LETTER N
      0x30d3, KATAKANA LETTER BI
      0x30cb, KATAKANA LETTER NI
      0x3067, HIRAGANA LETTER DE
      0x3059, HIRAGANA LETTER SU
      0x3002, IDEOGRAPHIC FULL STOP
      

      from

      #!/usr/bin/env python3
      import unicodedata
      a = 'はい、コンビニです。'
      print('\n'.join(f'{hex(ord(c))}, {unicodedata.name(c)}' for c in a))
      
      • nmtake@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Your input via Fcitx5 is correct without any doubt, so I believe it’s a duolingo’s fault.