A kind of original edition newspaper and magazine network issuing method
Technical field
The present invention relates to a kind of internet dissemination method of newpapers and periodicals, be particularly related to the method for issue original newspapers on network, original newspapers is generated the data image of the tiff format of 16 RGB looks, then this data image is cut apart, generation contains the little picture of four kinds of parameters and leaves in the server, arrive client (PC) by the AJAX transmission mode, make a kind of original edition newspaper and magazine network issuing method that the client can the Fast Reading newpapers and periodicals.
Background technology
At present, the network distributing method of newpapers and periodicals has following several: the one, the newpapers and periodicals literal is generated electronic document, and the user directly is linked to the electronic document of this piece article when clicking the title of articles published in newspapers or periodicals in browser; The 2nd, with the electronic document of each edition generation PDF of original newspapers, the user installs adobe reader software in client.When the user clicked the space of a whole page of newpapers and periodicals in browser, the electronic document of the PDF of this edition promptly was downloaded to user's PC, when the user wishes to read the next space of a whole page, still needed to download; The 3rd, ebook or epaper mode, original newspapers is generated e-file, leave in the server after the compression, the user is at the client downloads decoder software, when reading newpapers and periodicals, the compression of electronic file that will leave in the server by network downloads to client, could read behind client decoder software decompress(ion).Above-mentioned three kinds of modes are network distribution methods of existing newpapers and periodicals.
The Web publishing mode of existing newpapers and periodicals defective be, the first, can not show the style of original newspapers sometimes, do not show information such as advertisement on the original newspapers, the centre joint yet, actual is exactly a kind of Internet news.The second, need the user could read newpapers and periodicals in client downloads or installation related software.The 3rd, the display speed the when user reads newpapers and periodicals is very slow, could read after all needing when changing newspaper and magazine copy block each time the e-file of this space of a whole page downloaded to client and decompress(ion) fully.Owing to there is above-mentioned defective, existing newspaper and magazine network issuing method does not satisfy client's demand, and the subscribed network newpapers and periodicals can not attract clients.
Summary of the invention
For the existing defective of the network distribution method that overcomes existing newpapers and periodicals, the invention provides a kind of original edition newspaper and magazine network issuing method, this method is to make a kind of original edition newspaper and magazine network issuing method that the client can the Fast Reading newpapers and periodicals.
According to a first aspect of the invention, provide a kind of original edition newspaper and magazine network issuing method, this method may further comprise the steps:
All spaces of a whole page of original newspapers are generated or be directly output as the electronic data image of the tiff format of 16 RGB looks by scanner scanning from the newpapers and periodicals photo-composing system, and electronic data image is stored in the data processing server;
By the Flame Image Process instrument, the image of tiff format is handled, make each pictures have longitude and latitude, in length and breadth to span, level of zoom and four parameters of projection pattern.After handling like this, each space of a whole page of original newspapers has been combined into an electronic data image with organic connections comprehensively.Through a series of definition longitude and latitude model, image pyramid generates, and projection coordinate's conversion possesses the original newspapers electronic data image to be divided into the condition of the little pinup picture of organic connections, and these little pinup pictures can be sent to client fast by network.
Wherein said RGB look is the color mode that the newpapers and periodicals image shows.
Wherein said tiff format is the data layout of newpapers and periodicals image storage.
According to a second aspect of the invention, provide a kind of original edition newspaper and magazine network issuing method, this method may further comprise the steps:
To have longitude and latitude, in length and breadth to the electronic data image of span, level of zoom and four parameters of projection pattern by the picture cutting tool to cutting, leave the little picture that contains above-mentioned four parameters (the pixel size scope of every pictures is 32 * 32 pixels to 512 * 512 pixels) after the cutting in network newpapers and periodicals publisher server, every little picture all has oneself independently URL;
When the user read newpapers and periodicals by the IE browser, which pinup picture every newpapers and periodicals needed use fixedly algorithm to calculate, then to these pinup pictures of network newpapers and periodicals server requests.When any variation (for example: pull, move, convergent-divergent or the like) takes place in the newpapers and periodicals image, pinup pictures that can need from the trend server requests all.What request was adopted is AJAX mode (Asynchronous Transfer Mode), and the pinup picture that asynchronous transmission is come is combined, and has just constituted the space of a whole page of whole newpapers and periodicals.
Above-mentioned URL is uniform resource locator (Uniform Resource Locator:URL).Generally, it is position and the access mode that is used to refer to a certain information; Indicating communications protocol on the WWW and locating and enjoy service function miscellaneous on the network exactly.
With a first aspect of the present invention ratio, a second aspect of the present invention has given each little pinup picture a URL again, make the client that each little pinup picture can be independent, be processed into the corresponding space of a whole page of newpapers and periodicals then, improve network transfer speeds and client's reading rate greatly from Server Transport.
Need to prove, first, when the user browses the whole space of a whole page of of newpapers and periodicals, by the image of network from the Server Transport to the client is treated little pinup picture, the picture of the original image size that to be not original newspapers generate through overscanning or by the newpapers and periodicals photo-composing system, so transmission speed is very fast.Second, when the user when client is read certain piece of article of a certain space of a whole page of newpapers and periodicals or advertisement, the image that this piece article or advertisement are presented in the browser interface is the image that the little pinup picture assembly knot from the server asynchronous transmission to client forms, be different from traditional picture of on network, watching, wish to see the lower portion of picture, must wait until after the first half is downloaded and shown and to download and to show the lower portion.Therefore any one piece of article of the reading newpapers and periodicals that the user can be quick, real-time.
The invention has the beneficial effects as follows:
1, has the Web publishing of the original newspapers of bulk informations such as advertisement, newsphoto, centre joint content, be equivalent to increase the circulation of newpapers and periodicals, can improve advertiser's amount and advertising fee price greatly.
2, simple to operate, show that the details and omissions degree of newpapers and periodicals content can be regulated and control at any time.
3, function admirable, the user almost never needs long-term wait, and newspaper and magazine copy block has reached a second level display speed.
4, browse conveniently, the user just can browse all spaces of a whole page of newpapers and periodicals by shirtsleeve operation.
5, the client does not need to download and install any software, directly just can the reading original edition newpapers and periodicals by browser.
6, support multiple browser, at present the browser of supporting comprise following these:
IE?5.5+(Windows);
Firefox?0.8+(Windows,Mac,Linux);
Safari?1.2.4+(Mac);
Netscape?7.1+(Windows,Mac,Linux);
Mozilla?1.4+(Windows,Mac,Linux);
Opera?7.5+(Windows,Mac,Linux)。
7, by a large amount of technology that adopt client, make the user obtain better interactive experience.
The present invention is described in detail below in conjunction with accompanying drawing.
Description of drawings
Accompanying drawing shows the basic flow sheet of realizing original edition newspaper and magazine network issuing method of the present invention.
Embodiment
As shown in drawings, by flow process, the embodiment of original newspapers Web publishing is:
One, newpapers and periodicals image pre-service: original newspapers is directly exported by scanning or by the newpapers and periodicals photo-composing system and is formed a electronic data, with 16 RGB looks, the tiff format storage, and then by the Flame Image Process instrument, tiff format is handled, through a series of definition longitude and latitude model, image pyramid generation, projected coordinate system conversion, make each pictures have following 4 property parameters:
First parameter is ll: the longitude of presentation graphs and latitude;
Second parameter is spn: the scope of presentation graphs (span is divided into horizontal and vertical);
The 3rd parameter is z: the level of zoom of presentation graphs;
The 4th parameter is prj: the projection pattern of presentation graphs.
Two, newpapers and periodicals image cutting: according to the parameter of newpapers and periodicals picture, carry out the picture cutting, set up image data source, generate the image service, the image data that output needs according to longitude and latitude scope, the projection pattern of picture by cutting picture instrument.Each figure that magnifies is broken down into a lot of little png pinup pictures of opening.The big or small pixel coverage of each little picture of common figure is 32 * 32 pixels to 512 * 512 pixels.Will be in network newpapers and periodicals publisher server through the little picture-storage of above-mentioned processing, each opens little picture all oneself independently URL, and its form is: http://zoom-x-y.png, comprising Several Parameters:
First parameter is zoom: the level of zoom of expression picture;
Second parameter is x: the axial index of x of expression picture;
The 3rd parameter is y: the axial index of y of expression picture.
Which pinup picture the space of a whole page of every newpapers and periodicals needs use fixing algorithm to calculate.From these pinup pictures of trend image server requests, be processed into the pinup picture that needs then then.
Need to prove the four kinds of parameters that contain after the processing, the little pinup picture that pixel size is identical is put by stacked with pyramid.The whole space of a whole page that all can show newpapers and periodicals after every laminating figure makes up.It is detailed more that past more lower floor shows.
Three, the newpapers and periodicals image layout shows: when any variation (for example: pull, move, convergent-divergent or the like) takes place in the newpapers and periodicals image, and pictures that can need from the trend server requests all, request employing Ajax mode.For example we have seen when the newpapers and periodicals image is moved, client calculates the picture that needs transmission, send the xml request to server, server can be given client the content asynchronous transmission of request, and the user can see the little new viewing area of the automatic completion of figure sector-meeting of newpapers and periodicals.All these calculating and processing are to use JS to finish at browser end all.Because browser has the caching function of picture, if therefore the user stirs reading back and forth at certain space of a whole page of newpapers and periodicals, in the course of time, and a large amount of newpapers and periodicals picture of browser meeting buffer memory, the display speed of the newspaper and magazine copy block of user's reading will be more and more faster like this.
Four, utilization Ajax interactive mode asynchronous transmission and request: Ajax are the abbreviations of Asynchronous JavaScript+XML, and the major technology of wherein using comprises:
1. representing based on the XHTML/CSS standard;
2. the dynamic demonstration of using DOM is with mutual;
3. use exchanges data and the processing of XML and XSLT;
4. use the asynchronous data of XMLHttpRequest to obtain;
5. by JavaScript all are bundled.
Traditional interactive mode there is no the execution of presentation logic in client, carries out all presentation logics by server end, then HTML/CSS is passed to client, and client is only done simply and represented.The problem of traditional interactive mode maximum is exactly any even small interbehavior all needs to go to server end, brings a large amount of delays to make the user feel very uncomfortable like this, has also reduced user's work efficiency.
The interactive mode of Ajax has had more an Ajax engine in client, and server passes to client no longer is HTML/CSS, but pure XML data, client sends request by XMLHttp to server end.All presentation logics are carried out by the JS script in client, finish by modification DOM then to represent.
Because this middle layer of the client of being positioned at has been arranged, can finish originally being placed on client in a lot of interworkings that server end is finished, and the response of the Ajax engine of client is instant, so user's interactive experience is greatly improved.Traditional plenty of time based on user under the interactive mode of HTML Form all has been wasted on the boring wait.The great advantage of this new interactive mode is exactly the experience that has improved the user.Do not need to refresh the page in addition in addition, reduced server processing burden, reduced the advantages such as data volume of exchange.
Five, utilization Ajax shows the original newspapers space of a whole page: the data image of all spaces of a whole page of newpapers and periodicals is broken down into one group of data image, and they are combined and have just constituted the justifying newpapers and periodicals.Browser interface is used for showing that the little picture number of newpapers and periodicals is limited, if each user creates new image when moving newspaper and magazine copy block, that will soon cause memory problem.Therefore, the little image of same newspaper and magazine copy block should be used to show different fragments repeatedly.Client will be finished by a hiding iframe with communicating by letter of server.As long as you search for or new direction of request newspaper and magazine copy block, response will be submitted and receive to this search or solicited message in this iframe.The data of returning will be represented with the XML form, and pass to a JavaScript function (Ajax engine) and handle.Then, this XML will use in a different manner, and some are used for calling correct image, and some use XSLT to convert HTML to and are presented on the browser Main form.Its result has shown online fast, easily newpapers and periodicals exactly.