KR102328051B1 - Document editing device that enables display of a document to which a font in unsupported data format is applied and operating method thereof - Google Patents

Document editing device that enables display of a document to which a font in unsupported data format is applied and operating method thereof Download PDF

Info

Publication number
KR102328051B1
KR102328051B1 KR1020200044565A KR20200044565A KR102328051B1 KR 102328051 B1 KR102328051 B1 KR 102328051B1 KR 1020200044565 A KR1020200044565 A KR 1020200044565A KR 20200044565 A KR20200044565 A KR 20200044565A KR 102328051 B1 KR102328051 B1 KR 102328051B1
Authority
KR
South Korea
Prior art keywords
font
document
replacement
identifier
data
Prior art date
Application number
KR1020200044565A
Other languages
Korean (ko)
Other versions
KR20210126908A (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 KR1020200044565A priority Critical patent/KR102328051B1/en
Publication of KR20210126908A publication Critical patent/KR20210126908A/en
Application granted granted Critical
Publication of KR102328051B1 publication Critical patent/KR102328051B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging

Abstract

지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치 및 그 동작 방법이 개시된다. 본 발명에 따른 문서 편집 장치 및 그 동작 방법은 특정 데이터 포맷으로 구성된 글꼴 데이터만을 로드할 수 있는 문서 작성 프로그램을 통해 다른 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서가 오픈되면, 상기 문서에 적용되어 있는 글꼴을 대체할 수 있는 특정 데이터 포맷으로 구성된 대체 글꼴을 선택하고, 상기 대체 글꼴을 기초로 상기 문서에 대해 글꼴 서식 적용을 처리함으로써, 지원되지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서에 대한 화면 표시를 지원할 수 있다.Disclosed are a document editing apparatus capable of displaying a document to which a font configured in an unsupported data format is applied, and an operating method thereof. The document editing apparatus and the method for operating the same according to the present invention, when a document to which a font composed of another data format is applied is opened through a document writing program capable of loading only font data composed of a specific data format, the document applied to the document Screen for a document to which a font composed of an unsupported data format is applied by selecting a replacement font composed of a specific data format that can be substituted for the font, and processing font formatting for the document based on the replacement font display can be supported.

Description

지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치 및 그 동작 방법{DOCUMENT EDITING DEVICE THAT ENABLES DISPLAY OF A DOCUMENT TO WHICH A FONT IN UNSUPPORTED DATA FORMAT IS APPLIED AND OPERATING METHOD THEREOF}A document editing device that enables the display of a document to which a font composed of an unsupported data format is applied, and an operating method thereof }

본 발명은 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치 및 그 동작 방법에 대한 것이다.The present invention relates to a document editing apparatus capable of displaying a document to which a font configured in an unsupported data format is applied, and an operating method thereof.

최근, 컴퓨터나 스마트폰 또는 태블릿 PC 등이 널리 보급됨에 따라, 이러한 전자 장치를 이용하여 전자 문서를 열람, 작성, 편집할 수 있도록 하는 다양한 종류의 전자 문서 관련 프로그램들이 출시되고 있다. Recently, as computers, smart phones, or tablet PCs are widely used, various types of electronic document-related programs have been released that allow users to read, write, and edit electronic documents using such electronic devices.

이러한 전자 문서 관련 프로그램들로는 기본적인 문서의 작성, 편집 등을 지원하는 워드프로세서, 데이터의 입력, 산술연산, 데이터 관리를 보조하는 스프레드시트, 발표자의 발표를 보조하기 위한 프레젠테이션 프로그램들이 있다.These electronic document-related programs include a word processor supporting basic document creation and editing, a spreadsheet supporting data input, arithmetic operations, and data management, and presentation programs supporting a presenter's presentation.

관련해서, 문서에 포함되어 있는 문자들에는 해당 문자의 모양을 정의하는 글꼴이 설정되어 있고, 전자 문서 관련 프로그램은 상기 문서를 화면 상에 제대로 표시하기 위해, 상기 문서에 포함되어 있는 문자들의 글꼴 서식을 지원하는 다양한 글꼴 데이터들을 저장하고 있어야 한다.Regarding the characters included in the document, a font defining the shape of the character is set, and the electronic document related program uses the font format of the characters included in the document to properly display the document on the screen. It should store various font data that support .

이때, 각 전자 문서 관련 프로그램은 해당 프로그램을 통해 문서를 로드할 경우에만 적용될 수 있는 글꼴 서식에 대한 글꼴 데이터들을 해당 프로그램에서만 사용되는 특정 데이터 포맷으로 구성하여 저장하고 있을 수 있다.In this case, each electronic document-related program may store font data for a font format that can be applied only when a document is loaded through the corresponding program in a specific data format used only in the corresponding program.

그리고, 문서 데이터에는 문서에 포함된 문자들에 적용되어 있는 글꼴을 구분하기 위한 글꼴 식별자에 대한 정보가 포함되어 있어, 전자 문서 관련 프로그램이 상기 문서를 화면 상에 표시하기 위해 상기 문서 데이터를 읽어들이면, 상기 문서 데이터에 포함되어 있는 글꼴 식별자에 대한 정보를 확인해서, 상기 전자 문서 관련 프로그램 내에 저장되어 있는 글꼴 데이터들 중 상기 글꼴 식별자에 대응하는 글꼴 데이터를 기초로 상기 문서에 포함되어 있는 문자들에 대해 글꼴 서식을 적용하게 된다.In addition, the document data includes information about a font identifier for distinguishing fonts applied to characters included in the document, so that when the electronic document-related program reads the document data to display the document on the screen , check information on the font identifier included in the document data, and apply the font data to the characters included in the document based on the font data corresponding to the font identifier among the font data stored in the electronic document-related program. font formatting will be applied.

그러므로, 상기 문서가 다른 전자 문서 관련 프로그램 상에서 작성되어, 상기 문서에 다른 전자 문서 관련 프로그램 전용의 데이터 포맷으로 구성된 글꼴이 적용되어 있다면, 상기 전자 문서 관련 프로그램은 상기 문서에 적용되어 있는 글꼴들에 대한 글꼴 데이터들을 로드할 수 없어 상기 문서를 화면 상에 제대로 표시할 수 없을 것이다.Therefore, if the document is created on another electronic document-related program and a font configured in a data format dedicated to the other electronic document-related program is applied to the document, the electronic document-related program may change the fonts applied to the document. The font data could not be loaded and the document would not be properly displayed on the screen.

예컨대, 문서 작성 프로그램들 중 '한글'을 통해 작성한 문서에는 'HFT'와 같은 데이터 포맷으로 구성된 글꼴이 적용될 수 있는데, '한글'을 통해 작성된 문서가 'TTF'와 같은 데이터 포맷으로 구성된 글꼴이 적용될 수 있는 다른 문서 작성 프로그램을 통해 오픈되면, 상기 다른 문서 작성 프로그램은 'HFT'와 같은 데이터 포맷으로 구성된 글꼴 데이터를 로드할 수 없어, 상기 문서를 화면 상에 제대로 표시할 수 없고, 이에 따라 사용자는 서로 다른 문서 작성 프로그램들 간의 글꼴 호환이 불가능함에 따른 문서의 레이아웃 변형 등으로 불편함을 느낄 것이다.For example, a font composed of a data format such as 'HFT' may be applied to a document written through 'Hangul' among document creation programs. When opened through another document creation program that can You will feel inconvenient due to the change in the layout of the document due to the incompatibility of fonts between different document creation programs.

따라서, 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 기술에 대한 연구가 필요하다.Therefore, there is a need for research on a technology that enables the display of a document to which a font composed of an unsupported data format is applied.

본 발명에 따른 문서 편집 장치 및 그 동작 방법은 특정 데이터 포맷으로 구성된 글꼴 데이터만을 로드할 수 있는 문서 작성 프로그램을 통해 다른 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서가 오픈되면, 상기 문서에 적용되어 있는 글꼴을 대체할 수 있는 특정 데이터 포맷으로 구성된 대체 글꼴을 선택하고, 상기 대체 글꼴을 기초로 상기 문서에 대해 글꼴 서식 적용을 처리함으로써, 지원되지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서에 대한 화면 표시를 지원하고자 한다.The document editing apparatus and the method for operating the same according to the present invention, when a document to which a font composed of another data format is applied is opened through a document writing program capable of loading only font data composed of a specific data format, the document applied to the document Screen for a document to which a font composed of an unsupported data format is applied by selecting a replacement font composed of a specific data format that can be substituted for the font, and processing font formatting for the document based on the replacement font We want to support display.

본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치는 제1 데이터 포맷으로 구성된 서로 다른 복수의 제1 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제1 글꼴들 각각을 대체할 수 있는 것으로 미리 지정된 대체 글꼴 - 상기 대체 글꼴은 제2 데이터 포맷으로 구성된 글꼴임 - 에 대한 대체 글꼴 식별자가 서로 대응되어 기록되어 있는 대체 글꼴 테이블을 저장하여 유지하는 대체 글꼴 테이블 유지부, 상기 제2 데이터 포맷으로 구성된 서로 다른 복수의 제2 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제2 글꼴들 각각에 대한 글꼴 데이터 - 상기 글꼴 데이터는 문서가 로드될 때, 문서에 포함된 문자들에 대해 대응되는 글꼴 서식을 적용하는데 사용되는 데이터임 - 가 서로 대응되어 저장되어 있는 글꼴 데이터 저장부, 상기 제2 데이터 포맷으로 구성된 글꼴 데이터만을 로드할 수 있는 문서 작성 프로그램을 통해 제1 문서가 오픈되면, 상기 제1 문서에 대한 문서 데이터 - 상기 문서 데이터에는 상기 제1 문서에 포함된 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 삽입되어 있음 - 를 읽어 들여 상기 제1 문서에 포함된 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자를 확인하는 글꼴 식별자 확인부, 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 상기 복수의 제1 글꼴들 각각에 대한 글꼴 식별자 중 어느 하나인 제1 글꼴 식별자로 확인되는 경우, 상기 대체 글꼴 테이블로부터 상기 제1 글꼴 식별자에 대응되어 기록되어 있는 제1 대체 글꼴 식별자를 확인한 후, 상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는지를 확인하는 저장 글꼴 확인부, 상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는 것으로 확인되는 경우, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제1 대체 글꼴 식별자에 대응되는 제1 글꼴 데이터를 대체 글꼴 데이터로 선택하는 대체 글꼴 선택부 및 상기 글꼴 데이터 저장부로부터 상기 대체 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 대체 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시하는 문서 재구성부를 포함한다.A document editing apparatus capable of displaying a document to which a font configured in an unsupported data format is applied according to an embodiment of the present invention is a font identifier for each of a plurality of different first fonts configured in a first data format and a replacement font table in which replacement font identifiers for a replacement font previously designated as being able to replace each of the plurality of first fonts, the replacement font being a font configured in a second data format, are recorded in correspondence with each other; a replacement font table maintaining unit maintained by a font data storage unit stored in correspondence with each other, which is data used to apply a font format corresponding to the characters included in the document, and a document capable of loading only font data configured in the second data format When the first document is opened through the writing program, document data for the first document - the document data includes a font identifier for a font applied to a plurality of characters included in the first document is inserted a font identifier checking unit for reading and confirming a font identifier for a font applied to the plurality of characters included in the first document; When the first font identifier, which is one of the font identifiers for each of the fonts, is identified, the first alternate font identifier recorded in correspondence with the first font identifier is checked from the alternate font table, and then the font data is stored. When it is confirmed that a font identifier matching the first replacement font identifier is stored in the font data storage unit, the stored font checking unit confirms whether a font identifier matching the first replacement font identifier is stored in the unit; , the plurality of articles stored in the font data storage unit 2 A replacement font selection unit selecting first font data corresponding to the first replacement font identifier from among the font data for the fonts as replacement font data, and loading the replacement font data from the font data storage unit, the plurality of characters and a document reconfiguration unit configured to display the reconstructed first document on a screen after reconstructing the first document by applying a font format according to the replacement font data to the fonts.

또한, 본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법은 제1 데이터 포맷으로 구성된 서로 다른 복수의 제1 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제1 글꼴들 각각을 대체할 수 있는 것으로 미리 지정된 대체 글꼴 - 상기 대체 글꼴은 제2 데이터 포맷으로 구성된 글꼴임 - 에 대한 대체 글꼴 식별자가 서로 대응되어 기록되어 있는 대체 글꼴 테이블을 저장하여 유지하는 단계, 상기 제2 데이터 포맷으로 구성된 서로 다른 복수의 제2 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제2 글꼴들 각각에 대한 글꼴 데이터 - 상기 글꼴 데이터는 문서가 로드될 때, 문서에 포함된 문자들에 대해 대응되는 글꼴 서식을 적용하는데 사용되는 데이터임 - 가 서로 대응되어 저장되어 있는 글꼴 데이터 저장부를 유지하는 단계, 상기 제2 데이터 포맷으로 구성된 글꼴 데이터만을 로드할 수 있는 문서 작성 프로그램을 통해 제1 문서가 오픈되면, 상기 제1 문서에 대한 문서 데이터 - 상기 문서 데이터에는 상기 제1 문서에 포함된 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 삽입되어 있음 - 를 읽어 들여 상기 제1 문서에 포함된 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자를 확인하는 단계, 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 상기 복수의 제1 글꼴들 각각에 대한 글꼴 식별자 중 어느 하나인 제1 글꼴 식별자로 확인되는 경우, 상기 대체 글꼴 테이블로부터 상기 제1 글꼴 식별자에 대응되어 기록되어 있는 제1 대체 글꼴 식별자를 확인한 후, 상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는지를 확인하는 단계, 상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는 것으로 확인되는 경우, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제1 대체 글꼴 식별자에 대응되는 제1 글꼴 데이터를 대체 글꼴 데이터로 선택하는 단계 및 상기 글꼴 데이터 저장부로부터 상기 대체 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 대체 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시하는 단계를 포함한다.In addition, according to an embodiment of the present invention, a method of operating a document editing apparatus enabling display of a document to which a font configured in an unsupported data format is applied may include a plurality of different first fonts configured in a first data format. A font identifier for each and a replacement font identifier for a replacement font previously designated as being able to replace each of the plurality of first fonts, wherein the replacement font is a font configured in the second data format, are recorded in correspondence with each other Storing and maintaining an alternative font table, a font identifier for each of a plurality of different second fonts configured in the second data format and font data for each of the plurality of second fonts, wherein the font data is When loaded, data used to apply a font format corresponding to characters included in a document - maintaining a font data storage unit stored in correspondence with each other; loading only font data configured in the second data format When the first document is opened through a document creation program capable of reading and confirming a font identifier for a font applied to the plurality of characters included in the first document, the font identifier for the font applied to the plurality of characters is When the first font identifier, which is one of the font identifiers for each of the first fonts, is identified, the first replacement font identifier recorded in correspondence with the first font identifier is checked from the replacement font table, and then the font data checking whether a font identifier matching the first replacement font identifier is stored in a storage unit; to the plurality of second fonts stored in the font data storage unit selecting first font data corresponding to the first replacement font identifier as replacement font data from among the font data for the font data, and loading the replacement font data from the font data storage unit to provide the replacement font data for the plurality of characters and displaying the reconstructed first document on a screen after reconstructing the first document by applying a font format according to .

본 발명에 따른 문서 편집 장치 및 그 동작 방법은 특정 데이터 포맷으로 구성된 글꼴 데이터만을 로드할 수 있는 문서 작성 프로그램을 통해 다른 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서가 오픈되면, 상기 문서에 적용되어 있는 글꼴을 대체할 수 있는 특정 데이터 포맷으로 구성된 대체 글꼴을 선택하고, 상기 대체 글꼴을 기초로 상기 문서에 대해 글꼴 서식 적용을 처리함으로써, 지원되지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서에 대한 화면 표시를 지원할 수 있다.The document editing apparatus and the method for operating the same according to the present invention, when a document to which a font composed of another data format is applied is opened through a document writing program capable of loading only font data composed of a specific data format, the document applied to the document Screen for a document to which a font composed of an unsupported data format is applied by selecting a replacement font composed of a specific data format that can be substituted for the font, and processing font formatting for the document based on the replacement font display can be supported.

