Skip to content

hisashim/copyedit-ja

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Copyedit-ja: Copyediting tool for Japanese text

Copyedit-ja is a copyediting tool for Japanese text on Emacs.

  • Copyright (c) 2008-2021 Hisashi Morita
  • License: Public Domain

Synopsis

  1. Check possible typos.
    M-x copyedit-ja-check-typo-particles
    
  2. Edit them.
    M-x copyedit-ja-normalize-typo-particles
    

(See color-moccur for detail, since Copyedit-ja is basically just a wrapper around color-moccur with preset regexp patterns.)

Features

Copyedit-ja helps checking and resolving issues with:

  • Possible typos (successive ga, no, ni, wo, etc.)
  • Character widths (numerals, parentheses, etc.)
  • Matching of opening and closing parentheses
  • Style (direct style (da-dearu) and distal style (desu-masu))
  • Commas and periods (ten-maru and kan-piri)
  • Uses of prolonged sound marks (onbiki)
  • Space characters between latin text and Japanese text,

etc.

Try M-x copyedit-ja- TAB to list available commands.

Requirements

[1]: color-moccur v2.73 from the original author can be found in the Internet Archive, although the code seems the same as v2.71.

Installation

  1. Install requirements.

    • Install Emacs.
      $ sudo apt install emacs
      
    • Install color-moccur using Emacs package manager. (See MELPA for detail.)
      $ emacs ~/emacs.d/init.el
      ...(add package configurations and reload)...
      M-x package-list-packages
      M-x package install
      ...(choose color-moccur)...
      
    • Install MeCab and UTF-8 dictionary for it.
      $ sudo apt install mecab mecab-naist-jdic
      
  2. Install copyedit-ja.

    • Put copyedit-ja.el somewhere in your load-path.
      $ cp copyedit-ja.el ~/.emacs.d/lisp/
      
    • If you prefer, load copyedit-ja on startup.
      $ echo "(require 'copyedit-ja)" >> ~/emacs.d/init.el
      
  3. Configure copyedit-ja (optional).

    • Tweak dictionaries to fit your needs in your Emacs init file.
      (setq copyedit-ja--dict-user-specified-keywords
            (append copyedit-ja--dict-user-specified-keywords
                    '(("TCP-IP". "TCP/IP"))))
      

References

Copyedit-ja is inspired and heavily influenced by respectable forerunners' works.

About

Copyediting tool for Japanese text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages