CN104267953A - Control and method for importing Word test questions based on browser - Google Patents

Control and method for importing Word test questions based on browser Download PDF

Info

Publication number
CN104267953A
CN104267953A CN201410501546.5A CN201410501546A CN104267953A CN 104267953 A CN104267953 A CN 104267953A CN 201410501546 A CN201410501546 A CN 201410501546A CN 104267953 A CN104267953 A CN 104267953A
Authority
CN
China
Prior art keywords
word
file
unit
test question
server
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
CN201410501546.5A
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.)
Kunming Iron and Steel Group Co Ltd
Original Assignee
Kunming Iron and Steel Group 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 Kunming Iron and Steel Group Co Ltd filed Critical Kunming Iron and Steel Group Co Ltd
Priority to CN201410501546.5A priority Critical patent/CN104267953A/en
Publication of CN104267953A publication Critical patent/CN104267953A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a control and a method for importing Word test questions based on a browser. The control comprises a server unit, a Word test question file selection unit, a Word test question file conversion unit, a test question content unloading unit, and a test question content analyzing and saving unit. The control is used for performing conversion, packaging and unloading of Word test question contents by use of three units, namely the Word file conversion unit, the test question content unloading unit and the Web server analysis unit, and saves the test question information and returns the test question saving information by virtue of Web server analysis. The method comprises the steps of selecting a Word file and saving the Word file as an HTML file, next, packaging the HTML file into a gzip format, uploading the gzip file to a server and informing the server of analyzing the uploaded contents after the file is uploaded successfully, analyzing by the Web server, receiving, assembling and storing the gzip file, unpacking the gzip file and then analyzing the HTML file by use of a regular expression, and finally, extracting the test question information, saving the information into a database and returning the test question saving information. The control is combined with the browser and convenient and fast for a user to use.

Description