도 1은 본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 구조를 도시한 도면이다.
도 2는 본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치를 설명하기 위한 도면이다.
도 3은 본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법을 도시한 순서도이다.
1 is a diagram illustrating a structure of a document editing apparatus that enables display of a document to which a font configured in an unsupported data format is applied according to an embodiment of the present invention.
FIG. 2 is a diagram for explaining a document editing apparatus capable of displaying a document to which a font configured in an unsupported data format is applied according to an embodiment of the present invention.
3 is a flowchart illustrating a method of operating a document editing apparatus that enables display of a document to which a font configured in an unsupported data format is applied according to an embodiment of the present invention.

이하에서는 본 발명에 따른 실시예들을 첨부된 도면을 참조하여 상세하게 설명하기로 한다. 이러한 설명은 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였으며, 다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 본 명세서 상에서 사용되는 모든 용어들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 사람에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings. These descriptions are not intended to limit the present invention to specific embodiments, and should be understood to include all modifications, equivalents, and substitutes included in the spirit and scope of the present invention. While describing each drawing, like reference numerals are used for similar components, and unless otherwise defined, all terms used in this specification, including technical or scientific terms, refer to those of ordinary skill in the art to which the present invention belongs. It has the same meaning as is commonly understood by those who have it.

본 문서에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있다는 것을 의미한다. 또한, 본 발명의 다양한 실시예들에 있어서, 각 구성요소들, 기능 블록들 또는 수단들은 하나 또는 그 이상의 하부 구성요소로 구성될 수 있고, 각 구성요소들이 수행하는 전기, 전자, 기계적 기능들은 전자회로, 집적회로, ASIC(Application Specific Integrated Circuit) 등 공지된 다양한 소자들 또는 기계적 요소들로 구현될 수 있으며, 각각 별개로 구현되거나 2 이상이 하나로 통합되어 구현될 수도 있다. In this document, when a part "includes" a certain component, it means that other components may be further included, rather than excluding other components, unless otherwise stated. In addition, in various embodiments of the present invention, each of the components, functional blocks or means may be composed of one or more sub-components, and the electrical, electronic, and mechanical functions performed by each component are electronic. A circuit, an integrated circuit, an ASIC (Application Specific Integrated Circuit), etc. may be implemented with various well-known devices or mechanical elements, and may be implemented separately or two or more may be integrated into one.

한편, 첨부된 블록도의 블록들이나 흐름도의 단계들은 범용 컴퓨터, 특수용 컴퓨터, 휴대용 노트북 컴퓨터, 네트워크 컴퓨터 등 데이터 프로세싱이 가능한 장비의 프로세서나 메모리에 탑재되어 지정된 기능들을 수행하는 컴퓨터 프로그램 명령들(instructions)을 의미하는 것으로 해석될 수 있다. 이들 컴퓨터 프로그램 명령들은 컴퓨터 장치에 구비된 메모리 또는 컴퓨터에서 판독 가능한 메모리에 저장될 수 있기 때문에, 블록도의 블록들 또는 흐름도의 단계들에서 설명된 기능들은 이를 수행하는 명령 수단을 내포하는 제조물로 생산될 수도 있다. 아울러, 각 블록 또는 각 단계는 특정된 논리적 기능(들)을 실행하기 위한 하나 이상의 실행 가능한 명령들을 포함하는 모듈, 세그먼트 또는 코드의 일부를 나타낼 수 있다. 또, 몇 가지 대체 가능한 실시예들에서는 블록들 또는 단계들에서 언급된 기능들이 정해진 순서와 달리 실행되는 것도 가능함을 주목해야 한다. 예컨대, 잇달아 도시되어 있는 두 개의 블록들 또는 단계들은 실질적으로 동시에 수행되거나, 역순으로 수행될 수 있으며, 경우에 따라 일부 블록들 또는 단계들이 생략된 채로 수행될 수도 있다.On the other hand, the blocks in the accompanying block diagram or steps in the flowchart are computer program instructions that are loaded in a processor or memory of equipment capable of data processing, such as a general-purpose computer, a special-purpose computer, a portable notebook computer, and a network computer, and perform specified functions. can be interpreted as meaning Since these computer program instructions may be stored in a memory provided in a computer device or in a memory readable by a computer, the functions described in the blocks of the block diagrams or the steps of the flowcharts are produced as articles of manufacture containing instruction means for performing the same. could be In addition, each block or each step may represent a module, segment, or portion of code comprising one or more executable instructions for executing the specified logical function(s). It should also be noted that, in some alternative embodiments, it is also possible for the functions recited in blocks or steps to be executed out of the prescribed order. For example, two blocks or steps shown one after another may be performed substantially simultaneously or in the reverse order, and in some cases, some blocks or steps may be omitted.

도 1은 본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 구조를 도시한 도면이다. 1 is a diagram illustrating a structure of a document editing apparatus that enables display of a document to which a font configured in an unsupported data format is applied according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치(110)는 대체 글꼴 테이블 유지부(111), 글꼴 데이터 저장부(112), 글꼴 식별자 확인부(113), 저장 글꼴 확인부(114), 대체 글꼴 선택부(115) 및 문서 재구성부(116)를 포함한다. Referring to FIG. 1 , a document editing apparatus 110 that enables display of a document to which a font configured in an unsupported data format is applied according to an embodiment of the present invention includes an alternative font table maintaining unit 111, a font It includes a data storage unit 112 , a font identifier verification unit 113 , a stored font verification unit 114 , a replacement font selection unit 115 , and a document reconstruction unit 116 .

대체 글꼴 테이블 유지부(111)는 제1 데이터 포맷으로 구성된 서로 다른 복수의 제1 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제1 글꼴들 각각을 대체할 수 있는 것으로 미리 지정된 대체 글꼴(상기 대체 글꼴은 제2 데이터 포맷으로 구성된 글꼴임)에 대한 대체 글꼴 식별자가 서로 대응되어 기록되어 있는 대체 글꼴 테이블을 저장하여 유지한다.The replacement font table maintaining unit 111 includes a font identifier for each of a plurality of different first fonts configured in a first data format and a replacement font (the replacement font) previously designated as being able to replace each of the plurality of first fonts. (The font is a font configured in the second data format) and stores and maintains a table of replacement fonts in which replacement font identifiers for each other are recorded in correspondence with each other.

예컨대, 상기 제1 데이터 포맷으로 구성된 글꼴의 명칭은 'A'로 시작하고, 상기 제2 데이터 포맷으로 구성된 글꼴의 명칭은 'B'로 시작한다고 가정하면, 상기 대체 글꼴 테이블에는 하기의 표 1과 같이 정보가 기록되어 있을 수 있다.For example, assuming that the name of the font configured in the first data format starts with 'A' and the name of the font configured in the second data format starts with 'B', the replacement font table contains Table 1 and Information may also be recorded.

복수의 제1 글꼴들에 대한 글꼴 식별자 Font identifiers for the plurality of first fonts 대체 글꼴에 대한 대체 글꼴 식별자Alternative font identifier for alternate fonts 글꼴 명칭font name 글꼴 식별자font identifier 글꼴 명칭font name 글꼴 식별자font identifier A중고딕A used gothic A1 A1 B고딕체B gothic B1B1 A신명조A Shin Myeongjo A2 A2 B명조체B Myeong-style B2B2 A새굴림A new roll A3 A3 B굴림체B-rolling body B3B3 ...... ......

글꼴 데이터 저장부(112)에는 상기 제2 데이터 포맷으로 구성된 서로 다른 복수의 제2 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제2 글꼴들 각각에 대한 글꼴 데이터가 서로 대응되어 저장되어 있다.The font data storage unit 112 stores a font identifier for each of a plurality of different second fonts configured in the second data format and font data for each of the plurality of second fonts in correspondence with each other.

여기서, 상기 글꼴 데이터는 문서가 로드될 때, 문서에 포함된 문자들에 대해 대응되는 글꼴 서식을 적용하는데 사용되는 데이터이다.Here, the font data is data used to apply a font format corresponding to characters included in the document when the document is loaded.

예컨대, 전술한 예에 따르면, 글꼴 데이터 저장부(112)에는 하기의 표 2와 같이 정보가 저장되어 있을 수 있다.For example, according to the above-described example, information may be stored in the font data storage unit 112 as shown in Table 2 below.

복수의 제2 글꼴들의 글꼴 명칭Font names of the plurality of second fonts 글꼴 식별자font identifier 글꼴 데이터font data B고딕체B gothic B1B1 글꼴 데이터 1font data 1 B명조체B Myeong-style B2B2 글꼴 데이터 2font data 2 B굴림B roll B4B4 글꼴 데이터 3font data 3 B돋움B magnification B5B5 글꼴 데이터 4font data 4 ...... ...... ......

글꼴 식별자 확인부(113)는 상기 제2 데이터 포맷으로 구성된 글꼴 데이터만을 로드할 수 있는 문서 작성 프로그램을 통해 제1 문서가 오픈되면, 상기 제1 문서에 대한 문서 데이터를 읽어 들여 상기 제1 문서에 포함된 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자를 확인한다.When a first document is opened through a document writing program capable of loading only font data configured in the second data format, the font identifier check unit 113 reads the document data for the first document and writes it to the first document. A font identifier for a font applied to the included plurality of characters is checked.

여기서, 상기 문서 데이터에는 상기 제1 문서에 포함된 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 삽입되어 있다. Here, a font identifier for a font applied to a plurality of characters included in the first document is inserted in the document data.

저장 글꼴 확인부(114)는 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 상기 복수의 제1 글꼴들 각각에 대한 글꼴 식별자 중 어느 하나인 제1 글꼴 식별자로 확인되는 경우, 상기 대체 글꼴 테이블로부터 상기 제1 글꼴 식별자에 대응되어 기록되어 있는 제1 대체 글꼴 식별자를 확인한 후, 글꼴 데이터 저장부(112)에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는지를 확인한다.When the font identifier for the font applied to the plurality of characters is identified as the first font identifier that is one of the font identifiers for each of the plurality of first fonts, the stored font check unit 114 is configured to replace the font identifier. After checking the first replacement font identifier recorded corresponding to the first font identifier from the font table, it is checked whether a font identifier matching the first replacement font identifier is stored in the font data storage unit 112 .

대체 글꼴 선택부(115)는 글꼴 데이터 저장부(112)에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는 것으로 확인되는 경우, 글꼴 데이터 저장부(112)에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제1 대체 글꼴 식별자에 대응되는 제1 글꼴 데이터를 대체 글꼴 데이터로 선택한다.When it is confirmed that the font identifier matching the first alternative font identifier is stored in the font data storage unit 112 , the replacement font selection unit 115 may store the plurality of the font data stored in the font data storage unit 112 Among the font data for the second fonts, first font data corresponding to the first replacement font identifier is selected as the replacement font data.

문서 재구성부(116)는 글꼴 데이터 저장부(112)로부터 상기 대체 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 대체 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시한다.The document reconfiguration unit 116 reconstructs the first document by loading the replacement font data from the font data storage unit 112 and applying a font format according to the replacement font data to the plurality of characters, and then reconstructs The first document that has been created is displayed on the screen.

예컨대, 상기 제1 문서에 포함된 상기 복수의 문자들에 'A중고딕'이라는 글꼴이 적용되어 있다고 가정하면, 글꼴 명칭이 'B'로 시작하는 상기 제2 데이터 포맷으로 구성된 글꼴 데이터만을 로드할 수 있는 문서 작성 프로그램을 통해 상기 제1 문서가 오픈되는 경우, 글꼴 식별자 확인부(113)는 상기 제1 문서에 대한 문서 데이터를 읽어 들여 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자를 확인할 수 있다.For example, assuming that the font 'A middle-gothic' is applied to the plurality of characters included in the first document, only font data configured in the second data format with a font name starting with 'B' can be loaded. When the first document is opened through an existing document creation program, the font identifier check unit 113 reads document data for the first document and checks the font identifier for the font applied to the plurality of characters. can

이때, 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 'A중고딕'에 대한 글꼴 식별자인 'A1'로 확인되는 경우, 저장 글꼴 확인부(114)는 상기 표 1과 같은 상기 대체 글꼴 테이블로부터 'A1'에 대응되어 기록되어 있는 제1 대체 글꼴 식별자로 'B고딕체'에 대한 글꼴 식별자인 'B1'을 확인한 후, 상기 표 2와 같은 글꼴 데이터 저장부(112)에 'B1'과 일치하는 글꼴 식별자가 저장되어 있는지를 확인할 수 있다.At this time, when the font identifier for the font applied to the plurality of characters is identified as 'A1', which is the font identifier for 'A middle-gothic', the stored font check unit 114 is the replacement font as shown in Table 1 above. After checking 'B1', which is the font identifier for 'B Gothic', as the first replacement font identifier recorded in correspondence with 'A1' from the table, 'B1' and 'B1' are stored in the font data storage unit 112 as shown in Table 2 above. You can check whether a matching font identifier is stored.

이때, 저장 글꼴 확인부(114)에 의해 상기 표 2와 같은 글꼴 데이터 저장부(112)에 'B1'과 일치하는 글꼴 식별자가 저장되어 있는 것으로 확인되는 경우, 대체 글꼴 선택부(115)는 상기 표 2와 같은 글꼴 데이터 저장부(112)에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 'B1'에 대응되는 글꼴 데이터인 '글꼴 데이터 1'을 대체 글꼴 데이터로 선택할 수 있다.At this time, when it is confirmed by the stored font checking unit 114 that a font identifier matching 'B1' is stored in the font data storage unit 112 as shown in Table 2, the alternative font selection unit 115 is the Among the font data for the plurality of second fonts stored in the font data storage unit 112 as shown in Table 2, 'font data 1', which is font data corresponding to 'B1', may be selected as the replacement font data.

그러면, 문서 재구성부(116)는 상기 표 2와 같은 글꼴 데이터 저장부(112)로부터 '글꼴 데이터 1'을 로드하여 상기 복수의 문자들에 대해 '글꼴 데이터 1'에 따른 글꼴 서식인 'B고딕체'를 적용함으로써 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시할 수 있다.Then, the document reconstructing unit 116 loads 'font data 1' from the font data storage unit 112 as shown in Table 2, and 'B gothic font' is a font format according to 'font data 1' for the plurality of characters. After reconstructing the first document by applying ', the reconstructed first document may be displayed on the screen.

이때, 본 발명의 일실시예에 따르면, 대체 글꼴 선택부(115)는 글꼴 데이터 저장부(112)에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있지 않은 것으로 확인되는 경우에 상기 대체 글꼴 데이터를 선택하기 위한 구성으로 유사도 데이터베이스(120), 유클리드 거리 연산부(121), 대체 글꼴 선택 처리부(122)를 포함할 수 있다.At this time, according to an embodiment of the present invention, the replacement font selection unit 115 determines that the font identifier matching the first replacement font identifier is not stored in the font data storage unit 112, A configuration for selecting font data may include a similarity database 120 , a Euclidean distance calculating unit 121 , and an alternative font selection processing unit 122 .

유사도 데이터베이스(120)에는 문자에 적용 가능한 것으로 미리 지정된 복수의 글꼴들 각각에 대한 글꼴 식별자와, 각 글꼴 간의 미리 정해진 유사도에 기반하여 상기 복수의 글꼴들 각각에 대해 미리 지정된 특성 벡터가 서로 대응되어 저장되어 있다. In the similarity database 120 , a font identifier for each of a plurality of fonts previously designated as applicable to characters and a characteristic vector designated in advance for each of the plurality of fonts based on a predetermined similarity between each font are stored in correspondence with each other has been

