CN117933187A - Automatic online editing and typesetting design method and system thereof - Google Patents

Automatic online editing and typesetting design method and system thereof Download PDF

Info

Publication number
CN117933187A
CN117933187A CN202310368349.XA CN202310368349A CN117933187A CN 117933187 A CN117933187 A CN 117933187A CN 202310368349 A CN202310368349 A CN 202310368349A CN 117933187 A CN117933187 A CN 117933187A
Authority
CN
China
Prior art keywords
module
typesetting
editing
sub
input
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
CN202310368349.XA
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202310368349.XA priority Critical patent/CN117933187A/en
Publication of CN117933187A publication Critical patent/CN117933187A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention discloses an automatic online editing and typesetting system, which comprises: input means for inputting characters and commands; computer means for controlling the operational functioning of the system; the display device is used for displaying the editing and typesetting results in real time; the character creating system and the character library are used for providing characters for the editing and typesetting system; I/O interface means; the system comprises an input module, a display module, an editing module and a typesetting module, wherein the input module is used for decoding characters and commands input by the input device. The invention adds in scientific typesetting, can intuitively and conveniently complete the editing and typesetting work of complex mathematical formulas, chemical structural formulas, staff, and the like, provides simplified and convenient typesetting operation interfaces for users, simultaneously automatically and synchronously completes the processing of corresponding texts by a system, integrates a plurality of traditional typesetting processes of input, editing, typesetting and output, and can process and generate output effects with different precision requirements.

Description

