CN102467745A - Method and device for typesetting - Google Patents

Method and device for typesetting Download PDF

Info

Publication number
CN102467745A
CN102467745A CN2010105480685A CN201010548068A CN102467745A CN 102467745 A CN102467745 A CN 102467745A CN 2010105480685 A CN2010105480685 A CN 2010105480685A CN 201010548068 A CN201010548068 A CN 201010548068A CN 102467745 A CN102467745 A CN 102467745A
Authority
CN
China
Prior art keywords
composing
space
instruction
whole page
adjusted
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
CN2010105480685A
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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN2010105480685A priority Critical patent/CN102467745A/en
Publication of CN102467745A publication Critical patent/CN102467745A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for typesetting, comprising: providing a control; sending an instruct by the control when receiving the user operation; adjusting a first direction typesetting on the layout into a second direction typesetting by triggering the instruct, and rotating all the contents on the layout by a certain angle. The invention also provides a typesetting device, comprising: a control for sending the instruct when receiving the user operation; a triggering module for adjusting the first direction typesetting on the layout into the second direction typesetting by instruct triggering, and rotating all the contents on the layout by a certain angle. The method and the device for typesetting achieve a richer typesetting effect.

Description

Composition method and device
Technical field
The present invention relates to print field, in particular to composition method and device.
Background technology
At present, in the print publishing industry, word content set type to handle only provides two kinds of writing directions: laterally set type and set type with vertical.Wherein laterally setting type is row from left to right, and vertical the composing arranged for right rising from top to bottom, but no matter horizontally-arranged or vertical setting of types, the direction of composing content itself is not made change.
The inventor finds that prior art only provides this two kinds of writing directions, and the composing effect that is realized is relatively more dull, can not satisfy the diversified demand of user.
Summary of the invention
The present invention aims to provide a kind of composition method and device, to solve the relatively more dull problem of existing composing effect.
In an embodiment of the present invention, a kind of composition method is provided, has comprised: control is provided; Control sends instruction when the operation that receives the user; Instruction triggers is set type the first direction of the space of a whole page and is adjusted into the second direction composing, and with angle of all space of a whole page contents rotations.
In an embodiment of the present invention, a kind of composing device is provided, has comprised: control is used for when the operation that receives the user, sending instruction; Trigger module, being used for according to instruction triggers the first direction of the space of a whole page being set type is adjusted into second direction and sets type, and with angle of all space of a whole page contents rotations.
The composition method of the above embodiment of the present invention because when changing writing direction, also adjusted the anglec of rotation of space of a whole page content, so overcome the relatively more dull problem of existing composing effect, has been realized abundanter composing effect with device.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 shows the process flow diagram of composition method according to an embodiment of the invention;
Fig. 2 shows the composing effect synoptic diagram of the passage of forward horizontally-arranged according to the preferred embodiment of the invention;
Fig. 3 shows the composing effect synoptic diagram that content among Fig. 2 is rotated counterclockwise 90 degree;
Fig. 4 shows the composing effect synoptic diagram that the content dextrorotation turn 90 degrees among Fig. 2;
Fig. 5 shows the form effect synoptic diagram of forward horizontally-arranged according to the preferred embodiment of the invention;
Fig. 6 shows the composing effect synoptic diagram that content among Fig. 5 is rotated counterclockwise 90 degree;
Fig. 7 shows the composing effect synoptic diagram that the content dextrorotation turn 90 degrees among Fig. 5;
Fig. 8 shows the composing effect synoptic diagram that contains picture of forward horizontally-arranged according to the preferred embodiment of the invention;
Fig. 9 shows the composing effect synoptic diagram that content among Fig. 8 is rotated counterclockwise 90 degree;
Figure 10 shows the composing effect synoptic diagram that the content dextrorotation turn 90 degrees among Fig. 8;
Figure 11 shows the process flow diagram of composition method in accordance with a preferred embodiment of the present invention;
Figure 12 shows the synoptic diagram of composing device according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawing and combine embodiment, specify the present invention.
Fig. 1 shows the process flow diagram of composition method according to an embodiment of the invention, comprising:
Step S10 provides control, for example control is arranged in the menu bar of software for composing, allows user's clicking operation;
Step S20, control sends instruction when the operation that receives the user;
Step S30, instruction triggers is set type the first direction of the space of a whole page and is adjusted into the second direction composing, and with angle of all space of a whole page contents rotations.
When prior art is set type; No matter horizontally-arranged or vertical setting of types; The direction of composing content itself is not made change, and in the present embodiment, allows user's operational controls with angle of all space of a whole page content rotations; So overcome the relatively more dull problem of existing composing effect, realized abundanter composing effect.
Preferably, step S30 comprises following at least one step:
According to instruction is first instruction, and will laterally set type is adjusted into vertical composing, and with all space of a whole page content rotation inverse clock 90 degree;
According to instruction is second instruction, and will laterally set type is adjusted into vertical composing, and with all space of a whole page content rotation clockwise 90 degree;
According to instruction is the 3rd instruction, will vertically set type to be adjusted into horizontal composing, and with all space of a whole page content rotation inverse clock 90 degree;
According to instruction is the 4th instruction, will vertically set type to be adjusted into horizontal composing, and with all space of a whole page content rotation clockwise 90 degree.
A plurality of controls can be set in menu bar or in a control, a plurality of options be set, send different instructions to be respectively applied for.And this preferred embodiment provides four kinds of different composing effects according to different instructions.
Like Fig. 2,3, shown in 4, be the embodiment of word content.Fig. 2 is the composing effect of literal forward horizontally-arranged; Fig. 3 is the composing effect of Fig. 2 Chinese words content vertical setting of types from the lower left corner; The composing effect that promptly obtains through the composition information among conversion Fig. 2; Fig. 3 is the composing effect of Fig. 1 Chinese words content vertical setting of types from the upper right corner, the composing effect that promptly obtains through the composition information among conversion Fig. 2;
Like Fig. 5,6, shown in 7, be the embodiment of table content.Fig. 5 is the composing effect of form forward horizontally-arranged, and Fig. 6 is the composing effect of table content vertical setting of types from the lower left corner among Fig. 5, and Fig. 7 is the composing effect of Fig. 5 Chinese words content vertical setting of types from the upper right corner;
Like Fig. 8,9, shown in 10, be the embodiment of image content.Fig. 8 is the composing effect of image content forward horizontally-arranged; Fig. 9 is the composing effect of image content vertical setting of types from the lower left corner among Fig. 8; Picture has been done the rotation of counterclockwise 90 degree, and Figure 10 is the composing effect of image content vertical setting of types from the upper right corner among Fig. 8, and picture has been done the rotation of clockwise 90 degree.
Composing effect when prior art does not have any composition method to reach the content of horizontally-arranged done counterclockwise 90 degree rotations or clockwise 90 degree rotations not only want vertical setting of types, and word content also will be done rotation.Vertical composing in the space of a whole page of horizontally-arranged under the situation of insertion literal rotation does not also have such composing effect at present.Like Fig. 2-shown in Figure 10, this preferred embodiment triggers these different composing rotary manipulations, thereby flexile composing effect is provided, and can satisfy user's demand better.
Preferably, through the coordinate of space of a whole page content is done linear transformation, realization will laterally be set type to be adjusted into vertical composing or will vertically to set type and will be adjusted into horizontal composing; Through the rotation attribute of composing content is set, with composing content rotation clockwise 90 degree or inverse clock 90 degree.Print publishing file for example pdf document all comprises the coordinate system space usually, and the composing content is provided with the rotation attribute, and this preferred embodiment can be realized various rotary manipulations at an easy rate through the setting of operation coordinate linear transformation and rotation attribute.It should be noted that the linear transformation that can do coordinate earlier, also can do the setting of rotation attribute earlier, embodiments of the invention are unqualified to the priority order.
Preferably, the coordinate of space of a whole page content is done linear transformation comprise: space of a whole page content is a literal, and the font size that deducts the x direction of literal through the lower right corner coordinate with literal obtains the upper left corner coordinate of literal.
Preferably, the coordinate of space of a whole page content is done linear transformation comprise: space of a whole page content is a picture, and the width that deducts picture through the lower left corner coordinate with picture obtains the upper left corner coordinate of picture.
Above-mentioned two preferred embodiments have provided the scheme that literal and two kinds of more common composing contents of picture are carried out linear transformation.
Figure 11 shows the process flow diagram of composition method in accordance with a preferred embodiment of the present invention, may further comprise the steps:
(1) input pdf document, the selected word content that will set type;
(2) selected composing content is done by left-to-right horizontal composing the record composition information;
(3) change writing direction into vertical setting of types;
(4) judge whether to carry out anticlockwise commentaries on classics row (content of promptly setting type rotation);
(5) if carry out anticlockwise commentaries on classics row, then begin to arrange from top to bottom from the lower left corner, the rotation attribute of literal is set simultaneously, all word contents are rotated counterclockwise 90 degree;
(6) if not carrying out anticlockwise commentaries on classics row, confirm as clockwise commentaries on classics row;
(7) begin to arrange from top to bottom from the upper right corner, the rotation attribute of literal is set simultaneously, all word content dextrorotations turn 90 degrees;
(8) coordinate of the composition information that obtains in the step (2) is done corresponding linear transformation;
(9) show according to new coordinate and rotation attribute.
In the step (2), composition information comprises attributes such as the origin coordinates, font, font size, color of literal, and the attributes such as coordinate of picture, and the coordinate information of other points, straight line figures.
The conversion of composition information note following some:
1) all coordinates in the composition information of record all will be done conversion on request in the step (2);
2) composition information adopts like the down conversion principle, and the composing content will equal the distance of former composing content to space of a whole page x direction central point to the distance of space of a whole page y direction central point after the conversion;
3) to the corresponding anglec of rotation be set to literal and picture.
In the step (2), further comprise:
1) calculate the upper left corner coordinate time of literal, the font size that the lower right corner coordinate through literal deducts the x direction of literal obtains;
2) calculate the upper left corner coordinate time of picture, the width that the lower left corner coordinate through picture deducts picture obtains.
Figure 12 shows the synoptic diagram of composing device according to an embodiment of the invention, comprising:
Control 10 is used for when the operation that receives the user, sending instruction;
Trigger module 20, being used for according to instruction triggers the first direction of the space of a whole page being set type is adjusted into second direction and sets type, and with angle of all space of a whole page contents rotations.
This composing device has overcome the relatively more dull problem of existing composing effect, has realized abundanter composing effect.
Preferably, trigger module comprises following at least one module: first module, and being used for according to instruction is first instruction, will laterally set type is adjusted into vertical composing, and with all space of a whole page content rotation inverse clock 90 degree; Second module, being used for according to instruction is second instruction, will laterally set type is adjusted into vertical composing, and with all space of a whole page content rotation clockwise 90 degree; Three module, being used for according to instruction is the 3rd instruction, will vertically set type to be adjusted into horizontal composing, and with all space of a whole page content rotation inverse clock 90 degree; Four module, being used for according to instruction is the 4th instruction, will vertically set type to be adjusted into horizontal composing, and with all space of a whole page content rotation clockwise 90 degree.This preferred embodiment triggers these different composing rotary manipulations, thereby flexile composing effect is provided, and can satisfy user's demand better.
Preferably, first module, second module, three module and four module include: linear block, be used for through the coordinate of space of a whole page content is done linear transformation, and realization will laterally be set type to be adjusted into vertical composing or will vertically to set type and will be adjusted into horizontal composing; Rotary module is used for through the rotation attribute of composing content is set, with composing content rotation clockwise 90 degree or inverse clock 90 degree.This preferred embodiment can be realized various rotary manipulations at an easy rate through the setting of operation coordinate linear transformation and rotation attribute.
Preferably, linear block comprises: the literal module, be used for when space of a whole page content is literal, and the font size that deducts the x direction of literal through the lower right corner coordinate with literal obtains the upper left corner coordinate of literal.
Preferably, linear block comprises: the picture module, be used for when space of a whole page content is picture, and the width that deducts picture through the lower left corner coordinate with picture obtains the upper left corner coordinate of picture.
Above-mentioned two preferred embodiments have provided the scheme that literal and two kinds of more common composing contents of picture are carried out linear transformation.
Can find out that from above description the above embodiments of the present invention can make things convenient for the user to realize the composing that writing direction and words direction are adjusted simultaneously quickly and easily, have filled up the blank in the existing typesetting technique.
Obviously; It is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize that they can concentrate on the single calculation element with the general calculation device; Perhaps be distributed on the network that a plurality of calculation element forms; Alternatively, they can be realized with the executable program code of calculation element, carried out by calculation element thereby can they be stored in the memory storage; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a composition method is characterized in that, comprising:
Control is provided;
Said control sends instruction when the operation that receives the user;
Said instruction triggers is set type the first direction of the space of a whole page and is adjusted into the second direction composing, and with angle of all space of a whole page contents rotations.
2. method according to claim 1 is characterized in that, said instruction triggers is set type the first direction of the space of a whole page and is adjusted into the second direction composing, and angle of all space of a whole page contents rotations is comprised following at least one step:
According to said instruction is first instruction, and will laterally set type is adjusted into vertical composing, and with all space of a whole page content rotation inverse clock 90 degree;
According to said instruction is second instruction, and will laterally set type is adjusted into vertical composing, and with all space of a whole page content rotation clockwise 90 degree;
According to said instruction is the 3rd instruction, will vertically set type to be adjusted into horizontal composing, and with all space of a whole page content rotation inverse clock 90 degree;
According to said instruction is the 4th instruction, will vertically set type to be adjusted into horizontal composing, and with all space of a whole page content rotation clockwise 90 degree.
3. method according to claim 2 is characterized in that,
Through the coordinate of said space of a whole page content is done linear transformation, realize said horizontal composing is adjusted into said vertical composing or said vertical composing is adjusted into said horizontal composing;
Through the rotation attribute of said composing content is set, with said composing content rotation clockwise 90 degree or inverse clock 90 degree.
4. method according to claim 3 is characterized in that, the coordinate of said space of a whole page content is done linear transformation comprise:
Said space of a whole page content is a literal, and the font size that deducts the x direction of said literal through the lower right corner coordinate with said literal obtains the upper left corner coordinate of said literal.
5. method according to claim 3 is characterized in that, the coordinate of said space of a whole page content is done linear transformation comprise:
Said space of a whole page content is a picture, and the width that deducts said picture through the lower left corner coordinate with said picture obtains the upper left corner coordinate of said picture.
6. a composing device is characterized in that, comprising:
Control is used for when the operation that receives the user, sending instruction;
Trigger module, being used for according to said instruction triggers the first direction of the space of a whole page being set type is adjusted into second direction and sets type, and with angle of all space of a whole page contents rotations.
7. device according to claim 6 is characterized in that, said trigger module comprises following at least one module:
First module, being used for according to said instruction is first instruction, will laterally set type is adjusted into vertical composing, and with all space of a whole page content rotation inverse clock 90 degree;
Second module, being used for according to said instruction is second instruction, will laterally set type is adjusted into vertical composing, and with all space of a whole page content rotation clockwise 90 degree;
Three module, being used for according to said instruction is the 3rd instruction, will vertically set type to be adjusted into horizontal composing, and with all space of a whole page content rotation inverse clock 90 degree;
Four module, being used for according to said instruction is the 4th instruction, will vertically set type to be adjusted into horizontal composing, and with all space of a whole page content rotation clockwise 90 degree.
8. device according to claim 7 is characterized in that, said first module, said second module, said three module and said four module include:
Linear block is used for through the coordinate of said space of a whole page content is done linear transformation, realizes said horizontal composing is adjusted into said vertical composing or said vertical composing is adjusted into said horizontal composing;
Rotary module is used for through the rotation attribute of said composing content is set, with said composing content rotation clockwise 90 degree or inverse clock 90 degree.
9. device according to claim 8 is characterized in that, said linear block comprises:
The literal module is used for when said space of a whole page content is literal, and the font size that deducts the x direction of said literal through the lower right corner coordinate with said literal obtains the upper left corner coordinate of said literal.
10. device according to claim 8 is characterized in that, said linear block comprises:
The picture module is used for when said space of a whole page content is picture, and the width that deducts said picture through the lower left corner coordinate with said picture obtains the upper left corner coordinate of said picture.
CN2010105480685A 2010-11-17 2010-11-17 Method and device for typesetting Pending CN102467745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105480685A CN102467745A (en) 2010-11-17 2010-11-17 Method and device for typesetting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105480685A CN102467745A (en) 2010-11-17 2010-11-17 Method and device for typesetting