예컨대, 유사도 데이터베이스(120)에는 하기의 표 3과 같이 정보가 저장되어 있을 수 있다.For example, information may be stored in the similarity database 120 as shown in Table 3 below.

복수의 글꼴들의 글꼴 명칭Font names of multiple fonts 글꼴 식별자font identifier 특성 벡터characteristic vector B고딕체B gothic B1B1 [0 1 2 3][0 1 2 3] B명조체B Myeong-style B2B2 [5 6 7 8][5 6 7 8] B굴림체B-rolling body B3B3 [9 10 11 12][9 10 11 12] B굴림B roll B4B4 [13 14 15 16][13 14 15 16] B돋움B magnification B5B5 [15 16 17 18][15 16 17 18] ...... ...... ......

이때, 상기 표 3에 저장되어 있는 특성 벡터는 개발자에 의해 임의로 정해지는 벡터 값이며, 상기 개발자는 상기 복수의 글꼴들 각각의 특징을 사전 조사한 후, 각 글꼴들 간에 서로 유사한 글꼴일수록 유클리드 거리(Euclidean Distance)가 작게 연산되도록 상기 특성 벡터를 각 글꼴들에 대해 할당할 수 있다. 즉, 상기 특성 벡터는 각 글꼴들 간의 유사도를 구분하기 위한 척도가 될 수 있다.In this case, the characteristic vector stored in Table 3 is a vector value arbitrarily determined by a developer, and the developer pre-examines the characteristics of each of the plurality of fonts, and the more similar the fonts among the fonts, the more the Euclidean distance (Euclidean distance). Distance) may be assigned to each font so that the feature vector is calculated to be small. That is, the feature vector may be a measure for distinguishing the similarity between the respective fonts.

유클리드 거리 연산부(121)는 글꼴 데이터 저장부(112)에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있지 않은 것으로 확인되는 경우, 유사도 데이터베이스(120)를 참조하여 상기 제1 대체 글꼴 식별자에 대응되어 저장되어 있는 제1 특성 벡터를 확인하고, 상기 제1 특성 벡터와 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 각각에 대응되는 특성 벡터 간의 유클리드 거리를 연산한다.When it is determined that the font identifier matching the first replacement font identifier is not stored in the font data storage unit 112 , the Euclidean distance calculating unit 121 refers to the similarity database 120 and refers to the first replacement font identifier. A first feature vector stored in correspondence with . is checked, and a Euclidean distance between the first feature vector and a feature vector corresponding to each of the font identifiers of the plurality of second fonts is calculated.

여기서, 유클리드 거리란 두 벡터 간의 거리를 의미하는 것으로 하기의 수학식 1에 따라 연산될 수 있다.Here, the Euclidean distance refers to a distance between two vectors and may be calculated according to Equation 1 below.

Figure 112020038037254-pat00001
Figure 112020038037254-pat00001

상기 수학식 1에서 D는 유클리드 거리, pi와 qi는 두 특성 벡터에 포함되어 있는 i번째 성분들을 의미한다. 두 특성 벡터 간의 유클리드 거리가 작을수록 두 벡터는 유사한 벡터라고 볼 수 있고, 두 특성 벡터 간의 유클리드 거리가 클수록 두 벡터는 비유사한 벡터라고 볼 수 있다.In Equation 1, D denotes a Euclidean distance, and p i and q i denote i-th components included in the two feature vectors. As the Euclidean distance between two feature vectors is small, the two vectors can be regarded as similar vectors, and as the Euclidean distance between two feature vectors increases, the two vectors can be regarded as dissimilar vectors.

대체 글꼴 선택 처리부(122)는 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 중 상기 제1 특성 벡터와의 유클리드 거리가 최소로 연산된 특성 벡터에 대응되는 글꼴 식별자를 제2 대체 글꼴 식별자로 선택하고, 글꼴 데이터 저장부(112)에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제2 대체 글꼴 식별자에 대응되는 제2 글꼴 데이터를 상기 대체 글꼴 데이터로 선택한다.The alternative font selection processing unit 122 selects, as a second alternative font identifier, a font identifier corresponding to a feature vector in which the Euclidean distance to the first feature vector is calculated as a minimum among font identifiers for the plurality of second fonts, , selects second font data corresponding to the second replacement font identifier from among the font data for the plurality of second fonts stored in the font data storage unit 112 as the replacement font data.

예컨대, 글꼴 식별자 확인부(113)에 의해 상기 복수의 문자들에 적용되어 있는 글꼴이 'A새굴림'에 대한 글꼴 식별자인 'A3'으로 확인되었고, 저장 글꼴 확인부(114)에 의해 상기 표 1과 같은 상기 대체 글꼴 테이블로부터 'A3'에 대응되어 기록되어 있는 제1 대체 글꼴 식별자로 'B굴림체'에 대한 'B3'가 확인되었다고 가정하자. For example, the font applied to the plurality of characters was identified as 'A3', which is the font identifier for 'A Saegulrim' by the font identifier confirmation unit 113, and Table 1 by the stored font confirmation unit 114 Assume that 'B3' for 'B Gulimche' is identified as the first alternate font identifier recorded in correspondence with 'A3' from the alternative font table as shown in FIG.

이때, 유클리드 거리 연산부(121)는 상기 표 2와 같이, 글꼴 데이터 저장부(112)에 'B3'이 저장되어 있지 않은 것으로 확인되는 경우, 상기 표 3과 같은 유사도 데이터베이스(120)를 참조하여 'B3'에 대응되어 저장되어 있는 제1 특성 벡터인 '[9 10 11 12]'를 확인할 수 있고, 상기 제1 특성 벡터인 '[9 10 11 12]'와 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 각각에 대응되는 특성 벡터 간의 유클리드 거리를 연산할 수 있다.At this time, when it is confirmed that 'B3' is not stored in the font data storage unit 112 as shown in Table 2, the Euclidean distance calculating unit 121 refers to the similarity database 120 as shown in Table 3, and ' '[9 10 11 12]', which is a stored first feature vector corresponding to B3', can be checked, and '[9 10 11 12]', which is the first feature vector, and The Euclidean distance between the feature vectors corresponding to each font identifier can be calculated.

대체 글꼴 선택 처리부(122)는 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 중 상기 제1 특성 벡터인 '[9 10 11 12]'와의 유클리드 거리가 최소로 연산된 특성 벡터에 대응되는 글꼴 식별자를 제2 대체 글꼴 식별자로 선택할 수 있다. The alternative font selection processing unit 122 selects a font identifier corresponding to a feature vector in which the Euclidean distance from the first feature vector '[9 10 11 12]' among the font identifiers for the plurality of second fonts is calculated as a minimum. A second alternative font identifier may be selected.

만약, 상기 제1 특성 벡터인 '[9 10 11 12]'와의 유클리드 거리가 최소로 연산된 특성 벡터에 대응되는 글꼴 식별자가 'B5'로 선택되면, 대체 글꼴 선택 처리부(122)는 'B5'에 대응되는 글꼴 데이터인 '글꼴 데이터 4'를 상기 대체 글꼴 데이터로 선택할 수 있다.If the font identifier corresponding to the feature vector in which the Euclidean distance to the first feature vector '[9 10 11 12]' is calculated is selected as 'B5', the alternative font selection processing unit 122 is 'B5' 'Font data 4', which is font data corresponding to , may be selected as the replacement font data.

그러면, 문서 재구성부(116)는 상기 표 2와 같은 글꼴 데이터 저장부(112)로부터 상기 대체 글꼴 데이터인 '글꼴 데이터 4'를 로드하여 상기 복수의 문자들에 대해 '글꼴 데이터 4'에 따른 글꼴 서식인 'B돋움'을 적용함으로써 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시할 수 있다.Then, the document reconstructing unit 116 loads 'font data 4', which is the replacement font data, from the font data storage unit 112 as shown in Table 2, and a font according to 'font data 4' for the plurality of characters. After the first document is reconstructed by applying the form 'B magnification', the reconstructed first document may be displayed on the screen.

이때, 본 발명의 일실시예에 따르면, 문서 편집 장치(110)는 상기 제1 문서에 상기 대체 글꼴 데이터에 따른 글꼴 서식이 적용되는 경우에도 기존 문서의 레이아웃을 유지하기 위한 구성으로 글꼴 너비 테이블 유지부(117)를 더 포함할 수 있다.At this time, according to an embodiment of the present invention, the document editing apparatus 110 maintains the font width table in a configuration for maintaining the layout of the existing document even when the font format according to the replacement font data is applied to the first document. It may further include a part 117 .

글꼴 너비 테이블 유지부(117)는 상기 복수의 제1 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제1 글꼴들 각각에 대응되는 미리 설정된 문자별 너비 정보가 서로 대응되어 기록되어 있는 글꼴 너비 테이블을 저장하여 유지한다.The font width table maintaining unit 117 maintains a font width table in which a font identifier for each of the plurality of first fonts and preset character width information corresponding to each of the plurality of first fonts are recorded in correspondence with each other. Save and keep

여기서, 상기 문자별 너비 정보는 상기 복수의 문자들 각각에 상기 복수의 제1 글꼴들 중 어느 하나의 글꼴이 적용되었을 때, 각 문자의 가로축 너비에 대한 크기 정보를 의미한다.Here, the width information for each character means size information on the horizontal axis width of each character when any one of the plurality of first fonts is applied to each of the plurality of characters.

예컨대, 상기 글꼴 너비 테이블에는 하기의 표 4와 같이 정보가 기록되어 있을 수 있다.For example, information may be recorded in the font width table as shown in Table 4 below.

복수의 제1 글꼴들의 글꼴 명칭Font names of the plurality of first fonts 글꼴 식별자font identifier 문자별 너비 정보Width information per character 문자message 가로축 너비horizontal axis width A중고딕A used gothic A1A1 go 1010 thing 88 ...... ...... A신명조A Shin Myeongjo A2A2 go 99 thing 77 ...... ...... A새굴림A new roll A3A3 go 88 thing 66 ...... ...... ...... ...... ...... ......

이때, 본 발명의 일실시예에 따르면, 문서 재구성부(116)는 너비 정보 확인부(118) 및 문서 재구성 처리부(119)를 포함할 수 있다.In this case, according to an embodiment of the present invention, the document reconstruction unit 116 may include a width information check unit 118 and a document reconstruction processing unit 119 .

너비 정보 확인부(118)는 상기 제1 글꼴 데이터가 상기 대체 글꼴 데이터로 선택되면, 상기 글꼴 너비 테이블로부터 상기 제1 글꼴 식별자에 따른 글꼴에 대응되어 기록되어 있는 제1 문자별 너비 정보를 확인한다.When the first font data is selected as the replacement font data, the width information check unit 118 checks the width information for each first character recorded corresponding to the font according to the first font identifier from the font width table. .

문서 재구성 처리부(119)는 글꼴 데이터 저장부(112)로부터 상기 대체 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 대체 글꼴 데이터에 따른 글꼴 서식을 적용하되, 상기 제1 문자별 너비 정보를 기초로 상기 복수의 문자들 각각의 너비를 조정함으로써, 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시한다.The document reconstruction processing unit 119 loads the replacement font data from the font data storage unit 112 and applies a font format according to the replacement font data to the plurality of characters, but based on the width information for each first character By adjusting the width of each of the plurality of characters, the first document is reconstructed and then the reconstructed first document is displayed on the screen.

예컨대, 글꼴 식별자 확인부(113)에 의해 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 'A중고딕'에 대한 글꼴 식별자인 'A1'로 확인되었고, 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 'B1'에 대응되는 '글꼴 데이터 1'이 상기 대체 글꼴 데이터로 선택되었다고 가정하면, 너비 정보 확인부(118)는 상기 표 4와 같은 상기 글꼴 너비 테이블로부터 'A1'에 따른 글꼴인 'A중고딕'에 대응되어 기록되어 있는 제1 문자별 너비 정보를 확인할 수 있다.For example, the font identifier for the font applied to the plurality of characters by the font identifier check unit 113 is confirmed as 'A1', which is the font identifier for 'A Middle Gothic', and is applied to the plurality of second fonts. Assuming that 'font data 1' corresponding to 'B1' is selected as the replacement font data among the font data for You can check the width information for each first character recorded in correspondence with 'A Middle Gothic'.

그러면, 문서 재구성 처리부(119)는 상기 표 2와 같은 글꼴 데이터 저장부(112)로부터 '글꼴 데이터 1'을 로드하여 상기 복수의 문자들에 대해 '글꼴 데이터 1'에 따른 글꼴 서식인 'B고딕체'를 적용하되, 상기 제1 문자별 너비 정보를 기초로 상기 복수의 문자들 각각의 너비를 조정함으로써, 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시할 수 있다.Then, the document reconstruction processing unit 119 loads 'font data 1' from the font data storage unit 112 as shown in Table 2, and 'B gothic font', which is a font format according to 'font data 1' for the plurality of characters. ', but by adjusting the width of each of the plurality of characters based on the width information for each first character, the first document can be reconstructed, and the reconstructed first document can be displayed on the screen .

즉, 상기 복수의 문자들 중 '가'라는 문자가 존재한다면, '가'라는 문자에 대해서는 문자의 가로축 너비를 '10'으로 조정함으로써, 상기 제1 문서를 재구성할 수 있다.That is, if a character 'A' exists among the plurality of characters, the first document may be reconstructed by adjusting the horizontal axis width of the character 'A' to '10'.

또한, 본 발명의 일실시예에 따르면, 대체 글꼴 선택부(115)는 연산 처리부(123), 후보 글꼴 식별자 선택부(124), 후보 글꼴 명칭 표시부(125) 및 변경 글꼴 선택부(126)를 더 포함할 수 있다.In addition, according to an embodiment of the present invention, the replacement font selection unit 115 includes the operation processing unit 123 , the candidate font identifier selection unit 124 , the candidate font name display unit 125 , and the change font selection unit 126 . may include more.

연산 처리부(123)는 재구성된 상기 제1 문서가 화면 상에 표시된 이후, 사용자로부터 상기 복수의 문자들에 대한 대체 글꼴의 변경 명령이 수신되면, 유사도 데이터베이스(120)를 참조하여 상기 대체 글꼴 데이터에 따른 글꼴에 대한 글꼴 식별자에 대응되어 저장되어 있는 제2 특성 벡터를 확인하고, 상기 제2 특성 벡터와 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 각각에 대응되는 특성 벡터 간의 유클리드 거리를 연산한다.After the reconstructed first document is displayed on the screen, when a command to change the replacement font for the plurality of characters is received from the user, the calculation processing unit 123 refers to the similarity database 120 to the replacement font data. A second characteristic vector stored corresponding to a font identifier for a font according to the corresponding font is checked, and a Euclidean distance between the second characteristic vector and a characteristic vector corresponding to each of the font identifiers of the plurality of second fonts is calculated.

후보 글꼴 식별자 선택부(124)는 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 중 상기 제2 특성 벡터와의 유클리드 거리가 미리 설정된 기준 거리 이내로 연산되는 적어도 하나의 특성 벡터에 대응되는 적어도 하나의 후보 글꼴 식별자를 변경 후보 글꼴 식별자로 선택한다.The candidate font identifier selection unit 124 is configured to select at least one candidate corresponding to at least one feature vector whose Euclidean distance to the second feature vector is calculated within a preset reference distance among font identifiers for the plurality of second fonts. Select the font identifier as the change candidate font identifier.

후보 글꼴 명칭 표시부(125)는 상기 적어도 하나의 후보 글꼴 식별자가 상기 변경 후보 글꼴 식별자로 선택되면, 상기 적어도 하나의 후보 글꼴 식별자 각각에 대한 글꼴 명칭에 대한 정보를 화면 상에 표시한다.When the at least one candidate font identifier is selected as the change candidate font identifier, the candidate font name display unit 125 displays information on the font name for each of the at least one candidate font identifier on the screen.

변경 글꼴 선택부(126)는 상기 사용자로부터 상기 적어도 하나의 후보 글꼴 식별자 중 제1 후보 글꼴 식별자에 대한 선택 명령이 수신되면, 글꼴 데이터 저장부(112)에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제1 후보 글꼴 식별자에 대응되는 제3 글꼴 데이터를 변경 글꼴 데이터로 선택한다.When a selection command for a first candidate font identifier among the at least one candidate font identifier is received from the user, the change font selection unit 126 selects the plurality of second fonts stored in the font data storage unit 112 . 3rd font data corresponding to the first candidate font identifier from among the font data for , is selected as the change font data.

이때, 문서 재구성부(116)는 상기 제3 글꼴 데이터가 상기 변경 글꼴 데이터로 선택되면, 글꼴 데이터 저장부(112)로부터 상기 변경 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 변경 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 다시 재구성한 후, 다시 재구성된 상기 제1 문서를 화면 상에 표시할 수 있다.At this time, when the third font data is selected as the changed font data, the document reconstruction unit 116 loads the changed font data from the font data storage unit 112 and stores the changed font data for the plurality of characters. After the first document is reconstructed by applying a font format according to the above, the reconstructed first document may be displayed on the screen.

예컨대, 앞선 예와 같이, 상기 복수의 문자들에 대해 '글꼴 데이터 1'에 따른 글꼴 서식인 'B고딕체'가 적용됨으로써 상기 제1 문서가 재구성되었다고 가정하면, 연산 처리부(123)는 재구성된 상기 제1 문서가 화면 상에 표시된 이후, 사용자로부터 상기 복수의 문자들에 대한 대체 글꼴의 변경 명령이 수신되는 경우, 상기 표 3과 같은 유사도 데이터베이스(120)를 참조하여 'B고딕체'에 대한 글꼴 식별자인 'B1'에 대응되어 저장되어 있는 제2 특성 벡터인 '[0 1 2 3]'을 확인할 수 있고, 상기 제2 특성 벡터인 '[0 1 2 3]'과 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 각각에 대응되는 특성 벡터 간의 유클리드 거리를 연산할 수 있다.For example, if it is assumed that the first document is reconstructed by applying 'B gothic font', which is a font format according to 'font data 1', to the plurality of characters as in the previous example, the operation processing unit 123 may perform the reconstructed After the first document is displayed on the screen, when a command to change the replacement font for the plurality of characters is received from the user, the font identifier for 'Gothic B' with reference to the similarity database 120 as shown in Table 3 above '[0 1 2 3]', which is a stored second feature vector corresponding to 'B1', can be checked, and '[0 1 2 3]', which is the second feature vector, and the plurality of second fonts A Euclidean distance between feature vectors corresponding to each of the font identifiers can be calculated.

그리고, 후보 글꼴 식별자 선택부(124)는 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 중 상기 제2 특성 벡터인 '[0 1 2 3]'과의 유클리드 거리가 미리 설정된 기준 거리 이내로 연산되는 적어도 하나의 특성 벡터에 대응되는 적어도 하나의 후보 글꼴 식별자를 변경 후보 글꼴 식별자로 선택할 수 있다.In addition, the candidate font identifier selection unit 124 is configured to calculate at least a Euclidean distance between the font identifiers for the plurality of second fonts, '[0 1 2 3]', which is the second characteristic vector, within a preset reference distance. At least one candidate font identifier corresponding to one characteristic vector may be selected as the change candidate font identifier.

관련해서, 상기 적어도 하나의 후보 글꼴 식별자를 'B2'와 'B4'라고 한다면, 후보 글꼴 명칭 표시부(125)는 'B2'와 'B4' 각각에 대한 글꼴 명칭인 'B명조체'와 'B굴림'을 화면 상에 표시할 수 있다.In this regard, if the at least one candidate font identifier is 'B2' and 'B4', the candidate font name display unit 125 displays 'B Myeongjo font' and 'B Gurum, which are font names for 'B2' and 'B4', respectively. ' can be displayed on the screen.

이때, 상기 사용자로부터 화면 상에 표시된 'B명조체'와 'B굴림' 중 'B굴림'이 선택됨에 따라, 'B2'와 'B4' 중 'B4'에 대한 선택 명령이 수신되면, 변경 글꼴 선택부(126)는 상기 표 2와 같은 글꼴 데이터 저장부(112)에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 'B4'에 대응되는 글꼴 데이터인 '글꼴 데이터 3'을 변경 글꼴 데이터로 선택할 수 있다.At this time, as 'B roll' is selected from 'B Myeongjo font' and 'B roll' displayed on the screen from the user, when a selection command for 'B4' among 'B2' and 'B4' is received, change font selection The unit 126 changes the font data 'font data 3' corresponding to 'B4' among the font data for the plurality of second fonts stored in the font data storage unit 112 as shown in Table 2 above. data can be selected.

이렇게, '글꼴 데이터 3'이 상기 변경 글꼴 데이터로 선택되면, 문서 재구성부(116)는 상기 표 2와 같은 글꼴 데이터 저장부(112)로부터 '글꼴 데이터 3'을 로드하여 상기 복수의 문자들에 대해 '글꼴 데이터 3'에 따른 글꼴 서식인 'B굴림'을 적용함으로써 상기 제1 문서를 다시 재구성한 후, 다시 재구성된 상기 제1 문서를 화면 상에 표시할 수 있다.In this way, when 'font data 3' is selected as the changed font data, the document reconfiguration unit 116 loads 'font data 3' from the font data storage unit 112 as shown in Table 2 above, and adds it to the plurality of characters. After the first document is reconstructed by applying 'B Gurim', which is a font format according to 'font data 3', the reconstructed first document may be displayed on the screen.

또한, 본 발명의 일실시예에 따르면, 대체 글꼴 선택부(115)는 문자 영역 추출부(127), 대체 문자 생성부(128), 행렬 생성부(129), 연산 행렬 생성부(130), 대체 문자 글꼴 확인부(131) 및 세부 대체 글꼴 선택부(132)를 더 포함할 수 있다.In addition, according to an embodiment of the present invention, the replacement font selection unit 115 includes a character region extraction unit 127 , a replacement character generation unit 128 , a matrix generation unit 129 , an operation matrix generation unit 130 , It may further include an alternative character font confirmation unit 131 and a detailed alternative font selection unit 132 .

문자 영역 추출부(127)는 재구성된 상기 제1 문서가 화면 상에 표시된 이후, 사용자로부터 상기 복수의 문자들 중 제1 문자에 대한 글꼴 세부 조정 명령이 수신되면, 상기 제1 문자를 둘러싸는 미리 정해진 크기의 사각 영역을 생성함으로써, 상기 사각 영역을 제1 문자 영역으로 추출한다.After the reconstructed first document is displayed on the screen, the text area extraction unit 127 receives a font detailed adjustment command for the first character among the plurality of characters from the user, the text area extracting unit 127 is configured to pre-enclose the first character. By generating a rectangular area of a predetermined size, the rectangular area is extracted as the first character area.

대체 문자 생성부(128)는 상기 복수의 제2 글꼴들 중 상기 제1 문자에 적용되어 있는 글꼴과 일치하는 글꼴을 제외한 나머지 글꼴들에 대한 글꼴 데이터를 기초로, 상기 제1 문자 영역 내에 존재하는 상기 제1 문자의 글꼴을 상기 나머지 글꼴들 각각에 대응하는 글꼴로 변경함으로써, 상기 나머지 글꼴들 각각에 대응하는 대체 문자 영역들(상기 대체 문자 영역들의 크기는 상기 제1 문자 영역의 크기와 동일함)을 생성한다. The replacement character generating unit 128 is configured to generate a second font that exists in the first character area based on font data for the remaining fonts except for a font that matches the font applied to the first character among the plurality of second fonts. By changing the font of the first character to a font corresponding to each of the remaining fonts, replacement character areas corresponding to each of the remaining fonts (the size of the replacement character areas are the same as the size of the first character area) ) is created.

행렬 생성부(129)는 상기 제1 문자 영역과 상기 대체 문자 영역들을 각각 가로 n개, 세로 n개로 구성되는 n x n개의 부분 사각 영역들로 분할한 후, 상기 n x n개의 부분 사각 영역들 각각에 대해 상기 n x n개의 부분 사각 영역들 각각의 내부에 상기 제1 문자의 부분이 포함되어 있으면 1의 코드를 할당하고, 상기 제1 문자의 부분이 포함되어 있지 않으면 0의 코드를 할당함으로써, 상기 제1 문자 영역과 상기 대체 문자 영역들 각각에 대한 n x n의 행렬을 생성한다. The matrix generator 129 divides the first text area and the replacement text area into nxn partial rectangular areas each consisting of n horizontal and n vertical areas, respectively, and then, for each of the nxn partial rectangular areas, When a part of the first character is included in each of the nxn partial rectangular regions, a code of 1 is assigned, and when a part of the first character is not included, a code of 0 is assigned, so that the first character region and an nxn matrix for each of the replacement character regions.

연산 행렬 생성부(130)는 상기 대체 문자 영역들 각각에 대한 n x n의 행렬에 대해, 상기 제1 문자 영역에 대한 n x n의 행렬과의 아다마르 곱(Hadamard product)을 연산함으로써, 상기 대체 문자 영역들 각각에 대응하는 n x n의 연산 행렬을 생성한다. The operation matrix generating unit 130 calculates a Hadamard product of an nxn matrix for each of the replacement character regions with an nxn matrix for the first character region, thereby generating the replacement character regions. Create an nxn operation matrix corresponding to each.

여기서, 아다마르 곱이란 같은 크기의 행렬 또는 벡터에서 각 성분을 곱하는 연산을 의미하는 것으로, '[a b c]'와 '[x y z]'라는 두 행렬이 있을 때, 상기 두 행렬 간의 아다마르 곱을 연산한 행렬은 '[ax by cz]'로 나타낼 수 있다.Here, the Hadamard product means an operation of multiplying each component in a matrix or vector of the same size. When there are two matrices '[abc]' and '[xyz]', A matrix can be expressed as '[ax by cz]'.

대체 문자 글꼴 확인부(131)는 상기 대체 문자 영역들 각각에 대응하는 n x n의 연산 행렬에 포함된 1의 성분 값들의 개수를 각각 카운트한 후, 상기 대체 문자 영역들 중 1의 성분 값이 최대로 카운트된 n x n의 연산 행렬에 대응하는 제1 대체 문자 영역을 선택하고, 상기 나머지 글꼴들에 대한 글꼴 식별자 중 상기 제1 대체 문자 영역에 대응되는 제1 글꼴에 대한 글꼴 식별자를 확인한다. The replacement character font check unit 131 counts the number of component values of 1 included in the nxn operation matrix corresponding to each of the replacement character areas, and then the component value of 1 among the replacement character areas is maximized. A first replacement character area corresponding to the counted nxn operation matrix is selected, and a font identifier of a first font corresponding to the first replacement character area among the font identifiers of the remaining fonts is checked.

세부 대체 글꼴 선택부(132)는 글꼴 데이터 저장부(112)에 저장되어 있는 상기 나머지 글꼴들에 대한 글꼴 데이터 중 상기 제1 글꼴에 대한 글꼴 식별자에 대응되는 제4 글꼴 데이터를 세부 대체 글꼴 데이터로 선택한다.The detailed replacement font selection unit 132 converts fourth font data corresponding to the font identifier for the first font among the font data for the remaining fonts stored in the font data storage unit 112 as detailed replacement font data. choose

이때, 문서 재구성부(116)는 상기 제4 글꼴 데이터가 상기 세부 대체 글꼴 데이터로 선택되면, 글꼴 데이터 저장부(112)로부터 상기 세부 대체 글꼴 데이터를 로드하여 상기 제1 문자에 대해 상기 세부 대체 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 다시 재구성한 후, 다시 재구성된 상기 제1 문서를 화면 상에 표시할 수 있다.At this time, when the fourth font data is selected as the detailed replacement font data, the document reconstruction unit 116 loads the detailed replacement font data from the font data storage unit 112 and provides the detailed replacement font for the first character. After the first document is reconstructed by applying a font format according to data, the reconstructed first document may be displayed on the screen.

예컨대, 앞선 예와 같이, 상기 복수의 문자들에 대해 '글꼴 데이터 1'에 따른 글꼴 서식인 'B고딕체'가 적용됨으로써 상기 제1 문서가 재구성되었다고 가정하면, 문자 영역 추출부(127)는 재구성된 상기 제1 문서가 화면 상에 표시된 이후, 사용자로부터 상기 복수의 문자들 중 '가'라고 하는 문자에 대한 글꼴 세부 조정 명령이 수신되는 경우, 도 2의 도면부호 210에서 파란 선으로 도시된 바와 같이, '가'라고 하는 문자를 둘러싸는 미리 정해진 크기의 사각 영역을 생성함으로써, 상기 사각 영역을 문자 영역(210)으로 추출할 수 있다.For example, if it is assumed that the first document is reconstructed by applying 'B gothic font', which is a font format according to 'font data 1', to the plurality of characters as in the previous example, the character area extraction unit 127 is reconfigured. After the first document is displayed on the screen, when a detailed font adjustment command for a character 'a' among the plurality of characters is received from the user, as shown by a blue line in reference numeral 210 of FIG. Similarly, by creating a rectangular area of a predetermined size surrounding the character 'a', the rectangular area may be extracted as the character area 210 .

대체 문자 생성부(128)는 상기 복수의 제2 글꼴들 중 상기 제1 문자에 적용되어 있는 글꼴인 'B고딕체'와 일치하는 글꼴을 제외한 나머지 글꼴들에 대한 글꼴 데이터를 기초로, 문자 영역(210) 내에 존재하는 '가'라고 하는 문자의 글꼴을 상기 나머지 글꼴들 각각에 대응하는 글꼴로 변경함으로써, 상기 나머지 글꼴들 각각에 대응하는 대체 문자 영역들을 생성할 수 있다.The replacement character generating unit 128 is configured to generate a character area ( 210), by changing the font of the character 'A' to a font corresponding to each of the remaining fonts, it is possible to generate replacement character areas corresponding to each of the remaining fonts.

이후, 행렬 생성부(129)는 n을 '4'라고 가정하면, 문자 영역(210)과 상기 대체 문자 영역들을 각각 가로 '4'개, 세로 '4'개로 구성되는 '4' x '4'개의 부분 사각 영역들로 분할할 수 있다. 그리고, 행렬 생성부(129)는 상기 '4' x '4'개의 부분 사각 영역들 각각에 대해 상기 '4' x '4'개의 부분 사각 영역들 각각의 내부에 '가'라고 하는 문자의 부분이 포함되어 있으면 1의 코드를 할당하고, 상기 제1 문자의 부분이 포함되어 있지 않으면 0의 코드를 할당함으로써, 문자 영역(210)과 상기 대체 문자 영역들 각각에 대한 '4' x '4'의 행렬을 생성할 수 있다. Thereafter, assuming that n is '4', the matrix generating unit 129 generates '4' x '4' of the text area 210 and the replacement text area, each of '4' horizontally and '4' vertically. It can be divided into four partial rectangular regions. In addition, the matrix generating unit 129 may generate a portion of the letter 'A' in each of the '4' x '4' partial rectangular regions for each of the '4' x '4' partial rectangular regions. '4' x '4' for each of the character area 210 and the replacement character areas by assigning a code of 1 if included and assigning a code of 0 if not included in the first character You can create a matrix of

관련하여, 도 2에는 행렬 생성부(129)가 문자 영역(210)을 '4' x '4'개의 부분 사각 영역들로 분할한 후, 상기 '4' x '4'개의 부분 사각 영역들 각각에 대해 1 또는 0의 코드를 할당함으로써, 문자 영역(210)에 대한 '4' x '4'의 행렬(230)을 생성하는 과정을 설명하기 위한 그림이 도시되어 있다.2, after the matrix generator 129 divides the text area 210 into '4' x '4' partial rectangular areas, each of the '4' x '4' partial rectangular areas A figure is shown for explaining a process of generating a matrix 230 of '4' x '4' for the character area 210 by assigning a code of 1 or 0 to .

행렬 생성부(129)는 문자 영역(210)을 도면부호 220과 같이 '4' x '4'개의 부분 사각 영역들로 분할한 후, 상기 '4' x '4'개의 부분 사각 영역들 각각에 '가'라고 하는 문자의 부분이 포함되어 있으면 1의 코드를 할당하고, '가'라고 하는 문자의 부분이 포함되어 있지 않으면 0의 코드를 할당함으로써, 도면부호 230과 같이, 문자 영역(210)에 대한 '4' x '4'의 행렬(230)을 생성할 수 있다.The matrix generator 129 divides the text area 210 into '4' x '4' partial rectangular areas, as shown by reference numeral 220, and then adds each of the '4' x '4' partial rectangular areas. By assigning a code of 1 if the part of the character called 'A' is included, and assigning a code of 0 if the part of the character called 'A' is not included, as shown in reference numeral 230, the character area 210 A matrix 230 of '4' x '4' may be generated for .

이러한 방식으로, 행렬 생성부(129)는 문자 영역(210)에 대해 '4' x '4'의 행렬(230)을 생성한 후, 상기 대체 문자 영역들 각각에 대해서도 '4' x '4'의 행렬을 생성할 수 있다. In this way, the matrix generator 129 generates a matrix 230 of '4' x '4' for the character region 210 and then '4' x '4' for each of the replacement character regions. You can create a matrix of

연산 행렬 생성부(130)는 상기 대체 문자 영역들 각각에 대한 '4' x '4'의 행렬에 대해, 문자 영역(210)에 대한 '4' x '4'의 행렬과의 아다마르 곱을 연산함으로써, 상기 대체 문자 영역들 각각에 대응하는 '4' x '4'의 연산 행렬을 생성할 수 있다. The operation matrix generator 130 calculates a Hadamard product of a matrix of '4' x '4' for each of the replacement character regions and a matrix of '4' x '4' for the character region 210 . By doing so, it is possible to generate an operation matrix of '4' x '4' corresponding to each of the replacement character regions.

그리고, 대체 문자 글꼴 확인부(131)는 상기 대체 문자 영역들 각각에 대응하는 '4' x '4'의 연산 행렬에 포함된 1의 성분 값들의 개수를 각각 카운트할 수 있다.In addition, the replacement character font check unit 131 may count the number of component values of 1 included in the operation matrix of '4' x '4' corresponding to each of the replacement character regions.

만약, 상기 대체 문자 영역들 중 1의 성분 값이 최대로 카운트된 '4' x '4'의 연산 행렬에 대응하는 대체 문자 영역으로 '가'라고 하는 문자에 대해 'B굴림'을 적용함으로써 생성된 '대체 문자 영역 1'이 선택된 경우, 대체 문자 글꼴 확인부(131)는 상기 나머지 글꼴들에 대한 글꼴 식별자 중 '대체 문자 영역 1'에 대응되는 'B굴림'에 대한 글꼴 식별자인 'B4'를 확인할 수 있다. If, among the replacement character regions, a 'B roll' is applied to the character 'A' as the replacement character region corresponding to the operation matrix of '4' x '4' in which the component value of 1 is maximally counted. When the 'alternative character area 1' is selected, the replacement character font check unit 131 is the font identifier 'B4' for 'B Gulim' corresponding to the 'alternative character area 1' among the font identifiers for the remaining fonts. can be checked.

그러고 나서, 세부 대체 글꼴 선택부(132)는 상기 표 2와 같은 글꼴 데이터 저장부(112)에 저장되어 있는 상기 나머지 글꼴들에 대한 글꼴 데이터 중 'B굴림'에 대한 글꼴 식별자인 'B4'에 대응되는 '글꼴 데이터 3'을 세부 대체 글꼴 데이터로 선택할 수 있다.Then, the detailed alternative font selection unit 132 is added to the font identifier 'B4' for 'B Gurum' among the font data for the remaining fonts stored in the font data storage unit 112 as shown in Table 2 above. The corresponding 'font data 3' can be selected as detailed replacement font data.

이렇게, '글꼴 데이터 3'이 상기 세부 대체 글꼴 데이터로 선택되면, 문서 재구성부(116)는 상기 표 2와 같은 글꼴 데이터 저장부(112)로부터 '글꼴 데이터 3'을 로드하여 '가'라고 하는 문자에 대해 '글꼴 데이터 3'에 따른 글꼴 서식인 'B굴림'을 적용함으로써 상기 제1 문서를 다시 재구성한 후, 다시 재구성된 상기 제1 문서를 화면 상에 표시할 수 있다.In this way, when 'font data 3' is selected as the detailed replacement font data, the document reconfiguration unit 116 loads 'font data 3' from the font data storage unit 112 as shown in Table 2 above and calls 'a'. After the first document is reconstructed by applying 'B Gurim', which is a font format according to 'font data 3' to characters, the reconstructed first document may be displayed on the screen.

즉, 본 발명에 따른 문서 편집 장치(110)는 상기 사용자로부터 대체 글꼴이 적용된 상기 복수의 문자들 중 특정 문자가 선택되어 글꼴 세부 조정 명령이 수신되면, 상기 문자의 특성에 따라 가장 유사한 글꼴을 갖는 글꼴 서식으로 상기 문자의 글꼴 서식이 변경되도록 지원할 수 있다.That is, in the document editing apparatus 110 according to the present invention, when a specific character is selected from among the plurality of characters to which a replacement font is applied and a font detailed adjustment command is received, the document editing apparatus 110 has the most similar font according to the characteristics of the character. The font format may support changing the font format of the character.

도 3은 본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법을 도시한 순서도이다.3 is a flowchart illustrating a method of operating a document editing apparatus that enables display of a document to which a font configured in an unsupported data format is applied according to an embodiment of the present invention.

단계(S310)에서는 제1 데이터 포맷으로 구성된 서로 다른 복수의 제1 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제1 글꼴들 각각을 대체할 수 있는 것으로 미리 지정된 대체 글꼴(상기 대체 글꼴은 제2 데이터 포맷으로 구성된 글꼴임)에 대한 대체 글꼴 식별자가 서로 대응되어 기록되어 있는 대체 글꼴 테이블을 저장하여 유지한다.In step S310, a font identifier for each of a plurality of different first fonts configured in a first data format and a replacement font previously designated as being able to replace each of the plurality of first fonts (the replacement font is the second font) It stores and maintains a table of replacement fonts in which replacement font identifiers for the fonts configured in the data format are recorded in correspondence with each other.

단계(S320)에서는 상기 제2 데이터 포맷으로 구성된 서로 다른 복수의 제2 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제2 글꼴들 각각에 대한 글꼴 데이터(상기 글꼴 데이터는 문서가 로드될 때, 문서에 포함된 문자들에 대해 대응되는 글꼴 서식을 적용하는데 사용되는 데이터임)가 서로 대응되어 저장되어 있는 글꼴 데이터 저장부를 유지한다.In step S320, a font identifier for each of a plurality of different second fonts configured in the second data format and font data for each of the plurality of second fonts (the font data is a document when a document is loaded) data used to apply a font format corresponding to the characters included in ) maintains a font data storage unit in which the corresponding font format is stored.

단계(S330)에서는 상기 제2 데이터 포맷으로 구성된 글꼴 데이터만을 로드할 수 있는 문서 작성 프로그램을 통해 제1 문서가 오픈되면, 상기 제1 문서에 대한 문서 데이터(상기 문서 데이터에는 상기 제1 문서에 포함된 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 삽입되어 있음)를 읽어 들여 상기 제1 문서에 포함된 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자를 확인한다.In step S330, when a first document is opened through a document creation program capable of loading only font data configured in the second data format, document data for the first document (the document data includes the first document) A font identifier for a font applied to the plurality of characters is read) and a font identifier for a font applied to the plurality of characters included in the first document is checked.

단계(S340)에서는 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 상기 복수의 제1 글꼴들 각각에 대한 글꼴 식별자 중 어느 하나인 제1 글꼴 식별자로 확인되는 경우, 상기 대체 글꼴 테이블로부터 상기 제1 글꼴 식별자에 대응되어 기록되어 있는 제1 대체 글꼴 식별자를 확인한 후, 상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는지를 확인한다.In step S340, when a font identifier for a font applied to the plurality of characters is identified as a first font identifier that is any one of the font identifiers for each of the plurality of first fonts, from the replacement font table After checking the first replacement font identifier recorded corresponding to the first font identifier, it is checked whether a font identifier matching the first replacement font identifier is stored in the font data storage unit.

단계(S350)에서는 상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는 것으로 확인되는 경우, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제1 대체 글꼴 식별자에 대응되는 제1 글꼴 데이터를 대체 글꼴 데이터로 선택한다.In step S350, when it is confirmed that a font identifier matching the first replacement font identifier is stored in the font data storage unit, fonts for the plurality of second fonts stored in the font data storage unit Among the data, first font data corresponding to the first replacement font identifier is selected as the replacement font data.

단계(S360)에서는 상기 글꼴 데이터 저장부로부터 상기 대체 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 대체 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시한다.In step S360, the first document is reconstructed by loading the replacement font data from the font data storage unit and applying a font format according to the replacement font data to the plurality of characters, and then the reconstructed first Display the document on the screen.

이때, 본 발명의 일실시예에 따르면, 상기 문서 편집 장치의 동작 방법은 상기 복수의 제1 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제1 글꼴들 각각에 대응되는 미리 설정된 문자별 너비 정보(상기 문자별 너비 정보는 상기 복수의 문자들 각각에 상기 복수의 제1 글꼴들 중 어느 하나의 글꼴이 적용되었을 때, 각 문자의 가로축 너비에 대한 크기 정보를 의미함)가 서로 대응되어 기록되어 있는 글꼴 너비 테이블을 저장하여 유지하는 단계를 더 포함할 수 있다.In this case, according to an embodiment of the present invention, the method of operating the document editing apparatus includes a font identifier for each of the plurality of first fonts and preset character width information ( When any one of the plurality of first fonts is applied to each of the plurality of characters, the width information for each character means size information on the horizontal axis width of each character) is recorded in correspondence with each other It may further include the step of storing and maintaining the font width table.

이 경우, 본 발명의 일실시예에 따르면, 단계(S360)에서는 상기 제1 글꼴 데이터가 상기 대체 글꼴 데이터로 선택되면, 상기 글꼴 너비 테이블로부터 상기 제1 글꼴 식별자에 따른 글꼴에 대응되어 기록되어 있는 제1 문자별 너비 정보를 확인하는 단계 및 상기 글꼴 데이터 저장부로부터 상기 대체 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 대체 글꼴 데이터에 따른 글꼴 서식을 적용하되, 상기 제1 문자별 너비 정보를 기초로 상기 복수의 문자들 각각의 너비를 조정함으로써, 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시하는 단계를 포함할 수 있다.In this case, according to an embodiment of the present invention, when the first font data is selected as the replacement font data in step S360, the font corresponding to the font according to the first font identifier is recorded from the font width table. Checking the width information for each first character and loading the replacement font data from the font data storage unit to apply a font format according to the replacement font data to the plurality of characters, but the width information for each first character The method may include reconstructing the first document by adjusting the width of each of the plurality of characters based on , and then displaying the reconstructed first document on a screen.

또한, 본 발명의 일실시예에 따르면, 단계(S350)에서는 문자에 적용 가능한 것으로 미리 지정된 복수의 글꼴들 각각에 대한 글꼴 식별자와, 각 글꼴 간의 미리 정해진 유사도에 기반하여 상기 복수의 글꼴들 각각에 대해 미리 지정된 특성 벡터가 서로 대응되어 저장되어 있는 유사도 데이터베이스를 유지하는 단계, 상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있지 않은 것으로 확인되는 경우, 상기 유사도 데이터베이스를 참조하여 상기 제1 대체 글꼴 식별자에 대응되어 저장되어 있는 제1 특성 벡터를 확인하고, 상기 제1 특성 벡터와 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 각각에 대응되는 특성 벡터 간의 유클리드 거리를 연산하는 단계 및 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 중 상기 제1 특성 벡터와의 유클리드 거리가 최소로 연산된 특성 벡터에 대응되는 글꼴 식별자를 제2 대체 글꼴 식별자로 선택하고, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제2 대체 글꼴 식별자에 대응되는 제2 글꼴 데이터를 상기 대체 글꼴 데이터로 선택하는 단계를 포함할 수 있다.In addition, according to an embodiment of the present invention, in step S350, based on a font identifier for each of a plurality of fonts previously designated as applicable to a character, and a predetermined similarity between each font, each of the plurality of fonts is assigned to each of the fonts. maintaining a similarity database in which characteristic vectors specified in advance for each other are stored in correspondence with each other; A first characteristic vector stored corresponding to the first replacement font identifier is identified with reference, and a Euclidean distance between the first characteristic vector and a characteristic vector corresponding to each of the font identifiers for the plurality of second fonts is calculated. selecting a font identifier corresponding to a feature vector in which the Euclidean distance to the first feature vector is calculated as a minimum among font identifiers for the plurality of second fonts as a second replacement font identifier, and storing the font data and selecting, as the replacement font data, second font data corresponding to the second replacement font identifier from among the font data for the plurality of second fonts stored in the unit.

또한, 본 발명의 일실시예에 따르면, 상기 문서 편집 장치의 동작 방법은 재구성된 상기 제1 문서가 화면 상에 표시된 이후, 사용자로부터 상기 복수의 문자들에 대한 대체 글꼴의 변경 명령이 수신되면, 상기 유사도 데이터베이스를 참조하여 상기 대체 글꼴 데이터에 따른 글꼴에 대한 글꼴 식별자에 대응되어 저장되어 있는 제2 특성 벡터를 확인하고, 상기 제2 특성 벡터와 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 각각에 대응되는 특성 벡터 간의 유클리드 거리를 연산하는 단계, 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 중 상기 제2 특성 벡터와의 유클리드 거리가 미리 설정된 기준 거리 이내로 연산되는 적어도 하나의 특성 벡터에 대응되는 적어도 하나의 후보 글꼴 식별자를 변경 후보 글꼴 식별자로 선택하는 단계, 상기 적어도 하나의 후보 글꼴 식별자가 상기 변경 후보 글꼴 식별자로 선택되면, 상기 적어도 하나의 후보 글꼴 식별자 각각에 대한 글꼴 명칭에 대한 정보를 화면 상에 표시하는 단계, 상기 사용자로부터 상기 적어도 하나의 후보 글꼴 식별자 중 제1 후보 글꼴 식별자에 대한 선택 명령이 수신되면, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제1 후보 글꼴 식별자에 대응되는 제3 글꼴 데이터를 변경 글꼴 데이터로 선택하는 단계 및 상기 제3 글꼴 데이터가 상기 변경 글꼴 데이터로 선택되면, 상기 글꼴 데이터 저장부로부터 상기 변경 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 변경 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 다시 재구성한 후, 다시 재구성된 상기 제1 문서를 화면 상에 표시하는 단계를 더 포함할 수 있다.In addition, according to an embodiment of the present invention, in the method of operating the document editing apparatus, after the reconstructed first document is displayed on the screen, when a command to change the replacement font for the plurality of characters is received from the user, A second characteristic vector stored corresponding to a font identifier for a font according to the replacement font data is identified with reference to the similarity database, and the second characteristic vector and a font identifier for each of the plurality of second fonts are identified. calculating a Euclidean distance between corresponding feature vectors, wherein the Euclidean distance from the second feature vector among the font identifiers of the plurality of second fonts corresponds to at least one feature vector calculated within a preset reference distance. selecting one candidate font identifier as the change candidate font identifier; if the at least one candidate font identifier is selected as the change candidate font identifier, information on the font name for each of the at least one candidate font identifier is displayed on the screen displaying, when a command for selecting a first candidate font identifier from among the at least one candidate font identifier is received from the user, among the font data for the plurality of second fonts stored in the font data storage unit selecting third font data corresponding to the first candidate font identifier as changed font data, and when the third font data is selected as the changed font data, loading the changed font data from the font data storage unit The method may further include reconstructing the first document by applying a font format according to the changed font data to a plurality of characters, and then displaying the reconstructed first document on a screen.

또한, 본 발명의 일실시예에 따르면, 상기 문서 편집 장치의 동작 방법은 재구성된 상기 제1 문서가 화면 상에 표시된 이후, 사용자로부터 상기 복수의 문자들 중 제1 문자에 대한 글꼴 세부 조정 명령이 수신되면, 상기 제1 문자를 둘러싸는 미리 정해진 크기의 사각 영역을 생성함으로써, 상기 사각 영역을 제1 문자 영역으로 추출하는 단계, 상기 복수의 제2 글꼴들 중 상기 제1 문자에 적용되어 있는 글꼴과 일치하는 글꼴을 제외한 나머지 글꼴들에 대한 글꼴 데이터를 기초로, 상기 제1 문자 영역 내에 존재하는 상기 제1 문자의 글꼴을 상기 나머지 글꼴들 각각에 대응하는 글꼴로 변경함으로써, 상기 나머지 글꼴들 각각에 대응하는 대체 문자 영역들(상기 대체 문자 영역들의 크기는 상기 제1 문자 영역의 크기와 동일함)을 생성하는 단계, 상기 제1 문자 영역과 상기 대체 문자 영역들을 각각 가로 n개, 세로 n개로 구성되는 n x n개의 부분 사각 영역들로 분할한 후, 상기 n x n개의 부분 사각 영역들 각각에 대해 상기 n x n개의 부분 사각 영역들 각각의 내부에 상기 제1 문자의 부분이 포함되어 있으면 1의 코드를 할당하고, 상기 제1 문자의 부분이 포함되어 있지 않으면 0의 코드를 할당함으로써, 상기 제1 문자 영역과 상기 대체 문자 영역들 각각에 대한 n x n의 행렬을 생성하는 단계, 상기 대체 문자 영역들 각각에 대한 n x n의 행렬에 대해, 상기 제1 문자 영역에 대한 n x n의 행렬과의 아다마르 곱을 연산함으로써, 상기 대체 문자 영역들 각각에 대응하는 n x n의 연산 행렬을 생성하는 단계, 상기 대체 문자 영역들 각각에 대응하는 n x n의 연산 행렬에 포함된 1의 성분 값들의 개수를 각각 카운트한 후, 상기 대체 문자 영역들 중 1의 성분 값이 최대로 카운트된 n x n의 연산 행렬에 대응하는 제1 대체 문자 영역을 선택하고, 상기 나머지 글꼴들에 대한 글꼴 식별자 중 상기 제1 대체 문자 영역에 대응되는 제1 글꼴에 대한 글꼴 식별자를 확인하는 단계, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 나머지 글꼴들에 대한 글꼴 데이터 중 상기 제1 글꼴에 대한 글꼴 식별자에 대응되는 제4 글꼴 데이터를 세부 대체 글꼴 데이터로 선택하는 단계 및 상기 제4 글꼴 데이터가 상기 세부 대체 글꼴 데이터로 선택되면, 상기 글꼴 데이터 저장부로부터 상기 세부 대체 글꼴 데이터를 로드하여 상기 제1 문자에 대해 상기 세부 대체 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 다시 재구성한 후, 다시 재구성된 상기 제1 문서를 화면 상에 표시하는 단계를 더 포함할 수 있다.In addition, according to an embodiment of the present invention, in the method of operating the document editing apparatus, after the reconstructed first document is displayed on the screen, a detailed font adjustment command for the first character among the plurality of characters is received from the user. When received, extracting the rectangular region as a first character region by generating a rectangular region of a predetermined size surrounding the first character, a font applied to the first character among the plurality of second fonts By changing the font of the first character existing in the first character area to a font corresponding to each of the remaining fonts based on the font data for the remaining fonts except for the font matching with , each of the remaining fonts generating replacement text areas (the size of the replacement text areas are the same as the size of the first text area) corresponding to After dividing the constituting nxn partial rectangular regions, if a part of the first character is included in each of the nxn partial rectangular regions, a code of 1 is assigned to each of the nxn partial rectangular regions, , generating an nxn matrix for each of the first character region and the replacement character regions by assigning a code of 0 if the part of the first character is not included, nxn for each of the replacement character regions generating an nxn operation matrix corresponding to each of the replacement character regions by calculating a Hadamard product with an nxn matrix for the first character region for a matrix of , corresponding to each of the replacement character regions After each counting the number of component values of 1 included in the nxn operation matrix, select a first replacement character area corresponding to the nxn operation matrix in which the component value of 1 among the replacement character areas is maximally counted, check the font identifier for the first font corresponding to the first replacement character area among the font identifiers for the remaining fonts; selecting, as detailed replacement font data, fourth font data corresponding to the font identifier for the first font from among the font data for the remaining fonts stored in the font data storage unit; When data is selected as the detailed replacement font data, the first document is reconstructed by loading the detailed replacement font data from the font data storage unit and applying a font format according to the detailed replacement font data to the first character After doing so, the method may further include displaying the reconstructed first document on a screen.

이상, 도 3을 참조하여 본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법에 대해 설명하였다. 여기서, 본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법은 도 1과 도 2를 이용하여 설명한 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치(110)의 동작에 대한 구성과 대응될 수 있으므로, 이에 대한 보다 상세한 설명은 생략하기로 한다.In the above, an operating method of a document editing apparatus enabling display of a document to which a font configured in an unsupported data format is applied according to an embodiment of the present invention has been described with reference to FIG. 3 . Here, the operating method of the document editing apparatus enabling display of a document to which a font configured in an unsupported data format is applied according to an embodiment of the present invention is an unsupported data format described with reference to FIGS. 1 and 2 . Since it may correspond to the configuration of the operation of the document editing apparatus 110 that enables the display of the document to which the font composed of is applied, a more detailed description thereof will be omitted.

본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램으로 구현될 수 있다.According to an embodiment of the present invention, a method of operating a document editing apparatus that enables display of a document to which a font configured in an unsupported data format is applied is a computer program stored in a storage medium for execution through combination with a computer. can be implemented.

또한, 본 발명의 일실시예에 따른 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 컴퓨터 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. In addition, according to an embodiment of the present invention, a method of operating a document editing apparatus that enables display of a document to which a font configured in an unsupported data format is applied is provided in the form of a computer program command for execution through combination with a computer. It may be implemented and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, etc. alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the present invention, or may be known and available to those skilled in the art of computer software. Examples of the computer-readable recording medium include magnetic media such as hard disks, floppy disks and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic such as floppy disks. - includes magneto-optical media, and hardware devices specially configured to store and execute program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine language codes such as those generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter or the like.

이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. As described above, the present invention has been described with specific matters such as specific components and limited embodiments and drawings, but these are provided to help a more general understanding of the present invention, and the present invention is not limited to the above embodiments. , various modifications and variations are possible from these descriptions by those of ordinary skill in the art to which the present invention pertains.

따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.Therefore, the spirit of the present invention should not be limited to the described embodiments, and not only the claims to be described later, but also all those with equivalent or equivalent modifications to the claims will be said to belong to the scope of the spirit of the present invention. .

110: 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치
111: 대체 글꼴 테이블 유지부 112: 글꼴 데이터 저장부
113: 글꼴 식별자 확인부 114: 저장 글꼴 확인부
115: 대체 글꼴 선택부 116: 문서 재구성부
117: 글꼴 너비 테이블 유지부 118: 너비 정보 확인부
119: 문서 재구성 처리부 120: 유사도 데이터베이스
121: 유클리드 거리 연산부 122: 대체 글꼴 선택 처리부
123: 연산 처리부 124: 후보 글꼴 식별자 선택부
125: 후보 글꼴 명칭 표시부 126: 변경 글꼴 선택부
127: 문자 영역 추출부 128: 대체 문자 생성부
129: 행렬 생성부 130: 연산 행렬 생성부
131: 대체 문자 글꼴 확인부 132: 세부 대체 글꼴 선택부
110: A document editing device that enables display of a document to which a font configured in an unsupported data format is applied
111: replacement font table holding unit 112: font data storage unit
113: font identifier verification unit 114: stored font verification unit
115: alternative font selection unit 116: document reconstruction unit
117: font width table holding unit 118: width information confirmation unit
119: document reconstruction processing unit 120: similarity database
121: Euclidean distance calculation unit 122: Alternative font selection processing unit
123: operation processing unit 124: candidate font identifier selection unit
125: candidate font name display unit 126: change font selection unit
127: character area extraction unit 128: replacement character generation unit
129: matrix generation unit 130: operation matrix generation unit
131: replacement character font confirmation unit 132: detailed replacement font selection unit

Claims (12)

