pub fn parse_ki2_file<P: AsRef<Path>>(
    path: P
) -> Result<JsonKifuFormat, ConvertError>
Expand description

Parses a KI2 file to jkf::JsonKifuFormat

If the file extension is .ki2, it is decoded as Shift-JIS, and if it is .ki2u, it is decoded as UTF-8 and parsed.

See: http://kakinoki.o.oo7.jp/KifuwInt.htm

Errors

This function returns ConvertError if it fails to parse the file.