A kind of Word examination question based on browser imports control and method
Technical field
The invention belongs to field of computer technology, be specifically related to a kind of Word examination question based on browser and import control and method.
Background technology
Along with the development of Internet technology, increasing school adopts On-line Examining system to carry out entrance examination or midterm examination at ordinary times, final examination, and the confidentiality requirement owing to taking an examination, a lot of is all adopt teacher to close to make the test, the typing work of the system that just takes an exam of being close to the examination, Microsoft Word and similar software with its powerful function and ease for use, use by most of teachers, but general examination system does not support the direct import feature of Word examination question.So the manual entry of examination question constrains the extensive application of On-line Examining system, and probably causes the delay of online testing, affect the normal operation of online testing.How to allow user fast by Word module editor examination question, examination question is imported On-line Examining system, improve set a question efficiency and speed and become problem demanding prompt solution.
Summary of the invention
The first object of the present invention is to provide a kind of Word examination question based on browser to import control; Second object is to provide the described Word examination question based on browser to import the using method of control.
The first object of the present invention is achieved in that and comprises server unit, Word test question files selection unit, Word test question files converting unit, contents of test question uploading unit, contents of test question parsing storage unit, wherein:
Server unit: for service logic and the data of storage system;
Word test question files selection unit: select to need the test question files of importing for user and determine to import;
Word test question files converting unit: for opening the Word file that user specifies, and this Word file is separately saved as html format file;
Contents of test question uploading unit: for html file is packaged into gzip form, and by gzip files passe to server, after files passe success, announcement server resolves upload contents;
Contents of test question resolves storage unit: deposit for accepting gzip file and assembling, resolve html file, and picture wherein and/or form analysis are become examination question and preserves, return saving result after unpacking gzip.
The second object of the present invention is achieved in that and comprises the following steps:
A, browser plug-in are installed: when operating personnel open the examination question importing page, system automatically will detect browser and whether install importing plug-in unit, if do not installed, automatic spring is installed window by system, and after operating personnel run, system is by this plug-in unit of Auto-mounting;
B, Word import file and select: operating personnel click examination question and import button, and control opens file selection window, after user selects local examination question Word file, determine to import;
C, Word examination question is changed: control is opened user and selected Word file, and continues to convert this file to Html form;
The conversion of D, contents of test question is uploaded: html file is packaged into gzip form by control, and the section of gzip file is uploaded onto the server, and after files passe success, announcement server resolves upload contents;
E, Gzip document analysis: server receives gzip file and assembling is deposited, and resolves html file, save as test question information, and return preservation information by after its dissection process after unpacking gzip with regular expression.
The present invention directly imports the method for examination question to Web server for user provides a kind of from Word file, the method increasing user sets a question to the efficiency of server from Word file, decrease repeated work, particularly in entrance examination, after the teacher that sets a question goes out good topic according to module, directly examination question Word file can be directed into examination system tissue examination.Present invention achieves and the importing of Word test question files is saved to Web server, improve efficiency of setting a question, improve the range of application of On-line Examining system.
Accompanying drawing explanation
Fig. 1 is the individual cellular logic structural representation of the Word examination question importing control that the present invention is based on browser;
Fig. 2 is the schematic flow sheet of the Word examination question importing control that the present invention is based on browser.
Embodiment
Below in conjunction with accompanying drawing, the present invention is further illustrated, but limited the present invention never in any form, and any conversion done based on training centre of the present invention or replacement, all belong to protection scope of the present invention.
Word examination question based on browser of the present invention imports control, comprises server unit, Word test question files selection unit, Word test question files converting unit, contents of test question uploading unit, contents of test question parsing storage unit, wherein:
Server unit: for service logic and the data of storage system;
Word test question files selection unit: select to need the test question files of importing for user and determine to import;
Word test question files converting unit: for opening the Word file that user specifies, and this Word file is separately saved as html format file;
Contents of test question uploading unit: for html file is packaged into gzip form, and by gzip files passe to server, after files passe success, announcement server resolves upload contents;
Contents of test question resolves storage unit: deposit for accepting gzip file and assembling, resolve html file, and picture wherein and/or form analysis are become examination question and preserves, return saving result after unpacking gzip.
Described server unit is made up of apps server, database server, storage array, switch, fire wall, router and data terminal.
Described service logic and data are editor's Word examination question, add examination question paper mark, click and import examination question, uploaded onto the server by examination question Word and resolve the html file and picture file uploaded and save as system examination question.
Described unpack gzip after to resolve html file be adopt regular expression to resolve.
Described examination question picture wherein and/or form analysis is become to be adopt Word to be saved as html, picture or formula picture to be replaced or the segmentation of # ,@special symbol is resolved.
Word examination question based on browser of the present invention imports the using method of control, comprises the following steps:
A, browser plug-in are installed: when operating personnel open the examination question importing page, system automatically will detect browser and whether install importing plug-in unit, if do not installed, automatic spring is installed window by system, and after operating personnel run, system is by this plug-in unit of Auto-mounting;
B, Word import file and select: operating personnel click examination question and import button, and control opens file selection window, after user selects local examination question Word file, determine to import;
C, Word examination question is changed: control is opened user and selected Word file, and continues to convert this file to Html form;
The conversion of D, contents of test question is uploaded: html file is packaged into gzip form by control, and the section of gzip file is uploaded onto the server, and after files passe success, announcement server resolves upload contents;
E, Gzip document analysis: server receives gzip file and assembling is deposited, and resolves html file, save as test question information, and return preservation information by after its dissection process after unpacking gzip with regular expression.
The present invention is not only confined to realize pure Word files passe, by parsing that packing after Word conversion is uploaded onto the server, and the file system of Web server will be saved to after picture, formula, figure list processing (LISP) in Word, be saved to server after resolving to contents of test question according to established rule and return preservation information, this invention achieve the embedding of browser, Web server Context resolution is integrated etc. that Word test question files uploads Web server and resolve to examination system examination question and assemble the whole process of paper.
Systemic-function of the present invention has file system management, Word examination question imports, assembling paper function.
The object of the invention is the deficiency in order to overcome test questions input in On-line Examining system, be that provide a kind of comprises Word test question files conversion control in single browser plug-in, examination question converted contents uploading control, and make this plug-in unit embed in the browser of user side, and parsing is carried out to the contents of test question that plug-in unit is uploaded save as examination question, directly from Word file, the method for examination question to Web server is imported for user provides a kind of, the method increasing user sets a question to the efficiency of server from Word file, decrease repeated work, particularly in entrance examination, set a question after teacher goes out good topic according to module and directly examination question Word file can be directed into examination system tissue examination.
Control of the present invention, namely the Word examination question importing control based on browser combines the technology such as network, computing machine, communication, robotization, system is resolved storage unit formed by Word test question files selection unit, Word test question files converting unit, contents of test question uploading unit, server unit, contents of test question, wherein:
Shown Word test question files selection unit is run program on computers, and user can need the test question files imported also determine to import by this Unit selection.
Described Word test question files converting unit is the browser control part operating in computing machine, and first this unit opens the Word file that user specifies, and this Word file is separately saved as html format file.
Described contents of test question uploading unit is the browser control part operating in computing machine, and html file is packaged into gzip form by this unit, and by gzip files passe to server, after files passe success, announcement server resolves upload contents.
Described server unit is made up of equipment such as apps server, database server, storage arrays, and the service logic of system and data store unit thus and are responsible for, and two-server is hot standby each other, ensure that the stable operation of system.
It is the analysis program operating in server that described contents of test question resolves storage unit, this unit receives gzip file and assembling is deposited, html file is resolved with regular expression after unpacking gzip, and by becoming examination question according to the rule parsing preset after picture wherein, picture and Form Handle and preserving, return saving result.
To import contents of test question, for specific embodiment, the present invention will be further described below.
System is logically divided into 5 unit, as shown in Figure 1.Equipment composition is respectively described below:
101, Word test question files selection unit is made up of a computing machine.Any computing machine being provided with browser all can be used as the test question files selection unit of the present embodiment.
102, Word test question files converting unit is made up of a computing machine.Any one is provided with browser and the computing machine installing this plug-in unit all can be used as the stickup monitoring unit of the present embodiment.
103, contents of test question uploading unit is made up of a computing machine.Any one is provided with browser and the computing machine installing this plug-in unit all can be used as the stickup monitoring unit of the present embodiment.
104, server unit is made up of an IBM minicomputer as application server, an IBM minicomputer as database server and storage array, and wherein two IBM minicomputers are hot standby each other.As shown in Figure 1.
105, contents of test question is resolved storage unit and is made up of the server running parsing and examination question save routine.
Implementation step is as follows:
Word examination question imports example, and guiding flow is as follows:
1) operating personnel open examination question guide-in window, if first time enters, install browser plug-in.
2) user clicks and imports examination question button, selects the examination question Word file needing to import, and determines to import.
3) control selects the word file that user specifies, and is converted into html form.
4) html file is packaged into gzip form by control, and section uploads onto the server.
5) server parses gzip file be processed into contents of test question according to established rule and be saved to server, and return preservation information.
So far, an embodiment completes.Those of ordinary skill in the art on the basis understanding foregoing invention content, can carry out various expansion, changes and improvements to the present invention.All employings are equal to replacement or the technical scheme that obtains of equivalent transformation, all drop within protection scope of the present invention.