제1 데이터 포맷으로 구성된 서로 다른 복수의 제1 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제1 글꼴들 각각을 대체할 수 있는 것으로 미리 지정된 대체 글꼴 - 상기 대체 글꼴은 제2 데이터 포맷으로 구성된 글꼴임 - 에 대한 대체 글꼴 식별자가 서로 대응되어 기록되어 있는 대체 글꼴 테이블을 저장하여 유지하는 대체 글꼴 테이블 유지부;
상기 제2 데이터 포맷으로 구성된 서로 다른 복수의 제2 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제2 글꼴들 각각에 대한 글꼴 데이터 - 상기 글꼴 데이터는 문서가 로드될 때, 문서에 포함된 문자들에 대해 대응되는 글꼴 서식을 적용하는데 사용되는 데이터임 - 가 서로 대응되어 저장되어 있는 글꼴 데이터 저장부;
상기 제2 데이터 포맷으로 구성된 글꼴 데이터만을 로드할 수 있는 문서 작성 프로그램을 통해 제1 문서가 오픈되면, 상기 제1 문서에 대한 문서 데이터 - 상기 문서 데이터에는 상기 제1 문서에 포함된 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 삽입되어 있음 - 를 읽어 들여 상기 제1 문서에 포함된 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자를 확인하는 글꼴 식별자 확인부;
상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 상기 복수의 제1 글꼴들 각각에 대한 글꼴 식별자 중 어느 하나인 제1 글꼴 식별자로 확인되는 경우, 상기 대체 글꼴 테이블로부터 상기 제1 글꼴 식별자에 대응되어 기록되어 있는 제1 대체 글꼴 식별자를 확인한 후, 상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는지를 확인하는 저장 글꼴 확인부;
상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는 것으로 확인되는 경우, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제1 대체 글꼴 식별자에 대응되는 제1 글꼴 데이터를 대체 글꼴 데이터로 선택하는 대체 글꼴 선택부; 및
상기 글꼴 데이터 저장부로부터 상기 대체 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 대체 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시하는 문서 재구성부
를 포함하고,
상기 대체 글꼴 선택부는
재구성된 상기 제1 문서가 화면 상에 표시된 이후, 사용자로부터 상기 복수의 문자들 중 제1 문자에 대한 글꼴 세부 조정 명령이 수신되면, 상기 제1 문자를 둘러싸는 미리 정해진 크기의 사각 영역을 생성함으로써, 상기 사각 영역을 제1 문자 영역으로 추출하는 문자 영역 추출부;
상기 복수의 제2 글꼴들 중 상기 제1 문자에 적용되어 있는 글꼴과 일치하는 글꼴을 제외한 나머지 글꼴들에 대한 글꼴 데이터를 기초로, 상기 제1 문자 영역 내에 존재하는 상기 제1 문자의 글꼴을 상기 나머지 글꼴들 각각에 대응하는 글꼴로 변경함으로써, 상기 나머지 글꼴들 각각에 대응하는 대체 문자 영역들 - 상기 대체 문자 영역들의 크기는 상기 제1 문자 영역의 크기와 동일함 - 을 생성하는 대체 문자 생성부;
상기 제1 문자 영역과 상기 대체 문자 영역들을 각각 가로 n개, 세로 n개로 구성되는 n x n개의 부분 사각 영역들로 분할한 후, 상기 n x n개의 부분 사각 영역들 각각에 대해 상기 n x n개의 부분 사각 영역들 각각의 내부에 상기 제1 문자의 부분이 포함되어 있으면 1의 코드를 할당하고, 상기 제1 문자의 부분이 포함되어 있지 않으면 0의 코드를 할당함으로써, 상기 제1 문자 영역과 상기 대체 문자 영역들 각각에 대한 n x n의 행렬을 생성하는 행렬 생성부;
상기 대체 문자 영역들 각각에 대한 n x n의 행렬에 대해, 상기 제1 문자 영역에 대한 n x n의 행렬과의 아다마르 곱(Hadamard product)을 연산함으로써, 상기 대체 문자 영역들 각각에 대응하는 n x n의 연산 행렬을 생성하는 연산 행렬 생성부;
상기 대체 문자 영역들 각각에 대응하는 n x n의 연산 행렬에 포함된 1의 성분 값들의 개수를 각각 카운트한 후, 상기 대체 문자 영역들 중 1의 성분 값이 최대로 카운트된 n x n의 연산 행렬에 대응하는 제1 대체 문자 영역을 선택하고, 상기 나머지 글꼴들에 대한 글꼴 식별자 중 상기 제1 대체 문자 영역에 대응되는 제1 글꼴에 대한 글꼴 식별자를 확인하는 대체 문자 글꼴 확인부; 및
상기 글꼴 데이터 저장부에 저장되어 있는 상기 나머지 글꼴들에 대한 글꼴 데이터 중 상기 제1 글꼴에 대한 글꼴 식별자에 대응되는 제4 글꼴 데이터를 세부 대체 글꼴 데이터로 선택하는 세부 대체 글꼴 선택부
를 더 포함하고,
상기 문서 재구성부는
상기 제4 글꼴 데이터가 상기 세부 대체 글꼴 데이터로 선택되면, 상기 글꼴 데이터 저장부로부터 상기 세부 대체 글꼴 데이터를 로드하여 상기 제1 문자에 대해 상기 세부 대체 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 다시 재구성한 후, 다시 재구성된 상기 제1 문서를 화면 상에 표시하는 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치.
A font identifier for each of a plurality of different first fonts configured in a first data format and a replacement font preset to be substituted for each of the plurality of first fonts, wherein the replacement font is a font configured in a second data format a replacement font table maintaining unit for storing and maintaining a replacement font table in which replacement font identifiers for IM - are recorded in correspondence with each other;
A font identifier for each of a plurality of different second fonts configured in the second data format and font data for each of the plurality of second fonts - The font data includes characters included in the document when the document is loaded. a font data storage unit in which is data used to apply a font format corresponding to − and is stored in correspondence with each other;
When a first document is opened through a document creation program capable of loading only font data configured in the second data format, document data for the first document - the document data includes a plurality of characters included in the first document a font identifier checking unit for reading a font identifier for a font applied to − and checking a font identifier for a font applied to the plurality of characters included in the first document;
When a font identifier for a font applied to the plurality of characters is identified as a first font identifier that is any one of the font identifiers for each of the plurality of first fonts, the first font identifier from the replacement font table a stored font checking unit for checking whether a font identifier matching the first replacement font identifier is stored in the font data storage unit after checking the first replacement font identifier recorded in correspondence to;
When it is confirmed that the font identifier matching the first replacement font identifier is stored in the font data storage unit, the first font data for the plurality of second fonts stored in the font data storage unit a replacement font selection unit for selecting the first font data corresponding to the replacement font identifier as the replacement font data; and
After the first document is reconstructed by loading the replacement font data from the font data storage unit and applying a font format according to the replacement font data to the plurality of characters, the reconstructed first document is displayed on the screen. Display document reconstruction unit
including,
The alternative font selection unit
After the reconstructed first document is displayed on the screen, when a detailed font adjustment command for the first character among the plurality of characters is received from the user, by creating a rectangular area of a predetermined size surrounding the first character , a character region extracting unit for extracting the rectangular region as a first character region;
The font of the first character existing in the first character area is selected based on font data for the remaining fonts except for the font matching the font applied to the first character among the plurality of second fonts. A replacement character generator generating replacement character areas corresponding to each of the remaining fonts, the size of which is the same as the size of the first text area, by changing to a font corresponding to each of the remaining fonts. ;
After dividing the first text area and the replacement text area into nxn partial rectangular areas each comprising n horizontally and n vertically, each of the nxn partial rectangular areas for each of the nxn partial rectangular areas By assigning a code of 1 if a part of the first character is included in the interior of a matrix generator for generating an n-by-n matrix for ;
An nxn operation matrix corresponding to each of the replacement character regions by calculating a Hadamard product with an nxn matrix for the first character region for an nxn matrix for each of the replacement character regions an arithmetic matrix generator for generating
After counting the number of component values of 1 included in an nxn operation matrix corresponding to each of the replacement character areas, the component value of 1 among the replacement character areas corresponds to the maximum counted nxn operation matrix. a replacement character font checking unit that selects a first replacement text area and checks a font identifier for a first font corresponding to the first replacement text area among the font identifiers for the remaining fonts; and
A detailed replacement font selection unit for selecting fourth font data corresponding to the font identifier for the first font from among the font data for the remaining fonts stored in the font data storage unit as detailed replacement font data
further comprising,
The document reconstruction unit
When the fourth font data is selected as the detailed replacement font data, the first font format according to the detailed replacement font data is applied to the first character by loading the detailed replacement font data from the font data storage unit. A document editing apparatus capable of displaying a document to which a font configured in an unsupported data format is applied for displaying the reconstructed first document on a screen after reconstructing the document.
제1항에 있어서,
상기 복수의 제1 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제1 글꼴들 각각에 대응되는 미리 설정된 문자별 너비 정보 - 상기 문자별 너비 정보는 상기 복수의 문자들 각각에 상기 복수의 제1 글꼴들 중 어느 하나의 글꼴이 적용되었을 때, 각 문자의 가로축 너비에 대한 크기 정보를 의미함 - 가 서로 대응되어 기록되어 있는 글꼴 너비 테이블을 저장하여 유지하는 글꼴 너비 테이블 유지부
를 더 포함하고,
상기 문서 재구성부는
상기 제1 글꼴 데이터가 상기 대체 글꼴 데이터로 선택되면, 상기 글꼴 너비 테이블로부터 상기 제1 글꼴 식별자에 따른 글꼴에 대응되어 기록되어 있는 제1 문자별 너비 정보를 확인하는 너비 정보 확인부; 및
상기 글꼴 데이터 저장부로부터 상기 대체 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 대체 글꼴 데이터에 따른 글꼴 서식을 적용하되, 상기 제1 문자별 너비 정보를 기초로 상기 복수의 문자들 각각의 너비를 조정함으로써, 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시하는 문서 재구성 처리부
를 포함하는 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치.
According to claim 1,
A font identifier for each of the plurality of first fonts and preset character-specific width information corresponding to each of the plurality of first fonts - the character-specific width information includes the plurality of first fonts in each of the plurality of characters When any one of the fonts is applied, it means the size information about the width of the horizontal axis of each character - the font width table maintainer that stores and maintains the font width table in which the letters correspond to each other
further comprising,
The document reconstruction unit
a width information checking unit that, when the first font data is selected as the replacement font data, checks width information for each first character recorded corresponding to the font according to the first font identifier from the font width table; and
Loading the replacement font data from the font data storage unit and applying a font format according to the replacement font data to the plurality of characters, the width of each of the plurality of characters based on the width information for each first character A document reconstruction processing unit that reconstructs the first document by adjusting
A document editing device that enables the display of documents with fonts configured in unsupported data formats, including
제1항에 있어서,
상기 대체 글꼴 선택부는
문자에 적용 가능한 것으로 미리 지정된 복수의 글꼴들 각각에 대한 글꼴 식별자와, 각 글꼴 간의 미리 정해진 유사도에 기반하여 상기 복수의 글꼴들 각각에 대해 미리 지정된 특성 벡터가 서로 대응되어 저장되어 있는 유사도 데이터베이스;
상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있지 않은 것으로 확인되는 경우, 상기 유사도 데이터베이스를 참조하여 상기 제1 대체 글꼴 식별자에 대응되어 저장되어 있는 제1 특성 벡터를 확인하고, 상기 제1 특성 벡터와 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 각각에 대응되는 특성 벡터 간의 유클리드 거리(Euclidean Distance)를 연산하는 유클리드 거리 연산부; 및
상기 복수의 제2 글꼴들에 대한 글꼴 식별자 중 상기 제1 특성 벡터와의 유클리드 거리가 최소로 연산된 특성 벡터에 대응되는 글꼴 식별자를 제2 대체 글꼴 식별자로 선택하고, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제2 대체 글꼴 식별자에 대응되는 제2 글꼴 데이터를 상기 대체 글꼴 데이터로 선택하는 대체 글꼴 선택 처리부
를 포함하는 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치.
According to claim 1,
The alternative font selection unit
a similarity database in which a font identifier for each of a plurality of fonts designated as applicable to a character in advance, and a feature vector designated in advance for each of the plurality of fonts based on a predetermined degree of similarity between the fonts are stored in correspondence with each other;
When it is determined that the font identifier matching the first alternative font identifier is not stored in the font data storage unit, a first characteristic vector stored corresponding to the first alternative font identifier is stored with reference to the similarity database. a Euclidean distance calculating unit for checking and calculating a Euclidean distance between the first characteristic vector and a characteristic vector corresponding to each of the font identifiers for the plurality of second fonts; and
Among the font identifiers for the plurality of second fonts, a font identifier corresponding to a feature vector in which the Euclidean distance to the first feature vector is calculated as a minimum is selected as a second replacement font identifier, and stored in the font data storage unit Substitute font selection processing unit that selects, as the substitute font data, second font data corresponding to the second substitute font identifier among the font data for the plurality of second fonts
A document editing device that enables the display of documents with fonts configured in unsupported data formats, including
제3항에 있어서,
상기 대체 글꼴 선택부는
재구성된 상기 제1 문서가 화면 상에 표시된 이후, 사용자로부터 상기 복수의 문자들에 대한 대체 글꼴의 변경 명령이 수신되면, 상기 유사도 데이터베이스를 참조하여 상기 대체 글꼴 데이터에 따른 글꼴에 대한 글꼴 식별자에 대응되어 저장되어 있는 제2 특성 벡터를 확인하고, 상기 제2 특성 벡터와 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 각각에 대응되는 특성 벡터 간의 유클리드 거리를 연산하는 연산 처리부;
상기 복수의 제2 글꼴들에 대한 글꼴 식별자 중 상기 제2 특성 벡터와의 유클리드 거리가 미리 설정된 기준 거리 이내로 연산되는 적어도 하나의 특성 벡터에 대응되는 적어도 하나의 후보 글꼴 식별자를 변경 후보 글꼴 식별자로 선택하는 후보 글꼴 식별자 선택부;
상기 적어도 하나의 후보 글꼴 식별자가 상기 변경 후보 글꼴 식별자로 선택되면, 상기 적어도 하나의 후보 글꼴 식별자 각각에 대한 글꼴 명칭에 대한 정보를 화면 상에 표시하는 후보 글꼴 명칭 표시부; 및
상기 사용자로부터 상기 적어도 하나의 후보 글꼴 식별자 중 제1 후보 글꼴 식별자에 대한 선택 명령이 수신되면, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제1 후보 글꼴 식별자에 대응되는 제3 글꼴 데이터를 변경 글꼴 데이터로 선택하는 변경 글꼴 선택부
를 더 포함하고,
상기 문서 재구성부는
상기 제3 글꼴 데이터가 상기 변경 글꼴 데이터로 선택되면, 상기 글꼴 데이터 저장부로부터 상기 변경 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 변경 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 다시 재구성한 후, 다시 재구성된 상기 제1 문서를 화면 상에 표시하는 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치.
4. The method of claim 3,
The alternative font selection unit
After the reconstructed first document is displayed on the screen, when a command to change the replacement font for the plurality of characters is received from the user, it corresponds to the font identifier for the font according to the replacement font data with reference to the similarity database an arithmetic processing unit for checking a stored second characteristic vector and calculating a Euclidean distance between the second characteristic vector and a characteristic vector corresponding to each of the font identifiers of the plurality of second fonts;
At least one candidate font identifier corresponding to at least one feature vector whose Euclidean distance to the second feature vector is calculated within a preset reference distance among font identifiers for the plurality of second fonts is selected as the change candidate font identifier a candidate font identifier selection unit;
a candidate font name display unit for displaying information on a font name for each of the at least one candidate font identifier on a screen when the at least one candidate font identifier is selected as the change candidate font identifier; and
When a selection command for a first candidate font identifier among the at least one candidate font identifier is received from the user, the first candidate font among the font data for the plurality of second fonts stored in the font data storage unit Changed font selection unit for selecting the third font data corresponding to the identifier as the changed font data
further comprising,
The document reconstruction unit
When the third font data is selected as the changed font data, the first document is read by loading the changed font data from the font data storage unit and applying a font format according to the changed font data to the plurality of characters. A document editing apparatus capable of displaying a document to which a font configured in an unsupported data format is applied for displaying the reconstructed first document on a screen after reconstitution.
삭제delete 제1 데이터 포맷으로 구성된 서로 다른 복수의 제1 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제1 글꼴들 각각을 대체할 수 있는 것으로 미리 지정된 대체 글꼴 - 상기 대체 글꼴은 제2 데이터 포맷으로 구성된 글꼴임 - 에 대한 대체 글꼴 식별자가 서로 대응되어 기록되어 있는 대체 글꼴 테이블을 저장하여 유지하는 단계;
상기 제2 데이터 포맷으로 구성된 서로 다른 복수의 제2 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제2 글꼴들 각각에 대한 글꼴 데이터 - 상기 글꼴 데이터는 문서가 로드될 때, 문서에 포함된 문자들에 대해 대응되는 글꼴 서식을 적용하는데 사용되는 데이터임 - 가 서로 대응되어 저장되어 있는 글꼴 데이터 저장부를 유지하는 단계;
상기 제2 데이터 포맷으로 구성된 글꼴 데이터만을 로드할 수 있는 문서 작성 프로그램을 통해 제1 문서가 오픈되면, 상기 제1 문서에 대한 문서 데이터 - 상기 문서 데이터에는 상기 제1 문서에 포함된 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 삽입되어 있음 - 를 읽어 들여 상기 제1 문서에 포함된 상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자를 확인하는 단계;
상기 복수의 문자들에 적용되어 있는 글꼴에 대한 글꼴 식별자가 상기 복수의 제1 글꼴들 각각에 대한 글꼴 식별자 중 어느 하나인 제1 글꼴 식별자로 확인되는 경우, 상기 대체 글꼴 테이블로부터 상기 제1 글꼴 식별자에 대응되어 기록되어 있는 제1 대체 글꼴 식별자를 확인한 후, 상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는지를 확인하는 단계;
상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있는 것으로 확인되는 경우, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제1 대체 글꼴 식별자에 대응되는 제1 글꼴 데이터를 대체 글꼴 데이터로 선택하는 단계;
상기 글꼴 데이터 저장부로부터 상기 대체 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 대체 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시하는 단계;
재구성된 상기 제1 문서가 화면 상에 표시된 이후, 사용자로부터 상기 복수의 문자들 중 제1 문자에 대한 글꼴 세부 조정 명령이 수신되면, 상기 제1 문자를 둘러싸는 미리 정해진 크기의 사각 영역을 생성함으로써, 상기 사각 영역을 제1 문자 영역으로 추출하는 단계;
상기 복수의 제2 글꼴들 중 상기 제1 문자에 적용되어 있는 글꼴과 일치하는 글꼴을 제외한 나머지 글꼴들에 대한 글꼴 데이터를 기초로, 상기 제1 문자 영역 내에 존재하는 상기 제1 문자의 글꼴을 상기 나머지 글꼴들 각각에 대응하는 글꼴로 변경함으로써, 상기 나머지 글꼴들 각각에 대응하는 대체 문자 영역들 - 상기 대체 문자 영역들의 크기는 상기 제1 문자 영역의 크기와 동일함 - 을 생성하는 단계;
상기 제1 문자 영역과 상기 대체 문자 영역들을 각각 가로 n개, 세로 n개로 구성되는 n x n개의 부분 사각 영역들로 분할한 후, 상기 n x n개의 부분 사각 영역들 각각에 대해 상기 n x n개의 부분 사각 영역들 각각의 내부에 상기 제1 문자의 부분이 포함되어 있으면 1의 코드를 할당하고, 상기 제1 문자의 부분이 포함되어 있지 않으면 0의 코드를 할당함으로써, 상기 제1 문자 영역과 상기 대체 문자 영역들 각각에 대한 n x n의 행렬을 생성하는 단계;
상기 대체 문자 영역들 각각에 대한 n x n의 행렬에 대해, 상기 제1 문자 영역에 대한 n x n의 행렬과의 아다마르 곱(Hadamard product)을 연산함으로써, 상기 대체 문자 영역들 각각에 대응하는 n x n의 연산 행렬을 생성하는 단계;
상기 대체 문자 영역들 각각에 대응하는 n x n의 연산 행렬에 포함된 1의 성분 값들의 개수를 각각 카운트한 후, 상기 대체 문자 영역들 중 1의 성분 값이 최대로 카운트된 n x n의 연산 행렬에 대응하는 제1 대체 문자 영역을 선택하고, 상기 나머지 글꼴들에 대한 글꼴 식별자 중 상기 제1 대체 문자 영역에 대응되는 제1 글꼴에 대한 글꼴 식별자를 확인하는 단계;
상기 글꼴 데이터 저장부에 저장되어 있는 상기 나머지 글꼴들에 대한 글꼴 데이터 중 상기 제1 글꼴에 대한 글꼴 식별자에 대응되는 제4 글꼴 데이터를 세부 대체 글꼴 데이터로 선택하는 단계; 및
상기 제4 글꼴 데이터가 상기 세부 대체 글꼴 데이터로 선택되면, 상기 글꼴 데이터 저장부로부터 상기 세부 대체 글꼴 데이터를 로드하여 상기 제1 문자에 대해 상기 세부 대체 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 다시 재구성한 후, 다시 재구성된 상기 제1 문서를 화면 상에 표시하는 단계
를 포함하는 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법.
A font identifier for each of a plurality of different first fonts configured in a first data format and a replacement font preset to be substituted for each of the plurality of first fonts, wherein the replacement font is a font configured in a second data format storing and maintaining a replacement font table in which replacement font identifiers for IM - are recorded in correspondence with each other;
A font identifier for each of a plurality of different second fonts configured in the second data format and font data for each of the plurality of second fonts - The font data includes characters included in the document when the document is loaded. maintaining a font data storage unit stored in correspondence with each other;
When a first document is opened through a document creation program capable of loading only font data configured in the second data format, document data for the first document - the document data includes a plurality of characters included in the first document checking a font identifier for a font applied to the plurality of characters included in the first document by reading - in which a font identifier for a font applied to is inserted;
When a font identifier for a font applied to the plurality of characters is identified as a first font identifier that is any one of the font identifiers for each of the plurality of first fonts, the first font identifier from the replacement font table after checking the first replacement font identifier recorded in correspondence with the , checking whether a font identifier matching the first replacement font identifier is stored in the font data storage unit;
When it is confirmed that the font identifier matching the first replacement font identifier is stored in the font data storage unit, the first font data for the plurality of second fonts stored in the font data storage unit selecting the first font data corresponding to the replacement font identifier as the replacement font data;
After the first document is reconstructed by loading the replacement font data from the font data storage unit and applying a font format according to the replacement font data to the plurality of characters, the reconstructed first document is displayed on the screen. displaying;
After the reconstructed first document is displayed on the screen, when a detailed font adjustment command for the first character among the plurality of characters is received from the user, by creating a rectangular area of a predetermined size surrounding the first character , extracting the rectangular area as a first character area;
The font of the first character existing in the first character area is selected based on font data for the remaining fonts except for the font matching the font applied to the first character among the plurality of second fonts. generating replacement text areas corresponding to each of the remaining fonts, the size of the replacement text areas being the same as the size of the first text area, by changing to a font corresponding to each of the remaining fonts;
After dividing the first text area and the replacement text area into nxn partial rectangular areas each comprising n horizontally and n vertically, each of the nxn partial rectangular areas for each of the nxn partial rectangular areas By assigning a code of 1 if a part of the first character is included in the interior of generating an n-by-n matrix for ;
An nxn operation matrix corresponding to each of the replacement character regions by calculating a Hadamard product with an nxn matrix for the first character region for an nxn matrix for each of the replacement character regions creating a;
After counting the number of component values of 1 included in an nxn operation matrix corresponding to each of the replacement character areas, the component value of 1 among the replacement character areas corresponds to the maximum counted nxn operation matrix. selecting a first replacement text area and checking a font identifier for a first font corresponding to the first replacement text area among font identifiers for the remaining fonts;
selecting fourth font data corresponding to the font identifier for the first font from among the font data for the remaining fonts stored in the font data storage unit as detailed replacement font data; and
When the fourth font data is selected as the detailed replacement font data, the first character by loading the detailed replacement font data from the font data storage unit and applying a font format according to the detailed replacement font data to the first character After reconstructing the document again, displaying the reconstructed first document on a screen
A method of operating a document editing device that enables the display of a document to which a font composed of an unsupported data format including
제6항에 있어서,
상기 복수의 제1 글꼴들 각각에 대한 글꼴 식별자와 상기 복수의 제1 글꼴들 각각에 대응되는 미리 설정된 문자별 너비 정보 - 상기 문자별 너비 정보는 상기 복수의 문자들 각각에 상기 복수의 제1 글꼴들 중 어느 하나의 글꼴이 적용되었을 때, 각 문자의 가로축 너비에 대한 크기 정보를 의미함 - 가 서로 대응되어 기록되어 있는 글꼴 너비 테이블을 저장하여 유지하는 단계
를 더 포함하고,
상기 재구성된 상기 제1 문서를 화면 상에 표시하는 단계는
상기 제1 글꼴 데이터가 상기 대체 글꼴 데이터로 선택되면, 상기 글꼴 너비 테이블로부터 상기 제1 글꼴 식별자에 따른 글꼴에 대응되어 기록되어 있는 제1 문자별 너비 정보를 확인하는 단계; 및
상기 글꼴 데이터 저장부로부터 상기 대체 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 대체 글꼴 데이터에 따른 글꼴 서식을 적용하되, 상기 제1 문자별 너비 정보를 기초로 상기 복수의 문자들 각각의 너비를 조정함으로써, 상기 제1 문서를 재구성한 후, 재구성된 상기 제1 문서를 화면 상에 표시하는 단계
를 포함하는 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법.
7. The method of claim 6,
A font identifier for each of the plurality of first fonts and preset character-specific width information corresponding to each of the plurality of first fonts - the character-specific width information includes the plurality of first fonts in each of the plurality of characters When any one of the fonts is applied, it means the size information about the width of the horizontal axis of each character - the step of storing and maintaining a table of font widths in which the letters are recorded in correspondence with each other
further comprising,
The step of displaying the reconstructed first document on the screen is
when the first font data is selected as the replacement font data, checking width information for each first character recorded corresponding to the font according to the first font identifier from the font width table; and
Loading the replacement font data from the font data storage unit and applying a font format according to the replacement font data to the plurality of characters, the width of each of the plurality of characters based on the width information for each first character displaying the reconstructed first document on a screen after reconstructing the first document by adjusting
A method of operating a document editing device that enables the display of a document to which a font composed of an unsupported data format including
제6항에 있어서,
상기 제1 글꼴 데이터를 상기 대체 글꼴 데이터로 선택하는 단계는
문자에 적용 가능한 것으로 미리 지정된 복수의 글꼴들 각각에 대한 글꼴 식별자와, 각 글꼴 간의 미리 정해진 유사도에 기반하여 상기 복수의 글꼴들 각각에 대해 미리 지정된 특성 벡터가 서로 대응되어 저장되어 있는 유사도 데이터베이스를 유지하는 단계;
상기 글꼴 데이터 저장부에 상기 제1 대체 글꼴 식별자와 일치하는 글꼴 식별자가 저장되어 있지 않은 것으로 확인되는 경우, 상기 유사도 데이터베이스를 참조하여 상기 제1 대체 글꼴 식별자에 대응되어 저장되어 있는 제1 특성 벡터를 확인하고, 상기 제1 특성 벡터와 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 각각에 대응되는 특성 벡터 간의 유클리드 거리(Euclidean Distance)를 연산하는 단계; 및
상기 복수의 제2 글꼴들에 대한 글꼴 식별자 중 상기 제1 특성 벡터와의 유클리드 거리가 최소로 연산된 특성 벡터에 대응되는 글꼴 식별자를 제2 대체 글꼴 식별자로 선택하고, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제2 대체 글꼴 식별자에 대응되는 제2 글꼴 데이터를 상기 대체 글꼴 데이터로 선택하는 단계
를 포함하는 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법.
7. The method of claim 6,
The step of selecting the first font data as the replacement font data comprises:
Maintaining a similarity database in which a font identifier for each of a plurality of fonts designated as applicable to a character in advance, and a feature vector designated in advance for each of the plurality of fonts based on a predetermined degree of similarity between each font are stored in correspondence with each other to do;
When it is determined that the font identifier matching the first alternative font identifier is not stored in the font data storage unit, a first characteristic vector stored corresponding to the first alternative font identifier is stored with reference to the similarity database. checking and calculating a Euclidean distance between the first feature vector and a feature vector corresponding to each of the font identifiers for the plurality of second fonts; and
Among the font identifiers for the plurality of second fonts, a font identifier corresponding to a feature vector in which the Euclidean distance to the first feature vector is calculated as a minimum is selected as a second replacement font identifier, and stored in the font data storage unit selecting, as the replacement font data, second font data corresponding to the second replacement font identifier from among the font data for the plurality of second fonts.
A method of operating a document editing device that enables the display of a document to which a font composed of an unsupported data format including
제8항에 있어서,
재구성된 상기 제1 문서가 화면 상에 표시된 이후, 사용자로부터 상기 복수의 문자들에 대한 대체 글꼴의 변경 명령이 수신되면, 상기 유사도 데이터베이스를 참조하여 상기 대체 글꼴 데이터에 따른 글꼴에 대한 글꼴 식별자에 대응되어 저장되어 있는 제2 특성 벡터를 확인하고, 상기 제2 특성 벡터와 상기 복수의 제2 글꼴들에 대한 글꼴 식별자 각각에 대응되는 특성 벡터 간의 유클리드 거리를 연산하는 단계;
상기 복수의 제2 글꼴들에 대한 글꼴 식별자 중 상기 제2 특성 벡터와의 유클리드 거리가 미리 설정된 기준 거리 이내로 연산되는 적어도 하나의 특성 벡터에 대응되는 적어도 하나의 후보 글꼴 식별자를 변경 후보 글꼴 식별자로 선택하는 단계;
상기 적어도 하나의 후보 글꼴 식별자가 상기 변경 후보 글꼴 식별자로 선택되면, 상기 적어도 하나의 후보 글꼴 식별자 각각에 대한 글꼴 명칭에 대한 정보를 화면 상에 표시하는 단계;
상기 사용자로부터 상기 적어도 하나의 후보 글꼴 식별자 중 제1 후보 글꼴 식별자에 대한 선택 명령이 수신되면, 상기 글꼴 데이터 저장부에 저장되어 있는 상기 복수의 제2 글꼴들에 대한 글꼴 데이터 중 상기 제1 후보 글꼴 식별자에 대응되는 제3 글꼴 데이터를 변경 글꼴 데이터로 선택하는 단계; 및
상기 제3 글꼴 데이터가 상기 변경 글꼴 데이터로 선택되면, 상기 글꼴 데이터 저장부로부터 상기 변경 글꼴 데이터를 로드하여 상기 복수의 문자들에 대해 상기 변경 글꼴 데이터에 따른 글꼴 서식을 적용함으로써 상기 제1 문서를 다시 재구성한 후, 다시 재구성된 상기 제1 문서를 화면 상에 표시하는 단계
를 더 포함하는 지원하지 않는 데이터 포맷으로 구성된 글꼴이 적용되어 있는 문서의 표시를 가능하게 하는 문서 편집 장치의 동작 방법.
9. The method of claim 8,
After the reconstructed first document is displayed on the screen, when a command to change the replacement font for the plurality of characters is received from the user, it corresponds to the font identifier for the font according to the replacement font data with reference to the similarity database checking a stored second characteristic vector, and calculating a Euclidean distance between the second characteristic vector and a characteristic vector corresponding to each of the font identifiers of the plurality of second fonts;
At least one candidate font identifier corresponding to at least one feature vector whose Euclidean distance to the second feature vector is calculated within a preset reference distance among font identifiers for the plurality of second fonts is selected as the change candidate font identifier to do;
displaying information on a font name for each of the at least one candidate font identifier on a screen when the at least one candidate font identifier is selected as the change candidate font identifier;
When a selection command for a first candidate font identifier among the at least one candidate font identifier is received from the user, the first candidate font among the font data for the plurality of second fonts stored in the font data storage unit selecting third font data corresponding to the identifier as change font data; and
When the third font data is selected as the changed font data, the first document is read by loading the changed font data from the font data storage unit and applying a font format according to the changed font data to the plurality of characters. After reconstructing, displaying the reconstructed first document on a screen
A method of operating a document editing device that enables the display of a document to which a font composed of an unsupported data format comprising further is applied.
삭제delete 제6항 내지 제9항 중 어느 한 항의 방법을 컴퓨터와의 결합을 통해 실행시키기 위한 컴퓨터 프로그램을 기록한 컴퓨터 판독 가능 기록 매체.A computer-readable recording medium recording a computer program for executing the method of any one of claims 6 to 9 through combination with a computer. 제6항 내지 제9항 중 어느 한 항의 방법을 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램.A computer program stored in a storage medium for executing the method of any one of claims 6 to 9 through combination with a computer.
KR1020200044565A 2020-04-13 2020-04-13 Document editing device that enables display of a document to which a font in unsupported data format is applied and operating method thereof KR102328051B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200044565A KR102328051B1 (en) 2020-04-13 2020-04-13 Document editing device that enables display of a document to which a font in unsupported data format is applied and operating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200044565A KR102328051B1 (en) 2020-04-13 2020-04-13 Document editing device that enables display of a document to which a font in unsupported data format is applied and operating method thereof

