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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com