CN104423931B - The generation method and system of the common source shown for transverse screen and portrait layout - Google Patents

The generation method and system of the common source shown for transverse screen and portrait layout Download PDF

Info

Publication number
CN104423931B
CN104423931B CN201310364879.3A CN201310364879A CN104423931B CN 104423931 B CN104423931 B CN 104423931B CN 201310364879 A CN201310364879 A CN 201310364879A CN 104423931 B CN104423931 B CN 104423931B
Authority
CN
China
Prior art keywords
component
resource
created
manager
present
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.)
Expired - Fee Related
Application number
CN201310364879.3A
Other languages
Chinese (zh)
Other versions
CN104423931A (en
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.)
New Founder Holdings Development Co ltd
Pku Founder Information Industry Group Co ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Founder Information Industry Holdings Co Ltd
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 Founder Information Industry Holdings Co Ltd, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Founder Information Industry Holdings Co Ltd
Priority to CN201310364879.3A priority Critical patent/CN104423931B/en
Publication of CN104423931A publication Critical patent/CN104423931A/en
Application granted granted Critical
Publication of CN104423931B publication Critical patent/CN104423931B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a kind of generation method and system of the common source shown for transverse screen and portrait layout, wherein this method includes establishing resource manager;Create component manager;And component is created, resource and component property are added to be created component, wherein, judge whether resource be present, if there is no resource, then add resources in explorer;Otherwise, then delete resource and use existing resource;And judge whether to exist and create component, if there is no created component, then created component is added in component manager;If existing and creating component, deletion creates component and uses existing component.

Description