Publications (1)

Publication Number Publication Date
CN102467745A true CN102467745A (en) 2012-05-23

Family

ID=46071351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105480685A Pending CN102467745A (en) 2010-11-17 2010-11-17 Method and device for typesetting

Country Status (1)

Country Link
CN (1) CN102467745A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572608A (en) * 2013-10-18 2015-04-29 北大方正集团有限公司 Method and device for typesetting Mongolian characters vertically
CN110069766A (en) * 2018-01-23 2019-07-30 北大方正集团有限公司 The typesetting processing method and device of formula
CN110795006A (en) * 2018-08-03 2020-02-14 珠海金山办公软件有限公司 Document processing method and device, computer storage medium and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85103268A (en) * 1985-04-30 1986-02-10 北京大学 The method of high resolving power font high speed rotating
CN1073026A (en) * 1992-12-04 1993-06-09 黄尚廉 Intelligent processing method for complicate list form
CN1096115A (en) * 1993-03-18 1994-12-07 株式会社日立制作所 Method for displaying image and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85103268A (en) * 1985-04-30 1986-02-10 北京大学 The method of high resolving power font high speed rotating
CN1073026A (en) * 1992-12-04 1993-06-09 黄尚廉 Intelligent processing method for complicate list form
CN1096115A (en) * 1993-03-18 1994-12-07 株式会社日立制作所 Method for displaying image and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572608A (en) * 2013-10-18 2015-04-29 北大方正集团有限公司 Method and device for typesetting Mongolian characters vertically
CN104572608B (en) * 2013-10-18 2017-12-19 北大方正集团有限公司 The method and apparatus of vertical setting of types Mongolian word
CN110069766A (en) * 2018-01-23 2019-07-30 北大方正集团有限公司 The typesetting processing method and device of formula
CN110795006A (en) * 2018-08-03 2020-02-14 珠海金山办公软件有限公司 Document processing method and device, computer storage medium and terminal

