CN104050155A - Text editing device and method - Google Patents

Text editing device and method Download PDF

Info

Publication number
CN104050155A
CN104050155A CN201410309337.0A CN201410309337A CN104050155A CN 104050155 A CN104050155 A CN 104050155A CN 201410309337 A CN201410309337 A CN 201410309337A CN 104050155 A CN104050155 A CN 104050155A
Authority
CN
China
Prior art keywords
bitmap
display
word
input
module
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
CN201410309337.0A
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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201410309337.0A priority Critical patent/CN104050155A/en
Publication of CN104050155A publication Critical patent/CN104050155A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a text editing device and method. By means of the text editing device and method, texts can be zoomed and displayed at a pixel level. The text editing device comprises an input monitoring module, a character bitmap generation module, a display bitmap generation module and a bitmap zoom and display module, wherein the input monitoring module is used for monitoring user input operation and obtaining input characters; the character bitmap generation module is used for creating a bitmap and drawing the characters on the bitmap according to the attributes of the characters so as to generate character bitmaps; the display bitmap generation module is used for drawing the multiple character bitmaps onto a complete bitmap according to the arrangement mode of the characters so as to generate a display bitmap; the bitmap zoom and display module is used for processing the display bitmap according to specified zoom factors and then playing the processed display bitmap so that a user can preview the display bitmap. According to the text editing device and method, bitmap zoom and display can be achieved, and the user can conveniently and accurately debug the edited characters in the text editing process; the edited characters can correspond to true pixels of a target display screen, and the text editing process when the target display screen plays the texts is simplified; the text data structure is flexible to store and can be conveniently stored in the form of various bitmaps for playing and display.

Description

Text editing apparatus and method for editing text
Technical field
The present invention relates to text editing technical field, be specifically related to a kind of text editing apparatus and a kind of method for editing text.
Background technology
Display screen is very common aspect word broadcasting at present, but different clients is not quite similar to the broadcasting text effects of display screen, require that also form is different, for meeting word, play the different demand of form, a lot of people have made a lot of effort aspect copy editor, make copy editor can present to easily user and use.
Can there are the following problems while using simple TextBox control that Windows operating system provides to carry out copy editor in prior art: (a) TextBox control is only supported input characters, can not show the result of broadcast of edited word on display screen; And (b) TextBox control can not arrange separately the foreground of word and background colour, can only unify to arrange.
And while using RichTextBox control that Windows operating system provides to carry out copy editor in prior art, this RichTextBox control can support preview to work as the word result of broadcast of pre-editing, and supports single word to be carried out to the setup of attributes such as color, font size, font style to make up the deficiency of TextBox control; But because copy editor compares comparatively dense with the display screen matrix of computer system, and the pixel interval of target display screen of finally playing word is larger, so the broadcasting display effect of the word that RichTextBox control still can not embody editor completely on target display screen (for example the position of each word on target display screen, and the pixel that the spaced pixels between word is counted or each word occupies is how many).
Therefore, in prior art due to the result of broadcast of the word that cannot embody editor on the final target display screen of playing, if desired get a desired effect, may need repeatedly to transmit lteral data to target display screen and repeatedly adjust the attributes such as text point, color, size; The complexity that allows copy editor's process become, is not easy operation.
Summary of the invention
Therefore, the technological deficiency existing for overcoming prior art, the embodiment of the present invention proposes a kind of text editing apparatus and comprises: module is monitored in input, and monitoring users input operation is to obtain the word of input; Character bitmap generation module, creates bitmap and word is plotted on bitmap with generating character bitmap according to its attribute; Display bitmap generation module, is plotted to a plurality of institutes bitmap on one complete bitmap to generate display bitmap according to the arrangement mode of word; And bitmap Zoom display module, according to the display bitmap after playback process after appointment zoom factor processes and displays bitmap, supply user's preview.
In one embodiment of the invention, above-mentioned input monitoring module comprises keyboard input monitoring module.
In one embodiment of the invention, in above-mentioned text editing apparatus, monitor module listen to word delete command when input, display bitmap generation module is deleted corresponding word from complete bitmap.
In addition, the embodiment of the present invention proposes a kind of method for editing text, is executed in computer system, and it comprises step: monitoring users input operation is to obtain the word of input; Create bitmap and word is plotted on bitmap with generating character bitmap according to its attribute; A plurality of character bitmaps are plotted on a complete bitmap to generate display bitmap according to the arrangement mode of word; And supply user's preview according to the display bitmap after playback process after appointment zoom factor processes and displays bitmap.
In one embodiment of the invention, above-mentioned monitoring users input operation comprises the input of monitoring keyboard data to obtain the step of the word of input.
In one embodiment of the invention, in above-mentioned method for editing text, when listening to word delete command, from described complete bitmap, delete corresponding word.
Therefore, the embodiment of the present invention can realize bitmap convergent-divergent shows, has facilitated user's accurate debugging to edited word when text editing; The text effects that can realize editor is corresponding with target display screen real pixel, has simplified the editing process to text when target display screen is play text; And text data structure storage flexibly, is conveniently stored as various bitmaps and plays demonstration.
By the detailed description below with reference to accompanying drawing, it is obvious that other side of the present invention and feature become.But it should be known that the only object design for explaining of this accompanying drawing, rather than as the restriction of scope of the present invention, this is because it should be with reference to additional claim.Should also be appreciated that, unless otherwise noted, the unnecessary accompanying drawing of drawing to scale, they only try hard to illustrate conceptually structure described herein and flow process.
Accompanying drawing explanation
Fig. 1 is the module diagram of a kind of text editing apparatus of the embodiment of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
One of fundamental purpose of the present invention is to solve: during copy editor, text effects carries out the problem of Zoom display, be convenient to embody better edited word in the result of broadcast of target display screen, by being edited word, undertaken accurately debugging and providing convenience, and optimized copy editor's mode.
Particularly, refer to Fig. 1, the module diagram of its a kind of text editing apparatus that is the embodiment of the present invention.The text editing apparatus 10 of the embodiment of the present invention can be realized by the text editing control that is installed on computer system, text edit control is referred to as to TextEditUC herein, and its function realizing is as follows:
(a) realize the function that receives keyboard input characters;
(b) realize each word according to its function of the generation bitmap such as attribute such as writing style, font size size, color independently;
(c) realize and the bitmap of a plurality of words to be carried out to calculating and plotting according to arrangement mode become a complete bitmap to obtain the function of display bitmap;
(d) realize the function that display bitmap is carried out to convergent-divergent displaying, the display bitmap after convergent-divergent is plotted on control for user's preview; For example carry out display bitmap and amplify demonstration, the pixel that is also about to utilize a plurality of pixels to represent an original image shows.
Therefore, the function realizing based on TextEditUC text editing control, the text editing apparatus 10 of the embodiment of the present invention can as shown in Figure 1, comprise: module 11, character bitmap generation module 13, display bitmap generation module 15 and bitmap Zoom display module 17 are monitored in keyboard input.Wherein, keyboard input is monitored module 11 data that for example responsible monitoring keyboard is inputted to obtain the word of input; Character bitmap generation module 13 is for example responsible for according to the bitmap that generates single word after the property calculation of single word to obtain character bitmap, and the attribute of word comprises the attributes such as font style, size, color herein; Display bitmap generation module 15 is for example responsible for the character bitmap that character bitmap generation module 13 is generated, and according to the arrangement mode of each word, calculates and generates a complete bitmap with the display bitmap of all words of obtaining comprising final demonstration; Bitmap Zoom display module 17 is for example responsible for display bitmap to carry out Zoom display for user's preview text effects according to zoom factor.
Below the principle that realizes of the modules of the text editing apparatus to the embodiment of the present invention 10 11,13,15 and 17 is elaborated:
(B1) module 11 is monitored in keyboard input: the input of for example monitoring keyboard button data with the existing TextBox control of Windows; In addition, it also can judge whether to have inputted backspace (deletion) order according to the input of keyboard data.
(B2) character bitmap generation module 13: it is responsible for monitoring the word size of input in module 11 and creating bitmap according to calculating keyboard inputs such as the attribute of word such as font style, size, colors this word is plotted on bitmap according to its attribute; For example, if what module 11 inputs were monitored in keyboard input is not that Word message (enter key) does not process, and the data of keyboard input monitoring module 11 are emptied, wait for the word that receive next time.
(B3) display bitmap generation module 15: its bitmap of being responsible for single word that character bitmap generation module 13 is generated is according to the arrangement mode of word, are plotted on a complete bitmap display bitmap of all words to obtain comprising final demonstration; If these display bitmap generation module 15 inputs is the character bitmap that character bitmap generation module 13 generates, on complete bitmap, appends and draw this word; For example, if 15 inputs of display bitmap generation module is that the word delete command (backspace) listening in module 11 is monitored in keyboard input, on complete bitmap, delete corresponding word.
(B4) bitmap Zoom display module 17: its display bitmap of being responsible for that display bitmap generation module 15 is generated is drawn and is presented on control after processing according to zoom factor, the display effect of the word of inputting for user's preview on target display screen.Suppose need to represent that a pixel on target display screen carries out word demonstration to allow user's preview to the character display effect being similar on target display screen with five pixels on text editing apparatus 10, zoom factor can be made as 500%; It should be noted that, herein only for for example, be not used for limiting the present invention.
Based on the above detailed description to the text editing apparatus 10 of the embodiment of the present invention, can also summarize a kind of method for editing text of being carried out in computer system by text editing control TextEditUC, it for example comprises step: monitoring users input operation is to obtain the word of input; Create bitmap and word is plotted on bitmap with generating character bitmap according to its attribute; A plurality of character bitmaps are plotted on a complete bitmap to generate display bitmap according to the arrangement mode of word; And according to specifying after zoom factor processes and displays bitmap the display bitmap after playback process for user's preview.Further, monitoring users input operation comprises the input of monitoring keyboard data to obtain the step of the word of input; And when listening to word delete command, also can carry out the step of deleting corresponding word from complete bitmap.
In addition, it should be noted that, the text editing apparatus of the embodiment of the present invention and the character input modes in method are not limited to keyboard input, can also be existing other input modes, for example, adopt touch-screen, soft keyboard, mouse to copy stickup etc.In addition, the word of mentioning in the embodiment of the present invention can be Chinese character, English alphabet, symbol, numeral etc., but the present invention is not as limit.
In sum, the embodiment of the present invention can realize bitmap convergent-divergent shows, has facilitated user's accurate debugging to edited word when text editing; The text effects that can realize editor is corresponding with target display screen real pixel, has simplified the editing process to text when target display screen is play text; And text data structure storage flexibly, is conveniently stored as various bitmaps and plays demonstration.
Applied specific case herein text editing apparatus of the present invention and square ratio juris and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention; all will change in specific embodiments and applications; in sum, this description should not be construed as limitation of the present invention, and protection scope of the present invention should be as the criterion with appended claim.

Claims (6)

1. a text editing apparatus, is characterized in that, comprising:
Module is monitored in input, and monitoring users input operation is to obtain the word of input;
Character bitmap generation module, creates bitmap and described word is plotted on bitmap with generating character bitmap according to its attribute;
Display bitmap generation module, is plotted to a plurality of described character bitmaps on one complete bitmap to generate display bitmap according to the arrangement mode of word; And
Bitmap Zoom display module, according to specifying zoom factor to process after described display bitmap the display bitmap after playback process for user's preview.
2. text editing apparatus as claimed in claim 1, is characterized in that, described input is monitored module and comprised keyboard input monitoring module.
3. text editing apparatus as claimed in claim 1, is characterized in that, monitors module listen to word delete command when described input, and described display bitmap generation module is deleted corresponding word from described complete bitmap.
4. a method for editing text, is executed in computer system, it is characterized in that, comprises step:
Monitoring users input operation is to obtain the word of input;
Create bitmap and described word is plotted on bitmap with generating character bitmap according to its attribute;
A plurality of described character bitmaps are plotted on a complete bitmap to generate display bitmap according to the arrangement mode of word; And
According to specifying zoom factor, process after described display bitmap the display bitmap after Graphics Processing for user's preview.
5. method for editing text as claimed in claim 4, is characterized in that, described monitoring users input operation comprises the input of monitoring keyboard data to obtain the step of the word of input.
6. method for editing text as claimed in claim 4, is characterized in that, also comprises step:
When listening to word delete command, from described complete bitmap, delete corresponding word.
CN201410309337.0A 2014-07-01 2014-07-01 Text editing device and method Pending CN104050155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410309337.0A CN104050155A (en) 2014-07-01 2014-07-01 Text editing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410309337.0A CN104050155A (en) 2014-07-01 2014-07-01 Text editing device and method

Publications (1)

Publication Number Publication Date
CN104050155A true CN104050155A (en) 2014-09-17

Family

ID=51503009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410309337.0A Pending CN104050155A (en) 2014-07-01 2014-07-01 Text editing device and method

Country Status (1)

