Git Product home page Git Product logo

hancom_hangul_docker's Introduction

Build docker image for Hancom Hangul HWP

This package supports to install Hancom Hangul for Linux in Gentoo or other Linux distributions by using docker.

Requirements

This image is tested in Gentoo Linux with docker. However, most of Linux distributions can support this.

Install docker and additional tools. See Gentoo docker WIKI for more detailed instruction. xhost is required to launch GUI from docker container.

$ sudo emerge -av app-containers/docker
$ sudo emerge -av docker-cli
$ sudo emerge -av docker-buildx

$ sudo emerge -av sys-devel/make
$ sudo emerge -av xhost

Install

  1. Clone this repository.
$ git clone https://github.com/erdosxx/hancom_hangul_docker.git
  1. Define DESTDIR for the location of the script, run_hwp.sh. The default location is $HOME/.local/bin, so without definition of it, the default location is used.
$ export DESTDIR="$HOME/.local/bin"

Run make.

$ make

Check the installed docker images as following.

$ docker images
REPOSITORY     TAG       IMAGE ID       CREATED          SIZE
hangul_2020    1.0       8f62f4663ad9   23 minutes ago   3.77GB

Uninstall

With the definition of DESTDIR, run

$ export DESTDIR="$HOME/.local/bin"
$ make uninstall

How to use

After installation, you can run this as following.

$ $DESTDIR/run_hwp.sh <filename.hwp>

The mount and working directory in docker image is your $HOME folder. So you can use this tool as if it runs without docker environment. With LF and Ranger file manager, we can easily open HWP file. To set LF, for example, please refer to lfrc file. That is, in lfrc file, add following line.

application/x-hwp|application/x-hwp+zip) setsid -f run_hwp.sh $f >/dev/null 2>&1 ;;

For Ranger, for example, see riffle.conf file. That is, in rifle.conf file, add following line.

ext hwp,  has run_hwp.sh,    X, flag f = run_hwp.sh "$@"

Tips

If you think that zoom level of HWP application is small, you can zoom up by editing run_hwp.sh file. The default scale factor is 1. For example, to increase it to 1.2, change the value of QT_SCALE_FACTOR as following.

...
  --volume "$HOME":"$HOME" --device=/dev/dri:/dev/dri --env "QT_SCALE_FACTOR=1.2" \
...

hancom_hangul_docker's People

Contributors

norel-evoagile avatar

Stargazers

Kwang-Seuk Jeong avatar

Watchers

Norel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.