The generation method and system of the common source shown for transverse screen and portrait layout
Technical field
The present invention relates to computer composition field, relates more specifically to a kind of common source shown for transverse screen and portrait layout Generation method and system.
Background technology
In the prior art, when interactive electronic book is carried out into horizontal and vertically displaying, each interactive assemblies have oneself Resource, even if being shown displayed across in the case of content and vertically displaying content identical.So, electronics is being exported by software for composing During document, it is impossible to rapidly show electronic document in client.
The content of the invention
It is an object of the invention to provide a kind of generation method and system of the common source shown for transverse screen and portrait layout.
A kind of according to an aspect of the invention, there is provided generation side of the common source shown for transverse screen and portrait layout Method, including:Establishing resource manager;Create component manager;And component is created, add resource and component to be created component Attribute, wherein, judge whether resource be present, if there is no resource, then add resources in explorer;It is no Then, then delete resource and use existing resource;And judge whether to exist and create component, if there is no being created Component, then created component is added in component manager;If existing and creating component, deletion creates component And use existing component.
According to another aspect of the present invention, there is provided a kind of generation side of the common source shown for transverse screen and portrait layout Method, including step:Establishing resource manager;Create component manager;Component is created, component property is added to be created component, Wherein, whether component manager is searched in the presence of component is created, if there is no created component, then by created component It is added in component manager;If existing and creating component, deletion creates component and uses existing component;With And resource is added to be created component or existing component, wherein, judge whether resource be present, if there is no resource, Then add resources in explorer;Otherwise, then delete resource and use existing resource.
According to another aspect of the invention, there is provided a kind of generation system of the common source shown for transverse screen and portrait layout System, including:Explorer creating device;Component manager creating device;And building component device, for create component and Including:Resource adding set, for adding resource to be created component, wherein when adding resource to be created component, judge Whether resource be present, if there is no resource, then added resources in explorer;Otherwise, then delete resource and Use existing resource;And component property adding set, for adding component property to be created component, wherein when to be created Build component addition component property when, determination component manager whether exist creates component, if there is no establishment group Part, then created component is added in component manager;Create component if existed, delete create component and Use existing component.
In accordance with a further aspect of the present invention, there is provided a kind of generation system of the common source shown for transverse screen and portrait layout System, including:Explorer creating device;Component manager creating device;Building component device, to be created component addition group Part attribute;Wherein, whether component manager is searched in the presence of component is created, if there is no created component, then by institute Component is created to be added in component manager;Component is created if existed, deletion creates component and used and deposited In component;And resource adding set, resource is added to be created component or existing component, wherein judging whether existed Resource, if there is no resource, then add resources in explorer;Otherwise, then delete resource and use existing money Source.
According to aforementioned aspect of the present invention, wherein resource includes image, audio-source, video and/or web page resources.Component category Property include the region of component, the type of component and/or the resource that uses.
According to aforementioned aspect of the present invention, component is created to search whether to exist by comparing component attribute, such as Fruit component property is identical, then it is assumed that exists and creates component.
According to aforementioned aspect of the present invention, output in the form of an xml-file creates component or existing component.
According to the present invention, such as when being shown displayed across or vertically displaying e-book, if be shown displayed across with it is vertically displaying Content is identical, then can use identical resource.The same asset so used in horizontal/vertical screen can only store one on disk File is covered, to be used in conjunction with, compact file can be so made, improve the display efficiency of client.
Brief Description Of Drawings
Fig. 1 shows the generation side for being used for the common source that transverse screen and portrait layout are shown according to one embodiment of the present invention Method;
Fig. 2 shows the generation side for being used for the common source that transverse screen and portrait layout are shown according to another embodiment of the present invention Method;
The method that audio-frequency assembly resource reuse during for transverse screen and portrait layout display is shown in Fig. 3;
The life for being used for the common source that transverse screen and portrait layout are shown according to an embodiment of the invention is shown in Fig. 4 Into system;And
The common source for being used for transverse screen and portrait layout and showing according to another implementation of the invention is shown in Fig. 5 Generation system.
Embodiment
Below in conjunction with the accompanying drawings to being described in detail according to the embodiment of the present invention.
Figure 1 illustrates the common source for being used for transverse screen and portrait layout and showing according to an embodiment of the invention Generation method.
In step S101, establishing resource manager, for the resource of management assembly, such as image, audio, video, net The resources such as page.
In step s 102, component manager is created, for managing all components, wherein these components can be divided into sound Frequently, the component such as video.
In step s 103, component is created.And it is the component addition money created in step S103 in step S104 Source.When adding resource, judge whether the resource in explorer be present in step S105 first, if do not deposited In the resource, then step S106 is gone to, otherwise go to step S107.In the case of in the absence of the resource, then in step S106 In, the resource is added in explorer.If having existed for the resource, in step s 107, the resource is deleted And use existing resource.So, such as the same asset that horizontal/vertical screen uses, it is used for if existed The resource of transverse screen, then for portrait layout resource can use identical be used for transverse screen screen resource.So in horizontal/vertical screen content phase With in the case of, identical resource can be used.So as to which the same asset that horizontal/vertical screen uses can only be stored as a set of file, with It is used in conjunction with.
In step S108, judge whether component to be created in component manager be present.If there is the component Step S110 is then gone to, otherwise goes to step S109.If there is no component to be created, then by the group in step S109 Part is added in component manager.If having existed for the component, the component is deleted, uses already present component. When judging whether to have existed component to be created, it can be searched whether in component manager according to the attribute of component With the presence of identical component.During the attribute of comparing component, if attribute is identical, then it is assumed that component has been present, wherein not comparing ID, ID=0 of newly-built component.
Figure 2 illustrates the common source for being used for transverse screen and portrait layout and showing according to another implementation of the invention Generation method.
In step s 201, establishing resource manager, for the resource of management assembly, such as image, audio, video, net The resources such as page.
In step S202, component manager is created, for managing all components, wherein these components can be divided into sound Frequently, the component such as video.
In step S203, component is created.And it is that the component created in step S203 adds component in step S204 Attribute.When adding attribute, judge whether the component in component manager be present in step S205 first, if not In the presence of the component, then step S206 is gone to, otherwise go to step S207.In the case of in the absence of the component, then in step In S206, the component is added in component manager.If having existed for the component, in step S207, deleting should Component and use existing component., can be in assembly management when judging whether to have existed component to be created In device, searched whether according to the attribute of component with the presence of identical component.During the attribute of comparing component, if attribute is identical, Then think that component has been present, wherein not comparing component ID, ID=0 of newly-built component.
In step S208, resource is added or in the case where using existing component to the component created Resource is added for existing component.In step S209, judge whether the resource in explorer be present.If deposit Step S211 is then gone in the resource, otherwise goes to step S210.If there is no the resource, then this is provided in step S210 Source is added in explorer.If having existed for the resource, the resource is deleted, uses already present resource.This Sample, such as the same asset that horizontal/vertical screen uses, if the resource for transverse screen, the money for portrait layout be present Source can use resource of the identical for transverse screen.So in the case of horizontal/vertical screen content identical, it can be provided using identical Source.So as to which the same asset that horizontal/vertical screen uses can only be stored as a set of file, to be used in conjunction with.
Meanwhile figure 3 illustrates the method for audio-frequency assembly resource reuse when being shown for transverse screen and portrait layout.
Wherein, the step of embodiment shown in Fig. 1-3 can also include for example with XML file output precision.
It is for example, as follows for audio-frequency assembly, its output:
Wherein music.mp3, Play.png, Pause.png are resource.When a resource is added, if provided The resource is not found in source manager, then adds the resource to explorer, and copy under specified folder.Compare resource File, if newly plus resource file with as the file data in explorer if think existed.
The life for being used for the common source that transverse screen and portrait layout are shown according to an embodiment of the invention is shown in Fig. 4 Into system.The system 400 includes explorer creating device 401, component manager creating device 402 and building component dress Put 403.Explorer creating device 401 can be used for the resource for managing management assembly, such as image, audio, video, webpage Etc. resource.Component manager creating device 402 can be used for managing all components, wherein these components can be divided into audio, The components such as video.
Building component device 403 can include resource adding set 404 and component property adding set 405.
The resource adding set 404, for adding resource to be created component, wherein when to be created component addition resource When, judge whether resource be present, if there is no resource, then add resources in explorer;Otherwise, then delete Resource and the existing resource of use.So, such as the same asset that horizontal/vertical screen uses, it is used for horizontal stroke if existed The resource of screen, then for portrait layout resource can use identical be used for transverse screen resource.So in horizontal/vertical screen content identical In the case of, identical resource can be used.So as to which the same asset that horizontal/vertical screen uses can only be stored as a set of file, with common Use.
The component property adding set 405, for adding component property to be created component, wherein when to be created component When adding component property, whether determination component manager, which exists, creates component, if there is no created component, then will Created component is added in component manager;If existing and creating component, deletion creates component and using Component be present., can be in component manager, according to the attribute of component when judging whether to have existed component to be created To search whether with the presence of identical component.During the attribute of comparing component, if attribute is identical, then it is assumed that component has been present, Do not compare ID, ID=0 of newly-built component wherein.
The common source for being used for transverse screen and portrait layout and showing according to another implementation of the invention is shown in Fig. 5 Generation system.
The system 500 includes explorer creating device 501, component manager creating device 502, building component device 503 and resource adding set 504.
Explorer creating device 501 can be used for the resource for managing management assembly, such as image, audio, video, net The resources such as page.Component manager creating device 502 can be used for managing all components, and wherein these components can be divided into sound Frequently, the component such as video.
Building component device 503 can add component property to be created component.Wherein, whether component manager is searched Component is created through existing, if there is no created component, then created component is added in component manager;If Component is created through existing, then deletion creates component and uses existing component.
Resource adding set 504 can add resource to be created component or existing component, wherein judging whether Resource be present, if there is no resource, then add resources in explorer;Otherwise, then delete resource and use and deposited In resource.
In addition, in the system shown in Fig. 4 and Fig. 5, output device can also be included, can be exported by XML file Component.
It should be appreciated that what embodiment herein above was merely exemplary, rather than be to limit the scope of the present invention.For For those skilled in the art, in the case where not departing from the spirit of the present invention and forefinger, various modifications can be made and changed Enter, but these variations and modifications also should be regarded as falling among protection scope of the present invention.

Claims (10)

1. a kind of generation method of the common source shown for transverse screen and portrait layout, comprises the following steps:
Establishing resource manager;
Create component manager;And
Component is created, resource and component property are added to be created component, wherein,
Judge whether the resource be present, if there is no the resource, then the resource is added to the resource pipe Manage in device;Otherwise, then delete the resource and use existing resource;And
Judge whether to exist and create component, if there is no the created component, then add the created component It is added in the component manager;If the created component be present, the created component is deleted and using Component be present;
Wherein, search whether to have existed the created component by the component property, if the component category Property is identical, then it is assumed that the created component be present.
2. a kind of generation method of the common source shown for transverse screen and portrait layout, comprises the following steps:
Establishing resource manager;
Create component manager;
Component is created, component property is added to be created component, wherein, whether the component manager is searched in the presence of described Created component, if there is no the created component, then the created component is added in the component manager; If the created component be present, delete the created component and use existing component;And
By the establishment component or the existing component addition resource, wherein, judge whether the resource be present, such as The resource is not present in fruit, then the resource is added in the explorer;Otherwise, then the resource and use are deleted Existing resource;
Wherein, search whether to have existed the created component by the component property, if the component category Property is identical, then it is assumed that the created component be present.
3. method as claimed in claim 1 or 2, wherein, the resource includes image, audio, video and/or web page resources.
4. method as claimed in claim 1 or 2, wherein, the component property include the region of component, component type and/ Or the resource used.
5. method as claimed in claim 1 or 2, in addition to:The created component or described is exported in the form of an xml-file Existing component.
6. a kind of generation system of the common source shown for transverse screen and portrait layout, including:
Explorer creating device;
Component manager creating device;And
Building component device, for create component and including:
Resource adding set, for adding resource to be created component, wherein when by the establishment component addition resource When, judge whether the resource be present, if there is no the resource, then the resource is added to the resource management In device;Otherwise, then delete the resource and use existing resource;And
Component property adding set, for adding component property by the establishment component, wherein when by the establishment component When adding the component property, judge whether the component manager has had the created component, if there is no institute Created component is stated, then the created component is added in the component manager;If described created be present Component, then delete the created component and use existing component;
Wherein, search whether to have existed the created component by the component property, if the component category Property is identical, then it is assumed that the created component be present.
7. a kind of generation system of the common source shown for transverse screen and portrait layout, including:
Explorer creating device;
Component manager creating device;
Building component device, component property is added to be created component;Wherein, search whether the component manager has been present The created component, if there is no the created component, then the created component is added to the assembly management In device;If the created component be present, delete the created component and use existing component;And
Resource adding set, resource is added by the establishment component or the existing component, wherein judging whether to have deposited In the resource, if there is no the resource, then the resource is added in the explorer;Otherwise, then delete The resource and the existing resource of use;
Wherein, search whether to have existed the created component by the component property, if the component category Property is identical, then it is assumed that the created component be present.
8. system as claimed in claims 6 or 7, wherein, the resource includes image, audio-source, video and/or webpage money Source.
9. system as claimed in claims 6 or 7, wherein, the component property include the region of component, component type and/ Or the resource used.
10. system as claimed in claims 6 or 7, in addition to:Output device, described created is exported in the form of an xml-file Component or the existing component.
CN201310364879.3A 2013-08-20 2013-08-20 The generation method and system of the common source shown for transverse screen and portrait layout Expired - Fee Related CN104423931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310364879.3A CN104423931B (en) 2013-08-20 2013-08-20 The generation method and system of the common source shown for transverse screen and portrait layout

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310364879.3A CN104423931B (en) 2013-08-20 2013-08-20 The generation method and system of the common source shown for transverse screen and portrait layout