Automatic online editing and typesetting design method and system thereof
Technical Field
The invention relates to the technical field of typesetting design, in particular to an online automatic editing typesetting design method and an online automatic editing typesetting design system.
Background
While the original authors and editors always use manual work to design and edit books/newspapers/periodicals, the original electronic publishing system only assists operators to operate and realize layouts word by word, line by line and page by page, such as 'Pagemake' explicitly indicates that pages are used, and 'QuarkXpress' is convenient and concrete when single pages are made, although the pages can be made, one page is always needed, and the electronic publishing system is called as an 'operation-oriented' system, so far, no 'operation-oriented' system is available for the whole books/the whole newspapers/the whole periodicals, and the invention is a 'design-oriented' method and system.
The 'operation-oriented' system adopts a reverse process from bottom to top, so that unified design and unified modification and adjustment are not facilitated, repeated modification between authors and editors and repeated modification between operators are often performed, the investigation work is very tedious and complex, the publishing and editing period is greatly prolonged, the process is not beneficial to the rapid requirements of the current information society, and the process is not suitable for the new process of online paperless publishing.
Disclosure of Invention
Based on the technical problems existing in the background technology, the invention provides an online automatic editing and typesetting design method and a system thereof.
The invention provides an automatic online editing and typesetting system, which comprises: input means for inputting characters and commands; computer means for controlling the operational functioning of the system; the display device is used for displaying the editing and typesetting results in real time; the character creating system and the character library are used for providing characters for the editing and typesetting system; I/O interface means; the system is characterized by comprising an input module, a display module, an editing module and a typesetting module, wherein the input module is used for decoding characters and commands input by the input device; the display module is used for taking out related characters from the character making system and the character library for display processing according to the output of the input module; the editing module is used for editing the content displayed by the display under the control of the command decoded by the input module; and the typesetting module is used for typesetting the characters and the figures input by the input device under the support of the typesetting rule knowledge base under the control of the command decoded by the input module.
Preferably, the input module includes: the picture input sub-module is used for digitizing the picture information input by the input device; the character input sub-module is used for selecting the input scheme of the characters; the position input sub-module is used for receiving a command which is input by the input device and used for controlling the position of the character and the graph; the control command input submodule is used for receiving editing, typesetting or display commands input by the input device; and the decoding processing general control module is used for receiving the output of the sub-modules (310-313) and performing decoding processing.
Preferably, the editing module includes: a plurality of operation sub-modules (315, 316, 317, 318, 319, and 320) for performing picture editing, image moving, copying, deleting, inserting, and font size changing editing operations required by an operator in response to a decoding command of the decoding process master module; and the processing sub-modules (321, 322, 323, 324, 325 and 326) are used for synchronously executing the operations of logging in, deleting and changing the computer text in response to the operation results of the operation sub-modules.
Preferably, the typesetting module comprises; the typesetting sub-modules are used for responding to the decoding command of the decoding processing master control module and executing the mathematical formula, the text page, the dot picture, the chemical structural formula, the staff and the line and drawing typesetting operation required by an operator; and a plurality of typesetting text processing sub-modules (333, 334, 335, 336, 337 and 338) for synchronously executing corresponding text login, deletion and change operations in response to the operation result of the corresponding typesetting sub-modules.
Preferably, the text processing sub-modules (321-326) and typesetting text processing sub-modules (333-338) in the editing module and typesetting module respectively comprise a random access memory for storing the results of the login, deletion and change operations on the text records.
Preferably, the display module includes: the net point graphic display sub-module is used for sending the picture information into the graphic display buffer memory for display; the line graph display sub-module is used for performing line graph calculation and sending calculation data to the graph display buffer memory; the English character display sub-module is used for designating the display position of the characters, inquiring about the condition of processing the display characters from the character making system and the character library, and then sending the font information into the graphic display buffer memory; the Chinese character display sub-module is used for determining the display position, inquiring the fonts of the font library and sending the font information into the graphic display buffer memory; the image deleting and scaling processing sub-module is used for taking out the original image data from the image display buffer memory to carry out logic operation or continuously reducing or enlarging the original image data according to the proportion, and then sending the original image data into the image display buffer memory.
The automatic online editing and typesetting design method comprises the following steps:
s1, inputting characters and commands through an input device;
S2, decoding the input characters and commands by an editing and typesetting processing device, and controlling the characters by the decoded commands to edit or typeset and display the characters;
and S3, displaying the processing result of the editing and typesetting processing device in real time.
The method for designing the automatic editing and typesetting on the network further comprises the steps of logging in, deleting or changing the corresponding text records and storing the operation results corresponding to the results of various editing or typesetting operations.
Preferably, the typesetting process includes: inputting a front-section typesetting command of a mathematical formula by an input device; inputting a switching command by an input device; and inputting a rear-stage typesetting command of the mathematical formula by an input device.
The system facing the design adopts a forward process from top to bottom consistent with the actual publishing process, which is very beneficial to unified design and unified adjustment between the author and the editor. The system also specially designs an interactive editing auxiliary design system and an automatic layout generation system, greatly simplifies the editing design operation and thoroughly replaces the typesetting operation of operators.
In order to realize the design process of 'from top to bottom', the invention originally designs that an article F (or independent picture news) in the order of publication forms a main chain structure (as shown in figure 23).
In order to facilitate the creative and editing work of editing, the invention independently describes the version core format V occupied by a corresponding article and forms a mapping with the article; while also describing independently the format S employed corresponding to the article. (the format for the fields is described in F). Because of the novel structure, the editing can stand at the height of a book/a newspaper/a our publication to flexibly design and describe which articles F to publish, and each article can adopt a specific format V and a specific format S, in order to further improve the editing efficiency and simplify the editing operation, the invention also provides an intuitive editing aided design platform for the editing, namely the WYSIWYG. The layout is arranged comprehensively according to the editing requirement by adopting a topology method, various layouts are automatically creatively selected, and the editing surface can intuitively perform local layout adjustment and modification until the layout is designed and finalized.
The invention discloses an automatic layout generation and interpretation platform, which is used for realizing a layout through the automatic layout generation and interpretation platform according to V, S, F of a determined layout in order to meet the layout requirement. The mathematical module, the chemical module, the music score module, the chess and card module and the like belong to scientific literature, books and periodicals typesetting, the scientific literature, books and periodicals and the like, and the difficulty of typesetting is very high and the efficiency is very low because the mathematical and physicochemical formulas and the chemical structural formulas are included, a skilled type typesetter can only discharge three and four complicated scientific and technological boards in one day, the comprehensive efficiency is only one and two boards, and the period is greatly prolonged by three times of proofreading and revising, so that the publication of the scientific and periodicals becomes a great problem.
The invention aims to provide a scientific typesetting system and a scientific typesetting method, wherein an operator can flexibly and conveniently edit and typeset characters, mathematical formulas, chemical structural formulas, staff and the like through a plurality of simple commands in face of the content displayed by a display screen; the invention also aims to provide a system which can be used as the front end of a photo typesetter and can also be used for editing and typesetting documents and papers; the third object of the present invention is to provide a scientific typesetting system integrating input, editing, modification, typesetting and proofing; still another object of the present invention is to provide a scientific typesetting system that outputs different resolutions according to different user requirements, but the formats are completely consistent; the invention further provides a simple and convenient editing and typesetting method, and an operator can directly obtain the display with an exact format only by facing the display and operating one step; the invention further aims to provide a scientific typesetting system and a scientific typesetting method, wherein in the operation process, a user faces an intuitive graphical operation interface, and the system automatically and synchronously completes corresponding processing of texts along with the operation of the user.
According to the online automatic editing and typesetting design method and system, a simple, visual and convenient operation interface is provided for a user, and the effects of instant typing and instant discharging can be achieved no matter the characters, or the mathematical formulas, the chemical structural formulas and the like;
according to the system and the method, the typesetting operation of complex mathematical formulas and chemical structural formulas is simplified fundamentally, the input is easy, the typesetting is easy, the modification is easy, and the technological typesetting efficiency is greatly improved;
According to the system and the method, the conventional printing process and equipment can be partially or even completely replaced, the environment is improved, and energy and manpower are saved;
according to the system and the method, editing and typesetting can be performed by means of graphic pulling, graphic moving, graphic examination shell, continuous scaling and the like, so that the flexible and free practical effect is achieved;
according to the system and the method, the addition, deletion, modification and conversion of the common character text are combined with graphic editing means such as 'moving, examination shell, zooming, superposition, multi-layer display, color processing, window technology', and the like, so that abundant and convenient modification means are provided for users;
According to the system and the method, general scientific research institutions, schools, publishing departments and even individuals can edit and typeset;
According to the system provided by the invention, a plurality of setting modes such as a spherical mouse, step keys, a cross screen red cross line cursor and the like are adopted, so that the purposes of accurately setting, pointing to any position of a screen at will, and obtaining intuitive and convenient operation effects of instant messaging, instant ranking, pointing to which messaging are achieved;
the system and the method have the functions of displaying English and mathematical symbols with high resolution and multiple fonts, and displaying Chinese characters with different sizes of 1-100 pounds in the fonts of Song, black, regular script, imitation and the like;
The system according to the invention adopts the input schemes of Chinese characters, western characters, mathematical symbols and the like, and can input national standard first-level and second-level Chinese characters and letter symbols, 94 ASCII basic characters, mathematical symbols, complex mathematical formulas, chemical structural formulas (benzene rings), diagrams, tables and the like;
the system and the method not only provide editing functions such as adding, deleting, turning, inserting, changing and the like for operators, but also provide special editing functions such as font conversion, automatic enlargement and reduction of font sizes or layouts, graphic moving, copying and the like, so that the operation is simple, convenient and visual;
the system and the method can typeset general literature theoretical books, complex digital and scientific literature books and periodicals, and newspaper, magazine and the like with combined figures and texts;
According to the system and the method, various fonts, various word size mixed rows, chinese and foreign language mixed rows, character row centering, left-right alignment, even blank processing, punctuation mark row head and tail forbidding row and segmentation forbidding automatic processing, english word automatic syllable dividing, automatic generation hyphen processing, multi-column article typesetting, and arbitrary cross row transferring processing;
according to the system and the method, the 'three-section' typesetting operation of the mathematical formula can be realized, and the typesetting of complex mathematical formulas such as multi-layer summation, multi-layer division, multi-layer limit, multi-layer product-seeking, multi-layer upper and lower label, multi-layer root, multi-layer division and edge division, vector matrix, determinant matrix and the like can be completed by an operator at will;
According to the system and the method, graphic functions and various editing means are adopted in typesetting of the chemical structural formula, so that the typesetting problems of chemical benzene rings are solved;
According to the system and the method, the layout is especially visual and convenient to modify, the version displayed on the screen can be directly modified at any time, and the method points to which to change, so that the traditional method for modifying the text is broken.
In order to embody the effect of editing and typesetting by the system and the method, the file and the attached drawings of the patent application all adopt the system and the method for editing and typesetting and printout.
Drawings
FIG. 1 is a general block diagram of the present invention;
FIG. 2 is a block diagram of a generic assistance design platform of the present invention 101;
FIG. 3 is a block diagram of a general compilation editing approval platform of the present invention 102;
FIG. 4 is a block diagram of a general automatic typesetting interface of 103 of the present invention;
FIG. 5 is a block diagram of a 104QB interface operation module according to the present invention;
FIG. 6 is a block diagram of a 105QB function explanatory balance weight according to the present invention;
FIG. 7 is a block diagram of a 106QB dynamic balance module according to the present invention;
FIG. 8 is a block diagram of a 107 output interface module according to the present invention;
FIG. 9 is a block diagram of a primary test module for a 101-01 layout according to the present invention;
FIG. 10 is a block diagram of an editing design interface module of the present invention 101-02;
FIG. 11 is a block diagram of an automated auxiliary creative module according to the present invention 101-03;
FIG. 12 is a block diagram of an edit approval module of the present invention 102-01;
FIG. 13 is a block diagram of a 102-02 layout modification operation platform of the present invention;
FIG. 14 is a block diagram of a 103-01FVS description creation module of the present invention;
FIG. 15 is a block diagram of the interface module corresponding to QB and 103-02 of the present invention;
FIG. 16 is a block diagram of a segment 106-01 row balancing module of the present invention;
FIG. 17 is a block diagram of a 106-02 layout balancing module of the present invention;
FIG. 18 is a block diagram of a color balancing module of the present invention 106-03;
FIG. 19 is a block diagram of a layout balancing module of the present invention 106-04;
FIG. 20 is a block diagram of a 107-01 page image generation module according to the present invention;
FIG. 21 is a block diagram illustrating an EPS description generation module of the invention 107-02;
FIG. 22 is a block diagram of a FVS description generation module of the present invention 107-03;
FIG. 23 is a block diagram of QB data according to the present invention;
FIG. 24 is a flowchart of a QB plate reporting process of the present invention;
FIG. 25 is a flowchart of a QB book/periodical process according to the present invention;
FIG. 26 is a schematic illustration of a generic system initial test interface of the present invention;
FIG. 27 is a layout specification interface for the overall editing system of the present invention;
FIG. 28 is a QB plate generation interface of the present invention;
FIG. 29 is a schematic view of a QB version of the data structure of the present invention;
FIG. 30 is a schematic diagram of a QB report data structure according to the present invention;
FIG. 31 is a general entry interface of the general authoring system of the present invention;
FIG. 32 is a QB messaging operation interface of the present invention;
FIG. 33 is a QB book plate operator interface of the present invention;
FIG. 34 is a schematic block diagram illustrating a scientific typesetting system according to the present invention;
FIG. 35 shows a keyboard surface arrangement comprised by the input device 1 of FIG. 1;
FIG. 36 is a table of ASCII codes versus mathematical symbols;
Fig. 37 is a specific configuration diagram of the editing and typesetting processing apparatus 3 in fig. 1;
FIG. 38 is a block diagram of the input module 301, editing module 302, typesetting module 303, and display module 304 of FIG. 4;
FIG. 39 is a specific block diagram of text processing sub-modules 321-326 and 333-338 in the editing module 302 and typesetting module 303;
FIG. 40 is a flow diagram of the picture input sub-module 310;
FIG. 41 is a flow diagram of the character input sub-module 311;
FIG. 42 is a workflow diagram of the position input sub-module 312;
FIG. 43 is a flow diagram of control command input sub-module 313;
FIG. 44 is a flowchart of the procedure of the decode process master 314;
FIG. 45 is a flow diagram of the picture editing sub-module 315;
FIG. 46 is a flow chart of the image shift operation submodule 316;
FIG. 47 is a flow chart of the image copy submodule 317;
FIG. 48 is a flow diagram of the image deletion operations sub-module 318;
FIG. 49 is a flow diagram of the image insertion operations submodule 319;
FIG. 50 is a flow diagram of the font size changing sub-module 320;
FIG. 51 is a flow diagram of the mathematical formula typesetting sub-module 327;
FIG. 52 is a detailed illustration of a "three-stage" typesetting of a digital formula according to the present invention;
FIG. 53 is a program flow diagram of text page layout sub-module 328;
FIG. 54 is a program flow diagram of the dot picture layout sub-module 329;
FIG. 55 is a program flow diagram of the chemical structure layout sub-module 330;
FIG. 56 is a diagram showing a chemical structural formula according to the present invention;
FIG. 57 is a flow diagram of the staff layout sub-module 331;
FIG. 58 is a flow diagram of the line mapping submodule 332;
FIG. 59 is a flow diagram of a dot picture display sub-module 339;
FIG. 60 is a program flow diagram of the line graphic display sub-module 340;
Fig. 61 is a flowchart of the english character display sub-module 341;
FIG. 62 is a flow diagram of the Chinese character display sub-module 342;
FIG. 63 is a flow diagram of mathematical symbol display sub-module 343;
FIG. 64 is a flow diagram of the image deletion scaling sub-module 344;
FIG. 65 is an explanatory diagram of a command file structure employed by the present invention;
FIG. 66 is a command file format employed by the present invention;
Fig. 67 is a detailed block diagram of the driving module 7.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
Fig. 1 is a schematic block diagram of a scientific typesetting system according to the present invention. Wherein reference numeral 1 denotes an input device (which may be a keyboard or other operator-operable device), 2 denotes an I/O interface circuit, 3 denotes an edit typesetting processing device, 4 denotes a word making system and a word stock, 5 denotes a computer, 6 denotes a display, 7 denotes a driving module, and 8 denotes an external device (which includes a printer, a laser photocopier, and the like). The operation principle and operation process of the scientific typesetting system shown in fig. 1 are as follows. Firstly, an operator inputs contents (characters, mathematical formulas, chemical formulas, symbols and the like) required to be edited and typeset and few control commands with the help of an input device 1 to an editing and typesetting processing device 3 through an I/O interface 2, then the editing and typesetting processing device 3 is controlled by a computer 5 to edit and typeset the input contents required to be edited and typeset, and simultaneously, a pattern is directly displayed on a display 6, then the operator can modify, delete, change, enlarge, reduce and the like the pattern according to the contents displayed on the display 6, and finally the displayed pattern on the display 6, namely the pattern and the contents for finally outputting the printing and platemaking. After the layout and content displayed on the display 6 are determined, the edit and typesetting processing means 3 is controlled by the commands entered by the input means 1 to generate a signal to the driving module 7, and then the driving module 7 controls the computer 5 to drive the external device through the I/O interface 2, when the edit and typesetting processing means 3 performs the typesetting of the chinese characters, the words will be taken from the word building system and the word stock 4, and when there is no word it wants to call in the word stock, the word building system will build the required fonts as required. The character library stores four Chinese characters, nine English characters, a set of mathematical symbols and lace patterns.
As shown in fig. 2, an input device 1 comprises a keyboard surface arrangement which consists of the following parts:
1. English font ASCII code, which is arranged by the original keyboard surface and has the numbers of 0-9, A-Z, a-Z and-! ,.. Etc. 94 characters in total.
2. Greek letters and mathematical symbols, with an ASCII code added to the "" "key, have 94 characters as shown in fig. 3.
3. The Chinese character scheme selection control key (CTRL) +function key F.1-F.4 is used for switching region bit codes, telegraph codes, phonetic codes and five-stroke character codes respectively.
The area code and telegraph code method uses the 4-bit digital key in 0-9 as external code, and uses the calculation and table look-up method to convert them into Chinese character code (2 bytes length).
The phonetic code and five-stroke character pattern scheme adopts 26 key codes of lower case letters a-z as external codes, and then uses table look-up to obtain Chinese character code.
4. As shown in the figure 2 of the drawings, four keys "++++++++++++++++++) the character pointer control keys are respectively used for controlling the character pointer, i.e. pointing to the left, right or up, down character lines;
"≡ → ≡ -;
"" is a row position command key respectively, which can control row centering, left and right alignment and even filling respectively.
Furthermore, no key can be used to change the literal size command at will.
INS is an insert character command key in a row and DEL is a delete character command key in a row.
F11 to F15 and shift+ (F1 to F15) represent summation, product, integral, limit, subscript, root, division, large root, carbon chain, vector function start commands, respectively.
F9 is a command key for "switching" the front character input to the rear character input in the mathematical formula typesetting.
And F8, finishing formula typesetting, and recovering to a command key of text typesetting.
F6 and F7 are control keys that control the superscript and subscript.
"Command" key+ (B, L, D, G, M, V, Z, etc.) indicates typesetting start, column width, column depth, column gap, column number, row spacing, horizontal and vertical commands, respectively.
F1+ (0-9) is used to control font changes and f2+ (0-9) is a control font size change command.
Fig. 3 shows a table of ASCII codes versus mathematical symbols.
Fig. 4 is a specific configuration diagram of the editing and typesetting processing apparatus 3 in fig. 1. Wherein 301 represents an input module for decoding characters, pictures and commands inputted by the input device through the I/O interface 2, so as to distinguish different processing objects according to requirements, the processing result of the input module 301 is sent to an editing module 302, a display module 304 and a typesetting module 303, the display module 304 calls related Chinese characters from the word making system and the word stock 4 according to the processing result of the input module 301 and displays the related Chinese characters on the display 6, meanwhile, the editing module 302 can be controlled by the input device 1 to perform various processes such as adding, deleting, moving, enlarging and shrinking the content displayed on the display 6 in real time, thereby completing modification of the display content, driving the display 6 to display the processed result through the display module 304, and the typesetting module 303 determines typesetting format according to the decoding of the input module 301 and queries rules and requirements of the required typesetting format in the typesetting rule knowledge base 305, so as to perform related processing on the related Chinese characters and display 6 through the display module 304 and display the typesetting format.
Fig. 5 is a block diagram of the input module 301, the editing module 302, the typesetting module 303 and the display 304 in fig. 4, where the input module 301 is composed of a picture input sub-module 310, a character input sub-module 311, a position input sub-module 312, a control command input sub-module 313 and a decoding processing sub-module 314. The picture input sub-module 310 digitizes and stores the picture scan signal input by the I/O interface 2, and the character input sub-module 311 receives and stores the key code input by the keyboard through the I/O interface 2. The position input sub-module 312 may receive the input of the keyboard, the mouse, the light pen, the tablet, the joystick, etc. through the I/O interface 2, so as to obtain the data (2-dimensional coordinate data) of the current operation point, the control command input sub-module 313 also receives the command and parameters for controlling the typesetting input by the keyboard, the mouse, the light pen, or the like through the I/O interface 2, and in the decoding processing sub-module 314, the contents in the picture input sub-module 310 and the character input sub-module 311 are processed, and converted into the corresponding content data codes and formats, and the control commands of the position input sub-module 312 and the control command input sub-module 313 are interpreted, so as to control the internal data codes and different format requirements. For example, when the character input sub-module 311 receives and stores a five-stroke font kanji input scheme, the decoding process general control module 314 converts an external code (key code) received by the character input sub-module 311 into an internal character code according to a rule of five-stroke font under the control of a control command input by an input device (such as a keyboard). Furthermore, the internal data codes and formats obtained by the decoding process general control module 314 are directly sent to the display module 304 to drive the corresponding display sub-modules to make corresponding display on the display 6, for example, if the input device 1 inputs Chinese characters in a five-stroke font scheme, the decoding process general control module 314 obtains internal Chinese character codes after decoding process, and the driving display module 304 displays the typed Chinese characters. However, if the control command is processed by the decode process total control module 314, it should be interpreted first, and then the corresponding sub-modules in the editing module 302 (or the typesetting module 303) and the display module 304 are driven so that the control process required to be performed is intuitively displayed on the display 6, for example, when the decode process total control module 314 receives a command requiring a font change from the control command input sub-module 313, it first interprets the command, then drives the font size changing operation sub-module 320 in the editing module 302, and simultaneously drives the kanji character display sub-module 342 in the display module 304 so that the character of which font is changed is displayed on the display 6. Similarly, if the decoding process master control module 314 receives a control command (such as a segment length requirement) of text typesetting, after the command is interpreted, the text page typesetting sub-module 328 in the typesetting module 303 and the kanji text display sub-module 342 in the display module 304 are driven, so that typesetting processing (such as limiting the segment length to a certain length) required by the typesetting control command is displayed on the display 6. As can be seen from fig. 5, the editing module 302 in fig. 4 includes a picture editing operation sub-module 315, a picture text processing sub-module 321, an image shifting operation sub-module 316, a shifting function text processing sub-module 322, an image copying operation sub-module 317, a copying function text processing sub-module 322, an image deleting operation sub-module 318, a deleting function text processing sub-module 24, an image inserting operation sub-module 319, an inserting function text processing sub-module 325, a font size changing operation sub-module 320, and a font size changing processing sub-module 326.
When the picture editing operation sub-module 315 is driven by the decoding process master control module 314, it will delete, zoom, crop, move, etc. the picture of the picture by means of image editing according to the editing control command, at the same time, the picture text processing sub-module 321 will process the text record of the picture stored therein accordingly, such as deleting the record of the picture (deleting operation), for zooming, the size in the picture record is synchronously modified, and the dot pattern display sub-module 339 in the display module 304 is driven by the picture editing operation sub-module 315 to control the display 6 to display the operation process being performed by the picture editing operation sub-module 315 and the result after the operation process in real time, thus the operator directly sees the operation on the display 6, and the text process performed on the picture is not actually seen by the operator. The method for processing the cultural relics is capable of avoiding the operator from directly carrying out complicated operation on the cultural relics, obtaining a simple and practical visual effect, and enabling the user to operate and use only through simple understanding.
The editing module in fig. 5 works as follows:
The editing control command processed by the decoding process total control module 314 will selectively drive the sub-modules in the editing module 302, the corresponding sub-modules selected to be driven will edit vibration according to the editing control command by using the image editing means, at the same time, the corresponding text processing sub-modules in 321-326 will also perform corresponding synchronous modification processing on the recorded text consisting of 10 parameters and 16 states (the contents of the parameters and the state values stored in each text processing sub-module will be described later), and the selected sub-modules are driven in the display module 304 in the decoding process total control module 314, so that the operation performed by the operation sub-modules and the result of the operation are displayed directly on the display 6 in real time, wherein the picture operation sub-module 315 is selected to be controlled by the control command outputted by the decoding process total control module 314, the scaling, clipping and bit shifting operations of the picture are completed, meanwhile, the picture document processing sub-module 321 performs deletion or modification processing on related parameters and states in the document record of the picture document processing sub-module, and the dot pattern display sub-module 339 in the display module 304 is driven by 315 to display the ongoing operation and the result after the operation of the picture editing operation sub-module 315 on the display 6 in real time in a dot pattern manner, similarly, the image shifting operation sub-module 316 performs image shifting operation under the output selection driving of the decoding processing general control module 314, and the shifting function document processing sub-module 322 synchronously modifies the stored parameters and states according to the operation result of 316 and displays the operation process and the operation result on the display 6 in real time after the synchronous display processing is performed by the corresponding sub-modules in the display module 304, if the moving operation is performed on the chinese character, 316 will drive chinese character display module 342 to perform display processing and display the moving operation process and result on display 6 in real time. The image copy operation sub-module 317 may perform all or part of copy operation on the lines, english, chinese character mathematical symbols, equations, chemical symbols, etc., the whole image, whole section, whole formula, equations, etc., and the copy function text processing sub-module deletes the relevant parameters and states in the stored text records and writes new parameters and state values in response to the operation results, so as to drive the copy operation process and operation results performed by the real-time image copy operation sub-module 317 of the display 6 through the corresponding sub-modules in the display module 04. When the image inserting operation sub-module 319 starts working under the drive of the decoding processing general control module 314, the inserting function text processing sub-module 325 also modifies the stored parameters and state values at the end of the inserting operation, at this time, the inserting function text processing sub-module stores the text records of the parameters and states of the current state after the inserting operation is completed, and the corresponding sub-modules in the display module 304 also synchronously perform the operation processing to enable the display 6 to display the process and the result of the image inserting operation in real time. Similarly, when the font size changing operation submodule is operated, the corresponding font size changing processing submodule 326 also modifies the stored status value and parameter of the related font size according to the operation result of 326. When the font size changing operation is completed, the font size changing processing sub-module 326 stores the changed status and parameter values of the related font size, and the font size displayed on the display 6 at this time is the required font size.
As can be seen from fig. 5, the typesetting module 303 includes a mathematical formula typesetting sub-module 327, a mathematical formula typesetting text processing sub-module 333, a text page typesetting sub-module 328, a text page typesetting text processing sub-module 334, a dot picture typesetting sub-module 329, a dot picture typesetting text processing sub-module 335, a chemical structure typesetting sub-module 330, a chemical structure typesetting text processing module 336, a staff typesetting sub-module 331, a staff typesetting text processing sub-module 337, a line and drawing sub-module 332, and a line and drawing text processing sub-module 338. When one of the typesetting sub-modules is selected for typesetting by the command processed by the decoding processing master control module 314, the typesetting sub-module is supported by the typesetting rule knowledge base 305, different conventions are carried out on different typesetting formats required to be carried out, and when the typesetting sub-modules operate, one of the corresponding typesetting text processing sub-modules 333-338 synchronously carries out login processing on the operation results of the typesetting sub-modules, and meanwhile, the corresponding sub-module in the display module 304 is driven by the sub-module currently carrying out typesetting, carries out corresponding display processing, and displays the typesetting operation process and the results on the display 6 in real time. For example, when the typesetting sub-module 327 is controlled by the command sent from the decoding process general control module 314 to start to operate, it will determine which type of mathematical formulas are typeset (such as summation, limitation, root or division) according to the requirement of the command, query the rule of the typesetting rule knowledge base 305 for the type of formulas, and then input from the input device 1 according to the operator, and the typesetting is controlled by the command decoded and interpreted by the decoding process general control module 314. At the same time, the mathematical formula typesetting text processing sub-module 333 registers the operation result of the mathematical formula typesetting sub-module in its memory in synchronization. Moreover, the corresponding sub-modules in the display module 304 will also perform related display processing simultaneously, so that the whole mathematical typesetting process and the result are displayed on the display 6 in real time, where it should be noted that, the mathematical formula typesetting sub-module 327 not only can typeset a simple mathematical formula of a certain type (such as root formula), but also can perform nested typesetting, that is, can discharge the mathematical formulas (such as summation, then division, etc.) of a plurality of types of mathematical formulas mixed together, for example, the following mathematical formulas:
as far as the composition module 303 is concerned, it is able to perform the following composition functions:
The typesetting of the characters has the following functions: 1. and (5) word size conversion. 2. And (5) font transformation. 3. Chinese and foreign language mixed typesetting treatment is carried out according to a baseline rule. 4. Title processing. 5. The line is processed in the steps of head alignment, tail alignment and play. 6. And (5) head and tail exclusion and segmentation exclusion processing of punctuation mark rows. 7. And the line head, the line tail and the full-lattice mark point symbols automatically replace half-lattice mark point processing. 8. And in the horizontal and vertical arrangement states, the punctuation automatic conversion processing is performed. 9. And (3) uniformly shrinking or uniformly expanding word distance among one row of words, and automatically processing non-uniformly expandable words. 10. The 1/4 space between Chinese character and Western code is automatically generated, and the space is automatically eliminated at the end of line, and the invalid space and the end of line are automatically eliminated. 11. And automatically controlling and processing English, greek, russian, pinyin, international phonetic symbols and other variable word amplitude. 12. The base line position of Western and special mathematical symbols (such as multiple words) is automatically controlled and processed. 13. The western characters are processed across magnitudes. 14. The typesetting treatment and automatic column returning treatment can be arbitrarily performed. 15. And automatically adjusting the row spacing of the rows of the ultrahigh formula, and performing row combination processing. 16. The layout center and column parameters can be arbitrarily designated, and the typesetting is automatically controlled. 17. English words are automatically processed by syllables, and hyphens are automatically generated. 18. And (5) character filling and catalog typesetting. 19. And defining and adopting the tabulated fixed points. 20. The row spacing is arbitrarily increased or decreased. 21. And (5) word overlapping processing and word side, word bottom and word top filling symbol processing. 22. And (5) increasing the word distance processing. 23. And (5) word width setting. 24. And (5) vertical row processing, and arbitrary cross conversion typesetting processing of the horizontal row and the vertical row. 25. And (5) layout specification and display processing.
Typesetting processing functions of the logarithmic equation and the chemical structural formula mainly comprise: 1. summing type superscripts, subscripts and multi-layer processing. 2. Integrating processing (multi-layer). 3. Limit processing (multilayers). 4. Integral processing (multilayers). 5. Superscript, subscript, superscript-subscript processing (multilayers). 6. Root treatment (multilayers). 7. Large root form processing, including continuous multi-layer root form processing. 8. The split type processing comprises multi-layer split type processing such as continuous split type processing and the like. 9. Vector processing. 10. The above formulas intersect and are processed in multiple layers. 11. Carbon chain treatment. 12. And (5) treating various benzene rings. 13. The graphic function, copying and moving are adopted to split the structural formula and the structural formula. 14. Based on the basic functions, complex formulas such as determinant matrixes and the like can be processed by using the positioning key operation. 15. The graph typesetting operation can be conveniently performed by adopting the operations of scribing, copying and moving.
Turning now to the display module 304, it includes a dot graphic display sub-module 339, a line graphic display sub-module 340, an English character display sub-module 341, a Chinese character display sub-module 342, a mathematical symbol display sub-module 343, and an image deletion scaling sub-module 344. The display module 304 is mainly driven by the input module 301, the typesetting module 303 and the editing module 302 to display pictures, characters and the typesetting and editing results thereof, and further display the processed contents in real time through the display 6, wherein the dot pattern display sub-module 339 is used for displaying pictures, the line pattern display sub-module 340 is used for displaying lines and the like, the english character display sub-module 341 is used for displaying english characters, the kanji character display sub-module 342 is used for displaying displayed kanji characters, the image deleting and blooming sub-module 344 is used for displaying displayed images such as deleting and zooming, and for example, when editing or typesetting kanji characters, the edited or typeset characters are displayed by the kanji character display sub-module 342 and then displayed on the display 6.
From the above description, as can be seen from fig. 5, an operator can input a command, a character or a picture to the editing and typesetting processing device 3 through the input device 1, if only a character or a picture is input, the operator can directly process the frame through the display module 304 and then display the processed frame on the display 6, the operator can input the command through the input device 1 according to the displayed content and make modifications such as moving, deleting and the like on the displayed content in real time through the corresponding sub-modules in the editing module 302, and typesetting can also be performed through the corresponding typesetting sub-modules in the typesetting module 303 according to a mathematical formula or other categories. All these operations will be displayed on the display 6 in real time and the displayed content is not text but intuitive graphics, lines, words, mathematical symbols, formulas, etc. Thus, the effect of the instant discharging can be obtained obviously.
Referring to FIG. 6, a specific block diagram of text processing sub-modules 321-326 and 333-338 in the editing module 302 and typesetting module 303 is shown. Wherein, 350 is used for performing corresponding text logging, changing, inserting, deleting and other processing tasks along with the operation results of the editing operation sub-modules 315-320 or the typesetting sub-modules 327-332, the sub-module 350 is used for modifying, recording, deleting and the like the parameters and the state values of the operation objects for the text processing modules 321-326 in the editing module 302, and the sub-module 305 is used for performing logging or changing processing on the operation results of the typesetting sub-modules for the text processing sub-modules 333-338 in the typesetting module 303. 351 represents a random access memory for storing the result of the registration and modification of the text and graphic files sub-module 350, and then outputs the result to the external memory 352 to store the result of the registration and modification in the form of a named file structure, and the external memory 352 may be a hard disk, a floppy disk, a magnetic tape, or a similar recordable medium.
As shown in fig. 7, a flow diagram of the picture input sub-module 310 is shown. The picture scanner scans the picture to make the picture data, thereby creating a picture data file with the name, the scanning line length, the scanning data length and the like of the picture as the first data, and further classifying the picture into a halftone (such as a photo) picture and a continuous tone (such as a line drawing) picture at step 03, wherein the halftone picture is subjected to halftone dot layering processing at step 04 to embody the gray level of the picture so as to increase the stereoscopic impression of the picture. The screen dot layering is realized by a screening algorithm, namely, the exclusive OR logic operation is carried out by adopting the screen dot subgraphs with various angle distribution rules. For continuous tone line pictures, vector format processing is performed. Then, the picture file is stored in the external memory through step 06, and is called by the typesetting module 303 after being processed by the decoding processing general control module 314.
Fig. 8 is a flowchart of the character input sub-module 311. When an operator inputs a key code from an input device (such as a keyboard), the key code is classified and judged in the step 02, if a Chinese character input scheme command is selected, the key code is reclassified in the step 03, and if a region code scheme is adopted, chinese character codes are directly calculated and generated in the step 04 according to an algorithm of entering 1 in each 94-bit Chinese character code region code; if the code scheme is adopted, a Chinese character code is obtained by looking up a table according to the code-Chinese character code comparison table in the step 05; if the Chinese phonetic alphabet is the scheme, a Chinese character code is obtained by step 06 according to the phonetic alphabet code- -the Chinese character code comparison table; if the five-stroke character pattern scheme is adopted, a Chinese character code is obtained by looking up a table according to the five-stroke character pattern root code-Chinese character code comparison table through the step 07; and when the step 02 is classified and judged that the input key code is an English character ASCII code, directly obtaining an ASCII code. The obtained Chinese character codes (accounting for 2 bytes) or ASCII codes (one byte) are processed by the decoding general control processing module 314 and then respectively enter the display module 304, the editing module 302 and the typesetting module 303 for processing.
Fig. 9 is a flowchart showing a position input sub-module 312, in which data for controlling visual positions of typesetting can be input through two input devices, namely, using an input device such as a light pen or a mouse, and using key operations on a keyboard to indicate positions for step sizes and directions. If the position data is input by using the position input device such as the light pen or the mouse, the step 01 is firstly used for classifying and judging, when the mouse selection key is selected for the first time, the step 02 is entered to record a group of position coordinate data (X1, Y1) corresponding to the cursor on the display 6, if the selection key is selected for the second time, the step 03 is entered to record another group of position data (X2, Y2) corresponding to the cursor on the display 6, if the selection key is in the release state 04, the mouse can randomly track and change and record the X and Y values of the current position of the cursor on the display 6, and when the classifying and judging steps 0,1 judge that the Y value exceeds the normal value (the agreed value), the step 05 is entered to pass through the menu selection function. In step 02, a set of position data recorded in 03 and the current X, Y values obtained in 04 and a certain operation function selected in 05 are respectively diverted to the exit for further processing.
If the step keys on the keyboard are selected, the up, down, left and right direction keys are set in advance, and the amount (step length) of increase to the direction is set for each driving, thus the current position X, Y relative to the previous position can be obtained by accumulation calculation, or the absolute position X, Y of the current point relative to the preset origin (namely, the point X is 0 and the Y is recorded as 0) can be calculated.
FIG. 10 shows a control command input sub-module 313 and a program block diagram, wherein the control command can be from different input devices (such as a keyboard, a mouse or a light pen), if a command key code is input from the keyboard, one or more combined command key codes are obtained through step 01, and then the command key codes are translated into a unified control command code with a length of 2 bytes through step 02; if a command is issued from the mouse, the release state is selected at step 03 using a menu selection mode or using a key button on the mouse to generate a predetermined command code.
Fig. 11 is a flowchart showing the procedure of the decoding process master module 314, and the operation procedure is as follows: respectively translating the received Chinese character code or an English character code, a mathematical symbol code, a command control code and the like into unique internal codes at the step 01, classifying the internal codes one by one at the step 02, entering the step 03 to log the internal codes into a text (namely, storing the internal codes into a random access memory) if the internal codes are the character codes, sending the internal codes to a display module 304 for display processing, displaying fonts or graphics, and simultaneously typesetting the internal codes to corresponding sub-modules in a corresponding typesetting module 303; if the picture is the picture, the method proceeds to step 04 to carry out text login according to the requirement of picture text login, and starts a corresponding sub-module 329 in the display module 304 to control so as to carry out image typesetting; if the command is an edit control command, it is classified in step 05, then the corresponding sub-modules 315 to 320 in the edit module 302 are controlled to perform edit operation, and meanwhile, the command is classified and transferred to one of the corresponding typesetting sub-modules 327 to 332 in the typesetting module 303 to control typesetting operation, and similarly, the decoded command is transferred to the display module 304 to control the corresponding display sub-modules so as to perform real-time display on the display 6.
Fig. 12 is a flowchart of a picture editing sub-module 315 for editing a picture file. Firstly, the editing command from the decoding process general control module 314 is classified in step 01, then, according to the classification result, the conventional clipping process is performed on the pictures in step 02, the modification process is performed on the dot hierarchy in step 03, the dirty dot deletion process is performed in step 04, the pixel addition process is performed in step 05, the pixel deletion process is performed in step 06, and the process goes to the exit after the process is completed.
Fig. 13 is a block diagram showing a procedure of the image shift operation sub-module 316, which is divided into an image type and a character type. As shown in the figure, firstly, the images are classified at step 01, if the images are required to be processed in an image mode, a position data positioning 1 is received at step 02, a positioning data2 is received at step 03, then, at step 04, a rectangular frame is formed according to the position data positioning 1 and 2 as diagonal angles, image data corresponding to the rectangular frame is read out from a graphic display buffer zone, whether the current X and Y values are changed by an operator is judged at step 06, if not, the images are in a waiting state, once the images are changed, the images in the previous positions are eliminated through logic operations (such as exclusive OR operation, zero setting and the like), the images are displayed at the current positions at step 08, whether the current positions are determined or not is judged through 09, if not, the changes of the X and Y values are judged at step 06, and the elimination and display operations (the images in the original positions) of the rectangular region images at different positions are repeatedly and alternately performed, so that the effect that the region images are moved by the operator is achieved. If the operator determines the current position once, stopping moving, thereby achieving the purpose that the original area image is moved; if the character mode is adopted, the positions of the fixed point 1 and the fixed point 2 are designated by the step 13, then the positions are searched or images are searched in the text by the step 14, then the step 16 is used for judging whether the current X and Y values are changed, if not, the circulation is carried out, if so, the previous character string or image is eliminated by the step 17, the new character string or image is displayed at the current position, if so, the step 19 is used for judging whether the current position is determined, the steps 16-18 are repeatedly and alternately executed, the effect that the characters or the images are continuously moved by the character mode is realized (the character string or the image group at the original position is cleared) until the current characters or images are left by the step 20 after the position is determined. Through the operation, the invention can singly execute the shifting operation on the crossed characters or the images, which is different from the shifting operation of the image mode, and has the advantages of flexibility and intuitiveness.
Fig. 14 is a program diagram of an image copying sub-module 317, which has the same principle as that of the moving operation sub-module 316, and is divided into two ways, i.e., image copying and character copying, if the image is the image, two-point positioning values are given in steps 02 and 03, whether the operator changes the X and Y values is determined in step 05, if the operator does not change the X and Y values, the operator waits, and once the X and Y values are changed, the image of the previous position is erased in step 06, and the image of the current position is displayed in step 07, so that the moving effect is formed. Then, at step 09, it is determined whether the operator has determined the position of the copied image, if not, the process returns to step 05-07 to achieve the moving effect until once the position is determined, i.e., a copied image is left at the position, at this time, a still moved image moves with the movement of the position operation device (such as a mouse, etc.) operated by the operator, and at step 10, it is determined whether the operator performs the copying again, if so, the process returns to step 05-09 to perform the copying again until the exit is reached when the copying is no longer performed; if a character copying method is adopted, the steps are basically the same as those related to the image moving operation, except that the image erasing, displaying and moving are not the processing of the pixel matrix of the image, but are realized by a character graphic displaying and erasing method, all the modes are utilized, because any one or a plurality of characters or graphics in the character strings or the graphic groups which are overlapped in a crossing way can be taken out, and the image copying operation which is completely the same as the image copying step is realized on the characters.
Fig. 15 is a flowchart showing a procedure of an image deletion operation sub-module 318, which also adopts two modes, namely an image mode and a character mode, when the deletion operation is performed in the image mode, a frame is taken at step 02 (the process is to form a rectangular frame with two points), step 03 takes out the sub-image data G1 corresponding to the frame determined in step 02 from the image buffer, and the data of the sub-image G1 is logically operated corresponding to the original sub-image data through step 04 and then sent back to the image display buffer, thereby achieving the purpose of eliminating the image; if deleting is performed in character mode, step 05 is entered, and the same string of characters or the same group of basic graphics at the same position is logically operated (such as self exclusive OR operation), so that the purpose of eliminating the original string of characters or the group of graphics is achieved.
Fig. 16 is a flow chart showing the image insertion operation sub-module 319, first, a command or character entered into the image insertion operation sub-module is classified, and if inserted in a line, a line portion after the cursor is moved down by a line distance by step 02, and at the off position, the cursor is restored by step 03 and one or more characters or graphics inserted by the operator are received. After the insertion is finished, step 04 automatically connects the downward movement to the position after the insertion, and the original line is kept in an intact state; if the character or the figure is inserted at any position, the position to be inserted is pointed by the step 05, a cursor is placed in the step 06, and the character or the figure inserted by an operator is received, so that the insertion work can be completed.
Fig. 17 is a block diagram showing a procedure of the font size changing sub-module 320, in which an input command or character is classified in step 01, and if a font changing operation is performed, an operator sets what font to change through the input device 1 in step 02, sets a character string to change in step 03, eliminates the original character string in step 04, changes the corresponding parameter in the text in step 05, and displays the required character string in step 06, thereby completing the changing operation; if the operation of changing the word size or the graphic is to be enlarged and reduced, setting a word size changing system and the reduction and enlargement proportion by an operator at the step 07, turning to the steps 03-06, respectively changing parameters, and replaying the character string or the graphic, thereby achieving the purpose of changing the word size or the graphic to be contracted and enlarged; if the operation is letter upper and lower case changing operation, directly changing the corresponding code parameters in the text, completing parameter changing and replaying processing by the steps 03-06, if the operation is font deforming operation, setting the deforming proportion by an operator at the step 09, and completing coefficient changing and replaying processing by the steps 03-06, thus completing the operation.
Fig. 18 is a flowchart of a mathematical formula typesetting sub-module 327, which receives a character or control command from the decode process master control module 314 at step 01 and determines whether it is a function start command at step 02, if so, adds 1 to the nesting level at step 03 and makes a function selection of a mathematical formula by the operator through the input device 1 at step 04, such as: after an operator selects one function, extracting the characters of the function from a character making system and a character library at step 05 according to the currently designated fonts, font sizes and positions (typesetting basis) and typesetting and displaying, inquiring a typesetting rule knowledge base, placing the typesetting rule knowledge base into the current typesetting state, and waiting for inputting the characters of the front stage for typesetting according to the font sizes and position coefficients which should be possessed by the typesetting rule; if it is determined that there is character input in step 14, typesetting is performed according to parameters such as a currently placed character size, a currently placed position and the like, and the screen is displayed with an exact font character size, then the process returns to step 01 to wait for inputting characters or commands, if it is determined that an operator inputs a command for switching a front-stage character to a rear-stage character in step 07, typesetting rules which are followed by rear-stage fields (such as superscripts of integration formulas, molecules of formulas and the like) of the functions in a typesetting rule knowledge base are queried, and states such as a typesetting position, a character size and the like of the rear-stage characters are placed, and then the process returns to step 01 to wait for inputting characters or commands; if 09 is judged to be a function typesetting ending command, the text typesetting state is restored through the step 10, the nesting level is reduced by 1 at the step 11, whether nesting is ended or not is judged through the step 12, if so, the text typesetting state is exported, otherwise, the text typesetting state is continuously received by going to 01; if the character is neither a character nor a command, performing error processing, and turning to 01 again to wait for inputting the character or the command.
In order to more clearly illustrate the working process of the submodule, we will further describe herein an integrated typesetting process as an example. Referring to fig. 19, if the operator needs to typeset the integrating division, he only needs to input an integrating command (f.12 key) through the keyboard to display the integrating number on the display, then, input a again, the word size and position of the integrating number are automatically arranged under the integrating number, input (F.9) a switching command, switch the cursor to the upper mark position of the integrating number, input b again, input (F.8) a restoration command to restore the cursor to the text state, and input x and dx again, thus completing the whole integrating typesetting operation process.
FIG. 20 is a flowchart showing the text page typesetting sub-module 328, and also, at step 01, the process proceeds to step 02 to determine layout parameters (including width, depth, gap, line spacing, font, size, etc.) to control the typesetting process of related words, lines, segments, pages, if the layout control command is a format control command; if the characters are the words, the method enters 03 to carry out the word processing; and performing word modification processing in step 04, ranking in step 05, and performing end-of-line processing in step 06, including: when the line length is reached, performing line end forbidden processing (the starting punctuation cannot be at the line end, the ending punctuation cannot be at the line head and the like), performing field inseparable processing (the inseparable letter string or the number string and the like), performing English monotone automatic syllable segmentation processing (the English word at the line end is processed in a line turning mode according to syllable rules), and dividing lines according to the specified line length and leveling character lines; step 07, performing column separation processing, and performing column end 08 related forbidden rules processing (such as inseparable 'figure 1', title which cannot be at column end, etc.); 09, paging, when the page height is reached, paging is automatically carried out, and step 10 is used for processing the related forbidden pages, and 08 is the same; when the non-format command and the text are judged to be encountered by 01, the corresponding typesetting sub-module performs corresponding typesetting processing.
FIG. 21 is a flowchart showing a dot picture layout sub-module 329, wherein 01 designates a layout position, step 02 registers a picture header in a text buffer, treats the picture as a text, and then displays the picture on a display at step 03; 04 outlet. If the drop-in position is not appropriate, it may be modified using a corresponding editing operations sub-module in editing module 302.
FIG. 22 is a flow chart showing the procedure of the chemical structure typesetting sub-module 330, classifying the inputted command or character at step 01, when it is a usual benzene ring operation, determining the starting position (X1, Y1) by pressing the selection key of the mouse and recording it at step 02, then moving the mouse by the operator, recording the current position (X, Y) in real time, and at step 03, taking the value of (X1, Y1) - - (X, Y) as the vertex angle, and making and displaying the graphics of the hexagonal benzene ring (different types) according to the characteristic that the regular hexagonal benzene ring has 120 degree vertex angle, then determining whether the benzene ring is the required benzene ring, if not, moving the mouse to change the shape and size of the benzene ring, namely X, Y value, and eliminating the previous image by performing logical operation at step 06, and then displaying the benzene ring graphics obtained according to the value of (X1, Y1) and the current value of (X, Y) by 07; returning to the step 04 to judge whether the operator finally determines the final point (X2, Y2), if not, going to 05, 06, 07 for circulation treatment, continuously changing the position, continuously eliminating the previous benzene ring image, and giving the benzene ring image of the current position, thus, achieving the visual effect of continuously changing the size and the proportion of the benzene ring and continuously pulling and changing, and once the operator is judged to have determined the final point (X2, Y2) in the step 04, finally determining a satisfactory benzene ring graph of the operator, and outputting the benzene ring graph after the operation of the login text is carried out by 08;
If the operation is classified into a carbon chain operation by 01, the 09 directly typesets the carbon chain as a group of characters, and 08 texts are logged in an outlet;
if the chemical bond operation is classified as 01, completing the formation of the chemical bond by adopting a line drawing mode, and turning to 08 composition texts to log in an outlet;
if the formula is classified into a chemical reaction formula by 01, finishing the reaction formula by a mathematical formula typesetting method, and then logging in an outlet by turning to 08 texts;
If the classification is from 01 to create and add the chemical structure graph sample library, the chemical structure graph with common value is saved and added into the library for calling;
When the chemical structure pattern is classified from 01 into the sample library with chemical structure pattern, an operator can take out the chemical structure pattern commonly used in the library and copy the chemical structure pattern conveniently by using the copy operation of the editing function so as to achieve the purposes of simplifying the operation and improving the working efficiency.
An example of the chemical benzene ring mapping will be described with reference to fig. 23. As shown in the figure, when the operator determines the start position, a benzene ring pattern is made, and then, as long as the operator arbitrarily continuously changes the (X, Y) value (i.e., moves the mouse), the benzene ring pattern is continuously changed until the operator determines the (X2, Y2) value, leaving a corresponding benzene ring pattern.
FIG. 24 is a flow chart showing the staff typesetting sub-module 331, wherein the command from the decoding process master control module 314 sets the display screen to level 1 at 01, and the staff is line-mapped to complete staff typesetting at step 02 and is retained at a different level from the notes for modification; step 03, setting a display screen as a layer 2, and step 04, inputting arrows and mark symbols as literal symbols and controlling positions so as to directly typeset and display the literal symbols and the mark symbols on the screen; the method comprises the steps that a step 05 is used as a drawing mode to finish typesetting of a stem (as drawing), a beat line (thick straight line drawing) is used for carrying out continuous pitch arc drawing in the step 06, and characters input in the steps 04-06 or drawing are all logged in a text log in the step 07, and layout modification processing is carried out in the step 08, so that staff typesetting processing is finished; the typesetting of the staff may also be conveniently operated and modified by utilizing the editing functions such as movement, copying, scaling and the like in the editing module 302.
Fig. 25 is a flow chart of the line drawing sub-module 332, which is classified by the 01 operation, and the line drawing is performed by 02, wherein the process is that an operator designates a point (X1, Y1) and displays the straight line (X1, Y1), and as the operator moves the mouse, the former straight line is changed (X, Y) and is eliminated at any time, the current straight line is displayed, and the effect that any length straight line can be made and continuous change can be achieved is achieved. 03 is plotted, 04 is an arc, and the steps are plotted with the lines.
Fig. 26 is a flowchart of the dot picture display sub-module 339. Wherein 01 represents the state that the operator sets the display position, and 02 sets the graphics display layer, etc., the picture file data to be displayed is sequentially sent into a graphics display buffer (VRAM), and the graphics thereof can be displayed on the display screen.
FIG. 27 is a flow chart showing the process of the line graphic display sub-module 340, wherein the line graphic display sub-module is classified by 01, then the line drawing calculation is performed in step 02, and the calculated data is sent to the graphic display buffer for display, and step 03 shows a circle, 04 shows a circle, and 05 shows a benzene ring.
FIG. 28 is a flowchart of an English character display sub-module 341, wherein 01 designates a character display position, 02 queries the character height, font size, font style, font width and baseline height of the character in a typesetting rule knowledge base, generates a required size according to the variable size of the character size and the font size (a line drawing shrinking or line adding enlarging mode) at step 03, generates a deforming effect according to the deforming (variable length or flattening proportion) requirement while changing the size, calculates a starting display position according to the baseline at step 04, sends font information (128×128 lattice, expressed in a vector mode of continuous 0 and continuous 1 count) into a graphic display buffer area, and can display a font, and step 07 is to position a cursor according to the character width;
Fig. 29 is a block diagram showing the extent of a kanji character display sub-module 342, in which, the display position is determined at block 01, the word stock is queried and the font data (24×24 dot matrix, 3 bytes wide, 24 rows) is fetched, the font data is scaled according to the font size (line drawing down, line adding up) 03, the starting point is calculated at the current position 04, the font data is sent to the graphic display buffer by 05, the character is displayed, and the cursor is set according to the kanji character amplitude 07.
Fig. 30 is a flow chart of a mathematical symbol display sub-module 343, wherein a display position is designated by 01, 02 is searched for special word height and special base line position such as double word shape, 03 takes out word shape data (128×128 dot matrix, represented by vectors of continuous 0 and continuous 1 count) of mathematical symbols in a word stock, 04 changes times according to word size (drawing line is reduced, adding line is enlarged), 05 sends the word shape information data into a graphic display buffer, i.e. displays mathematical symbols, and 06 sets a cursor.
Fig. 31 is a flowchart showing an image deletion scaling processing sub-module 344, in which, step 01 performs a sorting operation on the commands from the decoding processing general control module 314, and if the command is a deletion operation, the original image data is fetched from the image display buffer and subjected to exclusive or (XOR) operation in one-to-one correspondence with the original image data, and then the original image is deleted; when the operation of reducing and enlarging is carried out, the original pattern displayed on the original screen is eliminated by a deleting method in step 02, the pattern data is added by a method of drawing lines proportionally for reducing and adding lines for enlarging according to the scaling ratio, and then the pattern data is sent back to a pattern display buffer area through 04 to display the required pattern.
FIG. 32 is a schematic diagram of the named file structure depicted in FIG. 6, and the detailed operation of block 350 in FIG. 6 is as follows: firstly classifying 011, 014 establishing record items, namely pointing a chain tail pointer to a new record item, and logging the record items from 015 to an outlet; 012 inserts new items before a certain record item, establishes new items, 013 registers new record items to the exit; 016, namely removing a record from the chain, 017 performs a record change operation, and directly fills new content, namely completing the operation. The results of all these operations are stored in ram 351 and are determined by operator instruction to be stored in ram 352.
FIG. 33 illustrates a named file format employed by the present invention, wherein: the file is composed of several pages, each page is composed of several rows, each row is composed of several words, each word is composed of sixteen attributes and ten layout parameters. These properties and layout parameters are respectively:
Attributes:
0 can be evenly emptied 8 front words are Chinese characters
1 Chinese/Japanese/regular pictograph 9 color
2 English/Russian/number string 10 can be separated from the preceding word
3 Whether the full-angle punctuation 11 can be separated from the postword
Whether the 4-half corner 12 is at the line head
5 Whether the initial character 13 of the string is at the end of line
6-String end-of-word character 14-line first character
The front word 7 is the end word of 15 English lines
The layout parameters include:
type, font size, width of itself, span width, height, X, Y, code, pointer.
Fig. 34 is a detailed block diagram of a driving module 7 according to the present invention, which has the task of setting the result of editing and typesetting in corresponding output devices with different resolutions, such as: the display screen, the 24-pin printer, the laser printer and the laser photocopier are provided with different output quality and identical layout, so that the display screen, the 24-pin printer, the laser printer and the laser photocopier are suitable for different requirements and purposes of different users at different cost and different quality.
Wherein: 7 is a driving module, 8 is a driven external output device, 5 is a computer, 701 is a result text to be output and processed by the typesetting module 301.
The working principle is that the driving module 7 is installed into the computer 5 (if the computer is already in the computer, the computer 5 starts the driving module 7 to work, reads the result text 701 processed by the editing and typesetting processing device 3 (which can be an in-computer file or a text recorded on an external storage medium such as a magnetic disk or a magnetic tape) and converts the result text into a corresponding text control command format which is suitable for different output devices, and then controls the corresponding output devices to generate output through the computer.
To further illustrate the constitution of the present invention, an embodiment of the present invention is described as follows:
embodiments of the invention include two parts
1. General braiding design system (ME for short) (MAGICEDIT SYSTEM)
2. Automatic layout generating system (QB for short) (QUICKBOX SYSTEM)
The ME further comprises: 1. a layout initial testing module; 2. a layout auxiliary module; 3. a layout adjustment platform module; 4. automatic layout generation operation module
QB further comprises: 1. an interface operation platform module; 2. a functional interpretation platform module; 3. dynamic balance processing module
The interface operation platform module further comprises: a block definition operation module; a block linking operation module; a block chain disassembling operation module; a block movement operation module; the front/back, top/bottom operation module is arranged in the block; a block transparent/opaque overlap operation module; a block coloring operation module; a block border/lace handling module; a block change size operation module; a block profile change operation module; a block copy operation module; a block tilting operation module; a block rotation operation module; a text block operation module; a picture block operation module; a mathematical block operation module; a chemical block operation module; a form block operation module; a music score block operation module; a chess and card block operation module; an eyebrow-cutting block operation module; a catalog block operation module; a text block operation module; word strip block operation module
The function interpretation platform module further comprises: a ranking processing module; a forbidden processing module; a paging processing module; page forbidden rule edition module; a mathematical typesetting module; a chemical typesetting module; a form typesetting module; a music score typesetting module; a chess board typesetting module; the picture and text mutual disassembling winding module; a catalog processing module; the entry extraction module; a segment head big word processing module; a horizontal/vertical row conversion module; an Ikesen code processing module; kerning processing modules; english sound section module; a book page processing module; a newspaper edition processing module; a periodical page processing module; a drawing module; a picture processing module; a high resolution page generation module; a medium resolution page generation module; EPS/PS format generation module;
The dynamic balance processing module further includes: the segments occupy a row-pulling/pressing module; the article format balance processing module; a color balance processing module; and the layout total balance processing module.
The invention comprises the following steps: the working steps are described below in combination with a block diagram:
The method comprises the steps of organizing manuscripts (including pictures) by a general composition, making the manuscripts by an author or an operator, making the pictures, storing the pictures in a storage hard disk of a2 computer, editing an auxiliary design provided by the invention through a 101 general composition auxiliary design platform, firstly, performing initial layout test by a 101-01 layout initial test module, measuring and calculating an article preemption by 101-01-01, and calculating whether the layout is full or not by 101-01-02? If not filled, it is determined by 101-01-04 that the article is all scheduled to be completed? If not, continuing to test the next article through 101-01-01, if the article is not arranged to be finished, but the layout is filled up and shifted to 101-01-03 to delete the article, then continuing to test through 101-01-01 until the article is arranged to be finished completely, entering 101-02 to carry out editing design interface operation, firstly, qualitatively designating the article with the edition requirement by 101-02-01 editing to adopt the edition, such as horizontal heart problem, horizontal opening problem, vertical opening problem, knife handle type and the like, and then designating the edition position (qualitative) by 101-02-02 editing the article with the edition requirement until the article to be designated is completely designated; the 101-03 system automatically performs automatic creative of layout according to 101-02 specified requirements, firstly, 101-03-01 is arranged according to the requirements of editing 101-02-01 layout specification and 101-02-02 version position specification, then, the 101-03-02 is used for arranging unspecified articles according to layout style example rules, fragments in layout can occur in arrangement, the fragments are exchanged with adjacent arranged layout by the 101-03-03, the purpose of reducing fragments to be complete is achieved, when all articles are arranged in the layout, and spare or insufficient area is still reserved, redundant empty rows are allocated or extruded one by one to the arranged layout to compensate for the defect, and layout allocation balance is achieved. And finally, carrying out random optimization on the formats according to the format style example library through 101-03-04, and editing and examining the creative different formats. 102-01 editing and approval of the layout of 101-03 creative, if not satisfied, calling another layout of 101-03 creative until basically satisfied, if satisfied, finishing approval, otherwise, entering 102-02 for layout modification, 102-02-01 editing and adopting layout modification operation for layout modification, and also adopting 102-02-02 for automatic optimization of the layout, and finishing layout approval until satisfied. And 103, generating a FVS description file from the structure by 103-01, 103-02, calling and starting QB by a QB interface module to automatically interpret and generate a layout according to the FVS file, and automatically entering 103-02-03QB interface operation after completion to wait for any detailed modification of editing or executing output.
The working steps of QB are described below in connection with the block diagram:
The QB is composed of a 104 interface operation module, a 105 function interpretation platform, a 106 dynamic balance module and a 107 output interface, and the working steps are as follows: QB can be independently operated, can provide edition, author or operator to carry out edition design and text, picture, formula and other input edition operation through 104 interface operation, and 22 interface operation modules, including definition, link, chain disassembly, movement, front and back setting, overlapping, frame, shape change, copying, tilting, rotation and other basic edition operation of edition blocks, and provide interface operation for special blocks of text blocks, picture blocks, mathematics, chemistry, forms, music scores, chess and cards and the like, and interface operation for page sub-functions of eyebrows, catalogs, notes, entries and the like, each operation through 104 interface is processed through a 105 function interpretation platform, after the general editing system determines the layout and generates the FVS description text through 101-103, the general editing system can directly enter a 105QB functional interpretation platform, and various operation results including block layout operation, special block typesetting operation and page functional operation are respectively realized through 105-01-105-26 functional interpretation modules, wherein the functions respectively comprise ranking, line forbidden processing, paging, page forbidden processing, number, processing, chemical typesetting, tables, music scores, chess and card typesetting, picture and text mutual winding, catalogue, book header, entry, section header, horizontal and vertical rows, aikesen codes, kerning, syllable transition, page processing of books/newspapers/periodicals, drawing, pictures, high, medium and resolution page Image (Image) generation, EPS format conversion and other functional interpretation generation. The 106 dynamic balance module comprises a 106-01 section row-occupying balance module 106-02 format balance module, a 106-03 color balance module, a 106-02 format balance module, a 106-03 color balance module and a 106-04 layout balance block for performing background intelligent balance processing on the 105 explanation platform, so that the qualitative operation from a 104QB interface can achieve an accurate quantitative effect, the layout of a coarse language of a 101-103 general composition design system can also achieve a magic effect through 106 dynamic balance processing, and the general composition system achieves a magic effect, so that the implementation system of the invention is named MAGICEDIT, and the specific processing steps of the 106 dynamic balance module are as follows: section 106-01 is a line balancing module whose tasks are presented due to the occurrence of an article line under-layout or out-of-layout during layout arrangement. For example, the article occupies a row and sets up to press or pull a plurality of rows, firstly 106-01 sorts the records of the section occupied row and the section end row word number in the test row, if the record is to be pressed, the section with the least section end row word number is found to be a compressible section, if the record is to be pulled, the section with the most section end row word number is found to be a stretchable section, 106-03 measures and calculates the total number of word width unit values to be pressed or the total number of width unit values (96 unit values for each word) of the number of complement words, then the unit values are equally divided into each separable word gap of the whole section, the unit value is amplified by one point for the pulled section, and the unit value of the pressed section is slightly amplified. And calculating commands for increasing or decreasing the word gap, placing the commands at the head of the section record, and typesetting the commands into the section record to achieve the expected row occupation, thereby achieving the layout or layout balance effect.
106-04 Layout balancing module uses 106-04-01 to determine whether each layout division position accords with the rule, if not, 106-04-02 calls 106-02/106-01 to automatically adjust the layout so as to avoid the place with unreasonable division, and the layout balancing is achieved, so that all the layouts are balanced. The system comprises a 107QB output interface module, an execution system output, a 107-01 page Image (Image) generation module, a 107-02Postscript RIP EPS file generation module and a 107-03 system FVS description generation module, wherein the modules complete the page output with different high, medium and low precision of the system, and simultaneously can be directly loaded onto an Internet network through the FVS description, so that books/newspapers/periodicals can be transmitted, published and issued on the Internet, readers can interpret and generate high-precision full-color-picture-text-combined books/newspapers/periodicals in QB only by downloading files in the FVS format from the Internet, and an ideal low-capacity and high-quality online publishing effect is achieved.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art, who is within the scope of the present invention, should make equivalent substitutions or modifications according to the technical scheme of the present invention and the inventive concept thereof, and should be covered by the scope of the present invention.

Claims (9)

1. An on-line automatic editing and typesetting system, comprising: input means for inputting characters and commands; computer means for controlling the operational functioning of the system; the display device is used for displaying the editing and typesetting results in real time; the character creating system and the character library are used for providing characters for the editing and typesetting system; I/O interface means; the system is characterized by comprising an input module, a display module, an editing module and a typesetting module, wherein the input module is used for decoding characters and commands input by the input device; the display module is used for taking out related characters from the character making system and the character library for display processing according to the output of the input module; the editing module is used for editing the content displayed by the display under the control of the command decoded by the input module; and the typesetting module is used for typesetting the characters and the figures input by the input device under the support of the typesetting rule knowledge base under the control of the command decoded by the input module.
2. The automatic online editing and typesetting system of claim 1, wherein the input module comprises:
The picture input sub-module is used for digitizing the picture information input by the input device;
The character input sub-module is used for selecting the input scheme of the characters;
The position input sub-module is used for receiving a command which is input by the input device and used for controlling the position of the character and the graph;
the control command input submodule is used for receiving editing, typesetting or display commands input by the input device;
And the decoding processing general control module is used for receiving the output of the sub-modules (310-313) and performing decoding processing.
3. The automatic online editing and typesetting system according to claim 1, wherein the editing module comprises:
A plurality of operation sub-modules (315, 316, 317, 318, 319, and 320) for performing picture editing, image moving, copying, deleting, inserting, and font size changing editing operations required by an operator in response to a decoding command of the decoding process master module;
and the processing sub-modules (321, 322, 323, 324, 325 and 326) are used for synchronously executing the operations of logging in, deleting and changing the computer text in response to the operation results of the operation sub-modules.
4. The automatic online editing and typesetting system according to claim 1, wherein the typesetting module comprises:
The typesetting sub-modules are used for responding to the decoding command of the decoding processing master control module and executing the mathematical formula, the text page, the dot picture, the chemical structural formula, the staff and the line and drawing typesetting operation required by an operator;
And a plurality of typesetting text processing sub-modules (333, 334, 335, 336, 337 and 338) for synchronously executing corresponding text login, deletion and change operations in response to the operation result of the corresponding typesetting sub-modules.
5. The system according to claim 4 or 5, wherein the text processing sub-modules (321-326) and typesetting text processing sub-modules (333-338) in the editing module and typesetting module respectively include a random access memory for storing the results of the log-in, delete change operation on the text record.
6. The automatic online editing and typesetting system according to claim 1, wherein the display module comprises:
the net point graphic display sub-module is used for sending the picture information into the graphic display buffer memory for display;
The line graph display sub-module is used for performing line graph calculation and sending calculation data to the graph display buffer memory;
the English character display sub-module is used for designating the display position of the characters, inquiring about the condition of processing the display characters from the character making system and the character library, and then sending the font information into the graphic display buffer memory;
the Chinese character display sub-module is used for determining the display position, inquiring the fonts of the font library and sending the font information into the graphic display buffer memory;
the image deleting and scaling processing sub-module is used for taking out the original image data from the image display buffer memory to carry out logic operation or continuously reducing or enlarging the original image data according to the proportion, and then sending the original image data into the image display buffer memory.
7. The automatic online editing and typesetting design method is characterized by comprising the following steps of:
s1, inputting characters and commands through an input device;
S2, decoding the input characters and commands by an editing and typesetting processing device, and controlling the characters by the decoded commands to edit or typeset and display the characters;
and S3, displaying the processing result of the editing and typesetting processing device in real time.
8. The method according to claim 7, further comprising the steps of registering corresponding text records in response to the results of various editing or typesetting operations, deleting or changing the operations, and storing the results of these operations.
9. The automatic online editing and typesetting design method according to claim 7, wherein the step of typesetting processing includes:
inputting a front-section typesetting command of a mathematical formula by an input device;
inputting a switching command by an input device;
And inputting a rear-stage typesetting command of the mathematical formula by an input device.
CN202310368349.XA 2023-04-09 2023-04-09 Automatic online editing and typesetting design method and system thereof Pending CN117933187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310368349.XA CN117933187A (en) 2023-04-09 2023-04-09 Automatic online editing and typesetting design method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310368349.XA CN117933187A (en) 2023-04-09 2023-04-09 Automatic online editing and typesetting design method and system thereof

Publications (1)

Publication Number Publication Date
CN117933187A true CN117933187A (en) 2024-04-26

Family

ID=90767093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310368349.XA Pending CN117933187A (en) 2023-04-09 2023-04-09 Automatic online editing and typesetting design method and system thereof

Country Status (1)

Country Link
CN (1) CN117933187A (en)

Similar Documents

Publication Publication Date Title
US4980840A (en) Computerized editing and composing system
US6466694B2 (en) Document image processing device and method thereof
JPS5875238A (en) Word processor
JPH05233630A (en) Method for describing japanese and chinese
JP2003298837A (en) Graphical input and display system for creating and manipulating electronic image, method for editing source electronic image inputted to display device to meaningful image object, and product including computer usable medium with computer readable program code incorporated
JPS6165290A (en) Generator for vector character font
US6167410A (en) Document processing apparatus for adding predetermined design types to an original document
US20090313538A1 (en) Design generating apparatus, design generation method, and storage medium storing design generation program
JPH06251007A (en) Table data input device
CN117933187A (en) Automatic online editing and typesetting design method and system thereof
JP3471854B2 (en) Character processing apparatus and method
JPS5971528A (en) Original forming machine
JPH01262149A (en) Document output device having dot-character font forming function
JP4574347B2 (en) Image processing apparatus, method, and program
Witten Elements of computer typography
JP4389633B2 (en) DESIGN INFORMATION EXTRACTION DEVICE, DESIGN INFORMATION EXTRACTION PROGRAM, AND DESIGN INFORMATION EXTRACTION METHOD
Schulze Macromedia FreeHand MX: training from the source
JPH087012A (en) Method and device for editing output mode of data
JPS61229161A (en) Documentation and editing device
JPS6069778A (en) Document processor
JPS63128424A (en) Data processing system
JP2714383B2 (en) Form design creation method
Bauer Special Edition Using Adobe Illustrator 10
JPH04127265A (en) Document processor
JPH0528206A (en) Parts data processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination