Disclosure of Invention
The application provides a typesetting processing method, a typesetting processing device, typesetting processing equipment and a storage medium, so that the adjustment time of the format is shortened, and the publishing efficiency is improved.
In a first aspect, the present application provides a typesetting processing method, including:
responding to a first trigger operation of a user, and generating an initial layout diagram;
acquiring content to be published, and performing content filling processing in the initial layout image according to the content to be published to obtain and display a filled layout image;
responding to a second trigger operation of the user, and performing layout adjustment on the filled layout drawing to obtain an adjusted layout drawing;
and sending the format information corresponding to the adjusted layout drawing to terminal equipment for typesetting, so that the terminal equipment typesets the acquired content to be published according to the format information to obtain the typesetted layout.
Further, the initial layout diagram includes a plurality of object areas, wherein the object areas are placed according to the position placement information corresponding to the first trigger operation; the content to be published comprises content corresponding to a plurality of manuscripts;
after the generating the initial layout diagram and before performing content filling processing in the initial layout diagram according to the content to be published, the method further includes:
responding to a third trigger operation of the user, and performing association processing on each object area belonging to the same manuscript to obtain a manuscript area corresponding to each manuscript;
the filling content in the initial layout diagram according to the content to be published to obtain a filled layout diagram, including:
and according to the manuscript content corresponding to each manuscript, performing content filling processing in the manuscript area corresponding to each manuscript to obtain the filled layout diagram.
Further, the associating, in response to a third trigger operation of the user, each object area belonging to the same manuscript to obtain a manuscript area corresponding to each manuscript, includes:
responding to the third trigger operation of the user, and acquiring first identification information and coordinate information corresponding to each object area;
determining each object area belonging to the same manuscript according to the first identification information and the coordinate information which are respectively corresponding to each object area;
and performing association processing on each object area belonging to the same manuscript to obtain a manuscript area corresponding to each manuscript.
Further, the performing, according to the content of the manuscript corresponding to each manuscript, content filling processing in a manuscript area corresponding to each manuscript to obtain the filled layout diagram includes:
in response to a fourth trigger operation of the user, filling target content in the manuscript content corresponding to each manuscript into a manuscript area corresponding to each manuscript; wherein the target content comprises any one or more of: an introduction, a main title, a subtitle and a picture;
and aiming at a target manuscript with a text in the manuscript content, according to the number of characters corresponding to the text and a preset typestyle, performing content filling processing on a text area in a target manuscript area corresponding to the target manuscript, and when the number of the characters exceeds the bearing number of the characters corresponding to the text area, displaying the difference value between the characters and the bearing number of the characters at a preset position of the target manuscript area.
Further, after obtaining the manuscript area corresponding to each manuscript, the method further includes:
displaying a manuscript area corresponding to each manuscript on a first preset screen area of a display screen;
after the obtaining of the content to be published, the method further includes:
determining second identification information corresponding to each manuscript, and displaying the second identification information corresponding to each manuscript on a second preset screen area of the display screen;
the fourth trigger operation includes a plurality of movement tracks, where the movement tracks are used to indicate movement tracks of the second identification information from the second preset screen area to the first preset screen area.
Further, the object region includes any one of: a guide area, a main title area, a sub-title area, a text area and a picture area.
Further, the acquiring the content to be published includes: and sending a content acquisition request to a server so that the server returns the content to be published according to the content acquisition request.
In a second aspect, the present application provides a layout processing apparatus, including:
the generating unit is used for responding to a first trigger operation of a user and generating an initial layout diagram;
the acquisition unit is used for acquiring the content to be published;
the processing unit is used for performing content filling processing in the initial layout image according to the content to be published to obtain and display a filled layout image;
the adjusting unit is used for responding to a second trigger operation of the user and performing layout adjustment on the filled layout drawing to obtain an adjusted layout drawing;
and the sending unit is used for sending the format information corresponding to the adjusted layout diagram to the terminal equipment for typesetting, so that the terminal equipment performs typesetting processing on the acquired content to be published according to the format information to obtain the typesetted layout.
Further, the initial layout diagram includes a plurality of object areas, wherein the object areas are placed according to the position placement information corresponding to the first trigger operation; the content to be published comprises content corresponding to a plurality of manuscripts;
the processing unit is further configured to, after the generating unit generates an initial layout diagram and before content filling processing is performed in the initial layout diagram according to the content to be published, perform association processing on object areas belonging to the same manuscript in response to a third trigger operation of a user to obtain a manuscript area corresponding to each manuscript;
the processing unit is specifically configured to perform content filling processing in the manuscript area corresponding to each manuscript according to the manuscript content corresponding to each manuscript, so as to obtain the filled layout diagram.
Further, the processing unit is specifically configured to, in response to the third trigger operation of the user, obtain first identification information and coordinate information corresponding to each of the object areas; determining each object area belonging to the same manuscript according to the first identification information and the coordinate information which are respectively corresponding to each object area; and performing association processing on each object area belonging to the same manuscript to obtain a manuscript area corresponding to each manuscript.
Further, the processing unit is specifically configured to, in response to a fourth trigger operation of the user, fill target content in the manuscript content corresponding to each manuscript into a manuscript area corresponding to each manuscript; wherein the target content comprises any one or more of: an introduction, a main title, a subtitle and a picture; and aiming at a target manuscript with a text in manuscript contents, according to the number of characters corresponding to the text, and a preset typeface, performing content filling processing on a text area in a target manuscript area corresponding to the target manuscript, and when the number of the characters exceeds the number of the characters bearing the weight corresponding to the text area, displaying the difference value between the characters and the number of the characters bearing the weight at a preset position of the target manuscript area.
Further, the apparatus further comprises a first display unit, a second display unit, and a determination unit, wherein,
the first display unit is used for displaying the manuscript area corresponding to each manuscript on a first preset screen area of a display screen after the processing unit obtains the manuscript area corresponding to each manuscript;
the determining unit is used for determining second identification information corresponding to each manuscript after the acquiring unit acquires the content to be published; the second display unit is used for displaying second identification information corresponding to each manuscript on a second preset screen area of the display screen;
the fourth trigger operation includes a plurality of movement tracks, where the movement tracks are used to indicate movement tracks of the second identification information from the second preset screen area to the first preset screen area.
Further, the object region includes any one of: a guide area, a main title area, a sub-title area, a text area and a picture area.
Further, the obtaining unit is specifically configured to send a content obtaining request to a server, so that the server returns the content to be published according to the content obtaining request.
In a third aspect, the present application provides a layout processing apparatus, including: a memory and a processor;
the memory for storing a computer program;
wherein the processor executes the computer program in the memory to implement any of the methods of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for performing any of the methods of the first aspect when executed by a processor.
The typesetting processing method, the typesetting processing device, the typesetting processing equipment and the storage medium generate an initial layout diagram by responding to a first trigger operation of a user, acquire content to be published, perform content filling processing in the initial layout diagram according to the content to be published to obtain and display the filled layout diagram, respond to a second trigger operation of the user, perform layout adjustment on the filled layout diagram to obtain an adjusted layout diagram; and sending the format information corresponding to the adjusted layout drawing to terminal equipment for typesetting, so that the terminal equipment typesets the acquired content to be published according to the format information to obtain the typesetted layout. The layout is associated and combined with the actual content to be published to obtain the layout effect, so that the layout is effectively adjusted based on the layout effect, the layout is more attached to the content to be published, the layout is more accurate, and the designed layout does not need to be changed and adjusted greatly during actual typesetting, so that the change time is shortened, the publishing efficiency is greatly improved, and the user experience is further improved.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Taking a publication newspaper as an example, the newspaper of a newspaper company has more pages, the content checking and format confirmation takes long time, each working link is completed by different roles, when the newspaper is published nationwide and all over the world, the time requirement is strict, and the time left for format design and format combination is less and less, so that higher requirements are provided for drawing and format combination (typesetting), namely, the edition is required to complete the design of format layout with higher efficiency, the candidate layout of the design is submitted to a leader (such as an on-duty sub-general compilation) for confirmation, the format combination (typesetting) work is carried out according to the confirmed layout, and finally, PDF (Portable document format) is output for subsequent version printing. At present, a drawing tool based on a tablet computer is mainly adopted, the tool can complete the making of layout in a touch mode, then a picture is generated and confirmed by a leader, and the layout after editing and contrast confirmation is typeset in typesetting software. In the prior art, mainly, an editor designs a layout on the tool by virtue of own experience, so that during actual typesetting, the phenomenon that contents to be published and related layout are extremely inappropriate usually occurs, and the related layout needs to be changed greatly, so that the time required for the change is long, the publishing efficiency is reduced, and the user experience is influenced.
Based on this, this application is through treating the content of publishing with format layout and reality and associating and combine, obtains the initial arrangement effect to effectively adjust the format layout based on the initial arrangement effect, make the format layout more laminate treat the publishing content, more be accurate, thereby when actually typesetting, can need not to carry out very big change adjustment to the format layout of design, shortened the change time, greatly improved publishing efficiency, and then promoted user experience.
There are many application scenarios in the present application, and taking one of them as an example, the typesetting processing method provided in the present application can be applied to a terminal device. As shown in fig. 1, fig. 1 is a schematic structural diagram of a terminal device provided in the present application. The user can complete the design, the content initial arrangement, the format layout adjustment and the like of the format layout on the terminal equipment in a touch mode.
The following describes in detail a method, an apparatus, a device, and a storage medium for typesetting processing provided by the present application.
Fig. 2 is a schematic flowchart of a typesetting processing method provided in an embodiment of the present application, and as shown in fig. 2, the method includes:
step 201: and generating an initial layout diagram in response to a first trigger operation of a user.
In this embodiment, in response to a first trigger operation of the user, the first trigger operation may include a plurality of first sub-trigger operations, so that the initial layout diagram is generated based on the plurality of first sub-trigger operations. That is, the generation of the initial layout diagram is completed based on a plurality of trigger operations by the user. Specifically, the user can complete the design of the initial layout diagram by a touch manner and operation buttons. For example, in the case of publishing a newspaper, a bottom board of the corresponding newspaper may be displayed to a user, and then on the bottom board, the user may complete the design of the initial layout drawing by touching the screen (e.g., manually drawing a long frame as a main title area, and then drawing another long frame as another sub-title area, etc., or manually adjusting the placement positions of the created main title area and the created sub-title area, etc.) and clicking the corresponding operating button below (e.g., the 3 rd operating button represents the picture area). The specific process of generating the initial layout diagram by a touch manner or operating a button can be implemented based on the prior art.
Step 202: and acquiring the content to be published, and performing content filling processing in the initial layout diagram according to the content to be published to obtain and display the filled layout diagram.
In this embodiment, a content to be published which actually needs to be published is acquired, then the content to be published is combined with an initial layout diagram to obtain a preliminary arrangement effect, specifically, content filling processing is performed in the initial layout diagram, so that a filled layout diagram, that is, the preliminary arrangement effect, is obtained, and the filled layout diagram is displayed. For example, the content to be published includes a main title "celebration", so that the corresponding main title area of the initial layout drawing may be filled with "celebration".
Step 203: and responding to a second trigger operation of the user, and performing layout adjustment on the filled layout diagram to obtain an adjusted layout diagram.
In this embodiment, in response to a second trigger operation of the user, the second trigger operation may include a plurality of second sub-trigger operations, so that based on the plurality of second sub-trigger operations, the layout adjustment of the filled layout diagram is completed, and the adjusted layout diagram is obtained. That is, the adjustment of the layout is completed based on a plurality of trigger operations by the user. For example, the user may adjust the size of the main title area by dragging the border corresponding to the main title area, and the user may adjust the placement position of the main title by clicking the border corresponding to the main title area.
Step 204: and sending the format information corresponding to the adjusted layout drawing to the terminal equipment for typesetting, so that the terminal equipment performs typesetting processing on the acquired content to be published according to the format information to obtain the typesetted layout.
In this embodiment, after the adjusted layout is obtained based on the second trigger operation of the user, the layout information corresponding to the adjusted layout, for example, the size, the coordinate information, and the like of each headline area, may be sent to the terminal device for typesetting, so that after the terminal device obtains the layout information, the terminal device may perform typesetting processing on the actual content to be published according to the layout information, and obtain the typesetted layout.
The application provides a typesetting processing method, which comprises the steps of generating an initial layout drawing by responding to a first trigger operation of a user, obtaining a content to be published, filling the content in the initial layout drawing according to the content to be published to obtain and display the filled layout drawing, responding to a second trigger operation of the user, and performing layout adjustment on the filled layout drawing to obtain an adjusted layout drawing; and sending the format information corresponding to the adjusted layout drawing to terminal equipment for typesetting, so that the terminal equipment typesets the acquired content to be published according to the format information to obtain the typesetted layout. The layout is associated and combined with the actual content to be published to obtain the layout effect, so that the layout is effectively adjusted based on the layout effect, the layout is more attached to the content to be published, the layout is more accurate, and the designed layout does not need to be changed and adjusted greatly during actual typesetting, so that the change time is shortened, the publishing efficiency is greatly improved, and the user experience is further improved.
Fig. 3 is a schematic flowchart of a typesetting processing method provided in the second embodiment of the present application, and as shown in fig. 3, the method includes:
step 301: and responding to a first trigger operation of a user, and generating an initial layout diagram, wherein the initial layout diagram comprises a plurality of object areas, and the object areas are placed according to the position placing information corresponding to the first trigger operation.
In this embodiment, in response to the first triggering operation of the user, that is, multiple triggering based on the user, the specific triggering process may refer to the related explanations in the first embodiment, and details are not described here. An initial layout diagram is generated, wherein the initial layout diagram includes a plurality of object regions. Optionally, the object region includes any one of: a guide area, a main title area, a sub-title area, a text area and a picture area.
In this embodiment, when the target area is any one of the title area, the main title area and the subtitle area, the title number may be calculated according to the size of the target area, specifically, according to the width of the target area, and preset characters may be filled in the target area according to the title number, so that a user (usually editing) can know the size of the title number and the number of the arrangeable title words in the target area.
When the object area is a picture area, the object area can be filled with a built-in schematic picture, so that the picture effect is displayed through the schematic picture, and the adjustment by a user is facilitated.
When the object area is a text area, the typesetting number of the object area can be calculated according to the area of the object area and the preset newspaper sample font size (such as a four-number character), so that a user can conveniently evaluate the size of the object area and reasonably adjust the size.
In addition, when the object area is a text area, the method can respond to other trigger operations of the user to perform column division setting on the object area, and is convenient for the user to check the real layout effect.
Exemplarily, as shown in fig. 4, fig. 4 is a schematic diagram of a layout diagram provided in the second embodiment of the present application, where the information marked in the initial layout diagram includes: newspaper baseboard, text indication (here, may be empty, that is, no text information is currently filled in), title indication, typesetable number (specifically, the number of words that can be typeset in the text area), indicating picture, and operation button.
Step 302: and responding to a third trigger operation of the user, and performing association processing on each object area belonging to the same manuscript to obtain a manuscript area corresponding to each manuscript.
In this embodiment, in response to a third trigger operation of the user, the third trigger operation may specifically refer to a one-key operation, that is, in response to the one-key trigger operation of the user, the topic area, the main title area, the subtitle area, the text area, and the picture area belonging to the same manuscript (specifically, a news manuscript) are aggregated (aggregation refers to grouping them into one manuscript) together, that is, associated together, so as to obtain a manuscript area corresponding to each manuscript, and then, based on the association, the content filling processing corresponding to each manuscript may be subsequently implemented. Alternatively, a schematic box may be drawn on the boundary of each manuscript area for highlighting. The position and the size of each object area are not changed. Specifically, as shown in fig. 5, fig. 5 is a schematic diagram of another layout provided in the second embodiment of the present application.
In this embodiment, the step 302 may specifically include the following steps:
the method comprises the first step of responding to a third trigger operation of a user, and acquiring first identification information and coordinate information corresponding to each object area.
And secondly, determining each object area belonging to the same manuscript according to the first identification information and the coordinate information which are respectively corresponding to each object area.
And thirdly, performing association processing on each object area belonging to the same manuscript to obtain a manuscript area corresponding to each manuscript.
In this embodiment, the first identification information is used to indicate the identity (or category) of the object area, such as the identity of the object area is a text area, and so on. Specifically, when performing association, an object area whose identity is a main title area may be found according to the identity of each object area, and then the object area is taken as a reference and gradually extended outward according to the coordinate information of the object area, so that other object areas belonging to the same manuscript as the object area may be determined, and the object area and the determined other object areas are determined as a manuscript area.
Step 303: and sending a content acquisition request to the server so that the server returns the content to be published according to the content acquisition request, wherein the content to be published comprises the content corresponding to the manuscripts.
In this embodiment, the server stores actual content to be published, and the content to be published includes content corresponding to a plurality of manuscripts. Specifically, the content to be published is described in an Extensible Markup Language (XML) format or a news-oriented web Language NewsML format, and the content to be published identifies the content of a news manuscript, such as a quotation, a main title, a subtitle, a text, a picture, and the like, by using a tag. For example, in a manuscript in the content to be published, there are corresponding content 1 and content 2 described in XML format, where the content 1 is actually a main title and the content 2 is a sub-title, and therefore, the content 1 and the content 2 can be identified by different tags, so as to identify the content 1 as the main title and the content 2 as the sub-title.
Step 304: and according to the manuscript content corresponding to each manuscript, performing content filling processing in the manuscript area corresponding to each manuscript to obtain a filled layout diagram.
In this embodiment, step 304 may specifically include the following steps:
the method comprises the following steps that firstly, target contents in manuscript contents corresponding to manuscripts are filled into manuscript areas corresponding to the manuscripts in response to fourth trigger operation of a user; wherein the target content comprises any one or more of: an introduction, a main title, a subtitle and a picture;
and secondly, aiming at a target manuscript with a text in the manuscript content, according to the number of characters corresponding to the text and a preset typeface, performing content filling processing on a text area in a target manuscript area corresponding to the target manuscript, and when the number of the characters exceeds the number of the characters bearing the text area, displaying the difference value between the characters and the number of the characters bearing the text area at a preset position of the target manuscript area.
In the embodiment, the content is filled in response to a fourth trigger operation of the user, namely, in a man-machine interaction manner. For example, when the manuscript has target content of any one or more of an introduction, a main title, a subtitle and a picture, the introduction can be filled in a corresponding introduction area in a manuscript area corresponding to the manuscript (if schematic characters exist before, replacement processing can be performed here), and/or the main title can be filled in a corresponding main title area in the manuscript area corresponding to the manuscript, and/or the picture can be filled in a corresponding picture area in the manuscript area corresponding to the manuscript (if schematic pictures exist before, replacement processing can be performed here), and the like. When the number of the title words corresponding to the title area (the title area can refer to any one of the title area, the main title area and the sub-title area) is less, a blank area is presented at the tail of the title area, and when the number of the words is too much, the number of the unarranged words can be calculated and presented at the tail, so that the layout adjustment can be carried out by the user. When the manuscript has text content, filling the content in the corresponding text area in the manuscript area corresponding to the manuscript according to the number of characters (such as 180) corresponding to the text content and a preset character style (such as repeatedly displaying the text), and if the number of characters is less, presenting a blank area at the tail part; if the number of characters is large, the number of characters which are not arranged can be calculated, namely, the difference value between the number of characters and the character bearing number (for example, 160) corresponding to the manuscript area can be calculated, namely 20 is presented at the tail part, so that the user can perform layout adjustment on the current layout according to the difference value.
Optionally, after obtaining the manuscript area corresponding to each manuscript, the method further includes:
displaying a manuscript area corresponding to each manuscript on a first preset screen area of a display screen;
after obtaining the content to be published, the method further comprises the following steps:
determining second identification information corresponding to each manuscript, and displaying the second identification information corresponding to each manuscript on a second preset screen area of the display screen;
the fourth trigger operation includes a plurality of movement trajectories, where the movement trajectories are used to indicate movement trajectories of the second identification information from the second preset screen area to the first preset screen area.
In this embodiment, the display screen may be divided into a first preset screen area and a second preset screen area, specifically, a manuscript area corresponding to each manuscript may be displayed on the first preset screen area, and second identification information corresponding to each manuscript is displayed in a list form on the second preset screen area, where the second identification information of each manuscript may specifically be content of a main title corresponding to the manuscript. Based on this, the user may drag each second identification information from the second preset screen area to a corresponding manuscript area within the first preset screen area, thereby completing content filling for each manuscript area.
Step 305: and responding to a second trigger operation of the user, and performing layout adjustment on the filled layout diagram to obtain an adjusted layout diagram.
In this embodiment, after completing content filling processing according to an actual content to be published to obtain a filled layout diagram, a second trigger operation of the user may be responded to, where the second trigger operation may also be a trigger operation that includes multiple times of the user, so as to implement layout adjustment on the filled layout diagram, and the layout adjustment specifically may refer to adjustment of the size, the position, and the like of each object area in each manuscript area.
Step 306: and sending the format information corresponding to the adjusted layout drawing to the terminal equipment for typesetting, so that the terminal equipment performs typesetting processing on the acquired content to be published according to the format information to obtain the typesetted layout.
In this embodiment, after obtaining the adjusted layout diagram, the layout information corresponding to the layout diagram may be sent to the terminal device for composition, where the layout information may specifically include the size, placement position information, column information, and the like corresponding to each object area, and based on this, the terminal device for composition may perform composition processing on the obtained content to be published according to the layout information, where a specific composition processing process may be implemented based on the prior art. Alternatively, the terminal device for composition may obtain the content to be published from the server, or may obtain the content to be published from the execution subject (composition processing apparatus/terminal device) in this embodiment.
In addition, in order to improve the typesetting process of the terminal equipment for typesetting, after the content filling processing is carried out, the corresponding relation between the second identification information of the manuscript and the manuscript area can be stored, so that the terminal equipment for typesetting realizes the quick typesetting processing according to the corresponding relation.
In addition, the finishing of the layout is realized through the terminal equipment for typesetting, and based on the finishing, in the typesetting process, the operations such as deletion, modification and the like may be performed on the characters in some object areas, so that in order to maintain the consistency of data, the manuscript write-back operation is also required to be performed, specifically, for the changed content, the terminal equipment for typesetting can send a change request to the server, so that the server can change the stored content to be published according to the change request. Because the content to be published in the XML format is stored in the server and the related content is associated with the XML label of the manuscript, the write-back of the manuscript content can be realized based on the association mode. After the server completes the change processing, the server can be used for archiving or multi-channel publishing and the like.
In addition, the text can have indexing information with finer granularity, and the information is maintained in each link and finally written back to the manuscript. For example, information such as news agencies, time, subtitles, authors, etc. in the text can be indexed with finer granularity. And the larger XML typesetting capability is further enhanced.
In the embodiment, by responding to the third trigger operation of the user, the quick association processing of the object areas belonging to the same manuscript can be realized, and the interaction feeling between the user and the equipment is improved. In this embodiment, the difference value, that is, the number of the unarranged characters, is displayed at the tail of the object area, so that the user can effectively adjust the corresponding object area according to the difference value. The embodiment optimizes the workflow, separates creative work from technical detail processing, prevents creative activities from being interfered by complex technical operation, and can carry out creative work at will; due to the application of a wide intelligent processing technology, an operator can know key information more accurately, creative work can meet technical requirements more, and the problem that the difference between the creative work and actual technical requirements is too large is avoided; the creative work is closely linked with the technical work, and the achievement is inherited, so that the working efficiency is greatly improved; and a more appropriate tool is used in different stages, for example, in a manuscript write-back stage, the write-back operation is quickly realized through interaction between the terminal equipment for typesetting and the server, so that the work becomes easier and more efficient.
Fig. 6 is a schematic structural diagram of a typesetting processing device provided in the third embodiment of the present application, and as shown in fig. 6, the device includes:
a generating unit 601, configured to generate an initial layout diagram in response to a first trigger operation by a user.
An obtaining unit 602, configured to obtain content to be published.
The processing unit 603 is configured to perform content filling processing in the initial layout diagram according to the content to be published, so as to obtain and display a filled layout diagram.
An adjusting unit 604, configured to perform layout adjustment on the filled layout diagram in response to a second trigger operation of the user, so as to obtain an adjusted layout diagram.
A sending unit 605, configured to send the format information corresponding to the adjusted layout diagram to the terminal device for typesetting, so that the terminal device performs typesetting processing on the acquired content to be published according to the format information, and obtains a typesetted layout.
The typesetting processing device provided in this embodiment is the same as the technical solution for implementing the typesetting processing method provided in any of the foregoing embodiments, and the implementation principle and technical effect thereof are similar and will not be described again.
Fig. 7 is a schematic structural diagram of a typesetting processing apparatus according to a fourth embodiment of the present application, where based on the third embodiment, as shown in fig. 7, an initial layout diagram includes a plurality of object areas, where the object areas are placed according to position placement information corresponding to a first trigger operation; the content to be published comprises content corresponding to a plurality of manuscripts.
The processing unit 603 is further configured to, after the generating unit generates the initial layout diagram and before performing content filling processing in the initial layout diagram according to the content to be published, perform association processing on object areas belonging to the same manuscript in response to a third trigger operation of the user, so as to obtain a manuscript area corresponding to each manuscript.
The processing unit 603 is specifically configured to perform content filling processing in the manuscript area corresponding to each manuscript according to the manuscript content corresponding to each manuscript, so as to obtain a layout after filling.
Further, the processing unit 603 is specifically configured to, in response to a third trigger operation of the user, obtain first identification information and coordinate information corresponding to each object area; determining each object area belonging to the same manuscript according to the first identification information and the coordinate information which are respectively corresponding to each object area; and performing association processing on each object area belonging to the same manuscript to obtain a manuscript area corresponding to each manuscript.
Further, the processing unit 603 is specifically configured to, in response to a fourth trigger operation of the user, fill target content in the manuscript content corresponding to each manuscript into a manuscript area corresponding to each manuscript; wherein the target content comprises any one or more of: an introduction, a main title, a subtitle and a picture; and aiming at a target manuscript with a text in the manuscript content, according to the number of characters corresponding to the text and a preset typeface, performing content filling processing on a text area in a target manuscript area corresponding to the target manuscript, and when the number of the characters exceeds the number of the bearing of the characters corresponding to the text area, displaying the difference value between the characters and the number of the bearing of the characters at a preset position of the target manuscript area.
Further, the apparatus comprises a first display unit 701, a second display unit 702 and a determination unit 703, wherein,
a first display unit 701, configured to display, after the processing unit 603 obtains the manuscript area corresponding to each manuscript, the manuscript area corresponding to each manuscript on a first preset screen area of a display screen.
A determining unit 703, configured to determine, after the obtaining unit 602 obtains the content to be published, second identification information corresponding to each manuscript.
A second display unit 702, configured to display second identification information corresponding to each manuscript on a second preset screen area of the display screen.
The fourth trigger operation includes a plurality of movement trajectories, where the movement trajectories are used to indicate movement trajectories of the second identification information from the second preset screen area to the first preset screen area.
Further, the object region includes any one of: a guide area, a main title area, a sub-title area, a text area and a picture area.
Further, the obtaining unit 602 is specifically configured to send a content obtaining request to the server, so that the server returns the content to be published according to the content obtaining request.
The typesetting processing apparatus provided in this embodiment is the same as the technical solution for implementing the typesetting processing method provided in any of the foregoing embodiments, and the implementation principle and technical effects thereof are similar and will not be described again.
Fig. 8 is a schematic structural diagram of a typesetting processing device according to a sixth embodiment of the present application, as shown in fig. 7, a memory 801 and a processor 802; the memory 801 is used for storing computer programs.
The processor 802 executes the computer program stored in the storage 801 to implement the technical solution of the typesetting processing method according to any implementation manner provided by the foregoing embodiments.
The present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the technical solution of the typesetting processing method in any one of the implementation manners provided in the foregoing embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.