Publications (2)

Publication Number Publication Date
KR20210126908A KR20210126908A (en) 2021-10-21
KR102328051B1 true KR102328051B1 (en) 2021-11-17

Family

ID=78269000

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200044565A KR102328051B1 (en) 2020-04-13 2020-04-13 Document editing device that enables display of a document to which a font in unsupported data format is applied and operating method thereof

Country Status (1)

Country Link
KR (1) KR102328051B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102420159B1 (en) * 2022-03-07 2022-07-13 주식회사 산돌 Web font service method of font service system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003084218A2 (en) 2002-03-29 2003-10-09 Digeo, Inc. Module-based interactive television ticker
KR102030547B1 (en) * 2018-06-19 2019-10-10 주식회사 한글과컴퓨터 Document editing apparatus capable of displaying a document to which an unsupported font is applied and operating method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150099936A (en) * 2014-02-24 2015-09-02 주식회사 인프라웨어 Method and apparatus for applying an alternate font for maintaining document layout

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003084218A2 (en) 2002-03-29 2003-10-09 Digeo, Inc. Module-based interactive television ticker
KR102030547B1 (en) * 2018-06-19 2019-10-10 주식회사 한글과컴퓨터 Document editing apparatus capable of displaying a document to which an unsupported font is applied and operating method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Geoffrey Brown 외, 'Born Broken: Fonts and Information Loss in Legacy Digital Documents', 2011.03.

Also Published As

Publication number Publication date
KR20210126908A (en) 2021-10-21

Similar Documents

Publication Publication Date Title
KR102328051B1 (en) Document editing device that enables display of a document to which a font in unsupported data format is applied and operating method thereof
KR102187540B1 (en) Electronic terminal apparatus supporting easy editing for overlapped objects in a document and operating method thereof
KR102300444B1 (en) Document editing device to check whether the font applied to the document is a supported font and operating method thereof
KR102053079B1 (en) Electronic document editing apparatus capable of displaying caption-based reference objects and operating method thereof
KR102144351B1 (en) Electronic terminal device supporting easy undo processing of electronic document and operating method thereof
KR102300437B1 (en) Electronic document editing apparatus that enables the insertion of special characters at specific locations on the electronic document based on the entered characters and operating method thereof
KR102375507B1 (en) Electronic device that supports retrieval of objects from document by matching objects and keywords inserted into document and operating method thereof
KR102300491B1 (en) Electronic terminal device that enables easy change of matrix layout entered through the formula editing window in the electronic document and operating method thereof
KR20200001342A (en) Web electric document editing apparatus for rendering object and operating method thereof
KR102004996B1 (en) Presentation document editing apparatus for performing a simple insertion of a page movement link on a slide page and operating method thereof
KR102545260B1 (en) Electronic terminal apparatus that supports application of natural substitute fonts when loading electronic documents with unsupported fonts applied and operating method thereof
KR102442522B1 (en) Electronic apparatus that recommends shortcut keys according to the editing action input when creating a document and the operating method thereof
KR102466714B1 (en) Electronic device that provides improved object insertion into electronic document through object box and operating method thereof
KR20210085682A (en) BOM data editing system, method and computer program
KR102466706B1 (en) Electronic device that enables easy selection of dependent edit action in document editing programs and operating method thereof
KR102442510B1 (en) Document editing apparatus that automatically specifies the storage file format for documents and the operating method thereof
KR102442506B1 (en) Electronic device for recommending shortcuts for editing actions in document editing programs and the operating method thereof
KR102300439B1 (en) Font verification server to verify whether the font applied to a document is authorized and operating method thereof
KR20220127993A (en) Electronic terminal apparatus for providing information of the associated documents which are associated with the particular document based on simultaneous usage criteria and operating method thereof
KR102507487B1 (en) Electronic apparatus which generates the dedicated document file for supporting fast editing of the pages comprising of a document, and the operating method thereof
KR101758098B1 (en) Electronic terminal apparatus for copying to keep the shape of the character in the pdf document and method for copying to keep the shape of the character in the pdf document of the electronic terminal apparatus
KR102010556B1 (en) Apparatus for editing web electric document using asynchronous action and operating method thereof
KR102395699B1 (en) Electronic terminal device which is able to display the electronic document in the unsupported font using the alternative font and the operating method thereof
KR102500730B1 (en) Electronic apparatus that provides a translation function that maintains the style information of the sentence and operating method thereof
KR102566905B1 (en) Presentation document editing apparatus that allows users to easily set the page style of presentation documents and operating method thereof

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right