WO2015070812A1 - 一种内容排版的方法及移动终端 - Google Patents

一种内容排版的方法及移动终端 Download PDF

Info

Publication number
WO2015070812A1
WO2015070812A1 PCT/CN2014/091270 CN2014091270W WO2015070812A1 WO 2015070812 A1 WO2015070812 A1 WO 2015070812A1 CN 2014091270 W CN2014091270 W CN 2014091270W WO 2015070812 A1 WO2015070812 A1 WO 2015070812A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch screen
content
screen track
target
track information
Prior art date
Application number
PCT/CN2014/091270
Other languages
English (en)
French (fr)
Inventor
梁杰斌
Original Assignee
深圳市金立通信设备有限公司
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 深圳市金立通信设备有限公司 filed Critical 深圳市金立通信设备有限公司
Publication of WO2015070812A1 publication Critical patent/WO2015070812A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a method for content typesetting and a mobile terminal.
  • Content typesetting can include typesetting of texts, and can also include typesetting of pictures, and texts and pictures are the main auxiliary communication tools of users.
  • the user can type the target content in a certain space in order from left to right in order to complete the purpose of transmitting the information; or, the user can manually perform the target content one by one according to a specific position and order. typesetting.
  • Most of the existing content layout methods are fixed, and the arrangement order is relatively simple, and the manual arrangement increases the difficulty of typesetting.
  • the embodiment of the invention provides a method for content typesetting and a mobile terminal, which can write the target content into the determined content layout area according to the received touch screen track information, so as to reduce the difficulty of manually formatting the content, and increase the content. Interesting and readable.
  • An embodiment of the present invention provides a method for content typesetting, including:
  • the touch screen track information including at least one touch screen track
  • the target content is written to the content layout area based on the received touch screen track information.
  • an embodiment of the present invention further provides a mobile terminal, including:
  • a track information receiving module configured to receive touch screen track information input by a user in a screen, where the touch screen track information includes at least one touch screen track;
  • a typesetting area determining module configured to determine a content typesetting area according to at least one touch screen track received by the track information receiving module
  • a target content writing module configured to receive, according to the track information receiving module, a touch screen track letter And writing the target content to the content layout area determined by the layout area determining module.
  • the target content can be written into the determined content layout area according to the received touch screen track information, so as to reduce the difficulty of manually formatting the content, and increase the interest and readability of the content.
  • FIG. 1 is a flow chart of a content typesetting method in an embodiment of the present invention
  • FIG. 2 is a flow chart of another content typesetting method in an embodiment of the present invention.
  • FIG. 3 is a flow chart of another content typesetting method in an embodiment of the present invention.
  • FIG. 4 is a structural diagram of a mobile terminal provided in an embodiment of the present invention.
  • FIG. 5 is a structural diagram of a target content writing module of FIG. 4 according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of a typesetting area determining module of FIG. 4 in an embodiment of the present invention.
  • FIG. 7 is another structural diagram of the target content writing module of FIG. 4 in the embodiment of the present invention.
  • FIG. 8 is another structural diagram of the target content writing module of FIG. 4 in the embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a touch screen track in an embodiment of the present invention.
  • Figure 10 is a schematic view showing the target text being stretched in the embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a content typesetting area including target content in an embodiment of the present invention.
  • FIG. 12 is a structural diagram of another mobile terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a method for content typesetting and a mobile terminal, which can write the target content into the determined content layout area according to the received touch screen track information, so as to reduce the difficulty of manually formatting the content, and increase the content.
  • a mobile terminal which can write the target content into the determined content layout area according to the received touch screen track information, so as to reduce the difficulty of manually formatting the content, and increase the content.
  • FIG. 1 is a flowchart of a content typesetting method according to an embodiment of the present invention.
  • the embodiment of the present invention implements a scheme for automatically formatting a target content according to a specific arrangement order.
  • the method of the present invention as illustrated includes at least:
  • Step S101 Receive touch screen track information input by a user on a screen, where the touch screen track information includes at least one touch screen track.
  • the target content Before receiving the touch screen track information input by the user on the screen, the target content may be obtained, and the target content may be a text or a picture input by the user, or may be a forwarded text message or mail.
  • the target content may include one or more of a target text and a target picture
  • the touch screen track information may include at least one touch screen track
  • the touch screen track may be a linear track, a curved track or a broken line track.
  • the touch screen track information may further include sequence information corresponding to the touch screen track, wherein the order information may be time identification or numbering information that identifies a plurality of touch screen track sequences.
  • the content layout matrix composed of the plurality of sub-areas may be determined in the screen according to the matrix parameter set by the user, where the sub-area It can be a square, a rectangle, a regular hexagon, or the like.
  • Step S102 Determine a content layout area according to the received at least one touch screen track.
  • the content layout area is determined according to the received at least one touch screen track, so that the target content is written into the content layout area according to the touch screen track information.
  • the sub-regions in the content layout matrix corresponding to the touchscreen trajectory information may be determined according to the received touchscreen trajectory information. And determining at least one of the sub-areas in the content layout matrix corresponding to the touch screen track information as the content layout area.
  • the touch screen track when the received touch screen track cannot correctly determine the content layout area, the touch screen track is discarded, and the content layout area is not determined. For example, if the target content is a target picture, and the touch screen track is a straight line or an unclosed curve, the specific position of the content layout area cannot be determined, and the touch screen track is discarded.
  • the touch screen track can be as shown in FIG. 9 , and a content layout matrix composed of a plurality of identical squares is determined in the screen, and the touch screen track cannot correctly identify the content layout area when passing through the border of the sub-area in the content layout matrix diagram. , the touch screen track will be discarded; if the target content is the target picture, and the sub-area included in the touch screen track is L-shaped, and the regular quadrilateral cannot be formed, if the specific position of the content typesetting area cannot be determined, the target content will be determined.
  • the touch screen track is discarded; if the target content is the target text, the touch screen track passes through the sub-area 1, the sub-area 2, the sub-area 3, the sub-area 4, the sub-area 5, the sub-area 6, and the sub-area 7, wherein the touch screen track At the same time, after the sub-area 2 and the sub-area 3, the first character in the target text is written in the sub-area 1, it is impossible to determine whether the second character in the target text is written in the sub-area 2 or in the sub-area 3, When the second character in the target text is stretched according to the content layout area including the sub-area 2 and the sub-area 3, the touch screen track is discarded.
  • Step S103 writing target content into the content layout area according to the received touch screen track information.
  • the target content is directly written into the determined content typesetting area; when multiple touch screen tracks are received, the order information corresponding to the touch screen track may be determined, and corresponding to the determined touch screen track The order information is written to the determined content layout area.
  • the target content is the target text
  • the target content is written into the determined content typesetting area according to the order information corresponding to the touch screen track.
  • the target text is stretched according to the plurality of sub-areas passing in the vertical direction according to the touch screen track in the touch screen track information. And write the stretched target text to the content layout area.
  • the stretched target text in the content layout matrix diagram can be as shown in FIG. 10, if the touch screen track in the received touch screen track information slides in the horizontal direction, wherein the touch screen track passes through two sub-areas in the vertical direction, The screen track passes through six sub-areas in the horizontal direction of one of the two sub-areas, and the content layout area determined according to the received touch screen track information input by the user on the screen is a 2 ⁇ 6 matrix. Then, the target text is longitudinally stretched, so that each target text after stretching can fill two sub-regions, and the stretched target text is written into the content layout area of the matrix 2 ⁇ 6.
  • the touch screen track in the received touch screen track information slides in the direction of the vertical line, the touch screen track Passing through two sub-areas in the vertical direction, the touch screen track passes through six sub-areas in the direction of the vertical line of one of the two sub-areas, according to the touch screen track information input by the user on the screen.
  • the determined content layout area is a 6 ⁇ 2 matrix, and the target text is horizontally stretched, so that each target text after stretching can fill two sub-regions, and the stretched target text is written into the matrix 6 ⁇ 2 content layout area.
  • the size of the target image is adjusted according to the determined content layout area, and the adjusted target image is written into the content layout area.
  • the content layout area including the target content may be written into the content layout area one by one according to the target text "a method of content layout and a mobile terminal" as shown in FIG. 11, and the content type layout area is written into the target text "a type of content layout" After that, if there is no unnecessary content typesetting area, the target text can be written, and the remaining target characters "method and mobile terminal" are discarded; when the target text "a method of content typesetting and the mobile terminal" is all written in the content typesetting area, If the content layout area is not completely filled, the content layout area without the target text is discarded.
  • the target picture is adjusted to the size of the content layout area determined according to the first touch screen track according to the sequence information corresponding to the touch screen track, and The adjusted target picture is written into the content layout area determined according to the first touch screen track, and the content layout area determined according to the second touch screen track is discarded.
  • the typesetting of the target content may be confirmed according to the typesetting confirmation instruction input by the user. If the target content is a short message, it may be further determined whether the typed content includes a picture, and if the typed content includes a picture, the typed content is sent by means of a multimedia message; if the typed content does not include a picture, the typesetting is performed The content after the content is sent by ordinary SMS.
  • receiving touch screen track information input by a user on a screen determining a content typesetting area according to the touch screen track information; and writing the target content into the content typesetting according to the touch screen track information region.
  • the embodiment of the present invention can write the target content into the determined content layout area according to the received touch screen track information, so as to reduce the difficulty of manually formatting the content, and increase the interest and readability of the content.
  • FIG. 2 is a flowchart of another content layout method in the embodiment of the present invention, wherein the target content in the content layout method is target text, and the method may include the following steps:
  • step S201 the target content is acquired.
  • Obtain the target content for typesetting which may be text or image input by the user, or may be a forwarded text message or email.
  • Step S202 determining a content layout matrix composed of a plurality of sub-areas in the screen.
  • a content layout matrix composed of a plurality of sub-regions may be determined on the screen according to a matrix parameter set by the user, wherein the sub-region may be a square, a rectangle, a regular hexagon, or the like.
  • Step S203 Receive touch screen track information input by the user in the content layout matrix.
  • the touch screen track information input by the user in the content layout matrix image is received, wherein the touch screen track information may include at least one touch screen track and corresponding sequence information, and the touch screen track may be a straight line
  • the trajectory, the curved trajectory or the polygonal trajectory, and the sequence information may be information such as a time identification or a number to identify the order of the plurality of touch screen trajectories.
  • Step S204 determining a content layout area according to the touch screen track information.
  • At least one sub-area in the content layout matrix map is determined as the content layout area according to at least one of the touch screen track information.
  • the sub-regions in the content layout matrix corresponding to the touchscreen trajectory information may be determined according to the received touchscreen trajectory information. And determining at least one of the sub-areas in the content layout matrix corresponding to the touch screen track information as the content layout area.
  • the touch screen track when the received touch screen track cannot correctly determine the content layout area, the touch screen track is discarded, and the content layout area is not determined.
  • the touch screen track can be as shown in FIG. 9 , and a content layout matrix composed of a plurality of identical squares is determined in the screen, and the touch screen track cannot correctly identify the content layout area when passing through the border of the sub-area in the content layout matrix diagram.
  • the touch screen track is discarded; if the touch screen track passes through the sub-area 1, the sub-area 2, the sub-area 3, the sub-area 4, the sub-area 5, the sub-area 6, and the sub-area 7, wherein the touch screen track passes simultaneously Sub-region 2 and sub-region 3, after the first character in the target text is written in sub-region 1, it is impossible to determine whether the second character in the target text is written in sub-region 2 or in sub-region 3, and the target cannot be written.
  • the second text in the text is stretched according to the content layout area including the sub-area 2 and the sub-area 3, and the touch screen track is discarded.
  • step S205 the target text is written in the content layout area.
  • the sequence information corresponding to the touch screen track may be determined, and the target text is written into the content layout area according to the sequence information corresponding to the touch screen track in the determined touch screen track information.
  • the touch screen track in the received touch screen track information passes through the plurality of sub-areas in the vertical direction.
  • the target content is written into the determined content typesetting area according to the order information corresponding to the touch screen track in the touch screen track information.
  • the target text is stretched according to the plurality of sub-areas passing in the vertical direction according to the touch screen track in the touch screen track information.
  • the stretched target text is written to the content layout area.
  • the stretched target text in the content layout matrix diagram can be as shown in FIG. 10, if the touch screen track in the received touch screen track information slides in the horizontal direction, wherein the touch screen track passes through two sub-areas in the vertical direction, The screen track passes through six sub-areas in the horizontal direction of one of the two sub-areas, and the content layout area determined according to the received touch screen track information input by the user on the screen is a 2 ⁇ 6 matrix. Then, the target text is longitudinally stretched, so that each target text after stretching can fill two sub-regions, and the stretched target text is written into the content layout area of the matrix 2 ⁇ 6.
  • the touch screen track in the received touch screen track information slides in the direction of the vertical line, wherein the touch screen track passes through two sub-areas in the vertical direction, the touch screen track is vertical in one of the two sub-areas After passing through six sub-areas in the line direction, according to the touch screen track information input by the user on the screen, the content layout area determined by the screen is a 6 ⁇ 2 matrix, and the target text is horizontally stretched, so that each stretched A target text can fill two sub-regions, and the stretched target text is written into the content layout area of the matrix 6 ⁇ 2.
  • the target text after the target text is written into the content typesetting area, it can be used according to The typesetting confirmation command input by the user confirms the typesetting of the target text. If the target text is a short message, it may be further determined whether the typed content includes a picture, and if the typed content includes a picture, the typed content is sent by means of a multimedia message; if the typed content does not include a picture, the typesetting is performed The content after the content is sent by ordinary SMS.
  • a content layout matrix composed of a plurality of sub-areas is determined in the screen according to a matrix parameter set by the user; and the touch screen trajectory information input by the user in the content layout matrix diagram is received;
  • the touch screen track information determines a content layout area; and the target text is written into the content layout area according to the touch screen track information.
  • the embodiment of the present invention can write the target text into the determined content layout area according to the received touch screen track information, so as to reduce the difficulty of manually formatting the target text, and increase the interest and readability of the content.
  • FIG. 3 is a flowchart of another content layout method according to an embodiment of the present invention, wherein the target content in the content layout method is a target image, and the method may include the following steps:
  • Step S301 acquiring target content.
  • Obtain the target content for typesetting which may be text or image input by the user, or may be a forwarded text message or email.
  • Step S302 determining a content layout matrix composed of a plurality of sub-areas in the screen.
  • a content layout matrix composed of a plurality of sub-regions may be determined on the screen according to a matrix parameter set by the user, wherein the sub-region may be a square, a rectangle, a regular hexagon, or the like.
  • Step S303 receiving touch screen track information input by the user in the content layout matrix.
  • the touch screen track information input by the user in the content layout matrix image is received, wherein the touch screen track information may include at least one touch screen track and corresponding sequence information, and the touch screen track may be a straight line
  • the trajectory, the curved trajectory or the polygonal trajectory, and the sequence information may be information such as a time identification or a number to identify the order of the plurality of touch screen trajectories.
  • Step S304 determining a content layout area according to the touch screen track information.
  • At least one sub-area in the content layout matrix map is determined as the content layout area according to at least one of the touch screen track information.
  • the sub-regions in the content layout matrix corresponding to the touchscreen trajectory information may be determined according to the received touchscreen trajectory information.
  • the sub-area in the content layout matrix corresponding to the touch screen track information At least one of the sub-areas is determined as a content layout area.
  • the touch screen track when the received touch screen track cannot correctly determine the content layout area, the touch screen track is discarded, and the content layout area is not determined.
  • the touch screen track is a straight line or an unclosed curve, the specific position of the content layout area cannot be determined, and the touch screen track is discarded; a content layout matrix composed of a plurality of identical sub-areas is determined in the screen, and When the touch screen track passes through the border of the sub-area in the content layout matrix diagram, the content layout area cannot be correctly recognized, and the touch screen track is discarded; a content layout matrix composed of a plurality of identical sub-areas is determined in the screen.
  • the sub-area through which the touch screen track passes cannot form a regular quadrilateral, the specific position of the content typesetting area cannot be determined, and the touch screen track is discarded.
  • Step S305 adjusting the size of the target picture according to the content layout area.
  • Step S306 the adjusted target picture is written into the content layout area.
  • the sequence information corresponding to the touch screen track is determined, and the adjusted target picture is written into the content layout area according to the sequence information corresponding to the touch screen track in the determined touch screen track information.
  • the target images are written one by one into the content layout area.
  • the content layout area is filled by the target image, and the target image is not all written into the content layout area, the remaining target images are discarded; when all the target images have been written into the content layout
  • the content layout area without the target picture is discarded.
  • the layout of the target image may be confirmed according to the layout confirmation instruction input by the user. If the target picture is a short message, the typed content is sent by means of a multimedia message.
  • a content layout matrix composed of a plurality of sub-regions is determined in the screen according to a matrix parameter set by the user; and the touch screen trajectory information input by the user in the content layout matrix diagram is received;
  • the touch screen track information determines a content layout area; and the target picture is written into the content layout area according to the touch screen track information.
  • the embodiment of the present invention can write the target image into the determined content layout area according to the received touch screen track information, so as to reduce the difficulty of manually formatting the target image, and increase the interest and readability of the content.
  • the embodiment of the present invention can simultaneously implement the typesetting of the target text and the target picture in the content typesetting area by combining FIG. 2 and FIG.
  • the mobile terminal may include a smart phone, a palmtop computer, etc., and the mobile terminal in the embodiment of the present invention may include at least a track information receiving module. 401, a typesetting area determining module 402 and a target content writing module 403, wherein
  • the track information receiving module 401 is configured to receive touch screen track information input by the user in the screen, where the touch screen track information includes at least one touch screen track, wherein the touch screen track may be a linear track, a curved track or a broken line track.
  • the trajectory information receiving module 401 can obtain the target content before receiving the touch screen trajectory information input by the user in the screen, where the target content may be a text or a picture input by the user, or may be a forwarded short message or mail;
  • the touch screen track information received by the track information receiving module 401 may further include sequence information corresponding to the touch screen track, wherein the sequence information may be a time identifier or a number, etc., and the plurality of touch screen track sequences are identified. information.
  • the typesetting area determining module 402 is configured to determine a content typesetting area according to the at least one touch screen track received by the track information receiving module 401;
  • the typesetting area determining module 402 discards the touch screen track without determining the content typesetting area. For example, if the target content is a target picture, and the touch screen track received by the track information receiving module 401 is a straight line or an unclosed curve, the specific position of the content typesetting area cannot be determined, and the typesetting area determining module 402 will view the touch screen track. throw away.
  • the target content writing module 403 is configured to write the target content into the content layout area determined by the layout area determining module 402 according to the touch screen track information received by the track information receiving module 401.
  • the target content writing module 403 in the embodiment of the present invention may further include:
  • the sequence information determining unit 501 is configured to determine sequence information corresponding to the touch screen track received by the track information receiving module 401.
  • the target content writing unit 502 is configured to write the target content into the content layout area according to the order information corresponding to the touch screen track determined by the order information determining unit 501.
  • the mobile terminal in the embodiment of the present invention may further include:
  • a matrix map determining module 404 configured to determine, in the screen, according to a matrix parameter set by a user A content layout matrix composed of a plurality of identical sub-regions, and triggering the trajectory information receiving module 401 to receive the touch screen trajectory information input by the user in the content layout matrix of the screen.
  • the sub-region may be a square, a rectangle, a regular hexagon, or the like.
  • the typesetting area determining module 402 in the embodiment of the present invention may further include:
  • the sub-area determining unit 601 is configured to determine, according to the touch screen trajectory information received by the trajectory information receiving module 401, the sub-area in the content layout matrix corresponding to the touch screen trajectory information;
  • the layout area determining unit 602 is configured to determine at least one of the sub-areas in the content layout matrix corresponding to the touch screen track information determined by the sub-area determining unit 601 as a content layout area.
  • the target content in the embodiment of the present invention may include one or more of a target text and a target image, where
  • the target content writing module 403 in the embodiment of the present invention may further include:
  • the sub-area determining unit 701 is configured to determine that the touch screen track in the touch screen track information received by the track information receiving module 401 passes through the plurality of sub-areas in the vertical direction.
  • the target text stretching unit 702 is configured to determine that the touch screen track in the touch screen track information received by the track information receiving module 401 passes through the plurality of sub-areas in the vertical direction, and is received according to the track information receiving module 401.
  • the target screen is stretched by a plurality of sub-regions in which the touch screen track in the touch screen track information passes in the vertical direction.
  • the target text writing unit 703 is configured to write the target text stretched by the target text stretching unit 702 into the content layout area determined by the layout area determining module 402;
  • the target text writing unit 703 writes the target text one by one into the content layout area, and when the content layout area is filled with the target text, and the target text is not all written into the content layout area, the remaining target text is discarded; when all the target texts are written When the content layout area has been written, and the content layout area is not completely filled, the content layout area without the target text is discarded.
  • the target content writing module 403 in the embodiment of the present invention may further include:
  • a picture adjustment unit 801 configured to determine, according to the content layout area determined by the layout area determining module 402, Adjust the size of the target picture.
  • a target picture writing unit 802 configured to write the target picture adjusted by the picture adjusting unit 801 into the content typesetting area determined by the typesetting area determining module 402;
  • the target picture writing unit 802 writes the target pictures one by one into the content layout area, and when the content layout area is filled by the target picture, and the target picture is not all written into the content layout area, the remaining target pictures are discarded; when all the target pictures are When the content layout area has been written, and the content layout area is not completely filled, the content layout area without the target picture is discarded.
  • the matrix map determining module 404 determines a content layout matrix composed of a plurality of identical sub-regions in the screen according to a matrix parameter set by the user.
  • the trajectory information receiving module 401 receives the touch screen trajectory information input by the user in the content layout matrix determined by the matrix map determining module 404; the layout area determining module 402 determines the content according to the touch screen trajectory information received by the trajectory information receiving module 401.
  • the layout content writing module 403 writes the target content into the content layout area according to the touch screen track information received by the track information receiving module 401.
  • the embodiment of the present invention can write the target content into the determined content layout area according to the received touch screen track information, so as to reduce the difficulty of manually formatting the content, and increase the interest and readability of the content.
  • FIG. 12 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 1200 includes: at least one processor 1210, such as a CPU, at least one input device 1230, and at least one output device. 1240, a memory 1250, at least one bus 1220.
  • the communication bus 1220 is used to implement connection communication between these components.
  • the input device 1230 can include a touch panel or the like
  • the output device 1240 can include a display screen or the like.
  • the memory 1250 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 1250 can optionally also be at least one storage terminal located remotely from the aforementioned processor 1210.
  • the processor 1210 can be combined with the mobile terminal shown in FIG. 4 to FIG. 8, wherein a set of program codes is stored in the memory 1250, and the input device 1230, the output device 1240, and the processor 1210 call the program code stored in the memory 1250 for Do the following:
  • the input device 1230 receives touch screen track information input by the user in the screen, and the touch screen track information includes at least one touch screen track, wherein the touch screen track may be a linear track, a curved track or a broken line track.
  • the input device 1230 can obtain the touch screen track information input by the user on the screen. Taking the target content, wherein the target content may be text or a picture input by the user, or may be a forwarded text message or mail;
  • the touch screen track information received by the input device 1230 may further include sequence information corresponding to the touch screen track, wherein the order information may be information such as a time mark or a number to identify a plurality of touch screen track sequences.
  • the processor 1210 determines a content layout area according to the at least one touch screen trajectory received by the input device 1230;
  • the processor 1210 When the processor 1210 cannot correctly determine the content layout area according to the touch screen trajectory received by the input device 1230, the processor 1210 discards the touch screen trajectory without determining the content layout area. For example, if the target content is the target picture, and the touch screen track received by the input device 1230 is a straight line or an unclosed curve, the specific location of the content layout area cannot be determined, and the processor 1210 discards the touch screen track.
  • the output device 1240 writes the target content into the determined content layout area based on the touch screen track information received by the input device 1230.
  • the output device 1240 writes the target content into the content typesetting area according to the received touch screen track information, which may specifically include:
  • the sequence information corresponding to the touch screen track received by the input device 1230 is determined.
  • the target content is written into the content layout area according to the determined order information corresponding to the touch screen track.
  • the following operations may also be performed:
  • the processor 1210 determines a content layout matrix composed of a plurality of identical sub-regions in the screen according to a matrix parameter set by the user, and triggers the input device 1230 to receive the touch input by the user in the content layout matrix of the screen.
  • the sub-region may be a square, a rectangle, a regular hexagon, or the like.
  • the processor 1210 determines the content typesetting area according to the received touch screen track information, and specifically includes:
  • At least one of the sub-areas in the content layout matrix corresponding to the determined touch screen track information is determined as the content layout area.
  • the target content in the embodiment of the present invention may include one or more of a target text and a target image, where
  • the processor 1210 determines the content layout area according to the received touch screen trajectory information, and specifically includes:
  • the processor 1210 determines that the touch screen track in the touch screen track information received by the input device 1230 passes through the plurality of sub-areas in the vertical direction.
  • the processor 1210 stretches the target character according to the plurality of sub-regions that the touch screen track in the touch screen track information received by the input device 1230 passes in the vertical direction.
  • the output device 1240 writes the target text stretched by the processor 1210 into the determined content layout area
  • the output device 1240 writes the target text one by one into the content layout area, and when the content layout area is filled with the target text, and the target text is not all written into the content layout area, the remaining target text is discarded; When the content layout area has been written, and the content layout area is not completely filled, the content layout area without the target text is discarded.
  • the processor 1210 determines the content layout area according to the received touch screen trajectory information, which may specifically include:
  • the processor 1210 adjusts the size of the target picture according to the determined content layout area.
  • the output device 1240 writes the target image adjusted by the processor 1210 into the determined content layout area
  • the output device 1240 writes the target pictures one by one into the content layout area, and when the content layout area is filled by the target picture, and the target picture is not all written into the content layout area, the remaining target pictures are discarded; when all the target pictures are When the content layout area has been written, and the content layout area is not completely filled, the content layout area without the target picture is discarded.
  • the mobile terminal 1200 introduced in the embodiment of the present invention may be used to implement some or all of the processes in the method embodiment of the content layout introduced by the present invention in conjunction with FIG. 1, FIG. 2 or FIG.
  • the readable storage medium when executed, may include the flow of an embodiment of the methods as described above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • Modules or units in the apparatus of the embodiments of the present invention may be combined, divided, and deleted according to actual needs.
  • the module or unit in the embodiment of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit) or an ASIC (Application Specific Integrated Circuit).
  • a general-purpose integrated circuit such as a CPU (Central Processing Unit) or an ASIC (Application Specific Integrated Circuit).

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本发明实施例公开了一种内容排版的方法,所述方法包括:接收用户在屏幕中输入的触屏轨迹信息,所述触屏轨迹信息包括至少一个触屏轨迹;根据所述接收到的至少一个触屏轨迹,确定内容排版区域;根据所述接收到的触屏轨迹信息,将目标内容写入所述内容排版区域。本发明实施例还公开了一种移动终端。采用本发明实施例,可根据接收到的触屏轨迹信息,将目标内容写入确定的内容排版区域,以便于减少手动对内容进行排版的难度,增加内容的趣味性与可读性。