Country Link
CN (1) CN104050155A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824485A (en) * 2015-01-05 2016-08-03 珠海金山办公软件有限公司 Textbox display method and device
CN106844302A (en) * 2017-03-30 2017-06-13 掌阅科技股份有限公司 E-book page display method, device and terminal device
CN107038991A (en) * 2017-05-10 2017-08-11 西安诺瓦电子科技有限公司 Spliced display screen screen configuration method and device and display screen control card
CN107193509A (en) * 2017-04-27 2017-09-22 天津市捷威动力工业有限公司 A kind of method for realizing any Windows fonts Chinese character printing
CN108279964A (en) * 2018-01-19 2018-07-13 广州视源电子科技股份有限公司 The implementation method and device that text control, mask for copy editor render

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761976A (en) * 2003-04-10 2006-04-19 国际商业机器公司 Enhanced readability with flowed bitmaps
CN101699426A (en) * 2009-11-06 2010-04-28 上海传知信息科技发展有限公司 Document format conversion system and method
CN102479036A (en) * 2010-11-30 2012-05-30 汉王科技股份有限公司 Method and device for displaying word size of document
WO2012142730A1 (en) * 2011-04-21 2012-10-26 Xie Jingxiang Method and device for word processing
CN103049227A (en) * 2011-10-17 2013-04-17 山东新北洋信息技术股份有限公司 Control method and device for image scaling printing and printing system
CN103559271A (en) * 2013-11-06 2014-02-05 飞歌康采(北京)软件科技有限公司 Method for generating bitmap font library with gray level

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761976A (en) * 2003-04-10 2006-04-19 国际商业机器公司 Enhanced readability with flowed bitmaps
CN101699426A (en) * 2009-11-06 2010-04-28 上海传知信息科技发展有限公司 Document format conversion system and method
CN102479036A (en) * 2010-11-30 2012-05-30 汉王科技股份有限公司 Method and device for displaying word size of document
WO2012142730A1 (en) * 2011-04-21 2012-10-26 Xie Jingxiang Method and device for word processing
CN103049227A (en) * 2011-10-17 2013-04-17 山东新北洋信息技术股份有限公司 Control method and device for image scaling printing and printing system
CN103559271A (en) * 2013-11-06 2014-02-05 飞歌康采(北京)软件科技有限公司 Method for generating bitmap font library with gray level

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824485A (en) * 2015-01-05 2016-08-03 珠海金山办公软件有限公司 Textbox display method and device
CN105824485B (en) * 2015-01-05 2019-03-12 珠海金山办公软件有限公司 A kind of method for displaying textbox and device
CN106844302A (en) * 2017-03-30 2017-06-13 掌阅科技股份有限公司 E-book page display method, device and terminal device
CN106844302B (en) * 2017-03-30 2020-07-28 掌阅科技股份有限公司 Electronic book page display method and device and terminal equipment
CN107193509A (en) * 2017-04-27 2017-09-22 天津市捷威动力工业有限公司 A kind of method for realizing any Windows fonts Chinese character printing
CN107038991A (en) * 2017-05-10 2017-08-11 西安诺瓦电子科技有限公司 Spliced display screen screen configuration method and device and display screen control card
CN107038991B (en) * 2017-05-10 2019-12-24 西安诺瓦星云科技股份有限公司 Splicing type display screen configuration method and device and display screen control card
CN108279964A (en) * 2018-01-19 2018-07-13 广州视源电子科技股份有限公司 The implementation method and device that text control, mask for copy editor render

Similar Documents

Publication Publication Date Title
CN111008520B (en) Annotating method and device, terminal equipment and storage medium
US8005316B1 (en) System and method for editing image data for media repurposing
CN104050155A (en) Text editing device and method
US20150121232A1 (en) Systems and Methods for Creating and Displaying Multi-Slide Presentations
US20150121189A1 (en) Systems and Methods for Creating and Displaying Multi-Slide Presentations
US9836203B2 (en) Grid-based visual design environment
CN105245937A (en) Video scene control system and method
TWM532079U (en) System and apparatus for edition of previewing images
CN108427589B (en) Data processing method and electronic equipment
US9927968B2 (en) Move of object between pages of editable document
CN102598676A (en) Stereoscopic overlay offset creation and editing
CN110796712A (en) Material processing method, device, electronic equipment and storage medium
CN104298721A (en) Split screen layout editing method for any number of objects in on-line courseware making based on Web
CN113093960A (en) Image editing method, editing device, electronic device and readable storage medium
US20140282090A1 (en) Displaying Image Information from a Plurality of Devices
US10042528B2 (en) Systems and methods of dynamically rendering a set of diagram views based on a diagram model stored in memory
CN105094365A (en) Drawing-type input method and device and input method system
CN111428452B (en) Annotation data storage method and device
CN105808036A (en) Quick resource interaction method and apparatus for electronic whiteboard software
CN111510646A (en) Video display method, display device, computer equipment and medium of spliced screen
JP2009187308A (en) Display controller, display control method, program, and storage medium
US10146763B2 (en) Renderable text extraction tool
US20200264763A1 (en) Non-transitory computer-readable medium storing an extra information superposition program, extra information superposition method, and extra information superposition nethod, and extra information superposition device
JP2013218406A (en) Timing editing device, timing editing method, and computer program
KR101145655B1 (en) Method for editing layer of display contents to be displayed in digital signage and apparatuses using the same

Legal Events

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

Application publication date: 20140917

RJ01 Rejection of invention patent application after publication