NKFtool is a Julia package for guessing and converting encodings in Japanese text. This is the wrapper module to Network kanji (Japanese characters) filter, aka nkf, and provides the interface to use nkf from Julia.
julia> nkf_convert( raw"こんにちわ", "-s") |> nkf_guess
"Shift_JIS"
- STABLE — documentation of the most recently tagged version.
- DEVEL — documentation of the in-development version.
NKFtool requires nkf to be installed in your system. Major Unix-like operating systems offer its precompiled version in their package management systems.
NKFtool also requires Julia v1.0 or above.
To install NKFtool using Julia's packaging system, enter Julia's package manager prompt with ]
, and run
(v1.1) pkg> add NKFtool
To run the tests, enter Julia's package manager with ] and run
(v1.1) pkg> add NKFtool
The current test codes are prepared for "Network Kanji Filter Version 2.1.5 (2018-12-15)".
The current package is tested against Julia 1.1 and above on Linux and MacOSX.
Contributions are very welcome, as are feature requests and suggestions. Please open an issue if you encounter any problems.
This software is released under the MIT License, see LICENSE.