KR100418349B1 - Method for compression and restoration of data - Google Patents

Method for compression and restoration of data Download PDF

Info

Publication number
KR100418349B1
KR100418349B1 KR10-2001-0054469A KR20010054469A KR100418349B1 KR 100418349 B1 KR100418349 B1 KR 100418349B1 KR 20010054469 A KR20010054469 A KR 20010054469A KR 100418349 B1 KR100418349 B1 KR 100418349B1
Authority
KR
South Korea
Prior art keywords
file
compressed
compression
unicode
data
Prior art date
Application number
KR10-2001-0054469A
Other languages
Korean (ko)
Other versions
KR20030021345A (en
Inventor
권용희
백상민
Original Assignee
(주) 한국인프라
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by (주) 한국인프라 filed Critical (주) 한국인프라
Priority to KR10-2001-0054469A priority Critical patent/KR100418349B1/en
Publication of KR20030021345A publication Critical patent/KR20030021345A/en
Application granted granted Critical
Publication of KR100418349B1 publication Critical patent/KR100418349B1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/70Type of the data to be coded, other than image and sound
    • H03M7/705Unicode

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

본 발명은 PDA에서 압축 파일을 관리함에 있어서 압축된 Zip파일을 일반 운영체제에서 사용 가능하도록 파일의 헤더부분을 완성형 코드로 변환하고, 일반 운영체제에서 압축된 파일을 복원할 때에는 Zip파일의 헤더부분을 유니코드로 변환함으로써 기존 프로그램과의 호환성을 갖는 데이터 압축 및 복원방법에 관한 것으로서, 본 발명의 데이터 압축방법은 압축하고자 하는 대상파일을 선택하는 단계와, 대상파일의 헤더정보를 일반 운영체제에서 사용 가능한 완성형 코드로 변환하는 단계와, 완성형 코드와 압축대상파일의 데이터를 압축하여 최종의 압축파일을 생성하는 단계로 이루어지고, 데이터의 복원 방법은 복원하고자 하는 압축파일을 선택하는 단계와, 압축파일의 헤더 정보를 분석하고 선택된 파일이 압축된 파일인지를 확인하는 단계와, 압축파일이면 파일의 헤더 정보의 일부를 유니코드로 변환하는 단계와, 파일의 목록을 생성한 후 화면에 출력하는 단계와, 파일 목록에 나와 있는 파일중에서 복원하고자 하는 파일을 선택하는 단계와, 헤더정보 중 유니코드로 변환되지 않은 나머지를 유니코드로 변환하는 단계와, 유니코드로 변환된 정보를 토대로 파일을 복원하는 단계를 포함하여 이루어지는 것을 특징으로 한다.The present invention converts the header portion of the file into a complete code so that the compressed Zip file can be used in the general operating system in managing the compressed file in the PDA, and when restoring the compressed file in the general operating system, The present invention relates to a method for compressing and restoring data having compatibility with an existing program by converting the code into a code. The data compression method of the present invention includes selecting a target file to be compressed and completing header information of the target file in a general operating system. Converting the code into a code, compressing the data of the completed code and the compression target file and generating a final compressed file. The method of restoring data includes selecting a compressed file to be restored and a header of the compressed file. Analyzing the information and confirming that the selected file is a compressed file; If it is a file, converting a part of the header information of the file to Unicode, generating a list of files and outputting them to the screen, selecting a file to be restored from the files in the file list, and header information And converting the remainder not converted to Unicode to Unicode, and restoring a file based on the information converted to Unicode.

Description

데이터 압축 및 복원 방법{Method for compression and restoration of data}Method for compression and restoration of data

본 발명은 PDA(Personal Data Assistant)에서의 파일 압축 및 복원에 관한 것으로서 특히, 일반 운영체계와 PDA와의 압축 파일 관리에 따른 호환이 가능한 파일 압축 및 복원 방법에 관한 것이다.The present invention relates to file compression and decompression in a personal data assistant (PDA), and more particularly, to a file compression and decompression method compatible with a compressed file management between a general operating system and a PDA.

일반적으로, PDA(Personal Digital Assistant)는 손에 들고 다닐 수 있는 크기의(Hand Held Size) 일종의 초소형 컴퓨터이다. 들고 다닐 수 있는 것은 노트북 컴퓨터나 전자 수첩도 마찬가지인데 이들이 PDA와 다른 점은 노트북 컴퓨터는 보통 공책 크기(Notebook Size)에 실제 데스크탑 컴퓨터와 동일한 기능을 가지고 있고 문서를 작성하고 보고서를 만들고 인터넷을 하는 실제의 컴퓨터지만 PDA는 주로 일정을 관리하고 간단한 메모를 작성하며 개인 정보를 관리하는 전문 용도로 사용된다는 점이 일단 다르고 전자 수첩은 주로 개인 정보의 관리 용도로 사용되지만 PDA는 거기에 실제적인 일정 관리부터 모바일 인터넷(Mobile internet)과 같은 분야까지 사용할 수 있다는 것이 다른 점이다.In general, a personal digital assistant (PDA) is a handheld computer of a small size. The same thing that you can carry with you is the laptop or electronic notebook, which differs from PDAs in that notebook computers usually have the same functionality as a notebook computer in a notebook size, create documents, create reports, and use the Internet. Although it's a computer, PDAs are primarily used for managing schedules, taking simple notes, and managing personal information, while electronic notebooks are primarily used for managing personal information. The difference is that it can be used in fields such as the mobile internet.

결론적으로 말하자면 PDA는 노트북 컴퓨터의 다양한 관리 기능과 인터넷 접속 기능을, 전자 수첩의 작은 크기로 구현한 장비라 볼 수 있다.In conclusion, PDA is a device that implements various management functions and internet access functions of notebook computer in small size of electronic notebook.

이와 같은 PDA에 있어서 국내에서 사용되는 운영체제는 크게 4가지이다. 하나는 팜(Palm)에서 만든 팜 OS(Palm OS)와, 마이크로소프트에서 만든 윈도우 CE(Windows CE), 국내 제이텔(Jtel)의 셀빅 OS(Celvic OS), Psion의 EPOC가 사용된다. 여기에서 팜 OS와 셀빅 OS, EPOC는 각각 팜 또는 셀빅, Psion Revo라는 PDA의 전용 운영체제지만 윈도우 CE의 경우 여러 업체의 PDA에 채용되고 있다.There are four major operating systems in Korea for such PDAs. One is Palm OS made by Palm, Windows CE made by Microsoft, Celvic OS made by Jtel in Korea, and EPOC of Psion. The Palm OS, Cellvik OS, and EPOC are dedicated operating systems for PDAs such as Palm, Cellvik, and Psion Revo, respectively, but Windows CE is used in PDAs of various companies.

PDA는 작은 크기에서 문자의 입력과 출력이 이루어져야 하기 때문에 일반적인 컴퓨터나 전자 수첩과 다른 입력 방식을 가진다. 통상은 스타일러스(Stylus)라 불리는 전자펜을 이용하여 작은 TFT-LCD 화면에 글을 직접 쓰거나(필기 인식 기능) 표시되는 자판을 스타일러스로 찍어 정보를 입력하는 방식을 사용한다. 물론 쉽게 익숙해질 수 있는 방법은 아니지만 한 손에 들어가는 크기로 만들기 위해서는 이러한 입력 방법을 사용할 수밖에 없다.The PDA has a different input method from the general computer or electronic notebook because the input and output of characters should be done in a small size. Usually, an electronic pen called a stylus is used to write information directly on a small TFT-LCD screen (handwriting recognition function) or to input information by taking a displayed keyboard with a stylus. Of course, it's not an easy way to get used to it, but you have to use this input method to make it fit in one hand.

이와 같은 PDA에는 HDD와 같은 저장 장치가 아닌 메모리가 저장 공간으로 사용되는데 기본적인 운영체제와 기본 소프트웨어가 들어 있는 ROM 부분과 사용자 파일을 저장하는 RAM 부분으로 나뉜다. 팜(Palm)이나 바이저 또는 셀빅(Celvic)과 같은 기종의 PDA는 상대적으로 작은 메모리를 가지지만, 윈도우 CE 기반의 PDA들은 사용자가 저장 가능한 RAM 부분이 16MB~64MB까지 장착된다.In such a PDA, memory, not a storage device such as an HDD, is used as a storage space. The PDA is divided into a ROM portion containing a basic operating system and basic software and a RAM portion storing user files. PDAs like Palm, Visor or Celvic have relatively little memory, but Windows CE-based PDAs have between 16MB and 64MB of RAM that users can store.

이와 같이 폭발적으로 성장하는 PDA시장은 무선 인터넷의 급속한 발전으로 인하여 PDA를 이용해 메일 등의 데이터들의 전송이 가능해졌으며, 데이터의 압축 기법을 이용하여 전송 데이터의 크기를 줄임으로써 보다 빠른 데이터 전송이 가능해졌다.In this explosive growth of PDA market, due to the rapid development of wireless Internet, it is possible to transfer data such as mail using PDA, and faster data transmission is possible by reducing the size of transmission data using data compression technique. .

그러나 종래의 PDA에서는 "Zip"이라고 하는 데이터 압축 포맷을 사용하고 있는데, 일반적으로 MS-DOS 계열(Windows 포함) 및 유닉스(UNIX) 계열의 OS(운영체제)에서는 완성형 코드와 유니코드(Uni code)를 지원하고, 대부분의 일반 어플리케이션 프로그램(Application program)들은 완성형 코드를 사용하여 프로그래밍 되어 있기 때문에 Zip 파일의 헤더(데이터와 관련된 정보 등이 수록) 또한 완성형 코드를 사용한다.Conventional PDAs, however, use a data compression format called "Zip." Generally, MS-DOS (including Windows) and UNIX (UNIX) operating systems (OS) use complete code and Unicode. In addition, since most general application programs are programmed using completion code, the header of the Zip file (including data related information) also uses completion code.

그러함에도 불구하고 종래의 PDA의 OS(운영체제)로 쓰이는 윈도우 CE의 경우에는 유니코드만을 지원하고, 일반적인 OS(운영체제)에서 작성된 Zip 파일은 완성형 코드를 사용하기 때문에 한글이나 2Bytes 언어 체계를 사용하고 있는 국가의 언어를 지원할 수가 없어 일반적인 OS에서 작성된 Zip 파일을 PDA의 윈도우 CE에서는복원할 수가 없는 문제점이 있었다.Nevertheless, Windows CE, which is used as the OS (operating system) of the PDA, supports Unicode only. Zip files created in the general OS (operating system) use the complete code. Therefore, Korean or 2Bytes language system is used. There was a problem that you can not restore the Zip file created by the general operating system in Windows CE of PDA because it cannot support the national language.

본 발명은 상기한 종래 기술의 문제점을 해결하기 위해 안출한 것으로서, PDA에서 압축된 Zip 파일을 일반적인 운영체제에서 사용할 수 있도록 파일의 헤더 부분을 완성형 코드로 변환한 후에 압축함으로써 기존 프로그램과의 완벽한 호환성을 갖도록 하는 데이터 압축 방법을 제공하는데 그 목적이 있다.The present invention has been made to solve the above problems of the prior art, by converting the header of the file into a complete code to compress the Zip file compressed in the PDA for use in a general operating system to ensure complete compatibility with existing programs It is an object of the present invention to provide a method of compressing data.

본 발명의 다른 목적은 일반 운영체제에서 압축된 압축 파일을 PDA에서 복원할 때 완성형 코드로 작성된 Zip 파일의 헤더 부분을 PDA의 운영체제인 윈도우 CE에서 사용할 수 있는 유니코드로 변환함으로써 기존의 프로그램과의 완벽한 호환성을 갖도록 하는 데이터 복원 방법을 제공하는데 있다.Another object of the present invention is to convert the header portion of the Zip file written in the complete code when the compressed file compressed in the general operating system on the PDA to Unicode that can be used in Windows CE, the operating system of the PDA to complete the existing program The present invention provides a method for restoring data that is compatible.

상기의 목적을 달성하기 위한 본 발명의 데이터 압축 방법은 PDA에서 데이터를 압축하는 방법에 있어서, 압축하고자 하는 압축대상파일을 선택하는 단계와, 상기 압축대상파일의 헤더정보를 일반적인 운영체제에서 사용할 수 있는 완성형 코드로 변환하는 단계와, 상기 완성형 코드와 상기 압축대상파일의 데이터를 압축하여 최종의 압축파일을 생성하는 단계를 포함하여 이루어지는 것을 특징으로 한다.In the data compression method of the present invention for achieving the above object, in the method of compressing data in a PDA, selecting a compression target file to be compressed, the header information of the compression target file can be used in a general operating system And converting the completed code and data of the compressed code and the compression target file to generate a final compressed file.

또한, 본 발명의 압축된 데이터의 복원 방법은 PDA에서 압축된 데이터를 복원하는 방법에 있어서, 복원하고자 하는 압축파일을 선택하는 단계와, 상기 압축파일의 헤더 정보를 분석하고 현재 선택된 파일이 압축된 파일인지를 확인하는 단계와, 압축파일이면 상기 파일의 헤더 정보의 일부를 유니 코드로 변환하는 단계와, 상기 파일의 목록을 생성한 후 화면에 디스플레이 하는 단계와, 상기 파일 목록에나와 있는 파일 중에서 복원하고자 하는 파일을 선택하는 단계와, 상기 헤더 정보 중 유니 코드로 변환되지 않은 나머지 정보를 유니 코드로 변환하는 단계와, 상기 유니 코드로 변환된 정보를 토대로 파일을 복원하는 단계를 포함하여 이루어지는 것을 특징으로 한다.In addition, the method of restoring compressed data of the present invention is a method of restoring compressed data in a PDA, selecting a compressed file to be restored, analyzing header information of the compressed file, and compressing a currently selected file. Checking whether the file is a compressed file; converting a part of the header information of the file into Unicode if the file is a compressed file; generating a list of the file and displaying the file on the screen; and among the files in the file list. Selecting a file to be restored, converting the remaining information not converted to Unicode out of the header information into Unicode, and restoring the file based on the converted information into Unicode. It features.

도 1은 마이크로소프트의 통합형 한글의 부호영역을 도시한 도면1 is a diagram illustrating a code region of Microsoft's integrated Hangul.

도 2는 유니코드 2.0 버전에 포함된 한글의 부호영역을 나타낸2 illustrates a code region of Korean characters included in the Unicode 2.0 version.

도 3a는 본 발명의 데이터를 압축하는 방법을 설명하기 위한 개념도3A is a conceptual diagram illustrating a method of compressing data of the present invention.

도 3b는 본 발명의 압축된 데이터의 복원하는 방법을 설명하기 위한 개념도3b is a conceptual diagram for explaining a method of restoring compressed data according to the present invention;

도 4는 본 발명의 데이터 압축방법을 설명하기 위한 구체적인 플로우 챠트4 is a detailed flowchart illustrating the data compression method of the present invention.

도 5는 본 발명의 데이터 복원방법을 설명하기 위한 구체적인 플로우 챠트5 is a detailed flowchart for explaining a data restoration method of the present invention.

도 6a 내지 6b는 본 발명에 데이터 압축 및 복원 방법에 따른 특정 언어의 압축 및 복원방법을 설명하기 위한 개념도6A to 6B are conceptual views illustrating a compression and decompression method of a specific language according to the data compression and decompression method in the present invention.

먼저, 본 발명의 데이터 압축 및 복원 방법을 설명하기에 앞서, 마이크로소프트의 통합형 한글(완성형)과 유니 코드 한글에 대해서 간략하게 설명하면 다음과 같다.First, before describing the data compression and decompression method of the present invention, a brief description of Microsoft's integrated Hangul (complete) and Unicode Hangul is as follows.

일반적인 PDA를 사용하면 2바이트(Bytes)로 표현 가능한 한글의 숫자는 2350자로 제한된다. 이를 기본으로 하는 마이크로소프트(Microsoft)사의 윈도우(Window) 운영체제로서는 이와 같은 한글을 표현하는데 문제가 있다.When using a general PDA, the number of Korean characters that can be represented by 2 bytes is limited to 2350 characters. Microsoft's Window operating system based on this has a problem in expressing such Hangul.

따라서 2바이트로 표현할 수 있는 한글의 수를 늘리면서 기존의 PDA를 기반으로 짜여졌던 프로그램도 그대로 사용할 수 있는 방안으로서 제시한 것이 마이크로소프트사의 통합형 한글 코드이다.Therefore, Microsoft's integrated Hangul code is proposed as a way to increase the number of Hangul characters that can be represented by 2 bytes and use programs that were originally based on PDAs.

도 1은 마이크로소프트의 통합형 한글의 부호영역을 도시한 것으로서, 도면에 나타난 바와 같이, 일반적인 코드 영역은 그대로 두되, 0x8141~0xC6FE에 해당되는 부분 중 종래의 PDA의 코드 영역에 포함되지 않는 부분에 상기 PDA로는 2바이트로 표시할 수 없는 한글 문자들을 가나다순으로 배치하였다.1 illustrates a code region of Microsoft's integrated Hangul, and as shown in the figure, the general code region is left as it is, and the portion corresponding to 0x8141 to 0xC6FE is not included in the code region of the conventional PDA. Hangul characters that cannot be represented by two bytes in PDA are arranged in alphabetical order.

한편, 유니 코드 한글은 일 예로, 유니 코드 2.0 버전에서는 모두 6만5천5백36자의 코드 영역이 있는데, 이 중에서 3만8천8백85자는 주요 국가의 언어를 구현하기 위해 할당되고, 6천4백자는 사용자 정의 영역(Private Use Area)으로 할당되고, 2만2백49자는 향후 새롭게 추가될 언어영역으로 할당되어 있다.On the other hand, Unicode Hangul is an example. In the Unicode 2.0 version, there are 6,536 characters in code area, of which 38,853 are allocated to implement the languages of major countries. 1,400 characters are allocated as a private use area, and 22,492 are allocated as language areas to be newly added.

참고로, 현재 할당된 주요 언어는 아스키(미국표준정보교환코드), 그리스어, 라틴어, 시릴문자, 히브리어, 기호문자(Symbol), 함수문자(Punctuation), 아랍어, 가나, 한글 자모, 대용문자(HangulSyllables) 등이다.For reference, the currently assigned major languages are ASCII, American, Latin, Cyrillic, Hebrew, Symbol, Punctuation, Arabic, Ghana, Hangul, Hangul, and HangulSyllables. ).

코드 할당 비율을 보면, 한자가 39.89%(2만9백2자)로 가장 많고, 그 다음이 한글 17.04%(1만1천72자), 아스키 및 기호문자 10.39%(6천8백11자) 등의 순이다.In terms of code allocation, the most common is Chinese characters (39.89%), followed by Korean characters 17.04% (11,722 characters), ASCII and symbolic characters 10.39% (6,811 characters). ), And so on.

유니 코드 2.0 버전의 설계 원리는 16비트 코드를 기본으로 모든 언어의 완전코드화와 코드체계 단일화, 코드의 등가성, 코드간 호환성 등으로서, 이러한 코드의 조합방법을 도 2에 도시하였으며 참고로, 도 2는 유니 코드 2.0 버전에 포함된 한글의 부호영역을 나타낸 것이다.The design principle of the Unicode 2.0 version is based on 16-bit code, and the complete coding of all languages, the unification of the code system, the equivalence of codes, the compatibility between codes, and the like. Represents the code area of Korean included in the Unicode 2.0 version.

이하, 본 발명의 데이터 압축 및 복원 방법을 첨부된 도면을 참조하여 설명하기로 한다.Hereinafter, a method of compressing and restoring data of the present invention will be described with reference to the accompanying drawings.

도 3a 내지 3b는 본 발명의 데이터 압축 및 복원 방법을 설명하기 위한 개념도로서, 도 3a는 데이터를 압축하는 방법을 설명하기 위한 것이고, 도 3b는 압축된 데이터를 복원하는 방법에 관한 것이다. 참고로, 데이터 압축 및 복원은 PDA에서 이루어지는 것은 자명하다.3A to 3B are conceptual views illustrating a data compression and decompression method of the present invention. FIG. 3A is a diagram for describing a method of compressing data, and FIG. 3B is a method for decompressing compressed data. For reference, it is obvious that data compression and decompression is performed in a PDA.

