摘要 |
PURPOSE:To facilitate the compression of text data for displaying a Japanese language document by rearranging characters in order of a larger frequency of a appearance and registering them in a file, and outputting a value of location from the head of the registered characters as compressed text data. CONSTITUTION:In a character-string of text data to be compressed, characters are sorted in order of a larger frequency of appearance, and each character is registered in a file 7 in sorted order. Subsequently, a value of location on the file 7 of each registered character is obtained, and by the value of location, each character of the text data to be compressed is represented. That is, each character of the text data to be compressed is converted into the value of location. Each converted character is outputted to a compressed data text file 8 as compressed text data. By excuting such data compression, the memory capacity for storing the compressed text data can be made small. |