CN103544019A - E-book application program automatic generation achieving method based on application program template - Google Patents

E-book application program automatic generation achieving method based on application program template Download PDF

Info

Publication number
CN103544019A
CN103544019A CN201310534430.7A CN201310534430A CN103544019A CN 103544019 A CN103544019 A CN 103544019A CN 201310534430 A CN201310534430 A CN 201310534430A CN 103544019 A CN103544019 A CN 103544019A
Authority
CN
China
Prior art keywords
application program
book
masterplate
application
content
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
CN201310534430.7A
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.)
SHANGHAI BEIOU INFORMATION SCIENCE & TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI BEIOU INFORMATION SCIENCE & TECHNOLOGY 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 SHANGHAI BEIOU INFORMATION SCIENCE & TECHNOLOGY Co Ltd filed Critical SHANGHAI BEIOU INFORMATION SCIENCE & TECHNOLOGY Co Ltd
Priority to CN201310534430.7A priority Critical patent/CN103544019A/en
Publication of CN103544019A publication Critical patent/CN103544019A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to an e-book application program automatic generation achieving method based on an application program template. The method includes that a plurality of selective application program templates are prefabricated according to environment information of different mobile application platforms, parameters and e-book contents of an e-book application program to be manufactured are obtained, the e-book contents are inserted into a selected application program template, parameters of the selected application program template are modified according to the parameters of the e-book application program to be manufactured, and finally the selected application program template is compiled to generate an e-book application program. By means of the method, a prefabricated application program template can be used for converting the e-book contents into a mobile application program, and meanwhile the e-book application program with the e-book contents packaged by HTML5 and Java Script has a cross-platform application property, is convenient to use and has wide application range.

Description