Description

一种内容排版的方法及移动终端 技术领域
本发明涉及电子技术领域,尤其涉及一种内容排版的方法及移动终端。
背景技术
内容排版可以包括文字的排版,也可以包括图片的排版,而文字和图片是用户主要的辅助性交流工具。用户可以按照从左向右的顺序,在一定的空间内将目标内容进行排版,以便于完成传递信息的目的;或者,用户可以按照特定的位置和顺序,通过手动的方式将目标内容进行逐一的排版。现有的内容排版方式大多数都是固定的,排布顺序较为单一,而通过手动的方式进行排布增加了排版的难度。
发明内容
本发明实施例提供了一种内容排版的方法及移动终端,可根据接收到的触屏轨迹信息,将目标内容写入确定的内容排版区域,以便于减少手动对内容进行排版的难度,增加内容的趣味性与可读性。
本发明实施例提供了一种内容排版的方法,包括:
接收用户在屏幕中输入的触屏轨迹信息,所述触屏轨迹信息包括至少一个触屏轨迹;
根据所述接收到的至少一个触屏轨迹,确定内容排版区域;
根据所述接收到的触屏轨迹信息,将目标内容写入所述内容排版区域。
相应地,本发明实施例还提供了一种移动终端,包括:
轨迹信息接收模块,用于接收用户在屏幕中输入的触屏轨迹信息,所述触屏轨迹信息包括至少一个触屏轨迹;
排版区域确定模块,用于根据所述轨迹信息接收模块接收到的至少一个触屏轨迹,确定内容排版区域;
目标内容写入模块,用于根据所述轨迹信息接收模块接收到的触屏轨迹信 息,将目标内容写入所述排版区域确定模块确定的内容排版区域。
实施本发明实施例,可根据接收到的触屏轨迹信息,将目标内容写入确定的内容排版区域,以便于减少手动对内容进行排版的难度,增加内容的趣味性与可读性。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例中一种内容排版方法的流程图;
图2是本发明实施例中另一种内容排版方法的流程图;
图3是本发明实施例中另一种内容排版方法的流程图;
图4是本发明实施例中提供的一种移动终端的结构图;
图5是本发明实施例中图4的目标内容写入模块的一种结构图;
图6是本发明实施例中图4的排版区域确定模块的一种结构图;
图7是本发明实施例中图4的目标内容写入模块的另一种结构图;
图8是本发明实施例中图4的目标内容写入模块的另一种结构图;
图9是本发明实施例中触屏轨迹的示意图;
图10是本发明实施例中目标文字经过拉伸的示意图;
图11是本发明实施例中包括目标内容的内容排版区域的示意图;
图12是本发明实施例中提供的另一种移动终端的结构图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供了一种内容排版的方法及移动终端,可根据接收到的触屏轨迹信息,将目标内容写入确定的内容排版区域,以便于减少手动对内容进行排版的难度,增加内容的趣味性与可读性。以下分别进行详细说明。
图1是本发明实施例中一种内容排版方法的流程图,本发明实施例实现了将目标内容按照特定的排列顺序进行自动排版的方案。如图所示本发明的所述方法至少包括:
步骤S101,接收用户在屏幕中输入的触屏轨迹信息,所述触屏轨迹信息包括至少一个触屏轨迹。
接收用户在屏幕中输入的触屏轨迹信息之前,获取目标内容,该目标内容可以是用户输入的文字或图片,也可以是转发的短信或邮件等。其中该目标内容可以包括目标文字和目标图片中的一个或多个,触屏轨迹信息可以包括至少一个触屏轨迹,所述触屏轨迹可以是直线轨迹、曲线轨迹或折线轨迹。
作为一种可选的实施方式,该触屏轨迹信息还可以包括触屏轨迹对应的顺序信息,其中顺序信息可以是时间标识或编号等识别多个触屏轨迹顺序的信息。
作为一种可选的实施方式,接收用户在屏幕中输入的触屏轨迹信息之前,可以根据用户设定的矩阵参数,在屏幕中确定由多个子区域组成的内容排版矩阵图,其中该子区域可以是正方形、矩形、正六边形等区域。
步骤S102,根据所述接收到的至少一个触屏轨迹,确定内容排版区域。
根据接收到的至少一个触屏轨迹,确定内容排版区域,以便于根据触屏轨迹信息,将目标内容写入该内容排版区域。
作为一种可选的实施方式,在屏幕中确定由多个子区域组成的内容排版矩阵图之后,可以根据接收到的触屏轨迹信息,确定触屏轨迹信息对应的内容排版矩阵图中的子区域,并将该触屏轨迹信息对应的内容排版矩阵图中的子区域中至少一个子区域确定为内容排版区域。
具体实现中,当接收到的触屏轨迹无法正确确定内容排版区域时,则会将该触屏轨迹丢弃,不进行内容排版区域的确定。例如,该目标内容是目标图片,并且触屏轨迹是直线或不闭合曲线时,无法确定内容排版区域的具体位置,则会将该触屏轨迹丢弃。
触屏轨迹可以如图9所示,在屏幕中确定了由多个相同正方形组成的内容排版矩阵图,并且触屏轨迹经过内容排版矩阵图中的子区域的边框时,无法正确识别内容排版区域,则会将该触屏轨迹丢弃;若该目标内容是目标图片,触屏轨迹包括的子区域是L型,无法形成规则的四边形时,不能够确定内容排版区域的具体位置,则会将该触屏轨迹丢弃;若该目标内容是目标文字,触屏轨迹分别经过子区域①、子区域②、子区域③、子区域④、子区域⑤、子区域⑥以及子区域⑦,其中触屏轨迹同时经过子区域②和子区域③,目标文字中的第一个文字写入子区域①后,无法判断目标文字中的第二个文字是写入子区域②,还是写入子区域③,也无法将目标文字中的第二个文字根据包括子区域②和子区域③的内容排版区域进行拉伸,则会将该触屏轨迹丢弃。
步骤S103,根据所述接收到的触屏轨迹信息,将目标内容写入所述内容排版区域。
具体实现中,接收到一个触屏轨迹时,直接将目标内容写入确定的内容排版区域;接收到多个触屏轨迹时,可以确定触屏轨迹对应的顺序信息,根据确定的触屏轨迹对应的顺序信息,将目标内容写入确定的内容排版区域。
作为一种可选的实施方式,该目标内容是目标文字时,可以进一步判断接收到的触屏轨迹信息中的触屏轨迹在垂直方向上是否经过多个子区域。
当接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过一个子区域时,则根据触屏轨迹对应的顺序信息,将目标内容写入确定的内容排版区域。
当接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过多个子区域时,则根据触屏轨迹信息中的触屏轨迹在垂直方向上经过的多个子区域,将目标文字进行拉伸,并将拉伸后的目标文字写入内容排版区域。
内容排版矩阵图中经过拉伸的目标文字可以如图10所示,若接收到的触屏轨迹信息中的触屏轨迹沿水平方向滑动,其中触屏轨迹在垂直方向上经过两个子区域,触屏轨迹在所述两个子区域中的一个子区域的水平方向上经过六个子区域,则根据接收到的用户在屏幕中输入的触屏轨迹信息,确定的内容排版区域是2×6的矩阵,则将目标文字进行纵向拉伸,使拉伸后的每一个目标文字能够填满两个子区域,并将拉伸后的目标文字写入矩阵2×6的内容排版区域。若接收到的触屏轨迹信息中的触屏轨迹沿铅垂线方向滑动,其中触屏轨迹 在垂直方向上经过两个子区域,触屏轨迹在所述两个子区域中的一个子区域的铅垂线方向上经过六个子区域,则根据接收到的用户在屏幕中输入的触屏轨迹信息,确定的内容排版区域是6×2的矩阵,则将目标文字进行横向拉伸,使拉伸后的每一个目标文字能够填满两个子区域,并将拉伸后的目标文字写入矩阵6×2的内容排版区域。
作为一种可选的实施方式,该目标内容是目标图片时,根据确定的内容排版区域,调节目标图片的大小,并将调节后的目标图片写入内容排版区域。
包括目标内容的内容排版区域可以如图11所示,将目标文字“一种内容排版的方法及移动终端”逐个写入内容排版区域,当内容排版区域写入目标文字“一种内容排版的”后,没有多余的内容排版区域可以写入目标文字,则将剩余的目标文字“方法及移动终端”丢弃;当目标文字“一种内容排版的方法及移动终端”全部写入内容排版区域后,内容排版区域没有被完全填满,则将没有填充目标文字的内容排版区域丢弃。若目标图片包括一个图片,并且内容排版区域包括两个触屏轨迹时,则根据触屏轨迹对应的顺序信息,将目标图片调节成根据第一个触屏轨迹确定的内容排版区域的大小,并将调节后的目标图片写入根据第一个触屏轨迹确定的内容排版区域,将根据第二个触屏轨迹确定的内容排版区域丢弃。
作为一种可选的实施方式,将目标内容写入内容排版区域后,可以根据用户输入的排版确认指令,确认目标内容的排版。若该目标内容是短信,可以进一步判断排版后的内容是否包括图片,若排版后的内容包括图片,则将排版后的内容通过彩信的方式发送;若排版后的内容不包括图片,则将排版后的内容通过普通短信的方式发送。
在图1所描述的内容排版方法中,接收用户在屏幕中输入的触屏轨迹信息;根据该触屏轨迹信息,确定内容排版区域;并根据该触屏轨迹信息,将目标内容写入内容排版区域。本发明实施例可根据接收到的触屏轨迹信息,将目标内容写入确定的内容排版区域,以便于减少手动对内容进行排版的难度,增加内容的趣味性与可读性。
图2是本发明实施例中另一种内容排版方法的流程图,其中该内容排版方法中的目标内容是目标文字,所述方法可以包括以下步骤:
步骤S201,获取目标内容。
获取用于排版的目标内容,该目标内容可以是用户输入的文字或图片,也可以是转发的短信或邮件等。
步骤S202,在屏幕中确定由多个子区域组成的内容排版矩阵图。
根据用户设定的矩阵参数,在屏幕中确定由多个子区域组成的内容排版矩阵图,其中该子区域可以是正方形、矩形、正六边形等区域。
步骤S203,接收用户在内容排版矩阵图中输入的触屏轨迹信息。
确定内容排版矩阵图之后,接收用户在内容排版矩阵图中输入的触屏轨迹信息,其中该触屏轨迹信息可以包括至少一个触屏轨迹及其对应的顺序信息,所述触屏轨迹可以是直线轨迹、曲线轨迹或折线轨迹,所述顺序信息可以是时间标识或编号等识别多个触屏轨迹顺序的信息。
步骤S204,根据触屏轨迹信息,确定内容排版区域。
根据触屏轨迹信息中的至少一个触屏轨迹,将内容排版矩阵图中的至少一个子区域确定为内容排版区域。
作为一种可选的实施方式,在屏幕中确定由多个子区域组成的内容排版矩阵图之后,可以根据接收到的触屏轨迹信息,确定触屏轨迹信息对应的内容排版矩阵图中的子区域,并将该触屏轨迹信息对应的内容排版矩阵图中的子区域中至少一个子区域确定为内容排版区域。
具体实现中,当接收到的触屏轨迹无法正确确定内容排版区域时,则会将该触屏轨迹丢弃,不进行内容排版区域的确定。
触屏轨迹可以如图9所示,在屏幕中确定了由多个相同正方形组成的内容排版矩阵图,并且触屏轨迹经过内容排版矩阵图中的子区域的边框时,无法正确识别内容排版区域,则会将该触屏轨迹丢弃;若触屏轨迹分别经过子区域①、子区域②、子区域③、子区域④、子区域⑤、子区域⑥以及子区域⑦,其中触屏轨迹同时经过子区域②和子区域③,目标文字中的第一个文字写入子区域①后,无法判断目标文字中的第二个文字是写入子区域②,还是写入子区域③,也无法将目标文字中的第二个文字根据包括子区域②和子区域③的内容排版区域进行拉伸,则会将该触屏轨迹丢弃。
步骤S205,将目标文字写入内容排版区域。
该目标内容是目标文字时,可以确定触屏轨迹对应的顺序信息,根据确定的触屏轨迹信息中的触屏轨迹对应的顺序信息,将目标文字写入内容排版区域。
作为一种可选的实施方式,将目标文字写入内容排版区域之前,可以进一步判断接收到的触屏轨迹信息中的触屏轨迹在垂直方向上是否经过多个子区域。
若接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过一个子区域,则根据触屏轨迹信息中的触屏轨迹对应的顺序信息,将目标内容写入确定的内容排版区域。
若接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过多个子区域,则根据触屏轨迹信息中的触屏轨迹在垂直方向上经过的多个子区域,将目标文字进行拉伸,并将拉伸后的目标文字写入内容排版区域。
内容排版矩阵图中经过拉伸的目标文字可以如图10所示,若接收到的触屏轨迹信息中的触屏轨迹沿水平方向滑动,其中触屏轨迹在垂直方向上经过两个子区域,触屏轨迹在所述两个子区域中的一个子区域的水平方向上经过六个子区域,则根据接收到的用户在屏幕中输入的触屏轨迹信息,确定的内容排版区域是2×6的矩阵,则将目标文字进行纵向拉伸,使拉伸后的每一个目标文字能够填满两个子区域,并将拉伸后的目标文字写入矩阵2×6的内容排版区域。若接收到的触屏轨迹信息中的触屏轨迹沿铅垂线方向滑动,其中触屏轨迹在垂直方向上经过两个子区域,触屏轨迹在所述两个子区域中的一个子区域的铅垂线方向上经过六个子区域,则根据接收到用户在屏幕中输入的触屏轨迹信息,确定的内容排版区域是6×2的矩阵,则将目标文字进行横向拉伸,使拉伸后的每一个目标文字能够填满两个子区域,并将拉伸后的目标文字写入矩阵6×2的内容排版区域。
将目标文字逐个写入内容排版区域,当内容排版区域被目标文字填满,并且目标文字没有全部写入内容排版区域时,则将剩余的目标文字丢弃;当全部目标文字都已写入内容排版区域,并且内容排版区域没有被完全填满时,则将没有填充目标文字的内容排版区域丢弃。
作为一种可选的实施方式,将目标文字写入内容排版区域后,可以根据用 户输入的排版确认指令,确认目标文字的排版。若该目标文字是短信,可以进一步判断排版后的内容是否包括图片,若排版后的内容包括图片,则将排版后的内容通过彩信的方式发送;若排版后的内容不包括图片,则将排版后的内容通过普通短信的方式发送。
在图2所描述的内容排版方法中,根据用户设定的矩阵参数,在屏幕中确定由多个子区域组成的内容排版矩阵图;接收用户在内容排版矩阵图中输入的触屏轨迹信息;根据该触屏轨迹信息,确定内容排版区域;并根据该触屏轨迹信息,将目标文字写入内容排版区域。本发明实施例可根据接收到的触屏轨迹信息,将目标文字写入确定的内容排版区域,以便于减少手动对目标文字进行排版的难度,增加内容的趣味性与可读性。
图3是本发明实施例中另一种内容排版方法的流程图,其中该内容排版方法中的目标内容是目标图片,所述方法可以包括以下步骤:
步骤S301,获取目标内容。
获取用于排版的目标内容,该目标内容可以是用户输入的文字或图片,也可以是转发的短信或邮件等。
步骤S302,在屏幕中确定由多个子区域组成的内容排版矩阵图。
根据用户设定的矩阵参数,在屏幕中确定由多个子区域组成的内容排版矩阵图,其中该子区域可以是正方形、矩形、正六边形等区域。
步骤S303,接收用户在内容排版矩阵图中输入的触屏轨迹信息。
确定内容排版矩阵图之后,接收用户在内容排版矩阵图中输入的触屏轨迹信息,其中该触屏轨迹信息可以包括至少一个触屏轨迹及其对应的顺序信息,所述触屏轨迹可以是直线轨迹、曲线轨迹或折线轨迹,所述顺序信息可以是时间标识或编号等识别多个触屏轨迹顺序的信息。
步骤S304,根据触屏轨迹信息,确定内容排版区域。
根据触屏轨迹信息中的至少一个触屏轨迹,将内容排版矩阵图中的至少一个子区域确定为内容排版区域。
作为一种可选的实施方式,在屏幕中确定由多个子区域组成的内容排版矩阵图之后,可以根据接收到的触屏轨迹信息,确定触屏轨迹信息对应的内容排版矩阵图中的子区域,并将该触屏轨迹信息对应的内容排版矩阵图中的子区域 中至少一个子区域确定为内容排版区域。
具体实现中,当接收到的触屏轨迹无法正确确定内容排版区域时,则会将该触屏轨迹丢弃,不进行内容排版区域的确定。例如,触屏轨迹是直线或不闭合曲线时,无法确定内容排版区域的具体位置,则会将该触屏轨迹丢弃;在屏幕中确定了由多个相同子区域组成的内容排版矩阵图,并且触屏轨迹经过内容排版矩阵图中的子区域的边框时,无法正确识别内容排版区域,则会将该触屏轨迹丢弃;在屏幕中确定了由多个相同子区域组成的内容排版矩阵图,并且触屏轨迹经过的子区域无法形成规则的四边形时,不能够确定内容排版区域的具体位置,则会将该触屏轨迹丢弃。
步骤S305,根据内容排版区域,调节目标图片的大小。
根据确定的内容排版区域,调节目标图片的大小。
步骤S306,将调节后的目标图片写入内容排版区域。
确定触屏轨迹对应的顺序信息,根据确定的触屏轨迹信息中的触屏轨迹对应的顺序信息,将调节后的目标图片写入内容排版区域。
将目标图片逐个写入内容排版区域,当内容排版区域被目标图片填满,并且目标图片没有全部写入内容排版区域时,则将剩余的目标图片丢弃;当全部目标图片都已写入内容排版区域,并且内容排版区域没有被完全填满时,则将没有填充目标图片的内容排版区域丢弃。
作为一种可选的实施方式,将目标图片写入内容排版区域后,可以根据用户输入的排版确认指令,确认目标图片的排版。若该目标图片是短信,则将排版后的内容通过彩信的方式发送。
在图3所描述的内容排版方法中,根据用户设定的矩阵参数,在屏幕中确定由多个子区域组成的内容排版矩阵图;接收用户在内容排版矩阵图中输入的触屏轨迹信息;根据该触屏轨迹信息,确定内容排版区域;并根据该触屏轨迹信息,将目标图片写入内容排版区域。本发明实施例可根据接收到的触屏轨迹信息,将目标图片写入确定的内容排版区域,以便于减少手动对目标图片进行排版的难度,增加内容的趣味性与可读性。
本发明实施例可以同时结合图2和图3,实现内容排版区域中包括目标文字和目标图片的排版。
图4是本发明实施例中提供的一种移动终端的结构图,该移动终端可以包括智能手机,掌上电脑等设备,如图所示本发明实施例中的移动终端至少可以包括轨迹信息接收模块401、排版区域确定模块402以及目标内容写入模块403,其中
轨迹信息接收模块401,用于接收用户在屏幕中输入的触屏轨迹信息,所述触屏轨迹信息包括至少一个触屏轨迹,其中所述触屏轨迹可以是直线轨迹、曲线轨迹或折线轨迹。轨迹信息接收模块401接收用户在屏幕中输入的触屏轨迹信息之前,可以获取目标内容,其中该目标内容可以是用户输入的文字或图片,也可以是转发的短信或邮件等;
作为一种可选的实施方式,轨迹信息接收模块401接收到的触屏轨迹信息还可以包括触屏轨迹对应的顺序信息,其中顺序信息可以是时间标识或编号等识别多个触屏轨迹顺序的信息。
排版区域确定模块402,用于根据轨迹信息接收模块401接收到的至少一个触屏轨迹,确定内容排版区域;
当轨迹信息接收模块401接收到的触屏轨迹无法正确确定内容排版区域时,排版区域确定模块402会将该触屏轨迹丢弃,不进行内容排版区域的确定。例如,该目标内容是目标图片,并且轨迹信息接收模块401接收到的触屏轨迹是直线或不闭合曲线时,无法确定内容排版区域的具体位置,排版区域确定模块402则会将该触屏轨迹丢弃。
目标内容写入模块403,用于根据轨迹信息接收模块401接收到的触屏轨迹信息,将目标内容写入排版区域确定模块402确定的内容排版区域。
作为一种可选的实施方式,本发明实施例中的目标内容写入模块403可以如图5所示,进一步包括:
顺序信息确定单元501,用于确定轨迹信息接收模块401接收到的触屏轨迹对应的顺序信息。
目标内容写入单元502,用于根据顺序信息确定单元501确定的触屏轨迹对应的顺序信息,将所述目标内容写入所述内容排版区域。
作为一种可选的实施方式,本发明实施例中的移动终端还可以包括:
矩阵图确定模块404,用于根据用户设定的矩阵参数,在所述屏幕中确定 由多个相同子区域组成的内容排版矩阵图,并触发轨迹信息接收模块401接收用户在所述屏幕的内容排版矩阵图中输入的触屏轨迹信息。其中该子区域可以是正方形、矩形、正六边形等区域。
作为一种可选的实施方式,本发明实施例中的排版区域确定模块402可以如图6所示,进一步包括:
子区域确定单元601,用于根据轨迹信息接收模块401接收到的触屏轨迹信息,确定所述触屏轨迹信息对应的所述内容排版矩阵图中的子区域;
排版区域确定单元602,用于将子区域确定单元601确定的触屏轨迹信息对应的所述内容排版矩阵图中的子区域中至少一个子区域确定为内容排版区域。
作为一种可选的实施方式,本发明实施例中的目标内容可以包括目标文字和目标图片中的一个或多个,其中
目标内容包括目标文字时,本发明实施例中的目标内容写入模块403可以如图7所示,进一步包括:
子区域确定单元701,用于确定轨迹信息接收模块401接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过多个子区域。
目标文字拉伸单元702,用于子区域确定单元701确定轨迹信息接收模块401接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过多个子区域时,根据轨迹信息接收模块401接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过的多个子区域,将目标文字进行拉伸。
目标文字写入单元703,用于将目标文字拉伸单元702拉伸后的目标文字写入排版区域确定模块402确定的内容排版区域;
目标文字写入单元703将目标文字逐个写入内容排版区域,当内容排版区域被目标文字填满,并且目标文字没有全部写入内容排版区域时,则将剩余的目标文字丢弃;当全部目标文字都已写入内容排版区域,并且内容排版区域没有被完全填满时,则将没有填充目标文字的内容排版区域丢弃。
目标内容包括目标图片时,本发明实施例中的目标内容写入模块403可以如图8所示,进一步包括:
图片调节单元801,用于根据排版区域确定模块402确定的内容排版区域, 调节所述目标图片的大小。
目标图片写入单元802,用于将图片调节单元801调节后的目标图片写入所述排版区域确定模块402确定的内容排版区域;
目标图片写入单元802将目标图片逐个写入内容排版区域,当内容排版区域被目标图片填满,并且目标图片没有全部写入内容排版区域时,则将剩余的目标图片丢弃;当全部目标图片都已写入内容排版区域,并且内容排版区域没有被完全填满时,则将没有填充目标图片的内容排版区域丢弃。
在图4、图5、图6、图7以及图8所描述的移动终端中,矩阵图确定模块404根据用户设定的矩阵参数,在屏幕中确定由多个相同子区域组成的内容排版矩阵图;轨迹信息接收模块401接收用户在矩阵图确定模块404确定的内容排版矩阵图中输入的触屏轨迹信息;排版区域确定模块402根据轨迹信息接收模块401接收到的触屏轨迹信息,确定内容排版区域;目标内容写入模块403根据轨迹信息接收模块401接收到的触屏轨迹信息,将目标内容写入内容排版区域。本发明实施例可根据接收到的触屏轨迹信息,将目标内容写入确定的内容排版区域,以便于减少手动对内容进行排版的难度,增加内容的趣味性与可读性。
图12是本发明实施例中提供的另一种移动终端的结构示意图,如图12所示,该移动终端1200包括:至少一个处理器1210,例如CPU,至少一个输入装置1230,至少一个输出装置1240,存储器1250,至少一个总线1220。其中,通信总线1220用于实现这些组件之间的连接通信。例如,输入装置1230可以包括触控面板等,输出装置1240可以包括显示屏等。存储器1250可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1250可选的还可以是至少一个位于远离前述处理器1210的存储终端。其中处理器1210可以结合图4~图8所示的移动终端,其中存储器1250中存储一组程序代码,且输入装置1230、输出装置1240和处理器1210调用存储器1250中存储的程序代码,用于执行以下操作:
输入装置1230接收用户在屏幕中输入的触屏轨迹信息,所述触屏轨迹信息包括至少一个触屏轨迹,其中所述触屏轨迹可以是直线轨迹、曲线轨迹或折线轨迹。输入装置1230接收用户在屏幕中输入的触屏轨迹信息之前,可以获 取目标内容,其中该目标内容可以是用户输入的文字或图片,也可以是转发的短信或邮件等;
作为一种可选的实施方式,输入装置1230接收到的触屏轨迹信息还可以包括触屏轨迹对应的顺序信息,其中顺序信息可以是时间标识或编号等识别多个触屏轨迹顺序的信息。
处理器1210根据输入装置1230接收到的至少一个触屏轨迹,确定内容排版区域;
当处理器1210根据输入装置1230接收到的触屏轨迹无法正确确定内容排版区域时,处理器1210会将该触屏轨迹丢弃,不进行内容排版区域的确定。例如,该目标内容是目标图片,并且输入装置1230接收到的触屏轨迹是直线或不闭合曲线时,无法确定内容排版区域的具体位置,处理器1210则会将该触屏轨迹丢弃。
输出装置1240根据输入装置1230接收到的触屏轨迹信息,将目标内容写入确定的内容排版区域。
作为一种可选的实施方式,输出装置1240根据所述接收到的触屏轨迹信息,将目标内容写入所述内容排版区域,具体可以包括:
确定输入装置1230接收到的触屏轨迹对应的顺序信息。
根据确定的触屏轨迹对应的顺序信息,将所述目标内容写入所述内容排版区域。
作为一种可选的实施方式,输入装置1230接收用户在屏幕中输入的触屏轨迹信息之前,还可以执行以下操作:
处理器1210根据用户设定的矩阵参数,在所述屏幕中确定由多个相同子区域组成的内容排版矩阵图,并触发输入装置1230接收用户在所述屏幕的内容排版矩阵图中输入的触屏轨迹信息。其中该子区域可以是正方形、矩形、正六边形等区域。
作为一种可选的实施方式,处理器1210根据所述接收到的触屏轨迹信息,确定内容排版区域,具体可以包括:
根据输入装置1230接收到的触屏轨迹信息,确定所述触屏轨迹信息对应的所述内容排版矩阵图中的子区域;
将确定的触屏轨迹信息对应的所述内容排版矩阵图中的子区域中至少一个子区域确定为内容排版区域。
作为一种可选的实施方式,本发明实施例中的目标内容可以包括目标文字和目标图片中的一个或多个,其中
目标内容包括目标文字时,处理器1210根据所述接收到的触屏轨迹信息,确定内容排版区域,具体可以包括:
处理器1210确定输入装置1230接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过多个子区域。
处理器1210根据输入装置1230接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过的多个子区域,将目标文字进行拉伸。
输出装置1240将处理器1210拉伸后的目标文字写入确定的内容排版区域;
具体的,输出装置1240将目标文字逐个写入内容排版区域,当内容排版区域被目标文字填满,并且目标文字没有全部写入内容排版区域时,则将剩余的目标文字丢弃;当全部目标文字都已写入内容排版区域,并且内容排版区域没有被完全填满时,则将没有填充目标文字的内容排版区域丢弃。
目标内容包括目标图片时,处理器1210根据所述接收到的触屏轨迹信息,确定内容排版区域,具体可以包括:
处理器1210根据确定的内容排版区域,调节所述目标图片的大小。
输出装置1240将处理器1210调节后的目标图片写入确定的内容排版区域;
具体的,输出装置1240将目标图片逐个写入内容排版区域,当内容排版区域被目标图片填满,并且目标图片没有全部写入内容排版区域时,则将剩余的目标图片丢弃;当全部目标图片都已写入内容排版区域,并且内容排版区域没有被完全填满时,则将没有填充目标图片的内容排版区域丢弃。
具体的,本发明实施例中介绍的移动终端1200可以用以实施本发明结合图1、图2或者图3介绍的内容排版的方法实施例中的部分或全部流程。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机 可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本发明实施例装置中的模块或者单元可以根据实际需要进行合并、划分和删减。
本发明实施例中所述模块或者单元,可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application Specific Integrated Circuit,专用集成电路)来实现。
需要说明的是,在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
以上对本发明实施例所提供的内容排版的方法及移动终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (11)

  1. 一种内容排版的方法,其特征在于,所述方法包括:
    接收用户在屏幕中输入的触屏轨迹信息,所述触屏轨迹信息包括至少一个触屏轨迹;
    根据所述接收到的至少一个触屏轨迹,确定内容排版区域;
    根据所述接收到的触屏轨迹信息,将目标内容写入所述内容排版区域。
  2. 如权利要求1所述的方法,其特征在于,所述触屏轨迹信息还包括所述触屏轨迹对应的顺序信息;
    所述根据所述接收到的触屏轨迹信息,将目标内容写入所述内容排版区域包括:
    确定所述触屏轨迹对应的顺序信息;
    根据所述确定的触屏轨迹对应的顺序信息,将所述目标内容写入所述内容排版区域。
  3. 如权利要求1所述的方法,其特征在于,所述接收用户在屏幕中输入的触屏轨迹信息之前,还包括:
    根据用户设定的矩阵参数,在所述屏幕中确定由多个子区域组成的内容排版矩阵图;
    所述根据所述接收到的触屏轨迹信息,确定内容排版区域包括:
    根据所述接收到的触屏轨迹信息,确定所述触屏轨迹信息对应的所述内容排版矩阵图中的子区域;
    将所述触屏轨迹信息对应的所述内容排版矩阵图中的子区域中至少一个子区域确定为内容排版区域。
  4. 如权利要求3所述的方法,其特征在于,所述目标内容包括目标文字;
    所述根据所述接收到的触屏轨迹信息,将目标内容写入所述内容排版区域 包括:
    确定所述接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过多个子区域;
    根据所述触屏轨迹信息中的触屏轨迹在垂直方向上经过的多个子区域,将目标文字进行拉伸;
    将所述拉伸后的目标文字写入所述内容排版区域。
  5. 如权利要求1所述的方法,其特征在于,所述目标内容包括目标图片;
    所述根据所述接收到的触屏轨迹信息,将目标内容写入所述内容排版区域包括:
    根据所述内容排版区域,调节所述目标图片的大小;
    将所述调节后的目标图片写入所述内容排版区域。
  6. 一种移动终端,其特征在于,所述终端包括:
    轨迹信息接收模块,用于接收用户在屏幕中输入的触屏轨迹信息,所述触屏轨迹信息包括至少一个触屏轨迹;
    排版区域确定模块,用于根据所述轨迹信息接收模块接收到的至少一个触屏轨迹,确定内容排版区域;
    目标内容写入模块,用于根据所述轨迹信息接收模块接收到的触屏轨迹信息,将目标内容写入所述排版区域确定模块确定的内容排版区域。
  7. 如权利要求6所述的移动终端,其特征在于,所述触屏轨迹信息还包括所述触屏轨迹对应的顺序信息;
    所述目标内容写入模块包括:
    顺序信息确定单元,用于确定所述轨迹信息接收模块接收到的触屏轨迹对应的顺序信息;
    目标内容写入单元,用于根据所述顺序信息确定单元确定的触屏轨迹对应的顺序信息,将所述目标内容写入所述内容排版区域。
  8. 如权利要求6所述的移动终端,其特征在于,所述终端还包括:
    矩阵图确定模块,用于根据用户设定的矩阵参数,在所述屏幕中确定由多个相同子区域组成的内容排版矩阵图,并触发所述轨迹信息接收模块接收用户在所述屏幕的内容排版矩阵图中输入的触屏轨迹信息;
    所述排版区域确定模块包括:
    子区域确定单元,用于根据所述轨迹信息接收模块接收到的触屏轨迹信息,确定所述触屏轨迹信息对应的所述内容排版矩阵图中的子区域;
    排版区域确定单元,用于将所述子区域确定单元确定的触屏轨迹信息对应的所述内容排版矩阵图中的子区域中至少一个子区域确定为内容排版区域。
  9. 如权利要求8所述的移动终端,其特征在于,所述目标内容包括目标文字;
    所述目标内容写入模块包括:
    子区域确定单元,用于确定所述轨迹信息接收模块接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过多个子区域;
    目标文字拉伸单元,用于所述子区域确定单元确定所述轨迹信息接收模块接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过多个子区域时,根据所述轨迹信息接收模块接收到的触屏轨迹信息中的触屏轨迹在垂直方向上经过的多个子区域,将目标文字进行拉伸;
    目标文字写入单元,用于将所述目标文字拉伸单元拉伸后的目标文字写入所述排版区域确定模块确定的内容排版区域。
  10. 如权利要求6所述的移动终端,其特征在于,所述目标内容包括目标图片;
    所述目标内容写入模块包括:
    图片调节单元,用于根据所述排版区域确定模块确定的内容排版区域,调节所述目标图片的大小;
    目标图片写入单元,用于将所述图片调节单元调节后的目标图片写入所述排版区域确定模块确定的内容排版区域。
  11. 一种移动终端,其特征在于,所述移动终端包括输入装置、输出装置、存储器以及处理器,其中,所述存储器中存储一组程序代码,且所述输入装置、所述输出装置以及所述处理器调用所述存储器中存储的程序代码,用于执行以下操作:
    输入装置,用于接收用户在屏幕中输入的触屏轨迹信息,所述触屏轨迹信息包括至少一个触屏轨迹;
    处理器,用于根据所述接收到的至少一个触屏轨迹,确定内容排版区域;
    输出装置,用于根据所述接收到的触屏轨迹信息,将目标内容写入所述内容排版区域。
PCT/CN2014/091270 2013-11-18 2014-11-17 一种内容排版的方法及移动终端 WO2015070812A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310578223.1 2013-11-18
CN201310578223.1A CN103558989B (zh) 2013-11-18 2013-11-18 一种内容排版的方法及移动终端

Publications (1)

Publication Number Publication Date
WO2015070812A1 true WO2015070812A1 (zh) 2015-05-21

Family

ID=50013252

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091270 WO2015070812A1 (zh) 2013-11-18 2014-11-17 一种内容排版的方法及移动终端

Country Status (2)

Country Link
CN (1) CN103558989B (zh)
WO (1) WO2015070812A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112489166A (zh) * 2020-11-17 2021-03-12 娄底景明新材料有限公司 汽车板激光切割自动排版制图方法及系统

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103558989B (zh) * 2013-11-18 2016-05-25 深圳市金立通信设备有限公司 一种内容排版的方法及移动终端
CN103838708B (zh) * 2014-03-05 2017-02-08 天闻数媒科技(北京)有限公司 电子排版方法和装置
CN105335106A (zh) * 2014-07-16 2016-02-17 致伸科技股份有限公司 触控式电子装置的分割打印方法
CN106155371B (zh) * 2015-03-25 2019-10-29 联想(北京)有限公司 信息处理方法、装置及电子设备
CN105184838A (zh) * 2015-09-21 2015-12-23 深圳市金立通信设备有限公司 一种图片处理方法及终端

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830904A (zh) * 2012-06-29 2012-12-19 鸿富锦精密工业(深圳)有限公司 电子设备及其图片插入方法
US20130285963A1 (en) * 2008-10-06 2013-10-31 Samsung Electronics Co., Ltd. Method and apparatus for displaying graphical user interface depending on a user's contact pattern
CN103558989A (zh) * 2013-11-18 2014-02-05 深圳市金立通信设备有限公司 一种内容排版的方法及移动终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101680343B1 (ko) * 2009-10-06 2016-12-12 엘지전자 주식회사 이동 단말기 및 그 정보처리방법
JP4942832B2 (ja) * 2010-03-31 2012-05-30 シャープ株式会社 画像表示装置、画像形成装置、画像表示方法、コンピュータプログラム及び記録媒体
KR101980702B1 (ko) * 2010-09-15 2019-05-21 엘지전자 주식회사 이동 단말기 및 그 제어방법
WO2011137812A2 (zh) * 2011-05-23 2011-11-10 华为终端有限公司 一种输入方法、输入装置和终端设备
CN102663034A (zh) * 2012-03-23 2012-09-12 北京云图微动科技有限公司 文件排版装置和文件排版方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130285963A1 (en) * 2008-10-06 2013-10-31 Samsung Electronics Co., Ltd. Method and apparatus for displaying graphical user interface depending on a user's contact pattern
CN102830904A (zh) * 2012-06-29 2012-12-19 鸿富锦精密工业(深圳)有限公司 电子设备及其图片插入方法
CN103558989A (zh) * 2013-11-18 2014-02-05 深圳市金立通信设备有限公司 一种内容排版的方法及移动终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112489166A (zh) * 2020-11-17 2021-03-12 娄底景明新材料有限公司 汽车板激光切割自动排版制图方法及系统

Also Published As

Publication number Publication date
CN103558989B (zh) 2016-05-25
CN103558989A (zh) 2014-02-05

Similar Documents

Publication Publication Date Title
WO2015070812A1 (zh) 一种内容排版的方法及移动终端
WO2019154198A1 (zh) 电子书手写笔记的显示方法、计算设备及计算机存储介质
US20160085994A1 (en) Endorsement of unmodified photographs using watermarks
WO2018099125A1 (zh) 重叠窗口中显示内容的处理方法和系统
CN106648391B (zh) 笔迹同步的方法、装置及系统
WO2017101493A1 (zh) 一种浏览器的页面标签管理方法及装置
CN108427589B (zh) 一种数据处理方法及电子设备
CN110109590B (zh) 一种自动阅读的方法及设备
US10013156B2 (en) Information processing apparatus, information processing method, and computer-readable recording medium
US8718374B2 (en) Method and apparatus for accessing an electronic resource based upon a hand-drawn indicator
CN105302464B (zh) 一种对流式文档进行划线的系统及方法
CN103106361A (zh) 一种增强图片验证码安全性的方法和装置
WO2020001028A1 (zh) 图片错层显示方法、电子设备及存储介质
US20200341631A1 (en) Electronic whiteboard, method for image processing in electronic whiteboard, and recording medium containing computer program of electronic whiteboard
US20120151309A1 (en) Template application error detection
CN106792157A (zh) 一种基于视频的信息标注与显示方法和系统
WO2017206248A1 (zh) 一种信息输入方法和装置
CN111580903A (zh) 实时投票方法、装置、终端设备和存储介质
CN108268520B (zh) 课件的控制方法、装置及在线课程直播系统
TWI547863B (zh) 手寫輸入識別方法、系統與電子裝置
US11586835B2 (en) Integrating overlaid textual digital content into displayed data via graphics processing circuitry using a frame buffer
CN115454365A (zh) 图片处理方法、装置、电子设备及介质
US20150277747A1 (en) Touch Page Control Method and System
CN114299771A (zh) 一种云端一体化教学方法及教学系统
CN107516334B (zh) 一种手写轨迹的显示方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14861965

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14861965

Country of ref document: EP

Kind code of ref document: A1