CN108509393A - A kind of method and apparatus of edit text message - Google Patents

A kind of method and apparatus of edit text message Download PDF

Info

Publication number
CN108509393A
CN108509393A CN201810230989.3A CN201810230989A CN108509393A CN 108509393 A CN108509393 A CN 108509393A CN 201810230989 A CN201810230989 A CN 201810230989A CN 108509393 A CN108509393 A CN 108509393A
Authority
CN
China
Prior art keywords
information
text
editor
editing area
voice messaging
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201810230989.3A
Other languages
Chinese (zh)
Inventor
蔡明祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810230989.3A priority Critical patent/CN108509393A/en
Publication of CN108509393A publication Critical patent/CN108509393A/en
Pending legal-status Critical Current

Links

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/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Document Processing Apparatus (AREA)

Abstract

This application provides a kind of method and apparatus of edit text message.The method includes:Set the editing area of text;The voice messaging of acquisition is converted into editor's information in the editing area.The application carries out structural adjustment to text by way of voice input and word is inputted and corrected, and changes the mode of word input and editor, improves work efficiency.

Description

A kind of method and apparatus of edit text message
Technical field
This application involves optical identification fields, and in particular to the method for edit text message and edit text message Device.
Background technology
Optical character identification (Optical Character Recognition, abbreviation OCR), refer to electronic equipment (such as Scanner or digital camera) check the character printed on paper, its shape is determined by the pattern for detecting dark, bright, then uses character Shape is translated into the process of computword by recognition methods;That is, it is directed to printed character, it is using optical mode that papery is literary Shelves in text conversion become black and white lattice image file, and by identification software by the text conversion in image at text lattice Formula, the technology further edited and processed for word processor.
But under conditions of word is unintelligible or character background is complicated, OCR discriminations can be very low.Cause text literary The content quality of part is not high.
Invention content
The application provides a kind of method of edit text message, a kind of device of edit text message.To solve scanning life At text file the not high problem of content quality.
In order to solve the above-mentioned technical problem, the embodiment of the present application provides the following technical solution:
This application provides a kind of methods of edit text message, including:
Set the editing area of text;
The voice messaging of acquisition is converted into editor's information in the editing area.
Optionally, the editing area of the text includes at least one of following region type:
The white space of text;
Including content is text filed.
Optionally, the editing area of the setting text, includes at least one of following positioning method:
The editing area of text is set by voice messaging;
The editing area of text is set by mouse;
Pass through the editing area of keyboard to set up text.
Further, the editing area that text is set by voice messaging, including:
The editing area of text is set according to the predeterminable area voice messaging of setting regions.
Further, described that the voice messaging of acquisition is converted into editor's information in the editing area, packet It includes:
The voice messaging with editor's information of acquisition is converted into editor's information in the editing area;Institute's predicate Editor's information of message breath is associated with editor's information of the text information.
Optionally, described that the voice messaging with editor's information of acquisition is converted into the editor in the editing area Information, including:
The voice messaging with editor's information of acquisition is converted into the operation information in the editing area and/or text This format information.
Optionally, described that the voice messaging with editor's information of acquisition is converted into the editor in the editing area Information, including:
The voice messaging with editor's information of acquisition is converted into the operation information in the editing area and text Format information and text information.
Optionally, described that the voice messaging with editor's information of acquisition is converted into the editor in the editing area Information, including:
The voice messaging with editor's information of acquisition is converted into the operation information in the editing area and word Information.
Optionally, described that the voice messaging with editor's information of acquisition is converted into the editor in the editing area Information, including:
By acquisition have the voice messaging of editor's information be converted into text formatting information in the editing area and Text information.
This application provides a kind of devices of edit text message, including:
Editing area unit is set, the editing area of setting text is configured to;
Voice edition unit is configured to for the voice messaging of acquisition to be converted into editor's information in the editing area.
Disclosure based on above-described embodiment can know that the embodiment of the present application has following advantageous effect:The application carries A kind of method and apparatus of edit text message are supplied.The method includes:Set the editing area of text;By the voice of acquisition Information is converted into editor's information in the editing area.The application carries out structure tune by way of voice input to text The input of whole and word and correction, change the mode of word input and editor, improve work efficiency.
Description of the drawings
Fig. 1 is a kind of flow chart of the method for edit text message;
Fig. 2 is a kind of unit block diagram of the device of edit text message.
Specific implementation mode
In the following, the specific embodiment of the application is described in detail in conjunction with attached drawing, but not as the restriction of the application.
It should be understood that various modifications can be made to disclosed embodiments.Therefore, description above should not regard To limit, and only as the example of embodiment.Those skilled in the art will expect in the scope and spirit of the present application Other modifications.
The attached drawing being included in the description and forms part of the description shows embodiments herein, and with it is upper What face provided is used to explain the application together to the substantially description of the application and the detailed description given below to embodiment Principle.
By the description of the preferred form of the embodiment with reference to the accompanying drawings to being given as non-limiting examples, the application's These and other characteristic will become apparent.
It is also understood that although the application is described with reference to some specific examples, people in the art Member realizes many other equivalents of the application in which can determine, they have feature as claimed in claim and therefore all In the protection domain defined by whereby.
When read in conjunction with the accompanying drawings, in view of following detailed description, above and other aspect, the feature and advantage of the application will become It is more readily apparent.
The specific embodiment of the application is described hereinafter with reference to attached drawing;It will be appreciated, however, that the disclosed embodiments are only Various ways implementation can be used in the example of the application.It is known and/or repeat function and structure be not described in detail to avoid Unnecessary or extra details so that the application is smudgy.Therefore, specific structural and functionality disclosed herein is thin Section is not intended to restrictions, but as just the basis of claim and representative basis be used to instruct those skilled in the art with Substantially any appropriate detailed construction diversely uses the application.
This specification can be used phrase " in one embodiment ", " in another embodiment ", " in another embodiment In " or " in other embodiments ", it can be referred to one or more of the identical or different embodiment according to the application.
The application provides a kind of method of edit text message;The application also provides a kind of device of edit text message. It is described in detail one by one in the following embodiments.
To the first embodiment provided by the present application, i.e., a kind of embodiment of the method for edit text message.
The present embodiment is described in detail with reference to Fig. 1, wherein Fig. 1 is a kind of method of edit text message Flow chart.
Step S101 sets the editing area of text.
The purpose of the application is exactly the edit text message by way of voice input.
Text refers to the form of expression of written language.One text can be a sentence, a paragraph or a piece Chapter.
In the present embodiment, the text message, refer to be stored in it is related to word in the editable file of smart machine Information.
The editor exactly increases the content of editable file, is deleted or modified, and according to certain format Typesetting is carried out to content.
Typesetting refers to that the visual informations element such as word, picture, figure is adjusted position, size in layout, is Make the process of layout's methodization.
The editable file of the smart machine includes commonly:Word file, TXT files, pdf document, PPT files, EXCEL file.
The editing area of the text includes at least one of following region type:
Area type one, the white space of text, that is, the not region of word.Prepare to increase word letter to the region It ceases and to the text information typesetting.
Area type two including content is text filed, that is, includes the region of word.Prepare the word to the region Information is increased, is deleted or modified, and carries out typesetting to text information.
The editing area of the setting text is exactly according to region in above-mentioned zone type specified one.Including at least following One of positioning method:
Positioning method one sets the editing area of text by voice messaging.Including:According to the predeterminable area of setting regions Voice messaging sets the editing area of text.
For example, setting regions type one, then set one in such a way that voice specifies upper left corner back gauge and lower right corner back gauge The text edit area of rectangle;The left margin in the center of circle and top margin and radius by is specified to set a circular text by voice Editing area.Setting regions type two then specifies which word of which style of writing word of whole page to start or which section by voice Which word of word starts, which word to which style of writing word of whole page terminates or which word knot of which section word Beam specifies region to be edited with this.
Positioning method two sets the editing area of text by mouse.It waits compiling for example, specifying in such a way that mouse swipes Collect region.
Positioning method three passes through the editing area of keyboard to set up text.For example, in such a way that Keyboard Control cursor moves Specify region to be edited.
The voice messaging of acquisition is converted into editor's information in the editing area by step S102.
This step purpose be exactly that copy editor is carried out to the editing area of setting by voice messaging.
Editable file includes:Text information and text formatting information.Text information is exactly the content of editable file; Text formatting information i.e. composition information, for example, the font of word, size, color;Paragraph information.
One of described editor's information, including following combined information:Operation information and/or text formatting information, operation information With text formatting information and text information, operation information and text information, text formatting information and text information.
The operation information includes at least one of following operation information:Increase operation information, delete operation information, modification Operation information, inquiry operation information.
It is described that the voice messaging of acquisition is converted into editor's information in the editing area, including:It will acquisition Have editor information voice messaging be converted into editor's information in the editing area;The editor of the voice messaging believes Breath is associated with editor's information of the text information.
In the present embodiment, in order to effectively identify editor's information in voice messaging, editor's information of voice messaging is using symbol Number formula language indicates.Editor's information of the voice messaging is associated with editor's information of the text information.It is namely described The operation information and text formatting information of symbol-style language and the text information in voice messaging correspond.For example, behaviour Make information with " #2 " to start, back is followed 2 bit digitals, finally terminated with same form;The beginning of " increasing operation information " or knot Beam is expressed as " #201 ", and the beginning or end of " delete operation information " are expressed as " #202 ", the beginning of " modification operation information " or End is expressed as " #203 ", and the beginning or end of " inquiry operation information " are expressed as " #204 ".Text formatting information is opened with " #6 " Head, back follow 3 bit digitals, and first expression text formatting type of 3 bit digitals, latter 2 indicate the text formatting type Under subtype, finally terminated with same form;In text formatting type, " 1 " indicates that font type, " 2 " indicate Segment type, " 3 " representation page type, and so on;" #6101 " indicates to start to operate according to " Song typeface " below, operates finally with " #6101 " Terminate.Or started with other fonts, indicate that " Song typeface " terminates." #6102 " indicates to start to operate according to " regular script " below, operation Finally terminated with " #6102 "." #6201 " indicates that input " tab " " #6202 " indicates input " newline ".
Make the text information after conversion in editable file according to text formatting information preservation and shows.
By the identification to the symbol-style language in voice, the symbol-style language in voice is transformed into editable file Text formatting information, or the operation information to editable file.
Below for editor's information in voice messaging and the editing area with editor's information relationship into traveling One step explanation.
It is described that the voice messaging with editor's information of acquisition is converted into editor's information in the editing area, it wraps It includes:The voice messaging with editor's information of acquisition is converted into the operation information in the editing area and/or text lattice Formula information.
For example, editor's information is operation information and text formatting information.Former text information is " Song typeface ", if to change For " regular script word ", then text information is selected, then voice input " #203#6102 ".
For example, editor's information is operation information.If deleting selected text information, voice inputs " #202 "
For example, editor's information is text formatting information.It needs to enter a new line in word inputs and be inputted in the beginning of next line Tab, then voice input " #6202#6201 ".
It is described that the voice messaging with editor's information of acquisition is converted into editor's information in the editing area, it wraps It includes:There is the voice messaging of editor's information to be converted into the operation information in the editing area and text formatting letter acquisition Breath and text information.
For example, if to be inserted into the text information of Song typeface in selected region, voice input " #201#6101 texts Word information #6101#201 ".
It is described that the voice messaging with editor's information of acquisition is converted into editor's information in the editing area, it wraps It includes:The voice messaging with editor's information of acquisition is converted into the operation information in the editing area and text information.
For example, if to be inserted into text information in selected region, voice inputs " #201 text informations #201 ".Turn " text information " for changing word into is recorded and is shown according to default font.The font that can also be set according to front is recorded and is shown Show.
It is described that the voice messaging with editor's information of acquisition is converted into editor's information in the editing area, it wraps It includes:There is the voice messaging of editor's information to be converted into the text formatting information in the editing area and word letter acquisition Breath.
For example, in insertion text is long, the text information of original input is " Song typeface ", needs to be changed to " regular script ", then voice It inputs " #6101 text informations #6101 ".Corresponding with the first embodiment provided by the present application, the application also provides second Embodiment, i.e., a kind of device of edit text message.Since device embodiment is substantially similar to embodiment of the method, so describing Fairly simple, relevant part refers to the corresponding explanation of embodiment of the method.Device embodiment described below is only Schematically.
Fig. 2 shows a kind of embodiments of the device of edit text message provided by the present application.Fig. 2 is a kind of editor's text The unit block diagram of the device of information.
Referring to FIG. 2, the application provides a kind of device of edit text message, including:
Set editing area unit 201, voice edition unit 202;
Editing area unit 201 is set, the editing area of setting text is configured to;
Voice edition unit 202 is configured to for the voice messaging of acquisition to be converted into editor's letter in the editing area Breath.
Optionally, the editing area of text described in setting editing area unit 201, include at least following region type it One:
Area type one, the white space of text;
Area type two, including content is text filed.
Optionally, the editing area that text is set described in setting editing area unit 201, includes at least following positioning side One of formula unit:
One subelement of positioning method is configured to set the editing area of text by voice messaging;
Two subelement of positioning method is configured to set the editing area of text by mouse;
Three subelement of positioning method, is configured to the editing area by keyboard to set up text.
Further, one subelement of positioning method, including:
Voice messaging locator unit is configured to set the editor of text according to the predeterminable area voice messaging of setting regions Region.
Further, voice edition unit 202, including:
Voice edition information sub-elements are configured to the voice messaging with editor's information of acquisition being converted into the volume Collect editor's information in region;Editor's information of the voice messaging is associated with editor's information of the text information.
Further, voice edition information sub-elements, including:
One subelement of voice edition information is configured to the voice messaging with editor's information of acquisition being converted into described Operation information in editing area and/or text formatting information.
Two subelement of voice edition information is configured to the voice messaging with editor's information of acquisition being converted into described Operation information and text formatting information in editing area and text information.
Three subelement of voice edition information is configured to the voice messaging with editor's information of acquisition being converted into described Operation information in editing area and text information.
Four subelement of voice edition information is configured to the voice messaging with editor's information of acquisition being converted into described Text formatting information in editing area and text information.It is apparent to those skilled in the art that for description It is convenienct and succinct, the electronic equipment that the data processing method of foregoing description is applied to can refer to before-mentioned products embodiment In corresponding description, details are not described herein.
Above example is only the exemplary embodiment of the application, is not used in limitation the application, the protection domain of the application It is defined by the claims.Those skilled in the art can make respectively the application in the essence and protection domain of the application Kind modification or equivalent replacement, this modification or equivalent replacement also should be regarded as falling within the scope of protection of this application.

Claims (10)

1. a kind of method of edit text message, which is characterized in that including:
Set the editing area of text;
The voice messaging of acquisition is converted into editor's information in the editing area.
2. according to the method described in claim 1, it is characterized in that, the editing area of the text, includes at least following region One of type:
The white space of text;
Including content is text filed.
3. according to the method described in claim 1, it is characterized in that, the editing area of the setting text, includes at least following One of positioning method:
The editing area of text is set by voice messaging;
The editing area of text is set by mouse;
Pass through the editing area of keyboard to set up text.
4. according to the method described in claim 3, it is characterized in that, it is described by voice messaging set text editing area, Including:
The editing area of text is set according to the predeterminable area voice messaging of setting regions.
5. according to the method described in claim 2, it is characterized in that, described be converted into the voice messaging of acquisition described Editor's information in editing area, including:
The voice messaging with editor's information of acquisition is converted into editor's information in the editing area;The voice letter Editor's information of breath is associated with editor's information of the text information.
6. according to the method described in claim 5, it is characterized in that, described turn the voice messaging with editor's information of acquisition Change editor's information in the editing area into, including:
The voice messaging with editor's information of acquisition is converted into the operation information in the editing area and/or text lattice Formula information.
7. according to the method described in claim 5, it is characterized in that, described turn the voice messaging with editor's information of acquisition Change editor's information in the editing area into, including:
The voice messaging with editor's information of acquisition is converted into the operation information in the editing area and text formatting Information and text information.
8. according to the method described in claim 5, it is characterized in that, described turn the voice messaging with editor's information of acquisition Change editor's information in the editing area into, including:
The voice messaging with editor's information of acquisition is converted into the operation information in the editing area and text information.
9. according to the method described in claim 5, it is characterized in that, described turn the voice messaging with editor's information of acquisition Change editor's information in the editing area into, including:
The voice messaging with editor's information of acquisition is converted into text formatting information and word in the editing area Information.
10. a kind of device of edit text message, which is characterized in that including:
Editing area unit is set, the editing area of setting text is configured to;
Voice edition unit is configured to for the voice messaging of acquisition to be converted into editor's information in the editing area.
CN201810230989.3A 2018-03-20 2018-03-20 A kind of method and apparatus of edit text message Pending CN108509393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810230989.3A CN108509393A (en) 2018-03-20 2018-03-20 A kind of method and apparatus of edit text message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810230989.3A CN108509393A (en) 2018-03-20 2018-03-20 A kind of method and apparatus of edit text message

Publications (1)

Publication Number Publication Date
CN108509393A true CN108509393A (en) 2018-09-07

Family

ID=63376883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810230989.3A Pending CN108509393A (en) 2018-03-20 2018-03-20 A kind of method and apparatus of edit text message

Country Status (1)

Country Link
CN (1) CN108509393A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109817210A (en) * 2019-02-12 2019-05-28 百度在线网络技术(北京)有限公司 Voice writing method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3684125B2 (en) * 2000-01-19 2005-08-17 株式会社東芝 How to play, record, and edit display information synchronized with audio information
CN105185377A (en) * 2015-09-24 2015-12-23 百度在线网络技术(北京)有限公司 Voice-based file generation method and device
CN106933561A (en) * 2015-12-31 2017-07-07 北京搜狗科技发展有限公司 Pronunciation inputting method and terminal device
CN107147776A (en) * 2017-04-14 2017-09-08 努比亚技术有限公司 The implementation method and mobile terminal of a kind of Voice command

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3684125B2 (en) * 2000-01-19 2005-08-17 株式会社東芝 How to play, record, and edit display information synchronized with audio information
CN105185377A (en) * 2015-09-24 2015-12-23 百度在线网络技术(北京)有限公司 Voice-based file generation method and device
CN106933561A (en) * 2015-12-31 2017-07-07 北京搜狗科技发展有限公司 Pronunciation inputting method and terminal device
CN107147776A (en) * 2017-04-14 2017-09-08 努比亚技术有限公司 The implementation method and mobile terminal of a kind of Voice command

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109817210A (en) * 2019-02-12 2019-05-28 百度在线网络技术(北京)有限公司 Voice writing method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
US7791589B2 (en) Method and apparatus for displaying electronic document including handwritten data
CN100454293C (en) Document editing method, document editing device
US20090327875A1 (en) Design editing apparatus, design editing method, and storage medium storing design editing program
KR20110081099A (en) Apparatus and method for digitizing a document, and computer-readable recording medium
JP6579332B2 (en) Image forming apparatus, document digitizing program, and document digitizing method
US20040205538A1 (en) Method and apparatus for online integration of offline document correction
US10715699B2 (en) Information processing apparatus
CN108509393A (en) A kind of method and apparatus of edit text message
Bagley et al. Editing images of text
US20150089335A1 (en) Smart processing of an electronic document
JP2008193580A (en) Information processing apparatus
JP2006040263A (en) Handwritten input for asian language
JP6561876B2 (en) Information processing apparatus and program
US10659654B2 (en) Information processing apparatus for generating an image surrounded by a marking on a document, and non-transitory computer readable recording medium that records an information processing program for generating an image surrounded by a marking on a document
JP2006072877A (en) Document editing apparatus, document editing method, document editing program, and its recording medium
JP4919521B2 (en) Character input method and input character proofreading method
JP6489041B2 (en) Information processing apparatus and program
Cohen Take Control of PDFpen
JPH0451871B2 (en)
JP2005167522A (en) Printing system
JP2001184349A (en) Device and method for editing document and recording medium
JP2024062590A (en) Image processing system, control method for image processing system, and program
JPH04293185A (en) Filing device
JP2005004738A (en) Editing system, editing method, and program
JPH07129710A (en) Method and device for filing document of image data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180907

RJ01 Rejection of invention patent application after publication