Publications (2)

Publication Number Publication Date
CN104423931A CN104423931A (en) 2015-03-18
CN104423931B true CN104423931B (en) 2017-12-22

Family

ID=52973028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310364879.3A Expired - Fee Related CN104423931B (en) 2013-08-20 2013-08-20 The generation method and system of the common source shown for transverse screen and portrait layout

Country Status (1)

Country Link
CN (1) CN104423931B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460269B (en) * 2017-08-31 2020-07-10 武汉斗鱼网络科技有限公司 Method and device for sharing horizontal and vertical screen service logic in Android system
CN109101311B (en) * 2018-08-24 2021-07-23 武汉斗鱼网络科技有限公司 Display view compatibility method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890632A (en) * 2012-09-18 2013-01-23 深圳市融创天下科技股份有限公司 Screen adaptation method, system and terminal device
CN103036985A (en) * 2012-12-14 2013-04-10 崔红保 Method and device for resource download based on stream application

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756905B2 (en) * 2004-02-27 2010-07-13 Research In Motion Limited System and method for building mixed mode execution environment for component applications
CN101266542B (en) * 2008-02-01 2011-06-29 中国建设银行股份有限公司 Method and device for loading component in container
CN103164197A (en) * 2011-12-14 2013-06-19 中兴通讯股份有限公司 User interface (UI) distribution self-adaption method, mobile device and distribution generating device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890632A (en) * 2012-09-18 2013-01-23 深圳市融创天下科技股份有限公司 Screen adaptation method, system and terminal device
CN103036985A (en) * 2012-12-14 2013-04-10 崔红保 Method and device for resource download based on stream application

Also Published As

Publication number Publication date
CN104423931A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
US11989694B2 (en) Managing projects in a content management system
US20220318756A1 (en) Managing tasks in a content management system
US9904694B2 (en) NoSQL relational database (RDB) data movement
KR101130443B1 (en) Method, system, and computer-readable medium for merging data from multiple data sources for use in an electronic document
US20160026616A1 (en) Presenting dataset of spreadsheet in form based view
US10318868B2 (en) Method for enhancing a mind map with different streams of information
CN107408242B (en) Providing interactive previews of content within communications
KR20170030529A (en) Visualization suggestions
US10942984B2 (en) Portal connected to a social backend
CN103577417B (en) The method and apparatus for clearing up desktop
US20160357811A1 (en) Webpage content search
CN106462933A (en) Using content structure to socially connect users
CN104423931B (en) The generation method and system of the common source shown for transverse screen and portrait layout
US8745008B2 (en) Propagating per-custodian preservation and collection requests between ediscovery management applications and content archives
EP3616094A1 (en) Managing metadata for external content within a computing environment
US10474428B2 (en) Sorting parsed attachments from communications
US20160110472A1 (en) Identifying, marking up, and reconstituting elements for content sharing
JP6209098B2 (en) Data management program, data management method, and data management system
US10296190B2 (en) Spatially organizing communications
US10133715B2 (en) Providing semantic based document editor
JP2009199103A (en) File management program and file management device
CN113467657A (en) File display method and device, electronic equipment and computer readable storage medium
CN116089763A (en) Webpage processing method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100871, Beijing, Haidian District, Cheng Fu Road, No. 298, Zhongguancun Fangzheng building, 5 floor

Patentee after: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee after: PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District, Cheng Fu Road, No. 298, Zhongguancun Fangzheng building, 5 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: FOUNDER INFORMATION INDUSTRY HOLDINGS Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230614

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District, Cheng Fu Road, No. 298, Zhongguancun Fangzheng building, 5 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171222