Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Some YAML dictionaries for Konjac
branch: experimental

This branch is even with master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
alphanumeric.yml
kana.yml
punctuation.yml

README.md

Konjac Dictionaries

These are just some dictionaries I've added for use with Konjac. They're mostly designed to clean up formatting and automate some of the most obvious conversions I know between the two languages I know, Japanese and English. The files available are:

  • alphanumeric.yml - One-way conversion of full-width letters and numbers to half-width letters and numbers (e.g. Nov1984 #=> Nov1984)
  • kana.yml - One-way conversion of half-width katakana to full-width katakana (e.g. バックアップ #=> バックアップ)
  • punctuation.yml - Two-way conversion of kanji-style full-width punctuation to Western style half-width punctuation

Installation

git clone git://github.com/brymck/konjac_yml.git
cp konjac_yml/*.yml ~/.konjac

Usage

Convert all full-width alphanumeric characters in a Japanese plain-text to half-width:

konjac translate input.txt -o output.txt -f ja -t en -u alphanumeric

Convert using the alphanumeric, kana and punctuation dictionaries:

konjac translate input.txt -o output.txt -f ja -t en -u alphanumeric -u kana -u punctuation
Something went wrong with that request. Please try again.