먼저, 도 3a에서와 같이, 압축하고자 하는 파일(이하 "대상 파일"이라 칭함)의 헤드 부분의 데이터를 완성형 코드로 변환하고, 완성형 코드로 변환된 데이터를 다시 Zip 포맷을 이용하여 압축하면 최종적으로 압축된 Zip 파일을 얻을 수 있다.First, as shown in FIG. 3A, data of the head portion of a file to be compressed (hereinafter referred to as a "target file") is converted into a complete code, and the data converted into a complete code is compressed again using a Zip format. You can get a compressed Zip file.

이와 같이, 대상 파일의 헤더 부분을 완성형 코드로 변환한 후에 Zip 포맷을 이용하여 압축함으로써 PDA에서 압축된 파일을 완성형 코드만을 지원하는 일반적인 운영체제에서도 사용할 수가 있다.In this way, by converting the header portion of the target file into a complete code and compressing it using the Zip format, the file compressed by the PDA can be used in a general operating system that supports only the complete code.

또한, 도 3b에 도시한 바와 같이, 일반적인 운영체제에서 작성된 압축 파일(Zip 파일)을 복원하기 위해서는 상기 압축된 Zip 파일의 헤더 부분을 PDA의 운영체제인 윈도우 CE에서 지원하는 유니 코드(Uni code)로 변환한 후, 압축된 파일을 복원하면 원래의 대상 파일을 얻을 수 있는데, 이와 같이 Zip 파일의 헤더 부분을 유니 코드로 변환함으로써 PDA에서도 손쉽게 복원할 수가 있다.In addition, as shown in FIG. 3B, in order to restore a compressed file (zip file) created in a general operating system, the header portion of the compressed Zip file is converted into Unicode supported by Windows CE, which is a PDA operating system. After recovering the compressed file, the original target file can be obtained. In this way, the header of the Zip file can be converted to Unicode, which can be easily restored on a PDA.

