Menu

How to configure for Korean characters

Help
2018-07-30
2018-09-03
  • Francisco J. Vico

    After some reading, it seems that the locale configuration is related, and UTF-8 encoding is needed, but don't how to configure mlterm to show the Korean characters, that are now showing in the LXTerminal.
    Also, how can this be done "hot"? I mean, after having run mlterm, with a command in the same terminal.

     
  • Francisco J. Vico

    -E UTF-8 did not help either...

     
  • Francisco J. Vico

    I've checked https://sourceforge.net/p/mlterm/discussion/130836/thread/9b7e455a/, but the question remains. What would be the character set to use the Hangul symbols?

     

    Last edit: Francisco J. Vico 2018-07-31
  • Francisco J. Vico

    What is disturbing here is that the LXTerminal shows Latin and Korean symbols, but not the mlterm. So, the character set is somewhere, but mlterm does not see it.

     
  • Francisco J. Vico

    some more configutation data:

    $ locale -a
    C
    C.UTF-8
    en_AG
    en_AG.utf8
    en_AU.utf8
    en_BW.utf8
    en_CA.utf8
    en_DK.utf8
    en_GB.utf8
    en_HK.utf8
    en_IE.utf8
    en_IN
    en_IN.utf8
    en_NG
    en_NG.utf8
    en_NZ.utf8
    en_PH.utf8
    en_SG.utf8
    en_US.utf8
    en_ZA.utf8
    en_ZM
    en_ZM.utf8
    en_ZW.utf8
    es_ES.utf8
    POSIX

    $ locale
    LANG=en_US.UTF-8
    LANGUAGE=en_US
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC=es_ES.UTF-8
    LC_TIME=es_ES.UTF-8
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY=es_ES.UTF-8
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER=es_ES.UTF-8
    LC_NAME=es_ES.UTF-8
    LC_ADDRESS=es_ES.UTF-8
    LC_TELEPHONE=es_ES.UTF-8
    LC_MEASUREMENT=es_ES.UTF-8
    LC_IDENTIFICATION=es_ES.UTF-8
    LC_ALL=

     
  • Araki Ken

    Araki Ken - 2018-08-03

    Please show me ~/.mlterm/main and the result of following commands.
    $ mlcc fontconfig
    $ mlcc type_engine
    $ echo $MLTERM
    $ tail ~/.mlterm/msg.log

    Starting mlterm with "-type cairo" option might fix the problem.
    mlterm searches appropriate fonts automatically only if the value of type_engine
    option is "cairo".

    Otherwise, how about specifying a font which contains hangul glyphs in ~/.mlterm/aafont
    explicitly as follows ?

    ISO10646_UCS4_1_FULLWIDTH=

     
  • Francisco J. Vico

    $more ~/.mlterm/main
    borderless = true
    fg_color = white
    bg_color = black

    $ mlcc fontconfig
    ]5380;fontconfig

    $ mlcc type_engine
    ]5380;type_engine

    $ echo $MLTERM

    (it's empty)

    $tail ~/.mlterm/msg.log
    Jul 31 05:27:29[17072] UTG-8 encoding is not supported. Auto detected encoding is used.

    --type=cairo
    

    did not work, characters are shown as boxes again.

    as for the last option, I tried

    ISO10646_UCS4_1_FULLWIDTH=dotum
    

    but did not work either.

     

    Last edit: Francisco J. Vico 2018-08-04
    • Araki Ken

      Araki Ken - 2018-08-04

      $ mlcc fontconfig
      > ]5380;fontconfig
      $ mlcc type_engine
      > ]5380;type_engine
      $ echo $MLTERM
      (it's empty)
      I'm sorry but I can't understand these results.
      It seems that mlterm doesn't work.

      Which version of mlterm do you use? ($ mlterm --version)
      If you start mlterm with --restart=false option, does something change?
      Will you show me a screenshot?

       
      • Francisco J. Vico

        have removed and installed again mlterm, but the problem remains.

        I've realized that the results of executing the commands you sent from mltern and any other terminal are different. This is the result from mlterm (after reinstalling):

        $ mlcc fontconfig
        #error
        $ mlcc type_engine
        #type_engine=xft
        $ echo $MLTERM
        3.5.0

        $ mlterm --version
        mlterm version 3.5.0
        (running on Lubuntu 16.04)

        --restart=false
        did not make any change...

        LXTerm: https://imgur.com/XiY6ix2
        mlterm: https://imgur.com/M0c1DRX

        (sorry, I should had provided version and images from the beginning.)

         

        Last edit: Francisco J. Vico 2018-08-05
      • Francisco J. Vico

        Have just found that version 3.8.6 does not reproduce the problem after installation, but still have to fix it with version 3.5, since 3.8 is not available for Lubuntu version 16.04, which is the one I use to package the main program (Lubuntu 18.04 has 3.8 in its repository, but lacks other necessary libraries).

         
        • Araki Ken

          Araki Ken - 2018-09-03

          Sorry for my late reply.
          I tested on Lubuntu 16.04 , then I can show korean characters by following steps.

          $ sudo apt-get install mlterm
          $ sudo apt-get install fonts-baekmuk
          $ fc-list | grep dotum
          /usr/share/fonts/truetype/baekmuk/dotum.ttf: Baekmuk Dotum, ... :style=Regular
          $ echo "ISO10646_UCS4_1_FULLWIDTH=Baekmuk Dotum" >> ~/.mlterm/aafont
          (ISO10646_UCS4_1_BIWIDTH is also available)

           
          • Francisco J. Vico

            You're absolutely right, dotum wasn't installed and now it works just fine.
            Thx so much!

             
  • Francisco J. Vico

    ISO10646_UCS4_1_BIWIDTH=dotum-iso10646-1;
    

    and

    ISO10646_UCS2_1_BIWIDTH=dotum-iso10646-1;
    

    same result: boxes.

     
    • Araki Ken

      Araki Ken - 2018-09-03

      I suspect that 'dotum' font is not installed.
      Following command will show whether 'dotum' font is installed or not.
      $ fc-list|grep dotum

       
  • Francisco J. Vico

    Just installed xterm and it shows Korean characters straight away... Can't understand how a multilingual terminal, by default, does not.

     

    Last edit: Francisco J. Vico 2018-08-05

Log in to post a comment.