Based on application program masterplate, realize the method that e-book application program generates automatically
Technical field
The present invention relates to application program and generate field, relate in particular to e-book application program and generate field, specifically refer to a kind of method that realizes the automatic generation of e-book application program based on application program masterplate.
Background technology
Traditional reading methods such as existing newpapers and periodicals, magazine, books are if be converted into mobile APP mode, or entrust third party developer, or self-built development teams, for different mobile application platforms, from the beginning develop different e-book and move application, this way cost is large, the cycle is long, also becomes the stumbling-block that the traditional industries such as newpapers and periodicals, magazine, books enter mobile Internet.
Summary of the invention
The object of the invention is to overcome the shortcoming of above-mentioned prior art, provide a kind of can realize use prefabricated application program masterplate by e-book content automatically and be rapidly converted into mobile applications, easy to use, there is broader applications scope based on application program masterplate, realize the method that e-book application program generates automatically.
To achieve these goals, of the present inventionly based on application program masterplate, realize the method that e-book application program automatically generates and there is following formation:
Should realize the method that e-book application program generates automatically based on application program masterplate, its principal feature is that described method comprises the following steps:
(1) according to the prefabricated several optional application program masterplates of the environmental information of the mobile application platform of difference;
(2) obtain parameter and the e-book content of e-book application program to be produced;
(3) described e-book content is inserted in selected application program masterplate;
(4) according to the parameter of described e-book application program to be produced, the parameter of selected application program masterplate is modified;
(5) selected application program masterplate is compiled and generates e-book application program.
Preferably, described optional application program masterplate comprises Android engineering masterplate, IOS engineering masterplate and WP engineering masterplate.
Preferably, described e-book content is by the e-book content of HTML5 and JavaScript encapsulation.
Preferably, the parameter of described selected application program masterplate comprises engineering name, application name, author information, the multilingual support option of application program, application icon and secure option.
More preferably, it is characterized in that, described secure option comprises application signature and content copyright protection information.
Adopted and based on application program masterplate, realized the method that e-book application program automatically generates in this invention, there is following beneficial effect:
1, use prefabricated application object template, e-book content can be converted into mobile applications automatically and rapidly, owing to having, a plurality of application program masterplates that are applicable to different mobile application platforms are available, and HTML5 and JavaScript are supported by the browser of the mobile operation platform of majority, this e-book application program that makes to contain the e-book content of HTML5 and JavaScript encapsulation has cross-platform characteristic, easy to use, there is range of application widely.
2, the traditional forms of enterprises or individual can be without the whole processes of being concerned about that e-book application program generates, they only need to be absorbed in the design and fabrication of content, e-book application program is only a new content reading method for content, by the present invention, the application program that can be each different mobile platforms by content rapid conversions such as newpapers and periodicals, magazine, books, not only with low cost, speed is fast, and without the performance history of being concerned about mobile applications.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of realizing the automatic method generating of e-book application program based on application program masterplate of the present invention.
Fig. 2 is that the parameter of application program masterplate of the present invention forms schematic diagram.
Fig. 3 is the principle of work schematic diagram of the e-book application program generating based on application program masterplate of the present invention.
Embodiment
In order more clearly to describe technology contents of the present invention, below in conjunction with specific embodiment, conduct further description.
The present invention has utilized HTML5 and JavaScript encapsulation technology and definition content in the form that represents moving in application, because HTML5 and JavaScript are supported by the browser of the mobile operation platform of majority, the e-book application program of the e-book content that this makes to contain HTML5 and JavaScript encapsulation has cross-platform characteristic.
Wherein, HTML5 refers to as HTML (Hypertext Markup Language), is the markup language of describing web document, and JavaScript refers to based on object and event-driven and has the client script language of relative safety.
Technical scheme of the present invention is: adopt mobile browser, Android platform and ios platform adopt Web View technology, build in advance the APP of different mobile application platforms, and as the engineering template of e-book application program.
According to different mobile application platforms, using the e-book content of HTM5 and JavaScript encapsulation as application resource, write pre-prepd mobile applications engineering template and revise engineering template parameter.
The parameter that is illustrated in figure 2 application program masterplate of the present invention forms schematic diagram.
Due to the difference of each platform, the present invention is abstract in following parameter sets by engineering template parameter: engineering name, application name, author information (comprising: name, contact method), the multilingual support option of application program, application icon, secure option (comprising: application signature, content copyright protection).
By revising engineering template parameter, by for e-book produces a unique application program engineering, by automatic generation application tool, thereby generated fast e-book application program.
The application object template of the mobile application platform of difference involved in the present invention has diversity, goes for different operating platforms, has freely, also has paying, and user can select according to different objects and hobby.
Be illustrated in figure 1 the process flow diagram of realizing the automatic method generating of e-book application program based on application program masterplate of the present invention.
It is of the present invention that based on application program masterplate, to realize the step of the method that e-book application program automatically generates as follows:
(1) according to the prefabricated several optional application program masterplates of the environmental information of the mobile application platform of difference;
(2) obtain parameter and the e-book content of e-book application program to be produced;
(3) described e-book content is inserted in selected application program masterplate;
(4) according to different mobile application platform attributes, revise application object template parameter, be the application program of e-book creation uniqueness;
(5) according to different mobile application platform attributes, use the corresponding engineering compiling tool command of script language calling, automatic compiling also creates e-book application program.
Described optional application program masterplate comprises Android engineering masterplate, IOS engineering masterplate and WP engineering masterplate or Other Engineering masterplate.
Described e-book content is by the e-book content of HTML5 and JavaScript encapsulation, can support multiple mobile application platform, has better compatibility.
Be illustrated in figure 3 the principle of work schematic diagram of the e-book application program generating based on application program masterplate of the present invention.
The principle of work of the e-book application program generating is: after application program launching, the browser of application platform is moved in initialization, loading comprises the e-book application program by the e-book content of HTML5 and JavaScript encapsulation, the content page that loading represents with HTML5, mutual by mobile platform home environment and JavaScript, realize application program and user's interface alternation, realize user and by browser network, carry out the reading of e-book content.
The present embodiment be take Android and is moved application platform as example, the Python (a kind of object-oriented, literal translation formula computer programming language) of take is implementation language, and just the embodiment of the e-book application program Auto-Generation Tool based on application object template is described in detail as follows:
1, user is by contents such as the online e-book designing and making of Mookhub newpapers and periodicals, magazine or books, and Mookhub backstage produces the e-book content of using HTML5 and JavaScript encapsulation.Wherein, Mookhub is the online e-book APP O&M platform of Northern Europe, Shanghai Information Technology Co., Ltd, provides the online design and fabrication of e-book, services such as the automatic generation of e-book APP, issue, maintenance, upgradings.
2, user submits e-book content to; select as required application object template, and the parameter of application object template be provided: Android application name, engineering name, signing messages, chosen content copyright protection whether, speech selection and Android application icon
3,, according to user's selection, copy corresponding precast construction template under automatic compiling working directory.
4, by the e-book content compression of step 1 gained and copy under the assets catalogue of Android engineering.
5, revise the project.properties file under Android engineering catalogue, open Code obfuscation switch:
prop=open(projectPath+'/'+'project.properties','a')
prop.write('\nproguard.config=${sdk.dir}/tools/proguard/proguard-Android.txt:proguard-project.txt')
prop.close()
6, revise ant.properties file, add the certificate information for application signature.
sign=open(projectPath+'/'+'ant.properties','a')
sign.write('key.store='+keyStorePath+'\n')
sign.write('key.alias=xxxxx\n')
sign.write('key.store.password=xxxxx\n')
sign.write('key.alias.password=xxxxx)
sign.close()
7, revise AndroidManifest.xml file, modification application program is registered and is that application program adds corresponding authority.
dom=parse(open(projectPath+'/'+'AndroidManifest.xml'))
perm=dom.createElement('uses-permission')
perm.setAttribute('Android:name',
'Android.permission.WRITE_EXTERNAL_STORAGE')
dom.documentElement.appendChild(perm)
perm=dom.createElement('uses-permission')
perm.setAttribute('Android:name','Android.permission.INTERNET')
dom.documentElement.appendChild(perm)
open(projectPath + '/' + 'AndroidManifest.xml','w').write(dom.toxml().encode('utf-8'))
8, call ant order compiling engineering template, automatically for e-book generates application.
curdir=os.getcwd()
os.chdir(project_path)
os.system('ant-q clean')
os.system('ant-q release')
os.chdir(curdir)
Adopted and based on application program masterplate, realized the method that e-book application program automatically generates in this invention, there is following beneficial effect:
1, use prefabricated application object template, e-book content can be converted into mobile applications automatically and rapidly, owing to having, a plurality of application program masterplates that are applicable to different mobile application platforms are available, and HTML5 and JavaScript are supported by the browser of the mobile operation platform of majority, this e-book application program that makes to contain the e-book content of HTML5 and JavaScript encapsulation has cross-platform characteristic, easy to use, there is range of application widely.
2, the traditional forms of enterprises or individual can be without the whole processes of being concerned about that e-book application program generates, they only need to be absorbed in the design and fabrication of content, e-book application program is only a new content reading method for content, by the present invention, the application program that can be each different mobile platforms by content rapid conversions such as newpapers and periodicals, magazine, books, not only with low cost, speed is fast, and without the performance history of being concerned about mobile applications.
In this instructions, the present invention is described with reference to its specific embodiment.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (5)

1. based on application program masterplate, realize the method that e-book application program generates automatically, it is characterized in that, described method comprises the following steps:
(1) according to the prefabricated several optional application program masterplates of the environmental information of the mobile application platform of difference;
(2) obtain parameter and the e-book content of e-book application program to be produced;
(3) described e-book content is inserted in selected application program masterplate;
(4) according to the parameter of described e-book application program to be produced, the parameter of selected application program masterplate is modified;
(5) selected application program masterplate is compiled and generates e-book application program.
2. the method that realizes the automatic generation of e-book application program based on application program masterplate according to claim 1, is characterized in that, described optional application program masterplate comprises Android engineering masterplate, IOS engineering masterplate and WP engineering masterplate.
3. the method that realizes the automatic generation of e-book application program based on application program masterplate according to claim 1, is characterized in that, described e-book content is by the e-book content of HTML5 and JavaScript encapsulation.
4. according to claim 1ly based on application program masterplate, realize the method that e-book application program automatically generates, it is characterized in that, the parameter of described selected application program masterplate comprises engineering name, application name, author information, the multilingual support option of application program, application icon and secure option.
5. the method that realizes the automatic generation of e-book application program based on application program masterplate according to claim 4, is characterized in that, described secure option comprises application signature and content copyright protection information.
CN201310534430.7A 2013-11-01 2013-11-01 E-book application program automatic generation achieving method based on application program template Pending CN103544019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310534430.7A CN103544019A (en) 2013-11-01 2013-11-01 E-book application program automatic generation achieving method based on application program template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310534430.7A CN103544019A (en) 2013-11-01 2013-11-01 E-book application program automatic generation achieving method based on application program template

Publications (1)

Publication Number Publication Date
CN103544019A true CN103544019A (en) 2014-01-29

Family

ID=49967500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310534430.7A Pending CN103544019A (en) 2013-11-01 2013-11-01 E-book application program automatic generation achieving method based on application program template

Country Status (1)

Country Link
CN (1) CN103544019A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199672A (en) * 2014-09-19 2014-12-10 北京金和软件股份有限公司 System allowing users to generate mobile applications
CN104216712A (en) * 2014-09-02 2014-12-17 宇龙计算机通信科技(深圳)有限公司 Application program acquiring and providing methods and devices
CN104239060A (en) * 2014-09-19 2014-12-24 北京金和软件股份有限公司 Method for automatically generating design schemes for mobile applications
CN105278971A (en) * 2014-06-17 2016-01-27 中国移动通信集团浙江有限公司 Mobile terminal installation package batch generation method and device
CN105530309A (en) * 2015-12-22 2016-04-27 Tcl集团股份有限公司 IoT control platform and implementation method thereof
CN106060165A (en) * 2016-07-12 2016-10-26 苏州亿飞网络科技有限公司 APP client online production method
CN107273102A (en) * 2016-04-07 2017-10-20 阿里巴巴集团控股有限公司 The generation method and device of mobile applications
CN108717357A (en) * 2018-05-23 2018-10-30 中国平安人寿保险股份有限公司 Page presentation code conversion method, device, equipment and computer storage media
CN109358860A (en) * 2018-09-29 2019-02-19 上海中畅信息科技有限公司 A kind of quick packaging method of software
CN110750958A (en) * 2019-10-17 2020-02-04 北京奇艺世纪科技有限公司 Text display method and device, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7076765B1 (en) * 1998-06-24 2006-07-11 Kabushiki Kaisha Toshiba System for hiding runtime environment dependent part
CN102918557A (en) * 2010-06-01 2013-02-06 宋荣珠 Electronic multimedia publishing systems and methods
CN103176774A (en) * 2011-12-21 2013-06-26 中国移动通信集团广东有限公司 Compiling method, compiling device and compiling system of application program
CN103248647A (en) * 2012-02-08 2013-08-14 北京磊友信息科技有限公司 Method and server providing cross-platform book reading

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7076765B1 (en) * 1998-06-24 2006-07-11 Kabushiki Kaisha Toshiba System for hiding runtime environment dependent part
CN102918557A (en) * 2010-06-01 2013-02-06 宋荣珠 Electronic multimedia publishing systems and methods
CN103176774A (en) * 2011-12-21 2013-06-26 中国移动通信集团广东有限公司 Compiling method, compiling device and compiling system of application program
CN103248647A (en) * 2012-02-08 2013-08-14 北京磊友信息科技有限公司 Method and server providing cross-platform book reading

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278971A (en) * 2014-06-17 2016-01-27 中国移动通信集团浙江有限公司 Mobile terminal installation package batch generation method and device
CN104216712A (en) * 2014-09-02 2014-12-17 宇龙计算机通信科技(深圳)有限公司 Application program acquiring and providing methods and devices
CN104216712B (en) * 2014-09-02 2018-01-09 宇龙计算机通信科技(深圳)有限公司 A kind of application program acquisition methods, provide method and device
CN104199672B (en) * 2014-09-19 2017-09-29 北京金和软件股份有限公司 The system that a kind of confession user generates Mobile solution
CN104199672A (en) * 2014-09-19 2014-12-10 北京金和软件股份有限公司 System allowing users to generate mobile applications
CN104239060A (en) * 2014-09-19 2014-12-24 北京金和软件股份有限公司 Method for automatically generating design schemes for mobile applications
CN104239060B (en) * 2014-09-19 2018-05-01 北京金和软件股份有限公司 A kind of method for automatically generating mobile application designing scheme
CN105530309A (en) * 2015-12-22 2016-04-27 Tcl集团股份有限公司 IoT control platform and implementation method thereof
CN105530309B (en) * 2015-12-22 2019-07-09 Tcl集团股份有限公司 A kind of Internet of Things control platform and its implementation
CN107273102A (en) * 2016-04-07 2017-10-20 阿里巴巴集团控股有限公司 The generation method and device of mobile applications
CN106060165A (en) * 2016-07-12 2016-10-26 苏州亿飞网络科技有限公司 APP client online production method
CN108717357A (en) * 2018-05-23 2018-10-30 中国平安人寿保险股份有限公司 Page presentation code conversion method, device, equipment and computer storage media
CN108717357B (en) * 2018-05-23 2023-11-10 中国平安人寿保险股份有限公司 Page display code conversion method, device, equipment and computer storage medium
CN109358860A (en) * 2018-09-29 2019-02-19 上海中畅信息科技有限公司 A kind of quick packaging method of software
CN110750958A (en) * 2019-10-17 2020-02-04 北京奇艺世纪科技有限公司 Text display method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN103544019A (en) E-book application program automatic generation achieving method based on application program template
Manjunatha et al. Power of clouds in your pocket: An efficient approach for cloud mobile hybrid application development
CN104158836A (en) Method for rendering mobile application interface through data
TWI528288B (en) Method for transforming application codes in cross-platform and apparatus thereof
CN104484216A (en) Method and device for generating service interface document and on-line test tool
CN104298534B (en) Programmed method and device based on Lua language
CN109284104A (en) Method based on webpage assembler language control page jump
CN103761087A (en) Method and device for cross-platform development of mobile applications
CN103064738A (en) Method and system for embedding local application program window into browser in Linux
CN103345394A (en) Method for rapidly making application software of native mobile phones
CN106528184A (en) App development method based on cordova platform
CN105574000A (en) Method and device for expanding APK (Android Package) file application
CN105556505A (en) Legacy system
US10762285B2 (en) Methods and systems for generating electronic forms
CN105022619A (en) Code processing method and device
CN103077038B (en) The method of dynamic generation and compiling .NET project
CN110362792B (en) Method and device for converting RN file into applet file and conversion equipment
CN105487874A (en) Unified management method for HTML5 web application and native application in mobile terminal
CN103294463A (en) Editing system and method
CN103914293A (en) Page generation method and server
CN101876998A (en) Method and system for editing data
Bandirmali mtCMF: A novel memory table based content management framework for automatic website generation
CN102722367B (en) A kind of method of data processing, processor and terminal
Lajmi et al. DSLFORGE: Textual Modeling on the Web.
Slominski et al. Web Extensible Display Manager 2

Legal Events

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

Application publication date: 20140129

RJ01 Rejection of invention patent application after publication