Function: japanese-katakana

japanese-katakana is an autoloaded and byte-compiled function defined in japan-util.el.gz.

Signature

(japanese-katakana OBJ &optional HANKAKU)

Documentation

Convert argument to Katakana and return that.

The argument may be a character or string. The result has the same type. The argument object is not altered--the value is a copy. Optional argument HANKAKU t means to convert to hankaku Katakana
(japanese-jisx0201-kana), in which case return value
may be a string even if OBJ is a character if two Katakanas are necessary to represent OBJ.

Probably introduced at or before Emacs version 21.1.

Source Code

;; Defined in /usr/src/emacs/lisp/language/japan-util.el.gz
;;;###autoload
(defun japanese-katakana (obj &optional hankaku)
  "Convert argument to Katakana and return that.
The argument may be a character or string.  The result has the same type.
The argument object is not altered--the value is a copy.
Optional argument HANKAKU t means to convert to `hankaku' Katakana
\(`japanese-jisx0201-kana'), in which case return value
may be a string even if OBJ is a character if two Katakanas are
necessary to represent OBJ."
  (if (stringp obj)
      (japanese-string-conversion obj 'japanese-katakana-region hankaku)
    (or (get-char-code-property obj (if hankaku 'jisx0201 'katakana))
	obj)))