Similar Documents

Publication Publication Date Title
CN102929603B (en) Interface control arrangement device and interface control arrangement method
CN102156716B (en) Method and device for re-typesetting web page
US10860623B2 (en) Picture dynamic display method, electronic equipment and storage medium
CN105912336A (en) Multi-screen adaptive method for mobile terminal front-end development
CN104063211A (en) Layout System For Devices With Variable Display Screen Sizes And Orientations
CN101937312A (en) Method for marking electronic book and mobile terminal
CN102467745A (en) Method and device for typesetting
CN105635464A (en) Message processing method and apparatus
CN108932413A (en) A kind of digital signature generation method, device and storage medium
US20120078505A1 (en) Map generating device, and memory medium storing map generating program
CN101216944B (en) A method and device for morphing shading in the process of typeset
CN101183358A (en) Typesetting method and apparatus
CN101046798B (en) Graph wrap method of type-setting domain
CN111858793A (en) Map road marking processing method and device, electronic equipment and storage medium
CN105068984B (en) A kind of automatic picture mosaic composition method
US8185818B2 (en) Mixed techniques for HTML crosstab rendering
CN103136185B (en) The method and apparatus of block formula typesetting
CN102214177A (en) Method and device for vertically typesetting characters in label
US20140136966A1 (en) Method and System for Generating Instructions According to Change of Font Outline
WO2014117581A1 (en) Method, system and mobile terminal for information displaying
CN106708801A (en) Proofreading method used for text
CN101419591B (en) Typesetting method and device
CN102567301A (en) Method and device for subfield composing
US20170255340A1 (en) Information processing apparatus, and control method and control program thereof
CN112394859A (en) Form dynamic adjustment method and terminal equipment

Legal Events

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

Application publication date: 20120523