CALL KACNV
This page was last modified 03:15, 29 November 2016 by Mars2000you.

Contents

Effect

Converts 2-byte characters (Zenkaku) into 1-byte characters (Hankaku), except if the original characters are kanjis, and substitues them into a character string.

Syntax

CALL KACNV (B$,A$)

Parameters

A$ is the original string of characters (character constant, variable, array variable or expression)
B$ is the converted string of characters (variable of character type)

Conversion rules

Before conversion After conversion
Zenkaku alphabets and numerics Hankaku alphabets and numerics
Zenkaku hiraganas Hankaku katakanas
Zenkaku katakanas Hankaku katakanas
Kanjis Kanjis (no conversion)


Example

CALL KACNV(B$,"本琵のお薦めメニュー"):PRINT B$
本琵ノオ薦メメニュー

Hankaku/Zenkaku

In the Japanese language, the following characters are hankaku (1-byte) : English alphabets, numbers, western punctuation, unaccented katakanas and hiraganas, Japanese punctuation, Japanese accents.

In the Zenkaku, 2-byte characters, you find all hiraganas and katakanas, both accented and unaccented, English alphabets, special pictograms like large circles and measurement terms, Greek and Russian fonts, and thousands of kanjis. These are contained in the big Kanji ROM (128kB if JIS1, 256kB if JIS1+JIS2).

Related to

CALL AKCNV, CALL KEXT, CALL KLEN, CALL KTYPE

Compatibility

Kanji BASIC