Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Character correcting method and system

A technology for correcting coefficients and characters, applied in the fields of electronic digital data processing, instruments, calculations, etc., can solve the problem that the typesetting method cannot be found and corrected in time, and achieve the effect of improving readability and aesthetics, and improving the recognition rate.

Active Publication Date: 2015-04-15
NEW FOUNDER HLDG DEV LLC +1
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] For this reason, the technical problem to be solved by the present invention lies in the fact that the typesetting method in the prior art cannot find and correct the errors of the glyph description information of both monospaced characters and non-monospaced characters well, thus proposing a Text correction method and system with error correction function capable of correcting errors in documents with constant-width text and non-equal-width text

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Character correcting method and system
  • Character correcting method and system
  • Character correcting method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] A text correction method is provided in this embodiment, and the flow chart is as follows figure 1 shown, including:

[0064] (1) Obtain at least one font of the text in the document;

[0065] (2) For each font, select a font with incorrect glyph description information according to the character width of the characters in the font. The specific process is as follows:

[0066] Select at least two characters in the font, calculate the ratio of the character width of each character to the width of the glyph border rectangle of the character, and calculate the average value; determine the glyph description of the font according to whether the average value exceeds the threshold Whether the information is wrong. For monospaced text, the threshold is 0.9, 1, or 1.1; for non-equal-width text, the threshold is 1.2, 1.3, or 1.4.

[0067] (3) Correct the text in the font with wrong glyph description information. The character width of the character is corrected according to...

Embodiment 2

[0070] A text correction system corresponding to Embodiment 1 is provided in this embodiment, including:

[0071] (1) Acquisition unit: acquire at least one font of the text in the document;

[0072] (2) Selection unit: For each font, select fonts with incorrect glyph description information according to the character width of the characters in the font. The specific process is as follows:

[0073] Select at least two characters in the font, calculate the ratio of the character width of each character to the width of the glyph border rectangle of the character, and calculate the average value; determine the glyph description of the font according to whether the average value exceeds the threshold Whether the information is wrong. For monospaced text, the threshold is 0.9, 1, or 1.1; for non-equal-width text, the threshold is 1.2, 1.3, or 1.4.

[0074] (3) Correction unit: correct the characters in the font whose font description information is wrong. The character width of...

Embodiment 3

[0077] Another text correction method is provided in this embodiment, including:

[0078] (1) Obtain at least one font of the text in the document;

[0079] (2) For each font, the embedded font is processed, and for the embedded font, the font with incorrect glyph description information is selected according to the width of the characters in the font.

[0080] Select five characters in the font as samples, calculate the ratio of the character width of each character to the width of the glyph border rectangle of the character, and calculate the average value; determine the glyph of the font according to whether the average value exceeds the threshold Whether the description information is wrong. For text of equal width, the threshold is 1.1; for text of non-equal width, the threshold is 1.3.

[0081] (3) Correct the text in the font with wrong glyph description information. For text in fonts with incorrect glyph description information, first determine whether it is a monos...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides character correcting method and system. The method comprises the steps of acquiring at least one font of characters in a text; selecting the fonts with accurate character pattern description information according to the width of the characters in the fonts; correcting the characters in the fonts with the inaccurate character pattern description information. According to the method, the character pattern information is expressed well through the character width information, and then the fonts can be corrected, so that the problems such as non-uniform line spacing, excessively large clearance between characters, or overlapped characters in typesetting can be solved; the characters are respectively corrected according to the characteristics of the characters with the same width and the characters with different width, and therefore, the readability and the aesthetics of a content can be effectively improved.

Description

technical field [0001] The invention relates to the field of computer text processing, in particular to an invention and system with text correction. Background technique [0002] Computer fonts, referred to as fonts for short, are a data set that includes glyph sets and character code sets. It contains the mapping relationship between character codes and glyphs, as well as the description information of each glyph. The font bitmap can be drawn through the font description information. Computer characters are generally presented to users in the form of documents. A streaming document refers to a document that has no fixed layout and whose content can be arranged according to the actual size of the presentation medium. ePub and TXT are two commonly used streaming documents. PDF and CEBX with structured information can also be considered as streaming documents. [0003] With the popularity of smart phones and the rise of the mobile Internet, more and more people choose to...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/21G06F17/25G06F40/189
Inventor 孙浩鹏丁力董宁
Owner NEW FOUNDER HLDG DEV LLC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products