Claims (6)

1. the Word examination question based on browser imports a control, it is characterized in that comprising server unit, Word test question files selection unit, Word test question files converting unit, contents of test question uploading unit, contents of test question parsing storage unit, wherein:
Server unit: for service logic and the data of storage system;
Word test question files selection unit: select to need the test question files of importing for user and determine to import;
Word test question files converting unit: for opening the Word file that user specifies, and this Word file is separately saved as html format file;
Contents of test question uploading unit: for html file is packaged into gzip form, and by gzip files passe to server, after files passe success, announcement server resolves upload contents;
Contents of test question resolves storage unit: deposit for accepting gzip file and assembling, resolve html file, and picture wherein and/or form analysis are become examination question and preserves, return saving result after unpacking gzip.
2. the Word examination question based on browser according to claim 1 imports control, it is characterized in that described server unit is made up of apps server, database server, storage array, switch, fire wall, router and data terminal.
3. the Word examination question based on browser according to claim 1 imports control, it is characterized in that described service logic and data are editor Word examination question, add examination question paper mark, click and import examination question, uploaded onto the server by examination question Word and resolve the html file and picture file uploaded and save as system examination question.
4. the Word examination question based on browser according to claim 1 imports control, it is characterized in that described unpack gzip after to resolve html file be adopt regular expression to resolve.
5. the Word examination question based on browser according to claim 1 imports control, it is characterized in that described picture wherein and/or form analysis being become examination question to be adopt regular expression, Word saved as html, picture or formula picture to be replaced or the segmentation of # ,@special symbol is resolved.
6. the arbitrary described Word examination question based on browser of Claims 1 to 5 imports a using method for control, it is characterized in that comprising the following steps:
A, browser plug-in are installed: when operating personnel open the examination question importing page, system automatically will detect browser and whether install importing plug-in unit, if do not installed, automatic spring is installed window by system, and after operating personnel run, system is by this plug-in unit of Auto-mounting;
B, Word import file and select: operating personnel click examination question and import button, and control opens file selection window, after user selects local examination question Word file, determine to import;
C, Word examination question is changed: control is opened user and selected Word file, and continues to convert this file to Html form;
The conversion of D, contents of test question is uploaded: html file is packaged into gzip form by control, and the section of gzip file is uploaded onto the server, and after files passe success, announcement server resolves upload contents;
E, Gzip document analysis: server receives gzip file and assembling is deposited, and resolves html file, save as test question information, and return preservation information by after its dissection process after unpacking gzip with regular expression.
CN201410501546.5A 2014-09-27 2014-09-27 Control and method for importing Word test questions based on browser Pending CN104267953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410501546.5A CN104267953A (en) 2014-09-27 2014-09-27 Control and method for importing Word test questions based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410501546.5A CN104267953A (en) 2014-09-27 2014-09-27 Control and method for importing Word test questions based on browser

Publications (1)

Publication Number Publication Date
CN104267953A true CN104267953A (en) 2015-01-07

Family

ID=52159477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410501546.5A Pending CN104267953A (en) 2014-09-27 2014-09-27 Control and method for importing Word test questions based on browser

Country Status (1)

Country Link
CN (1) CN104267953A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105374249A (en) * 2015-12-15 2016-03-02 浙江工商大学 On-line question test method based on picture display in mobile terminal
CN106909533A (en) * 2016-11-14 2017-06-30 上海仪电鑫森科技发展有限公司 Suitable for multi-platform examination editing system
CN107123329A (en) * 2017-06-09 2017-09-01 浙江新盛蓝科技有限公司 A kind of webpage operation import system implementation method
CN108376089A (en) * 2018-01-26 2018-08-07 中国科学院上海高等研究院 Application support method, system, storage medium and electronic equipment based on browser
CN109522350A (en) * 2018-10-19 2019-03-26 海闻科技有限公司 A kind of method of account control parsing
CN109918622A (en) * 2019-02-27 2019-06-21 中国地质大学(武汉) The method and system converted from Word document to LaTeX document are realized based on JAVA
CN110399332A (en) * 2018-04-20 2019-11-01 鸿合科技股份有限公司 The method and apparatus for returning to teaching notes resource
CN111462559A (en) * 2019-01-22 2020-07-28 骅钜数位科技有限公司 Cloud language teaching system
CN111651963A (en) * 2020-05-14 2020-09-11 上海卓越睿新数码科技有限公司 Technology for generating test paper by importing word into question bank
CN111737949A (en) * 2020-07-22 2020-10-02 江西风向标教育科技有限公司 Topic content extraction method and device, readable storage medium and computer equipment
CN112783957A (en) * 2019-11-11 2021-05-11 上海遴睿教育科技有限公司 Method and system for importing word document format for English reading

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523244A (en) * 2011-11-18 2012-06-27 深圳中兴网信科技有限公司 Uploading method and system for page documents
CN103150380A (en) * 2013-03-13 2013-06-12 河海大学 Table format customizable Excel table analysis method
CN103902571A (en) * 2012-12-27 2014-07-02 腾讯科技(深圳)有限公司 Method and system for saving webpage complete content and corresponding client end and server
CN103955497A (en) * 2014-04-21 2014-07-30 常州市珠峰网络科技有限公司 Data collection summary method for customized table
CN104050281A (en) * 2014-06-26 2014-09-17 北京思特奇信息技术股份有限公司 Webpage information extraction method and device based on http protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523244A (en) * 2011-11-18 2012-06-27 深圳中兴网信科技有限公司 Uploading method and system for page documents
CN103902571A (en) * 2012-12-27 2014-07-02 腾讯科技(深圳)有限公司 Method and system for saving webpage complete content and corresponding client end and server
CN103150380A (en) * 2013-03-13 2013-06-12 河海大学 Table format customizable Excel table analysis method
CN103955497A (en) * 2014-04-21 2014-07-30 常州市珠峰网络科技有限公司 Data collection summary method for customized table
CN104050281A (en) * 2014-06-26 2014-09-17 北京思特奇信息技术股份有限公司 Webpage information extraction method and device based on http protocol

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TIYUWU: "《考试酷 在线考试系统》产品方案书", 《道客巴巴》 *
佚名: "PageOffice开发平台详细介绍", 《卓正软件》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105374249A (en) * 2015-12-15 2016-03-02 浙江工商大学 On-line question test method based on picture display in mobile terminal
CN106909533A (en) * 2016-11-14 2017-06-30 上海仪电鑫森科技发展有限公司 Suitable for multi-platform examination editing system
CN107123329A (en) * 2017-06-09 2017-09-01 浙江新盛蓝科技有限公司 A kind of webpage operation import system implementation method
CN108376089A (en) * 2018-01-26 2018-08-07 中国科学院上海高等研究院 Application support method, system, storage medium and electronic equipment based on browser
CN110399332A (en) * 2018-04-20 2019-11-01 鸿合科技股份有限公司 The method and apparatus for returning to teaching notes resource
CN109522350A (en) * 2018-10-19 2019-03-26 海闻科技有限公司 A kind of method of account control parsing
CN111462559A (en) * 2019-01-22 2020-07-28 骅钜数位科技有限公司 Cloud language teaching system
CN109918622A (en) * 2019-02-27 2019-06-21 中国地质大学(武汉) The method and system converted from Word document to LaTeX document are realized based on JAVA
CN112783957A (en) * 2019-11-11 2021-05-11 上海遴睿教育科技有限公司 Method and system for importing word document format for English reading
CN111651963A (en) * 2020-05-14 2020-09-11 上海卓越睿新数码科技有限公司 Technology for generating test paper by importing word into question bank
CN111737949A (en) * 2020-07-22 2020-10-02 江西风向标教育科技有限公司 Topic content extraction method and device, readable storage medium and computer equipment

Similar Documents

Publication Publication Date Title
CN104267953A (en) Control and method for importing Word test questions based on browser
US20190294676A1 (en) Written-modality prosody subsystem in a natural language understanding (nlu) framework
WO2018032937A1 (en) Method and apparatus for classifying text information
Zaidan et al. The arabic online commentary dataset: an annotated dataset of informal arabic with high dialectal content
CN106155652A (en) A kind of generation method and system of multi-language data file
CN104268226A (en) Control and method for copying and uploading Word picture based on browser
US20210042470A1 (en) Method and device for separating words
CN107798001A (en) Web page processing method, device and equipment
CN102508878A (en) Method for generating standard foreign language page by means of machine translation system
CN110909133B (en) Intelligent question and answer testing method and device, electronic equipment and storage medium
CN103455640A (en) Method and device for displaying file management interfaces
CN105404693A (en) Service clustering method based on demand semantics
CN107943798A (en) Check input text language and the system and method for automatic synchronization translation
US20180165275A1 (en) Identification and Translation of Idioms
US10354013B2 (en) Dynamic translation of idioms
CN104363349A (en) Short message processing method and portable terminal using same
CN110321545A (en) A kind of method and apparatus of office documents typesetting
CN104008042A (en) UI (user interface) automated testing method, system and device
CN107679159B (en) Method and device for generating fault diagnosis question response, server and storage medium
CN110287405A (en) The method, apparatus and storage medium of sentiment analysis
US20210319481A1 (en) System and method for summerization of customer interaction
CN112487188A (en) Public opinion monitoring method and device, electronic equipment and storage medium
CN104317505A (en) Pinyin outputting system and method
CN105635225A (en) Method and system of using mobile terminal to access mobile internet-based server and mobile terminal
CN112989805A (en) Text detection method, device, equipment and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150107