CN112861483A - Online editing method for demonstration manuscript - Google Patents

Online editing method for demonstration manuscript Download PDF

Info

Publication number
CN112861483A
CN112861483A CN202110174848.6A CN202110174848A CN112861483A CN 112861483 A CN112861483 A CN 112861483A CN 202110174848 A CN202110174848 A CN 202110174848A CN 112861483 A CN112861483 A CN 112861483A
Authority
CN
China
Prior art keywords
file
xml
presentation
ppt
label
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
CN202110174848.6A
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.)
INST OF SCIENT AND TECHNICAL INFORMATION OF JILIN PROVINCE
Original Assignee
INST OF SCIENT AND TECHNICAL INFORMATION OF JILIN PROVINCE
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 INST OF SCIENT AND TECHNICAL INFORMATION OF JILIN PROVINCE filed Critical INST OF SCIENT AND TECHNICAL INFORMATION OF JILIN PROVINCE
Priority to CN202110174848.6A priority Critical patent/CN112861483A/en
Publication of CN112861483A publication Critical patent/CN112861483A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an online editing method for a presentation, which comprises the following steps: when an editing request is received, acquiring a PPT file from a hard disk of a server; decompressing the PPT file through an open source program POI and storing the PPT file as a file in an XML format; analyzing the XML format file; comparing each label in the XML-formatted file with a PPT label library so as to determine the meaning of each label in the XML-formatted file; converting each tag in the XML-formatted file into a corresponding HTML tag according to the meaning of each tag in the XML-formatted file; and setting a custom attribute in the HTML tag. The online editing method for the presentation can be used for online editing of the PPT file on the HTML webpage.

Description

Online editing method for demonstration manuscript
Technical Field
The invention relates to the technical field of computers, in particular to an online editing method for a presentation.
Background
The Powerpoint (presentation) mainly functions to show various multimedia information such as characters, graphics, charts, sounds and the like in a picture mode. Each picture is called a slide show, the multimedia technology provided by the picture enables the presentation effect to be good in sound and shape and luxuriant in pictures and texts, and the created content can be presented through various ways. Therefore, the presentation is widely applied in the fields of multimedia teaching, meetings and the like.
The inventor finds that in the process of implementing the invention, the traditional mode uses PowerPoint to edit the file, and users need to install office software locally, so that a large amount of computer hard disk space is occupied locally, and each user needs to purchase Microsoft legal office software; once the user computer has a problem, the files stored on the computer are lost and cannot be retrieved, so that great loss is caused to the user; under the condition that a user uses a desktop computer, the user cannot edit own files at any place and can only copy and store the files through a mobile storage device.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention aims to provide an online editing method for a presentation, which can be used for editing PPT files online on HTML web pages.
In order to achieve the above object, the present invention provides an online editing method for a presentation, comprising: when an editing request is received, acquiring a PPT file from a hard disk of a server; decompressing the PPT file through an open source program POI and storing the PPT file as a file in an XML format; analyzing the XML format file; comparing each label in the XML-formatted file with a PPT label library so as to determine the meaning of each label in the XML-formatted file; and converting each label in the XML-format file into a corresponding HTML label according to the meaning of each label in the XML-format file.
In an embodiment of the present invention, parsing the XML-formatted file includes: and parsing the XML-formatted file by using an open-source XML parsing package DOM 4J.
In an embodiment of the present invention, the online editing method for a presentation further includes: and setting a custom attribute in the HTML tag.
In an embodiment of the present invention, setting a custom attribute in the HTML tag includes: and adding an ap attribute in the HTML tag.
In an embodiment of the present invention, converting each tag in the XML-formatted file into a corresponding HTML tag includes: and converting each label in the XML format file into a corresponding HTML label by adopting a multithreading asynchronous simultaneous analysis method.
In an embodiment of the present invention, the online editing method for a presentation further includes: after receiving a storage request, converting an HTML source code of the edited PPT file into an XML format, and inquiring the custom attribute so as to obtain a modification position of the PPT file; updating the XML format file; and reading the updated XML-format file through the open source program POI and converting the XML-format file into a PPT file.
In an embodiment of the present invention, the online editing method for a presentation further includes: and storing the PPT file into a hard disk of the server.
Based on the same inventive concept, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the steps of the method according to any of the above embodiments.
Based on the same inventive concept, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method according to any of the above embodiments.
Compared with the prior art, the online editing method and the electronic device for the presentation can be deployed in operating systems such as Windows, linux and android without modifying any code, and are easy to implement and maintain. In addition, according to the method, a user does not need to install Office software in a local or server, the user can open a webpage as long as the Internet exists, the PPT file of the user can be directly checked and edited, and the PPT file is stored in the cloud in real time, so that the method has extremely high convenience.
Drawings
Fig. 1 is a block diagram illustrating steps of a method for online editing of a presentation according to an embodiment of the present invention.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
In order to overcome the problems in the prior art, the invention provides an online editing method for a presentation, which can be used for online editing of a PPT file on an HTML webpage.
Fig. 1 is a block diagram illustrating steps of a method for online editing of a presentation according to an embodiment of the present invention.
In step S1, a PPT file is acquired: and when an editing request is received, acquiring the PPT file which is stored by the user from the hard disk of the server.
Format conversion of the PPT file is performed in step S2: and decompressing the PPT file through the open source program POI, and storing the PPT file as a file in an XML format.
The XML-formatted file is parsed in step S3. Optionally, the XML-formatted file is parsed by using an open-source XML parsing package DOM 4J.
The tag meaning is determined in step S4: and comparing each label in the XML-format file with a PPT label library so as to determine the meaning of each label in the XML-format file.
The conversion of the label is performed in step S5: and converting each label in the XML-format file into a corresponding HTML label according to the meaning of each label in the XML-format file. Specifically, the HTML tag is an SVG tag in an HTML page. For example, the < a: prstGeom prst ═ rect > tag in XML is compared by a PPT tag library, and the meaning of the tag is determined to be 'a rectangle', and then the XML tag is converted into the < rect > tag of SVG in HTML.
Preferably, a multithreading asynchronous simultaneous parsing method can be adopted to convert each tag in the XML-format file into a corresponding HTML tag, so that the parsing of the file can be accelerated, and even if the PPT file is too large, the parsing can be completed quickly; the method and the device can be quickly presented on the page, and the user experience quality is improved.
Preferably, the custom attribute is set in the HTML tag in step S6. For example, an ap attribute is added to the < rect > tag of a paragraph in HTML for use in save after editing, which may indicate the location modified by the user after editing.
Through the implementation mode, the PPT file is converted into the form which can be edited by the HTML page, and a user can edit the HTML page on line.
Preferably, in an embodiment, after the user finishes editing the contents of the PPT file on the browser, the online editing method for the presentation further includes: after receiving a storage request, converting an HTML source code of the edited PPT file into an XML format, and inquiring the custom attribute so as to obtain a modification position of the PPT file; updating the XML format file; reading the updated XML-format file through the open source program POI and converting the XML-format file into a PPT file; and storing the PPT file into a hard disk of the server.
Based on the same inventive concept, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the steps of the method according to any of the above embodiments.
Based on the same inventive concept, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method according to any of the above embodiments.
In summary, according to the online editing method for the presentation and the electronic device in the embodiment, the PPT file can be edited online on the HTML webpage, and the method can be deployed in operating systems such as Windows, linux, android and the like without modifying any code, and is easy to implement and maintain. In addition, according to the method, a user does not need to install Office software in a local or server, the user can open a webpage as long as the Internet exists, the PPT file of the user can be directly checked and edited, and the PPT file is stored in the cloud in real time, so that the method has extremely high convenience.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing descriptions of specific exemplary embodiments of the present invention have been presented for purposes of illustration and description. It is not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain certain principles of the invention and its practical application to enable one skilled in the art to make and use various exemplary embodiments of the invention and various alternatives and modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.

Claims (9)

1. An online editing method for a presentation, comprising:
when an editing request is received, acquiring a PPT file from a hard disk of a server;
decompressing the PPT file through an open source program POI and storing the PPT file as a file in an XML format;
analyzing the XML format file;
comparing each label in the XML-formatted file with a PPT label library so as to determine the meaning of each label in the XML-formatted file;
and converting each label in the XML-format file into a corresponding HTML label according to the meaning of each label in the XML-format file.
2. The method of online editing of a presentation of claim 1, wherein parsing the XML-formatted file comprises:
and parsing the XML-formatted file by using an open-source XML parsing package DOM 4J.
3. The online editing method for a presentation of claim 1, wherein the online editing method for a presentation further comprises:
and setting a custom attribute in the HTML tag.
4. The online editing method for a presentation of claim 3, wherein setting custom attributes in the HTML tag comprises:
and adding an ap attribute in the HTML tag.
5. The method of online editing of a presentation of claim 1, wherein converting each tag in the XML-formatted file to a corresponding HTML tag comprises:
and converting each label in the XML format file into a corresponding HTML label by adopting a multithreading asynchronous simultaneous analysis method.
6. The online editing method for a presentation of claim 1, wherein the online editing method for a presentation further comprises:
after receiving a storage request, converting an HTML source code of the edited PPT file into an XML format, and inquiring the custom attribute so as to obtain a modification position of the PPT file;
updating the XML format file;
and reading the updated XML-format file through the open source program POI and converting the XML-format file into a PPT file.
7. The online editing method for a presentation of claim 1, wherein the online editing method for a presentation further comprises:
and storing the PPT file into a hard disk of the server.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 7 are implemented when the processor executes the program.
9. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110174848.6A 2021-02-07 2021-02-07 Online editing method for demonstration manuscript Pending CN112861483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110174848.6A CN112861483A (en) 2021-02-07 2021-02-07 Online editing method for demonstration manuscript

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110174848.6A CN112861483A (en) 2021-02-07 2021-02-07 Online editing method for demonstration manuscript

Publications (1)

Publication Number Publication Date
CN112861483A true CN112861483A (en) 2021-05-28

Family

ID=75989382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110174848.6A Pending CN112861483A (en) 2021-02-07 2021-02-07 Online editing method for demonstration manuscript

Country Status (1)

Country Link
CN (1) CN112861483A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030097253A (en) * 2002-06-20 2003-12-31 주식회사 케이티 Apparatus and method for mediating message of network elements
TWI248002B (en) * 2004-09-17 2006-01-21 Infopower Corp System and method of web-based editor for compound documents
US20090112612A1 (en) * 2007-10-31 2009-04-30 Alastair Mark Percival Board Document Approval Method
CN101499099A (en) * 2009-03-23 2009-08-05 深圳市金蝶中间件有限公司 Method and system for WEB page layout
CN101916293A (en) * 2010-08-27 2010-12-15 中国电信股份有限公司 Method and device for introducing media information into file
CN102831154A (en) * 2012-06-29 2012-12-19 北京奇虎科技有限公司 Method and device for storing and displaying data in text input box of webpage
CN103164201A (en) * 2011-12-15 2013-06-19 航天信息软件技术有限公司 Web page generating method
CN105589836A (en) * 2015-12-21 2016-05-18 华为技术有限公司 Document previewing method, terminal and server
CN105630459A (en) * 2014-10-25 2016-06-01 上海未达数码科技有限公司 Method for converting PPT document to HTML page
CN107798001A (en) * 2016-08-29 2018-03-13 阿里巴巴集团控股有限公司 Web page processing method, device and equipment
CN108241602A (en) * 2016-12-26 2018-07-03 北京奇虎科技有限公司 A kind of online method and apparatus for making PowerPoint

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030097253A (en) * 2002-06-20 2003-12-31 주식회사 케이티 Apparatus and method for mediating message of network elements
TWI248002B (en) * 2004-09-17 2006-01-21 Infopower Corp System and method of web-based editor for compound documents
TW200611142A (en) * 2004-09-17 2006-04-01 Infopower Corp System and method of web-based editor for compound documents
US20090112612A1 (en) * 2007-10-31 2009-04-30 Alastair Mark Percival Board Document Approval Method
CN101499099A (en) * 2009-03-23 2009-08-05 深圳市金蝶中间件有限公司 Method and system for WEB page layout
CN101916293A (en) * 2010-08-27 2010-12-15 中国电信股份有限公司 Method and device for introducing media information into file
CN103164201A (en) * 2011-12-15 2013-06-19 航天信息软件技术有限公司 Web page generating method
CN102831154A (en) * 2012-06-29 2012-12-19 北京奇虎科技有限公司 Method and device for storing and displaying data in text input box of webpage
CN105630459A (en) * 2014-10-25 2016-06-01 上海未达数码科技有限公司 Method for converting PPT document to HTML page
CN105589836A (en) * 2015-12-21 2016-05-18 华为技术有限公司 Document previewing method, terminal and server
CN107798001A (en) * 2016-08-29 2018-03-13 阿里巴巴集团控股有限公司 Web page processing method, device and equipment
CN108241602A (en) * 2016-12-26 2018-07-03 北京奇虎科技有限公司 A kind of online method and apparatus for making PowerPoint

Similar Documents

Publication Publication Date Title
US10565293B2 (en) Synchronizing DOM element references
CN108415702B (en) Dynamic rendering method and device for application interface of mobile terminal
US8982132B2 (en) Value templates in animation timelines
CN106897251B (en) Rich text display method and device
US8074167B2 (en) Cross domain presence of web user interface and logic
US7783967B1 (en) Packaging web content for reuse
US20070277088A1 (en) Enhancing an existing web page
US20130132840A1 (en) Declarative Animation Timelines
US20100064209A1 (en) Method for transforming web page objects
KR20140033094A (en) Embedded web viewer for presentation applications
JP2005339566A (en) Method and system for mapping content between starting template and target template
US20130127877A1 (en) Parameterizing Animation Timelines
JP2007122708A (en) System and method for text legibility enhancement
CN106933887B (en) Data visualization method and device
US9672197B2 (en) Universal rebranding engine
WO2019214539A1 (en) Document display method and apparatus
US20140304379A1 (en) Computer-Implemented Methods and Systems for Dynamically Compiling and Serving Electronic Content
CN106886398B (en) Method and equipment for extracting cascading style sheet
US10740367B2 (en) Displaying an indication of changes made to content at a source
KR20150095663A (en) Flat book to rich book conversion in e-readers
CN112861482A (en) File online editing method
CN112861483A (en) Online editing method for demonstration manuscript
Kleinfeld HTML5 for Publishers
US9223766B2 (en) Preserving formatting of content selection through snippets
CN111325007B (en) Comment analysis method and terminal for PPTX file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination