A kind of publication composition method of multi-point touch
Technical field
The present invention relates to a kind of man-machine interaction publication touch-control typesetting implementation method, be particularly related to based on multipoint-touch-technology and WPF (Windows Presentation Foundation) technology, wave the finger touch typesetting by realization, to the user, bring the dynamically publication composition method of beautiful mutual sense.
Background technology
In current publication typesetting activity, be all to adopt artificial type-setting mode.This mode is exactly, after the publication Pages Design, each page to be printed one by one.Then, by drawing pin, every page is hung on the typesetting wall, for related personnel's preview, discussion and evaluation.And, in preview, discussion and evaluation, manually adjust sequence of pages.For adjustment and the modification of content of pages, hand is drawn and is revised or record temporarily, typesetting again after this evaluation finishes.Like this, revise real effect and often need the evaluation of typesetting again.Therefore, typesetting efficiency is extremely low, is difficult to meet periodical, magazine, newspaper etc. and publishes the highly fast needs of time limit requirement.And hand-set wastes paper in a large number, increased the cost that version is examined in typesetting, be unfavorable for subtracting carbon and environmental protection.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of publication composition method of multi-point touch, overcomes the inefficient defect of current publication typesetting.
For solving the problems of the technologies described above, the present invention is based on multi-point touch and WPF technology, a kind of publication composition method of multi-point touch has been proposed, relate to multi-point touch client and multi-point touch display screen, it is characterized in that, comprise the following steps:
Load and treat typesetting publication and material database on described multi-point touch client, described material database comprises some materials;
The one layout region of setting on described multi-point touch display screen shows treats the typesetting publication page, and the material control regions of setting on the multi-point touch display screen shows the material control, and each described material control links respectively a different material;
Certain material is slided to move to by touch-control and treats in typesetting publication target pages;
Described treat material in the typesetting publication page by touch-control move, splicing, cutting, rotation or convergent-divergent typesetting;
Describedly treat that the typesetting publication page chosen and move to the page object tagmeme by touch-control;
Typesetting finishes, and described multi-point touch client generates the described electronic composition file for the treatment of the typesetting publication according to above-mentioned typesetting style.
Described multi-point touch display screen one layout region shows treats the typesetting publication page, comprises the steps:
Obtain the described resolution for the treatment of page parameter and the described multi-point touch display screen of typesetting publication, calculate the page quantity a that the single file of described multi-point touch display screen shows, and the one layout region set of the described multi-point touch display screen page line number b that can show,
Calculate the page sum c that described multi-point touch display screen can show, and treat that with described the total page number d of typesetting publication compares,
If d≤c, described one layout region loads d typesetting page placeholder control, and loads in order the page number below placeholder; Otherwise described one layout region loads c typesetting page placeholder control, and loads in order the page number below placeholder.
Described multi-point touch display screen is slided by the above-below direction touch-control, described multi-point touch client is according to sliding trace length, calculate the line number that need to move up and down, calculate the coordinate of each page control according to line number, but load page control above or below dynamic load.
Described material is slided to move to by touch-control and treats to comprise the following steps in typesetting publication target pages:
Described material is chosen by touch-control;
Described material control is along with the touch-control sliding trace moves;
If the touch point dead time is greater than the time of setting, described multi-point touch client judges that described material has been moved the arrival target location;
Judge whether described target location is one layout region, and as no, material directly returns to material database; Continue in this way following steps:
Calculate respectively the number of the page control overlapping with described material control and overlapping zone separately, select the page control of overlapping region maximum, material is loaded on to the page that this page control links.
Preferably, described material by touch-control move, splicing, cutting, rotation or convergent-divergent comprise the steps:
Material in the page is slided by touch-control, and described multi-point touch client catches touch trajectory, judgement touch-control event type,
If rotation calculates sense of rotation and angle according to described touch trajectory, and automatically adjusts the material angles of display;
If convergent-divergent, calculate the ratio of convergent-divergent according to described touch trajectory, and adjust material demonstration size.
Preferably, described material is comprised the steps: by the touch-control cutting
Material in the page is clicked touch-control, and function menu is selected " cutting " event, and touch-control slides and selects to complete the material cutting behind clipping region.
Preferably, described material is comprised the steps: by the touch-control splicing
Material in the page is clicked touch-control, and function menu is selected " splicing " event and " splicing pattern ", and the material of selecting is completed to the material splicing according to " splicing pattern ".
Described typesetting also comprises the page turning preview step before finishing, and this page turning preview comprises the steps:
Touch-control starts the publication preview mode, and the publication page presents the physical book open mode;
Finger is done in the verso zone to the right and to be slided, and catches sliding trace and speed, calculates the speed of stirring the trail change that the page presents, until the page stirred is laid in the recto zone to the right;
Before the page stirred to the right is laid in the recto zone, slip can turn to left and slide; Catch sliding trace and material, calculate the trail change speed that turning pages presents towards a left side, until the page stirred restores to the original state;
Finger slides left in the recto zone, catches sliding trace and speed, calculates the speed of stirring the trail change that the page presents, until the page stirred is laid in the verso zone left;
Before the page stirred left is laid in the verso zone, slip can turn to the right and slide; Catch sliding trace and material, calculate the trail change speed that turning pages presents towards the right side, until the page stirred restores to the original state.
In described page turning preview process, also comprise the steps:
Touch-control is selected word evaluation control, eject the text input frame, receive the review comment input of written form, described multi-point touch client directly or by background server, is pushed to this review comment the worktable at this publication editor or material-making personnel place by review comment.
In described page turning preview process, also comprise the steps:
Touch-control is selected voice evaluation control, touch-control starts voice input module, receive the review comment input of speech form, described multi-point touch client directly or by background server, is pushed to this review comment the worktable at this publication editor or material-making personnel place by the voice review comment.
Beneficial effect: the present invention utilizes large-size screen monitors to show touch-control (Touching) technology and WPF a new generation forms technology for revealing, by picture, word even the raw data such as Voice & Video be combined into various dimensions, lively, the three-dimensional publication page, arrange in real time sequence of pages, the processing page material, effect is published in preview, and result is published in evaluation, has improved existing typesetting pattern, greatly improve typesetting and publish efficiency, saved social resources simultaneously.
The accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, technical scheme of the present invention is further described in detail.
Fig. 1: the overview flow chart of the specific embodiment of the invention.
Fig. 2: the dynamic load publication page process flow diagram of the specific embodiment of the invention.
Fig. 3: the touch-control convergent-divergent page process flow diagram of the specific embodiment of the invention.
Fig. 4: the material processing flow chart of the specific embodiment of the invention.
Fig. 5: the publication preview of the specific embodiment of the invention, Review Workflow figure.
Embodiment
The hardware the present invention relates to comprises multi-point touch client and multi-point touch display screen, and the multi-point touch client in embodiment and multi-point touch display screen are based on multipoint-touch-technology and form technology WPF of new generation (Windows Presentation Foundation) programming Control.Publication be take magazine as example, certainly also is applicable to that the paperys such as picture album, books, newspaper are composed and printed or the publication of electronic publishing.
The overall procedure of the inventive method as shown in Figure 1, comprises the following steps 1-step 8.
Step 1: the base attribute of typesetting publication is treated in configuration, comprises the affiliated kind of publication, total page number etc., distributes authority.
Step 2: load and treat the typesetting publication page according to the publication attribute, the idiographic flow of this step is with reference to dynamic load publication page flow process Fig. 2.What Fig. 2 described is the Processing Algorithm of this many publications of invention dynamic load page.This Processing Algorithm successfully realizes that in experimentation total page number (page control number) is over 500, and the single screen demonstration surpasses 200 pages, dynamic load and upper and lower touch-control slip smoothness.Its detailed implementation method is as follows:
1) obtain current system parameter and monitor resolution, calculate the line number b that publication page quantity a that single file can show and whole one layout region can show;
2), according to step 1), calculate the page sum c that single screen shows, and compare with the total page number d that treats the typesetting publication;
3), if publication total page number d is less than or equal to displayable total page number c, one layout region loads d typesetting page placeholder control, and loads in order the page number below placeholder;
4) if publication total page number d is greater than displayable total page number c, one layout region loads c typesetting page placeholder control, and loads in order the page number below placeholder, and by upward sliding, program dynamically shows the residue page by the step 5) accompanying method;
5) finger touch slides up and down, and program is calculated sliding trace length, calculates the line number that need to move up and down, and calculates the coordinate of each page control according to line number, but load page control above or below dynamic load.
Step 3: adjust the publication page by the finger touch convergent-divergent and show size.This steps flow chart can be with reference to touch-control convergent-divergent page flow process Fig. 3, and what Fig. 3 described is the Processing Algorithm of this invention touch-control convergent-divergent, and its detailed implementation method is as follows:
1) 2 touch-controls are made the convergent-divergent gesture, and according to 2 sliding traces, program calculates the ratio of convergent-divergent;
2) program is obtained the size that the current publication page shows, needs the size shown after calculating convergent-divergent according to zoom ratio;
3) obtain needing the size shown after convergent-divergent, calculate current one layout region a line page quantity that can show and the line number that can show,
4) result of calculating according to step 3), page control number and layout that dynamic load WPF realizes, complete page zoom-in and zoom-out and show.
Step 4: after beating touch-control and choosing material, finger does not leave touch screen and slides, and material moves to target location with the finger motion track.Its detailed implementation method is as follows:
1) open material database, material database can demonstrate all material controls, and each material control connects a different material, comprises even Voice & Video material of picture, word, and the user selects required control according to control classification and title;
2) finger touch is clicked and is chosen the material needed;
3) finger does not leave the touch screen slip, and the material control of material database is along with sliding trace moves, and the size of material control is constant;
4) slide into target location, the dead time is greater than setting-up time, and as about 0.6 second, program judgement target location is definite;
5) program judges whether target location is one layout region, and as no, material directly returns to material database; Continue in this way following steps;
6) according to the target location of sliding, the material control keeps original size, according to target material control in position makes a slight pause, program is calculated respectively the number of the page control overlapping with the material control and overlapping zone separately, select the page control of overlapping region maximum, material is loaded on to this page control.
Step 5: material can carry out the layout adjustment by gestures such as rotation, convergent-divergents after loading, and also can complete the material cutting by touch-control, splice and process material.This steps flow chart can be with reference to figure 4, and Fig. 4 is the core process of touch-control typesetting of the present invention, and its detailed implementation method is as follows:
1) finger touch is clicked the material of selecting on the publication page, uses the touch-control rotate gesture, and program catches touch trajectory, and whether the decision event type is rotation, according to track, calculates sense of rotation and angle, according to object routine, automatically adjusts the material angles of display;
2) finger touch is clicked the material of selecting on the publication page, uses touch-control convergent-divergent gesture, and program catches touch trajectory, and whether the decision event type is convergent-divergent, calculates the ratio of convergent-divergent according to track, automatically adjusts material according to object routine and shows size;
3) finger touch is clicked the material of selecting on the publication page, by function menu, selects " cutting " event, and touch-control slides and selects clipping region, completes the material cutting after " determining ";
4) finger touch is clicked the material to be spliced of selecting on the publication page, by function menu, selects " splicing " event and " splicing pattern ", and the material of selecting is completed to the material splicing according to " splicing pattern ".
Step 6: repeating step 4---5 complete material processing and the typesetting of each page of publication.
Step 7: after completing typesetting, by touch-control, slide page and carry out publication preview and evaluation.This steps flow chart can be with reference to figure 5, and Fig. 5 describes the main flow process of typesetting preview as a result and evaluation in the present invention, and its detailed implementation method is as follows:
1) touch-control starts the publication preview mode, and the publication page presents the physical book open mode;
2) finger is done in the verso zone to the right and to be slided, and program catches sliding trace and speed, calculates the speed of stirring the trail change that the page presents, until the page stirred is laid in the recto zone to the right;
3) before the page stirred to the right is laid in the recto zone, slip can turn to left and slide, and program can catch sliding trace and material equally, calculates the trail change speed that turning pages presents towards a left side, until the page stirred restores to the original state;
4) finger slides left in the recto zone, performing step 2)-3) contrary function described.
5) in the evaluation of page turning preview process selectable voice or word evaluation, touch-control is selected the word evaluation, eject the text input frame, use dummy keyboard input review comment, the typesetting client directly or by background server, is pushed to this review comment the worktable at this publication editor or material-making personnel place by review comment;
6) touch-control is selected the voice evaluation, touch-control starts the phonetic entry state, the reviewer can give an oral account review comment, and the typesetting client directly or by background server, is pushed to this review comment the worktable at this publication editor or material-making personnel place by the voice review comment.
Step 8: complete the publication evaluation and finalize a text by step 7, output publication typesetting result, supply printing or make electronic publication or HTML5 file.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can modify or be equal to replacement technical scheme of the present invention, and not breaking away from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of claim scope of the present invention.