이와 같은 본 발명의 데이터 압축 및 복원 방법을 플로우 챠트를 참조하여 보다 상세하게 설명하면 다음과 같다.Such a method of compressing and restoring data according to the present invention will be described in more detail with reference to a flowchart.

도 4는 본 발명의 데이터 압축 및 복원 방법에 따른 데이터 압축방법을 설명하기 위한 플로우 챠트(Flow chart)이다.4 is a flowchart illustrating a data compression method according to the data compression and decompression method of the present invention.

도 4에 도시한 바와 같이, 먼저, PDA의 운영체제인 윈도우 CE 파일 익스플로러에서 압축하고자 하는 파일이나 폴더를 선택한다(S401).As shown in FIG. 4, first, a file or a folder to be compressed is selected in the Windows CE File Explorer which is an operating system of a PDA (S401).

이후, 상기 선택된 파일이나 폴더를 압축하기 위한 압축 프로그램(PocketZIP)을 로딩한 후(S402), 추후 압축한 파일이 저장될 폴더경로를 선택한다(S403). 이때 상기 압축한 파일이 저장될 폴더경로는 별도의 저장공간에 저장된다(S404).Thereafter, after loading a compression program (PocketZIP) for compressing the selected file or folder (S402), a folder path for storing the compressed file is selected later (S403). At this time, the folder path to store the compressed file is stored in a separate storage space (S404).

상기에서 압축한 파일이 저장될 폴더경로가 선택되었으면, 상기 압축을 위해 선택한 파일의 목록 또는 폴더에 저장되어 있는 파일들의 목록을 생성한다(S405).이때 압축을 위해 선택한 파일의 경로가 상기 폴더경로를 저장하고 있는 저장공간에 저장된다(S404).If the folder path in which the compressed file is to be stored is selected, a list of files selected for compression or a list of files stored in a folder is generated (S405). The path of the file selected for compression is the folder path. It is stored in the storage space for storing (S404).

이후, 상기 목록에 나와 있는 파일들을 순차적으로 하나씩 선택하여 해당 파일에 오류가 있는지를 체크한다(S406). 이때, 선택한 파일에 오류가 발견되지 않으면 다음 파일을 선택하여 오류를 체크하는 작업을 계속적으로 진행하며 이와 같은 파일의 오류 체크는 상기 파일 목록에 나와 있는 파일이 모두 선택될 때까지 반복적으로 수행한다.Thereafter, the files listed in the list are sequentially selected one by one to check whether there is an error in the corresponding file (S406). At this time, if no error is found in the selected file, the next file is selected to check the error continuously. The error checking of such a file is repeatedly performed until all the files listed in the file list are selected.

상기에서 파일들의 오류를 체크하는 과정에서 선택된 파일에 오류가 있으면 상기 오류를 무시하고 계속해서 다음 파일들의 오류 체크를 진행할 것인지 아니면 더 이상의 작업을 종료할 것인지를 확인한다(S407). 이때, 오류를 무시하고 계속해서 다음 파일의 오류 체크를 진행하겠다는 사용자의 명령이 입력되면 다음 파일의 오류를 체크하고, 더 이상 진행하지 않겠다는 압축 취소 명령이 입력되면 윈도우 CE 파일 구조를 분석한다(S408). 즉, 압축 취소시 압축 취소를 확인하는 메시지와 함께 디폴트(Default) 폴더인 내문서(My documents) 폴더의 파일 리스트를 생성한 후, 상기의 파일 리스트를 화면에 출력한다(S409).If there is an error in the selected file in the process of checking the errors of the above files, the error is ignored and it is checked whether or not to continue the error checking of the next files or to terminate further operations (S407). At this time, if the user's command to ignore the error and continue the error check of the next file is entered, the error of the next file is checked, and if the command to uncompress is entered, the Windows CE file structure is analyzed ( S408). That is, after canceling the compression, a file list of the My documents folder, which is a default folder, is generated along with a message for confirming the canceling of compression, and then the file list is output on the screen (S409).

한편, 상기 파일 목록에 나와 있는 파일들의 오류체크가 모두 완료되었으면 선택된 파일의 정보와 압축정보를, 생성할 압축파일에 저장한다(S410). 이후, 상기 저장부에 저장되어 있는 선택된 파일경로를 로딩하여(S411), 메모리에서 읽어들인 데이터를 압축한 후, 상기 압축파일에 저장한다(S412).On the other hand, if all error checking of the files listed in the file list is completed, the information and compressed information of the selected file is stored in the compressed file to be generated (S410). Thereafter, the selected file path stored in the storage unit is loaded (S411), the data read from the memory is compressed, and then stored in the compressed file (S412).

이때, 상기 파일의 압축은 상기 파일 목록에 나와 있는 모든 파일들이 모두선택될 때까지 계속적으로 반복하여 수행한다.At this time, the compression of the file is repeatedly performed until all the files listed in the file list are selected.

이와 같은 과정을 통해 데이터의 압축이 이루어지며, 상기 데이터 압축이 완료되면 상기 저장부에 저장되어 있는 압축 파일이 저장될 폴더경로를 로딩하여 윈도우 CE 파일 구조를 분석한 후, 해당 폴더의 파일 리스트(File list)를 생성(S413)한 다음, 상기 파일 리스트를 화면에 출력하면(S414), 본 발명에 따른 데이터의 압축이 완료된다.Through this process, data is compressed. When the data compression is completed, the folder path for storing the compressed file stored in the storage unit is loaded, the Windows CE file structure is analyzed, and the file list of the corresponding folder ( After generating the file list (S413) and outputting the file list to the screen (S414), the compression of data according to the present invention is completed.

한편, 도 5는 일반 운영체제에서 작성된 압축 파일을 복원하는 방법을 설명하기 위한 플로우 챠트로서, 도면을 참조하여 상세하게 설명하면 다음과 같다.5 is a flowchart for describing a method of restoring a compressed file created in a general operating system, which will be described in detail with reference to the accompanying drawings.

도 5에 도시한 바와 같이, 복원하고자 하는 압축파일(Zip 파일)을 선택한 후(S501), 상기 압축파일을 복원하기 위한 프로그램을 로딩한다(S502).As shown in Fig. 5, after selecting a compressed file (zip file) to be restored (S501), a program for restoring the compressed file is loaded (S502).

이후, 상기 압축파일의 헤더정보를 읽어서 분석한 후(S503), 상기 파일이 Zip 파일인지를 확인하여(S504), Zip 파일이면 상기 파일의 헤더 정보 일부를 유니코드(Unicode)로 변환하고(S505), Zip파일이 아니면 윈도우 CE 파일 경로를 분석한다(S506). 즉, 선택한 파일이 Zip파일이 아니면 메시지와 함께 디폴트(Default) 폴더인 내문서(My documents) 폴더의 파일 리스트를 생성한 후, 상기 파일 리스트를 화면상에 출력한다(S507).Thereafter, after reading and analyzing the header information of the compressed file (S503), it is checked whether the file is a Zip file (S504), and if the Zip file is a part of the header information of the file is converted into Unicode (S505). If not, the Windows CE file path is analyzed (S506). That is, if the selected file is not a Zip file, a file list of a My documents folder, which is a default folder, is generated with a message, and then the file list is output on the screen (S507).

한편, 선택한 파일이 Zip 파일임이 밝혀지면 헤더 정보의 일부를 유니 코드로 변환한 다음 Zip파일의 헤더 정보에 있는 파일 경로들을 각각 분리하여 일반 파일 구조(트리 구조)로 변환하고(S508), 상기 변환된 파일들을 리스트화 하여 화면에 디스플레이 한다(S509). 여기서, 상기에서 유니 코드로 변환되는 부분은 압축파일 헤더의 파일 패스에 해당되는 파일의 이름에 관한 정보이다.On the other hand, if it is found that the selected file is a Zip file, part of the header information is converted to Unicode, and then the file paths in the header information of the Zip file are separated and converted into a general file structure (tree structure) (S508). Listed files are displayed on the screen (S509). In this case, the part converted to Unicode is information about a file name corresponding to a file path of a compressed file header.

이후, 상기 디스플레이된 파일 리스트 중에서 사용자가 압축복원 하고자 하는 파일들을 선택한 후(S510), 복원된 파일이 저장될 폴더를 선택한다(S511). 이때, 파일이 저장될 폴더를 선택하지 않으면 전단의 Zip 파일의 헤더 정보에 있는 파일 경로들을 각각 분리하여 일반 파일 구조로 변환하는 단계로 되돌아간다.Thereafter, the user selects files to be compressed and restored from the displayed file list (S510), and then selects a folder in which the restored file is to be stored (S511). In this case, if the folder in which the file is to be stored is not selected, the file paths in the header information of the front end Zip file are separated and converted to the general file structure.

한편, 복원된 파일이 저장될 폴더를 선택한 다음에 최종적으로 Zip 파일의 헤더 정보를 유니코드로 변환하면(S512), 압축된 파일의 복원이 완료된다(S513).On the other hand, after selecting the folder where the restored file is to be stored and finally converting the header information of the Zip file to Unicode (S512), restoration of the compressed file is completed (S513).

이와 같이, 일반 운영체제에서 작성된 압축파일을 복원함에 있어서, 완성형 코드로 작성된 Zip 파일의 헤더 정보를 PDA에서 지원 가능한 유니 코드(Uni Code)로 변환함으로써 일반 운영체제에서 작성된 압축 파일을 PDA에서 손쉽게 복원할 수가 있다.As described above, in restoring the compressed file created by the general operating system, the compressed file created by the general operating system can be easily restored by the PDA by converting the header information of the Zip file created by the completed code into the Unicode code supported by the PDA. have.

참고로, 도 6a 내지 6b는 본 발명에 따른 특정 언어로 작성된 파일의 압축 및 복원을 위한 개략적인 방법을 설명하기 위한 것으로서, 상기 언어는 한글을 포함하여 세계 주요 언어일 수도 있다.For reference, FIGS. 6A to 6B illustrate a schematic method for compressing and restoring a file written in a specific language according to the present invention. The language may be a major language of the world including Korean.

먼저, 도 6a에 도시한 바와 같이, 압축하고자 하는 파일을 선택한 후, 선택한 파일을 오픈하고 선택한 파일들의 목록을 생성한다(S601). 이후, 선택한 파일의 패스를 일반 운영체제에서도 사용할 수 있도록 완성형 코드로 변환한 다음(S602), Zip 파일의 코드를 입력하고 헤더 정보 파일에 저장한다(S603).First, as shown in FIG. 6A, after selecting a file to be compressed, the selected file is opened and a list of selected files is generated (S601). Thereafter, the path of the selected file is converted into a complete code for use in a general operating system (S602), and then a code of a Zip file is input and stored in a header information file (S603).

이후, 상기 완성형 코드로 변환된 파일의 패스(헤더 정보)를 압축 파일에 저장한 후(S604), 최종적으로 압축 파일을 생성한다(S605).Thereafter, after storing the path (header information) of the file converted into the complete code in a compressed file (S604), a compressed file is finally generated (S605).

이와 같이, 파일을 압축할 때 압축한 파일을 일반적인 운영체제에서 사용할 수 있도록 완성형 코드로 변환하여 압축 파일을 생성함으로써 사용자가 압축 파일을 손쉽게 관리할 수 있다.As such, when a file is compressed, a compressed file is generated by converting the compressed file into a complete code for use in a general operating system so that the user can easily manage the compressed file.

도 6b는 압축된 파일(Zip 파일)을 복원하기 위한 방법을 설명하기 위한 것으로서, 복원하고자 하는 압축파일을 선택한 후, 선택한 압축파일을 오픈한 다음(S611), 상기 압축 파일의 코드(헤더 정보)를 통해 압축파일(Zip) 파일인지를 확인한다(S612).6B illustrates a method for restoring a compressed file (zip file). After selecting a compressed file to be restored, the selected compressed file is opened (S611), and the code (header information) of the compressed file is shown. Check whether the compressed file (Zip) file through (S612).

압축 파일이면 Zip 파일 헤더 정보를 읽어들여 분석한 후 파일 경로를 저장부에 저장하고, 복원할 파일의 패스(헤더 정보)를 추출한 후(S613), 상기 추출된 패스(헤더 정보)를 유니코드로 변환한다(S614).If it is a compressed file, the Zip file header information is read and analyzed, the file path is stored in the storage unit, the path (header information) of the file to be restored is extracted (S613), and the extracted path (header information) is converted into Unicode. The conversion is made (S614).

이후, 윈도우 CE 파일 구조를 이용하여 파일을 생성한 후(S615), 압축 파일을 복원하면(S616), 압축된 파일을 복원하는 과정이 완료된다.Thereafter, after the file is generated using the Windows CE file structure (S615), when the compressed file is restored (S616), the process of restoring the compressed file is completed.

이와 같이, 완성형 코드로 작성된 Zip 파일의 헤더 정보를 PDA의 윈도우 CE에서 지원하는 유니 코드(Uni Code)로 변환한 후 최종적으로 압축하는 것에 의해 일반적인 운영체제와 윈도우 CE간의 호환이 이루어지도록 한다.In this way, by converting the header information of the Zip file made of the complete code into the Unicode (Uni Code) supported by the Windows CE of the PDA and finally compressed to ensure compatibility between the general operating system and Windows CE.

이상에서 상술한 바와 같이, 본 발명의 데이터 압축 및 복원 방법은 다음과 같은 효과가 있다.As described above, the data compression and decompression method of the present invention has the following effects.

일반적인 운영체제에서 압축된 파일을 복원함에 있어서, 상기 압축파일의 헤더 정보를 윈도우 CE에서 지원 가능한 유니코드로 변환함으로써 윈도우 CE를 운영체제로 하고 있는 PDA에서 압축 파일의 효율적인 사용이 가능하고, 반대로, PDA에서 파일을 압축함에 있어서 일반적인 운영체제에서도 사용할 수 있도록 압축 파일의 헤더 정보를 완성형 코드로 변환한 후 압축함으로써, 서로 다른 운영체제간의 압축 및 복원에 따른 호환성을 갖게 하는 것에 의해 사용자가 보다 편리하게 PDA에서 압축관리 프로그램을 사용할 수 있는 효과가 있다.In restoring a compressed file in a general operating system, by converting the header information of the compressed file into Unicode that can be supported by Windows CE, efficient use of the compressed file in a PDA running Windows CE is possible. When compressing a file, the header information of the compressed file is converted into a complete code so that it can be used by a general operating system, and then compressed, so that the user can conveniently manage the compression on a PDA by making compatibility with compression and restoration between different operating systems. The effect is that the program can be used.

Claims (7)

윈도우 CE기반의 운영체계를 가지는 PDA에서 압축대상파일과 압축할 파일을 저장할 폴더경로를 선택한 후 데이터를 압축하는 방법에 있어서,In a method of compressing data after selecting a target folder and a folder path to store a compressed file in a PDA having a Windows CE-based operating system, 상기 선택된 압축대상파일의 목록을 생성한 후 그 목록내에 포함된 압축대상파일의 경로를 지정하면서 오류여부를 체크하는 단계;Generating a list of the selected compression target file and checking whether there is an error while designating a path of the compression target file included in the list; 상기 체크결과로 부터 오류가 있으면 오류를 무시하고 계속해서 다음 압축대상파일의 오류 체크를 통해 압축을 진행할 것인지 아니면 압축을 취소할 것인지를 결정하는 단계;If there is an error from the check result, ignoring the error and continuously deciding whether to proceed with compression or cancel the compression by checking an error of the next compression target file; 상기의 단계로부터 압축 진행이 결정되면 오류 체크된 압축대상파일의 헤더정보를 일반적인 운영체계에서 사용할 수 있는 완성형 코드로 변환하는 단계;Converting the header information of the error-checked compression target file into a complete code that can be used in a general operating system when the compression progress is determined from the above step; 상기 완성형 코드와 압축대상파일의 데이터를 압축하여 최종의 압축파일을 생성하는 단계; 로 진행함을 특징으로 하는 데이터 압축방법.Compressing the data of the completed code and the compression target file to generate a final compressed file; Data compression method characterized by proceeding to. 삭제delete 삭제delete 삭제delete 제 1 항에 있어서, 상기 압축파일을 생성한 후,The method of claim 1, wherein after generating the compressed file, 상기 파일경로를 로딩하여 윈도우 CE파일 구조를 분석한 다음 파일 리스트를 화면에 출력하는 단계를 더 포함하여 이루어지는 것을 특징으로 하는 데이터 압축 방법.And loading the file path to analyze a Windows CE file structure and outputting a file list on the screen. 압축된 데이터를 PDA에서 복원하는 방법에 있어서,In a method for restoring compressed data in a PDA, 복원하고자 하는 압축파일을 선택하는 단계와,Selecting the archive you want to restore, 상기 압축파일의 헤더 정보를 분석하고 현재 선택된 파일이 실제로 압축파일인지를 확인하는 단계와,Analyzing header information of the compressed file and checking whether the currently selected file is actually a compressed file; 압축파일이면 상기 파일의 헤더 정보의 일부를 유니코드로 변환하는 단계와,Converting a part of the header information of the file into Unicode if the file is a compressed file; 상기 파일의 목록을 생성한 후 화면에 디스플레이 하는 단계와,Generating a list of the files and displaying them on a screen; 상기 파일 목록에 나와 있는 파일 중에서 복원하고자 하는 파일을 선택하는 단계와,Selecting a file to restore from the files listed in the file list; 상기 헤더 정보 중 유니코드로 변환되지 않은 나머지 정보를 유니코드로 변환하는 단계와,Converting the remaining information not converted to Unicode among the header information into Unicode; 상기 유니코드로 변환된 정보를 토대로 파일을 복원하는 단계를 포함하여 이루어지는 것을 특징으로 하는 데이터 복원 방법.Restoring a file based on the information converted to Unicode. 제 6 항에 있어서, 상기 현재 선택된 파일이 압축파일이 아니면 윈도우 CE 파일 구조를 분석한 후 파일 내용을 화면에 디스플레이 하는 단계를 더 포함하여 이루어지는 것을 특징으로 하는 데이터 복원 방법.7. The method of claim 6, further comprising analyzing the Windows CE file structure and displaying the file contents on the screen if the currently selected file is not a compressed file.
KR10-2001-0054469A 2001-09-05 2001-09-05 Method for compression and restoration of data KR100418349B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2001-0054469A KR100418349B1 (en) 2001-09-05 2001-09-05 Method for compression and restoration of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2001-0054469A KR100418349B1 (en) 2001-09-05 2001-09-05 Method for compression and restoration of data

Publications (2)

Publication Number Publication Date
KR20030021345A KR20030021345A (en) 2003-03-15
KR100418349B1 true KR100418349B1 (en) 2004-02-11

Family

ID=27722607

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2001-0054469A KR100418349B1 (en) 2001-09-05 2001-09-05 Method for compression and restoration of data

Country Status (1)

Country Link
KR (1) KR100418349B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100938277B1 (en) * 2007-12-24 2010-01-21 (주)이스트소프트 Method and apparatus for file compression and restoration of compression format
KR101016776B1 (en) 2009-09-21 2011-02-25 (주)이스트소프트 Forward compatibility guaranteed data compression and decompression method and apparatus thereof

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100923258B1 (en) * 2003-01-30 2009-10-23 엘지전자 주식회사 Unicode converting method for mobile terminal source file
KR101074010B1 (en) 2009-09-04 2011-10-17 (주)이스트소프트 Block unit data compression and decompression method and apparatus thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09218867A (en) * 1996-02-09 1997-08-19 Fujitsu Ltd Data compression device and data restoration device
US5793381A (en) * 1995-09-13 1998-08-11 Apple Computer, Inc. Unicode converter
KR0144633B1 (en) * 1994-12-30 1998-08-17 김준성 Hangul data press method
US5867112A (en) * 1997-05-14 1999-02-02 Kost; James F. Software method of compressing text and graphic images for storage on computer memory
KR19990057148A (en) * 1997-12-29 1999-07-15 이계철 Application Program and Electronic Document Mapping Method in Electronic Document Exchange System
US6092118A (en) * 1998-07-06 2000-07-18 Northrop Grumman Corporation Inter-computer communication method and apparatus utilizing clocked message playback and message format definition files
KR20010090275A (en) * 2000-03-24 2001-10-18 이명진 A multi language notice shed system of world wide web

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0144633B1 (en) * 1994-12-30 1998-08-17 김준성 Hangul data press method
US5793381A (en) * 1995-09-13 1998-08-11 Apple Computer, Inc. Unicode converter
JPH09218867A (en) * 1996-02-09 1997-08-19 Fujitsu Ltd Data compression device and data restoration device
US5867112A (en) * 1997-05-14 1999-02-02 Kost; James F. Software method of compressing text and graphic images for storage on computer memory
KR19990057148A (en) * 1997-12-29 1999-07-15 이계철 Application Program and Electronic Document Mapping Method in Electronic Document Exchange System
US6092118A (en) * 1998-07-06 2000-07-18 Northrop Grumman Corporation Inter-computer communication method and apparatus utilizing clocked message playback and message format definition files
KR20010090275A (en) * 2000-03-24 2001-10-18 이명진 A multi language notice shed system of world wide web

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100938277B1 (en) * 2007-12-24 2010-01-21 (주)이스트소프트 Method and apparatus for file compression and restoration of compression format
KR101016776B1 (en) 2009-09-21 2011-02-25 (주)이스트소프트 Forward compatibility guaranteed data compression and decompression method and apparatus thereof
WO2011034299A2 (en) * 2009-09-21 2011-03-24 (주)이스트소프트 Compression and decompression method and apparatus ensuring upward compatibility
WO2011034299A3 (en) * 2009-09-21 2011-06-30 (주)이스트소프트 Compression and decompression method and apparatus ensuring upward compatibility

Also Published As

Publication number Publication date
KR20030021345A (en) 2003-03-15

Similar Documents

Publication Publication Date Title
US7292727B2 (en) Electronic ink as a software object
US5623406A (en) Method and system for entering text in computer equipment
JP3167500B2 (en) Handwritten information input processing method
JP2975622B2 (en) Data processing system
US20160321282A1 (en) Extracting method, information processing method, computer product, extracting apparatus, and information processing apparatus
US20070179932A1 (en) Method for finding data, research engine and microprocessor therefor
KR100490240B1 (en) Data compressing apparatus, data decompressing apparatus, data compressing method, data decompressing method, and program recording medium
US7284200B2 (en) Organization of handwritten notes using handwritten titles
US8943431B2 (en) Text operations in a bitmap-based document
KR100418349B1 (en) Method for compression and restoration of data
JPH07110845A (en) Processing/management system for hand-written input information
US20020146181A1 (en) System, method and computer program product for a multi-lingual text engine
JP2012098891A (en) Information processing system and information processing method
JP4487614B2 (en) Information display control device and program
JP2989084B2 (en) Information processing device
JPH0256053A (en) Document preparing device
CN100580673C (en) Known format word library comparison system
US20040139056A1 (en) Information display control apparatus and recording medium having recorded information display control program
US6801660B1 (en) Method and system for maintaining alternates in association with recognized words
JPH10232864A (en) Sentence input device and computer readable recording medium recording sentence input program
TW594574B (en) Editing method for supporting multiple languages
JPH0895550A (en) Device and method for processing document
JPH06266765A (en) Sentence retrieving device
Krishnakumar et al. Acharya-A Text Editor and Framework for working with Indic Scripts
JPH07325844A (en) Electronized dictionary retrieval device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20070130

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee