CN108509399A - The production method and device of courseware - Google Patents

The production method and device of courseware Download PDF

Info

Publication number
CN108509399A
CN108509399A CN201710114123.1A CN201710114123A CN108509399A CN 108509399 A CN108509399 A CN 108509399A CN 201710114123 A CN201710114123 A CN 201710114123A CN 108509399 A CN108509399 A CN 108509399A
Authority
CN
China
Prior art keywords
source file
picture format
page
courseware
format source
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.)
Granted
Application number
CN201710114123.1A
Other languages
Chinese (zh)
Other versions
CN108509399B (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.)
Beijing Xintang Sichuang Educational Technology Co Ltd
Original Assignee
Beijing Xintang Sichuang Educational 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 Beijing Xintang Sichuang Educational Technology Co Ltd filed Critical Beijing Xintang Sichuang Educational Technology Co Ltd
Priority to CN201710114123.1A priority Critical patent/CN108509399B/en
Publication of CN108509399A publication Critical patent/CN108509399A/en
Application granted granted Critical
Publication of CN108509399B publication Critical patent/CN108509399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

The embodiment of the present invention provides a kind of production method and device of courseware, and method includes:Unprocessed form source file is converted into picture format source file, and a page in the unprocessed form source file forms a page of the picture format source file;Pixel in picture format source file each page is counted, and the corresponding page is handled according to the pixel of statistics;The each page of treated the picture format source file is loaded into a corresponding Courseware Template and forms corresponding courseware slice, a page of the picture format source file corresponds to a courseware slice.The embodiment of the present invention avoids to be needed handout content importeding into the operating procedure that Courseware Template is such as pasted, replicated etc. by hand in the prior art, improves the producing efficiency of courseware.

Description

The production method and device of courseware
Technical field
The present embodiments relate to online direct seeding technique field more particularly to the production methods and device of a kind of courseware.
Background technology
Online education or long-distance education, on-line study pass through network, Xue Yuanyu using network as the teaching method of medium Teacher carries out education activities being separated by ten thousand li;In addition, by based courseware, student can also learn whenever and wherever possible It practises, has really broken the limitation in time and space.Online education can break away from the limitations such as space-time, human and material resources as far as possible, can To realize maximum resource utilization.
In the prior art, education and training organization can be imparted knowledge to students soft by internet Distance Teaching Platform with video, voice etc. Part makes to link up between academics and students so that entire training process is with more interactivity;In addition, but also teacher, student It enjoys and stays indoors but like the feeling of face-to-face exchange;Education and training organization can also be allowed to save the more time with student simultaneously With the expenditure of manpower and materials, the professional knowledge more needed can be acquired in a short time by obtaining student, and training organization is allowed to recruit more More students.
In realizing process of the present invention, inventor has found that at least there are the following problems in the prior art:Online live streaming process Before, teacher all can according to it is actual give lessons demand make handout, it is sometimes desirable to by handout content imported into Courseware Template or with Existing courseware merges to form final courseware of giving lessons.But in the prior art, handout content, which is imported into Courseware Template, is entirely It is completed by the craft of teacher, specific process includes the operating procedures such as pasting, replicating, and thus results in final give lessons Courseware is less efficient.
Invention content
In view of this, one of the technical issues of embodiment of the present invention is solved be to provide a kind of courseware production method and Device, to overcome drawbacks described above in the prior art.
The embodiment of the present invention provides a kind of production method of courseware comprising:
Unprocessed form source file is converted into picture format source file, and a page in the unprocessed form source file Form a page of the picture format source file;
Pixel in picture format source file each page is counted, and according to the pixel of statistics to corresponding The page is handled;
The each page of treated the picture format source file is loaded into a corresponding Courseware Template and is formed pair One page of the courseware slice answered, the picture format source file corresponds to a courseware slice.
Optionally, in one embodiment of this invention, the unprocessed form source file is converted into picture format source file Including:The unprocessed form source file is converted into the source file of Portable Document format, then by the source of Portable Document format File is converted into picture format source file.
Optionally, in one embodiment of this invention, the unprocessed form source file is converted into picture format source file Including:The unprocessed form source file is converted into the source file of Portable Document format, then by the source of Portable Document format File is converted into the source file of vector format, and then the source file of vector format is converted into picture format source file.
Optionally, in one embodiment of this invention, the unprocessed form source file is converted into picture format source file Later, and each page of treated the picture format source file is loaded into be formed in a corresponding Courseware Template and is corresponded to Courseware slice before further include:
The specifications parameter for obtaining Courseware Template, zooms in and out processing with the page to the picture format source file and is contracted Picture format source file of putting that treated, to be formed pair the picture format source file to be loaded into corresponding Courseware Template When the courseware slice answered, each page of the picture format source file of scaling processing is loaded into corresponding Courseware Template and is formed Corresponding courseware slice.
Optionally, in one embodiment of this invention, the unprocessed form source file is converted into picture format source file Later, and by each page of the picture format source file it is loaded into corresponding Courseware Template before forming courseware slice also Including:
Picture element scan is carried out to the picture format source file that the unprocessed form source file is converted to, to picture format source The pixel that picture periphery white space is formed in file is removed to obtain the picture format source file without peripheral white space, With by the picture format source file be loaded into corresponding Courseware Template formed courseware slice when, will be without peripheral white space Picture format source file the page be loaded into corresponding Courseware Template formed courseware slice.
Optionally, in one embodiment of this invention, to forming picture periphery white space in picture format source file Pixel is removed to obtain the picture format source file without peripheral white space:
Global progressive scan is carried out to each page in picture source file, determines and forms content area in each page Pixel;
The quantity of pixel to forming content area in every a line in the same page counts, and determination forms content regions Domain and positioned at the pixel in a line maximum quantity;
According in the same page with the head office of the pixel in the maximum quantity of pixel described in a line and the same page Number, cuts the corresponding page of picture format source file to obtain the picture format source file without peripheral white space.
Optionally, in one embodiment of this invention, each page of treated the picture format source file is added It is downloaded in a corresponding Courseware Template when forming multiple coursewares slice, the every page of the picture format source file to treated It is reloaded after background progress transparent processing in face and forms corresponding courseware slice in a corresponding Courseware Template.
Optionally, in one embodiment of this invention, the page quantity of the unprocessed form source file is equal to the figure The page quantity of piece format source file generates corresponding picture one by one according to the page sequencing of the unprocessed form source file Format source file, so that the picture number pair of the page quantity of the unprocessed form source file and the picture format source file Deng;
The each page of treated the picture format source file is loaded into a corresponding Courseware Template and is formed pair The courseware answered is sliced:The picture format source file is loaded into the slice of the courseware in corresponding Courseware Template one by one.
Optionally, in one embodiment of this invention, each width picture format source file corresponds to a secondary Courseware Template, and one is secondary Picture format source file is distributed with a corresponding secondary Courseware Template in same storage catalogue, with by the picture format source file When being loaded into one by one in corresponding Courseware Template, picture format source file and corresponding courseware are obtained from same storage catalogue Template, to which picture format source file to be loaded into corresponding Courseware Template.
Optionally, in one embodiment of this invention, each page of picture format source file and corresponding Courseware Template It is bound one by one, the picture format source file each page after binding distributes same storage catalogue with corresponding Courseware Template In, with when the page of the picture format source file is loaded into one by one in corresponding Courseware Template, picture format source file The different coursewares slice of formation is stored in the different storage catalogue.
Optionally, in one embodiment of this invention, each page of treated the picture format source file is added It is downloaded in a corresponding Courseware Template to form corresponding courseware and be sliced and includes:
The store path that picture format source file is written in the code for generating the Courseware Template, according to the picture lattice The store path of formula source file obtains picture format source file, by each page of treated the picture format source file It is loaded into a corresponding Courseware Template and forms corresponding courseware slice.
Optionally, in one embodiment of this invention, further include:A sequential file is generated, the sequential file record is not With the picture sequencing of width picture format source file, the page that the picture sequencing corresponds to unprocessed form source file is first Sequence afterwards.
Optionally, in one embodiment of this invention, each picture format source file after binding and corresponding courseware mould Plate distributes in same storage catalogue, each picture format source file after binding is stored in corresponding Courseware Template same In file, in the different picture format source files storage catalogue different from the distribution of corresponding Courseware Template after binding, it will tie up Different picture format source files after fixed are stored in from corresponding Courseware Template in different files.
Optionally, in one embodiment of this invention, further include:Different courseware slices are stored in the different storage mesh The multiple files setting upper level storage catalogue formed when record, so that all coursewares of the corresponding unprocessed form source file Slice is stored in the identical file folder.
The embodiment of the present invention provides a kind of producing device of courseware comprising:
Resolution unit is parsed for the storage catalogue to input, to read text formatting from the storage catalogue Source file unprocessed form source file and its page quantity for including;
Converting unit, the source document for the source file unprocessed form source file of the text formatting to be converted into picture format Part, and a page in the unprocessed form source file forms a page of the picture format source file;
Statistic unit, for being counted to the pixel in picture format source file each page, and according to statistics Pixel handles the corresponding page;
Loading unit, for by treated by each page of the source file picture format source file of the picture format It is loaded into a corresponding Courseware Template and forms corresponding courseware slice, a page of the picture format source file corresponds to one A courseware slice.
By above technical scheme as it can be seen that in the embodiment of the present invention, unprocessed form source file is converted into picture format source document Part, and a page in the unprocessed form source file forms a page of the picture format source file;To picture lattice Pixel in formula source file each page is counted, and is handled the corresponding page according to the pixel of statistics;It will The each page of treated the picture format source file, which is loaded into, to be formed corresponding courseware in a corresponding Courseware Template and cuts One page of piece, the picture format source file corresponds to a courseware slice.The embodiment of the present invention avoids existing skill It needs handout content importeding into the operating procedure that Courseware Template is such as pasted, replicated etc. by hand in art, improves the system of courseware Make efficiency.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in inventive embodiments can also obtain according to these attached drawings for those of ordinary skill in the art Obtain other attached drawings.
Fig. 1 is the production method flow diagram of courseware in the embodiment of the present invention one;
Fig. 2 is the production method flow diagram of courseware in the embodiment of the present invention two;
Fig. 3 is the producing device structural schematic diagram of courseware in the embodiment of the present invention three;
Fig. 4 is the hardware architecture diagram for some electronic equipments that courseware making methods are executed in the embodiment of the present invention four.
Specific implementation mode
Certainly, implementing any technical solution of the embodiment of the present invention must be not necessarily required to reach simultaneously above all excellent Point.
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present invention, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality It is a part of the embodiment of the embodiment of the present invention to apply example only, instead of all the embodiments.Based on the implementation in the embodiment of the present invention Example, the every other embodiment that those of ordinary skill in the art are obtained should all belong to the range of protection of the embodiment of the present invention.
Embodiment specific implementation is further illustrated the present invention with reference to attached drawing of the embodiment of the present invention.
In the embodiment of the present invention, by the way that unprocessed form source file is converted into picture format source file, and the original lattice A page in formula source file forms a page of the picture format source file;To picture format source file each page On pixel counted, and the corresponding page is handled according to the pixel of statistics;It will treated the picture The each page of format source file, which is loaded into a corresponding Courseware Template, forms corresponding courseware slice, the picture format source One page of file corresponds to a courseware slice.The embodiment of the present invention, which avoids, to be needed in the prior art by handout content It imported into the operating procedure that Courseware Template is such as pasted, replicated etc. by hand, improves the producing efficiency of courseware.
Fig. 1 is the production method flow diagram of courseware in the embodiment of the present invention one;As shown in Figure 1, including:
S101, the storage catalogue of input is parsed, to obtain the corresponding unprocessed form source file of handout, and will be described Unprocessed form source file is converted into picture source file, and a page in the unprocessed form source file forms the picture lattice One page of formula source file;
In the present embodiment, storage catalogue can specifically refer to the store path defined on local hard drive, by the storage The corresponding description of catalogue carries out crucial word segmentation and determines corresponding drive, first grade file folder, second grade file folder ..., thus from Unprocessed form source file is read in the file of afterbody.Specifically, drive, first grade file folder, second grade file are being determined Folder is realized especially by data pointer, by data pointer be directed toward storage location address to access corresponding drive, First grade file folder, second grade file folder ....
In the present embodiment, the unprocessed form source file can be the handout of word formats, can also be txt formats or The handout of person's format, repeats no more in detail.
In the present embodiment, in step S101 in conversion, the specifications parameter such as display size that can obtain Courseware Template is big It is small processing is zoomed in and out to the picture format source file to obtain the picture format source file after scaling processing, with by the figure When piece format source file is loaded into formation courseware slice in corresponding Courseware Template, by the picture format source file of scaling processing Each page, which is loaded into corresponding Courseware Template, forms corresponding courseware slice.By being converted into picture format from unprocessed form Source file zooms in and out, not of uniform size on dimension of picture so as to avoid picture format source file, and then avoids subsequently adding It is inconsistent that courseware slice size is formed when load.
In the present embodiment, in scaling processing, it can be turned with from unprocessed form according to the display size size of Courseware Template The full size for changing picture format source file into determines scaling, and the quantity of pixel is reduced or increased according to scaling, To realize scaling.
It, can be by by institute when the unprocessed form source file is converted into picture format source file in the present embodiment The source file that unprocessed form source file is converted into Portable Document format is stated, then the source file of Portable Document format is converted into Picture format source file.In the present embodiment, the source file of the Portable Document format can be the source file of PDF format, by It is more aesthetically pleasing in the typesetting of PDF format, and the displaying of multimedia content can be realized by Javascript, it is particularly suitable for base In the Courseware Template that Html5 makes, the present embodiment, it is contemplated that picture format source file is subsequently changed into, it is therefore preferable that such as The source file of word versions is first converted into the source file of PDF format, then changes into picture format source file.In the present embodiment, Picture format can in detail be repeated no more with jpg, png etc..
It should be noted that in other embodiments, it, can also be by the source of word formats if being based on swf Making CAI softs File directly changes into picture format source file, repeats no more in detail.
In the present embodiment, the page quantity of the unprocessed form source file is equal to the page number of picture format source file Amount, generates corresponding picture format source file, so that institute one by one according to the page sequencing of the unprocessed form source file State the page quantity of unprocessed form source file and the picture number equity of the picture format source file.
S102, the pixel in picture format source file each page is counted, and according to the pixel pair of statistics The corresponding page is handled;
In the present embodiment, picture format source file that the unprocessed form source file is converted to carry out picture element scan with Execution counts the pixel in picture format source file each page, to forming picture periphery in picture format source file The pixel of white space is removed to obtain the picture format source file without peripheral white space to execute to the corresponding page It is handled.Pixel to forming picture periphery white space in picture format source file is removed to obtain without peripheral blank The picture format source file in region may particularly include:
Global progressive scan is carried out to each page in picture source file, determines and forms content area in each page Pixel;
The quantity of pixel to forming content area in every a line in the same page counts, and determination forms content regions Domain and positioned at the pixel in a line maximum quantity;
According in the same page with the head office of the pixel in the maximum quantity of pixel described in a line and the same page Number, cuts the corresponding page of picture format source file to obtain the picture format source file without peripheral white space.
S103, each page of treated the picture format source file is loaded into shape in a corresponding Courseware Template It is sliced at corresponding courseware, a page of the picture format source file corresponds to a courseware slice.
In the present embodiment, each page of treated the picture format source file is loaded into corresponding courseware mould When forming multiple coursewares slice in plate, the background in each page of treated the picture format source file is carried out transparent Reloaded after processing and form multiple coursewares slice in a corresponding Courseware Template, and by the picture format source file piece by One is loaded into the courseware slice in corresponding Courseware Template.
In the present embodiment, the store path of picture format source file, root are written in the code for generating the Courseware Template Picture format source file, the picture format source document that will be got are obtained according to the store path of the picture format source file Part, which is loaded into corresponding Courseware Template, forms courseware slice.
In the present embodiment, the store path of picture format source file, root are written in the code for generating the Courseware Template It, can be by the matched mode of canonical in life when obtaining picture format source file according to the store path of the picture format source file At the store path that picture format source file is written in the code of the Courseware Template, specifically, the matched process of canonical is:It is logical The regular expression for crossing setting is analyzed in code into line character one by one, determines the needs write-in figure reserved in Courseware Template The character string, is replaced with the store path of picture format source file by the character string of the store path of piece format source file.
The matched exemplary codes of canonical are as follows:
Fig. 2 is the production method flow diagram of courseware in the embodiment of the present invention two;As shown in Fig. 2, including:
S201, the storage catalogue of input is parsed, to read unprocessed form source file from the storage catalogue;
S202, the source file that the unprocessed form source file is converted into Portable Document format;
In the present embodiment, above-mentioned steps S201, S202 can be found in the record of above-described embodiment one in detail, no longer superfluous again It states.
It is unlike the embodiments above, in the present embodiment, it is contemplated that the handout of word forms may have multipage, therefore, In the source file for being converted into Portable Document format, converted according to the handout number of pages of word formats, i.e. one page word lattice The handout of formula corresponds to the source file of one page Portable Document format after conversion, not the source file of same page Portable Document format point With different titles, which can tell the sequence between not same page, for example the pagination number of same page is not used as title.
S203, the source file that the source file of Portable Document format is converted into vector format;
As previously mentioned, the source file of Portable Document format can be the source file of PDF format, and in the present embodiment, arrow Amount format source file be specially SWF formats source file, the source file support vector of swf formats, thus with scaling do not lose Very, therefore it can ensure that the picture format source file generated is undistorted.
S204, the source file of vector format is converted into picture format source file.
Further, the source file of vector format is being converted into picture format source file, according to the unprocessed form source When the page quantity of file generates the picture format source file of reciprocity picture number, according to the page of the unprocessed form source file Sequencing generates corresponding picture format source file one by one so that the page quantity of the unprocessed form source file with it is described The picture number equity of picture format source file.
Further, each width picture format source file corresponds to a secondary Courseware Template, a secondary picture format source file with it is right The secondary Courseware Template answered is distributed in same storage catalogue, the picture format source file is being loaded into corresponding class one by one When in part template, picture format source file and corresponding Courseware Template are obtained from same storage catalogue, thus by picture lattice Formula source file is loaded into corresponding Courseware Template.
Specifically, each secondary picture format source file is bound one by one with corresponding Courseware Template, after binding Each picture format source file each page is distributed with corresponding Courseware Template in same storage catalogue, the different pictures after binding In format source file storage catalogue different from the distribution of corresponding Courseware Template, to be loaded one by one by the picture format source file When in corresponding Courseware Template, the different coursewares slice that different width picture format source files are formed is stored in described different deposit It stores up in catalogue.
In the present embodiment, when due to above-mentioned load, in order to ensure that the broadcasting of follow-up courseware slice maintains unprocessed form source The sequence of file generates a sequential file, the sequential file record after completing all picture format source file conversions The picture sequencing of different width picture format source files, the picture sequencing correspond to the page of unprocessed form source file Sequencing.
Specifically that the source file of PDF format changed into picture format source file exemplary codes using JAVA is as follows:
S205, picture element scan is carried out to the picture format source file that the unprocessed form source file is converted to, to picture The pixel that picture periphery white space is formed in format source file is removed to obtain the picture format without peripheral white space Source file;
In the present embodiment, the pixel to forming picture periphery white space in picture format source file is removed to obtain Picture format source file can be progressively scanned when the picture format source file of no peripheral white space, determination forms picture Peripheral white space and the pixel of picture periphery white space is formed in not going together, and to being formed outside picture in not going together The quantity for enclosing the pixel of white space is counted, and is determined and is formed picture periphery white space and positioned at the pixel in a line The maximum quantity of point, to form picture periphery blank in the picture format source file that is converted to the unprocessed form source file The pixel in region is removed to obtain the picture format source file without peripheral white space.
In the present embodiment, each picture format source file is bound with corresponding Courseware Template, it is each after binding Picture format source file is distributed with corresponding Courseware Template in same storage catalogue, each picture format source document after binding Part is stored in corresponding Courseware Template in identical file folder, the different picture format source files after binding and corresponding courseware mould Plate distributes in different storage catalogues, and the different picture format source files after binding are stored in difference with corresponding Courseware Template File in.
In order to when follow-up courseware, which is sliced, to be played, can quickly load, in the present embodiment, it is stored in for different coursewares slice The multiple files setting upper level storage catalogue formed when the different storage catalogue, so that the corresponding unprocessed form All coursewares slice of source file is stored in the identical file folder.
S206, by the picture format source file without peripheral white space be loaded into corresponding Courseware Template formed courseware cut Piece.
The picture format source file is loaded into corresponding Courseware Template to form courseware and be sliced and includes:It will be without peripheral empty The picture format source file of white region, which is loaded into one by one in corresponding Courseware Template, forms number of sections and the picture number pair Deng courseware slice.
Fig. 3 is the producing device structural schematic diagram of courseware in the embodiment of the present invention three;As shown in Figure 3 comprising:
Resolution unit 301 is parsed for the storage catalogue to input, to read text lattice from the storage catalogue The source file unprocessed form source file of formula and its page quantity for including;
Converting unit 302, for the source file unprocessed form source file of the text formatting to be converted into picture format Source file, and a page in the unprocessed form source file forms a page of the picture format source file;
Statistic unit 303, for being counted to the pixel in picture format source file each page, and according to statistics Pixel the corresponding page is handled;
Loading unit 304, for by treated by each of the source file picture format source file of the picture format The page, which is loaded into a corresponding Courseware Template, forms corresponding courseware slice, a page pair of the picture format source file Answer a courseware slice.It should be noted that resolution unit 301, converting unit 302 in the present embodiment, statistic unit 303, the step of loading unit 304 can execute in above method embodiment specifically or further, repeats no more in detail.
Fig. 4 is the hardware architecture diagram for some electronic equipments that courseware making methods are executed in the embodiment of the present invention four. According to Fig.4, which includes:
One or more processors 410 and memory 420, in Fig. 4 by taking a processor 410 as an example.
Execute courseware making methods equipment can also include:Input unit 430 and output device 440.
Processor 410, memory 420, input unit 430 and output device 440 can pass through bus or other modes It connects, in Fig. 4 for being connected by bus.
Memory 420 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, such as the corresponding program of courseware making methods in the embodiment of the present application Instruction/module.Processor 410 is stored in non-volatile software program, instruction and module in memory 420 by operation, Courseware making methods in above method embodiment are realized in various function application to execute server and data processing.
Memory 420 may include storing program area and storage data field, wherein storing program area can store operation system System, the required application program of at least one function;Storage data field can be stored uses institute according to online living broadcast interactive system The data etc. of establishment.In addition, memory 420 may include high-speed random access memory 420, can also include non-volatile deposit Reservoir 420, for example, at least a magnetic disk storage 420, flush memory device or other non-volatile solid state memories 420. In some embodiments, it includes the memory 420 remotely located relative to processor 410 that memory 420 is optional, these are long-range to store Device 420 can pass through network connection to courseware producing device.The example of above-mentioned network includes but not limited to internet, enterprises Net, LAN, mobile radio communication and combinations thereof.
Input unit 430 can receive the number or character information of input, and generates and set with the user of courseware producing device It sets and the related key signals of function control inputs.Input unit 430 may include pressing the equipment such as module.
One or more of modules are stored in the memory 420, when by one or more of processors When 410 execution, the courseware making methods in above-mentioned any means embodiment are executed.
The said goods can perform the method that the embodiment of the present application is provided, and has the corresponding function module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind of equipment belongs to the scope of personal computer, there is calculating and processing work( Can, generally also have mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(4) portable entertainment device:This kind of equipment can show and play multimedia content.Such equipment includes:Audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server includes processor 410, hard disk, memory, system Bus etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic devices with data interaction function.
The apparatus embodiments described above are merely exemplary, wherein the module illustrated as separating component can It is physically separated with being or may not be, the component shown as module may or may not be physics mould Block, you can be located at a place, or may be distributed on multiple network modules.It can be selected according to the actual needs In some or all of module achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be expressed in the form of software products in other words, should Computer software product can store in a computer-readable storage medium, the computer readable recording medium storing program for performing include for Any mechanism of the readable form storage of computer (such as computer) or transmission information.For example, machine readable media includes only Read memory (ROM), random access memory (RAM), magnetic disk storage medium, optical storage media, flash medium, electricity, light, The transmitting signal (for example, carrier wave, infrared signal, digital signal etc.) etc. of sound or other forms, which includes Some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes respectively Method described in certain parts of a embodiment or embodiment.
Finally it should be noted that:Above example is only to illustrate the technical solution of the embodiment of the present application, rather than limits it System;Although the application is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its Still can be with technical scheme described in the above embodiments is modified, or which part technical characteristic is equal It replaces;And these modifications or replacements, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution Spirit and scope.
It will be understood by those skilled in the art that the embodiment of the embodiment of the present invention can be provided as method, apparatus (equipment) or Computer program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine soft The form of the embodiment of part and hardware aspect.Moreover, it wherein includes to calculate that the embodiment of the present invention, which can be used in one or more, The computer-usable storage medium of machine usable program code (includes but not limited to magnetic disk storage, CD-ROM, optical memory Deng) on the form of computer program product implemented.
The embodiment of the present invention with reference to according to the method for the embodiment of the present invention, device (equipment) and computer program product Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram The combination of flow and/or box in one flow and/or box and flowchart and/or the block diagram.These computers can be provided Processor of the program instruction to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices To generate a machine so that the instruction executed by computer or the processor of other programmable data processing devices generates use In the dress for realizing the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes It sets.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.

Claims (15)

1. a kind of production method of courseware, which is characterized in that including:
Unprocessed form source file is converted into picture format source file, and a page in the unprocessed form source file is formed One page of the picture format source file;
Pixel in picture format source file each page is counted, and according to the pixel of statistics to the corresponding page It is handled;
The each page of treated the picture format source file is loaded into a corresponding Courseware Template formed it is corresponding Courseware is sliced, and a page of the picture format source file corresponds to a courseware slice.
2. according to the method described in claim 1, it is characterized in that, the unprocessed form source file is converted into picture format source File includes:The unprocessed form source file is converted into the source file of Portable Document format, then by Portable Document format Source file be converted into picture format source file.
3. according to the method described in claim 2, it is characterized in that, the unprocessed form source file is converted into picture format source File includes:The unprocessed form source file is converted into the source file of Portable Document format, then by Portable Document format Source file be converted into the source file of vector format, and then the source file of vector format is converted into picture format source file.
4. according to the method described in claim 1, it is characterized in that, the unprocessed form source file is converted into picture format source After file, and each page of treated the picture format source file is loaded into a corresponding Courseware Template and is formed Further include before corresponding courseware slice:
The specifications parameter for obtaining Courseware Template, zooms in and out processing with the page to the picture format source file and obtains at scaling Picture format source file after reason, with the picture format source file is loaded into corresponding Courseware Template formed it is corresponding When courseware is sliced, each page of the picture format source file of scaling processing is loaded into corresponding Courseware Template and forms correspondence Courseware slice.
5. according to the method described in claim 4, it is characterized in that, the unprocessed form source file is converted into picture format source After file, and each page of the picture format source file is loaded into formation courseware in corresponding Courseware Template and is sliced it Before further include:
Picture element scan is carried out to the picture format source file that the unprocessed form source file is converted to, to picture format source file The middle pixel for forming picture periphery white space is removed to obtain the picture format source file without peripheral white space, with When the picture format source file is loaded into formation courseware slice in corresponding Courseware Template, by the figure without peripheral white space The page of piece format source file, which is loaded into corresponding Courseware Template, forms courseware slice.
6. according to the method described in claim 5, it is characterized in that, to forming picture periphery clear area in picture format source file The pixel in domain is removed to obtain the picture format source file without peripheral white space:
Global progressive scan is carried out to each page in picture source file, determines the pixel for forming content area in each page Point;
To being counted per the quantity for the pixel for forming content area in a line in the same page, determine formed content area and The maximum quantity of pixel in same a line;
According in the same page with total line number of the pixel in the maximum quantity of pixel described in a line and the same page, it is right The corresponding page of picture format source file is cut to obtain the picture format source file without peripheral white space.
7. according to the method described in claim 1, it is characterized in that, by the every page of treated the picture format source file Face is loaded into a corresponding Courseware Template when forming multiple coursewares slice, and to treated, the picture format source file is every It is reloaded after background progress transparent processing in one page and forms corresponding courseware slice in a corresponding Courseware Template.
8. according to the method described in claim 1, it is characterized in that, the page quantity of the unprocessed form source file is equal to institute The page quantity for stating picture format source file generates corresponding one by one according to the page sequencing of the unprocessed form source file Picture format source file, so that the picture number of the page quantity of the unprocessed form source file and the picture format source file Amount equity;
The each page of treated the picture format source file is loaded into a corresponding Courseware Template formed it is corresponding Courseware is sliced:The picture format source file is loaded into the slice of the courseware in corresponding Courseware Template one by one.
9. according to the method described in claim 8, it is characterized in that, each width picture format source file corresponds to a secondary courseware mould Plate, a secondary picture format source file in the corresponding one same storage catalogue of secondary Courseware Template distribution, with by the picture lattice When formula source file is loaded into one by one in corresponding Courseware Template, picture format source file and right is obtained from same storage catalogue The Courseware Template answered, to which picture format source file to be loaded into corresponding Courseware Template.
10. according to the method described in claim 9, it is characterized in that, each page of picture format source file and corresponding class Part template is bound one by one, and the picture format source file each page after binding distributes same storage with corresponding Courseware Template In catalogue, with when the page of the picture format source file is loaded into one by one in corresponding Courseware Template, picture format source The different coursewares slice that file is formed is stored in the different storage catalogue.
11. according to claim 1-10 any one of them methods, which is characterized in that will treated the picture format source document The each page of part is loaded into a corresponding Courseware Template to form corresponding courseware and be sliced:
The store path that picture format source file is written in the code for generating the Courseware Template, according to the picture format source The store path of file obtains picture format source file, and each page of treated the picture format source file is loaded It is sliced to corresponding courseware is formed in a corresponding Courseware Template.
12. according to the method for claim 11, which is characterized in that further include:Generate a sequential file, the sequential file The picture sequencing of different width picture format source files is recorded, the picture sequencing corresponds to unprocessed form source file Page sequencing.
13. according to the method for claim 12, which is characterized in that each picture format source file after binding with it is corresponding Courseware Template is distributed in same storage catalogue, and each picture format source file after binding is stored with corresponding Courseware Template In identical file folder, in the different picture format source files storage catalogue different from the distribution of corresponding Courseware Template after binding, The different picture format source files after binding to be stored in from corresponding Courseware Template in different files.
14. according to the method for claim 13, which is characterized in that further include:Different courseware slices are stored in the difference Storage catalogue when multiple files setting upper level storage catalogue for being formed so that the corresponding unprocessed form source file All courseware slices are stored in the identical file folder.
15. a kind of producing device of courseware, which is characterized in that including:
Resolution unit is parsed for the storage catalogue to input, to read the source of text formatting from the storage catalogue File origin source file and its page quantity for including;
Converting unit, the source file for the source file unprocessed form source file of the text formatting to be converted into picture format, And a page in the unprocessed form source file forms a page of the picture format source file;
Statistic unit, for being counted to the pixel in picture format source file each page, and according to the pixel of statistics Point handles the corresponding page;
Loading unit, for by treated by each page load of the source file picture format source file of the picture format To corresponding courseware slice is formed in a corresponding Courseware Template, a page of the picture format source file corresponds to an institute State courseware slice.
CN201710114123.1A 2017-02-28 2017-02-28 Courseware making method and device Active CN108509399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710114123.1A CN108509399B (en) 2017-02-28 2017-02-28 Courseware making method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710114123.1A CN108509399B (en) 2017-02-28 2017-02-28 Courseware making method and device

Publications (2)

Publication Number Publication Date
CN108509399A true CN108509399A (en) 2018-09-07
CN108509399B CN108509399B (en) 2022-01-25

Family

ID=63373658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710114123.1A Active CN108509399B (en) 2017-02-28 2017-02-28 Courseware making method and device

Country Status (1)

Country Link
CN (1) CN108509399B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018309A (en) * 2005-10-03 2007-08-15 索尼株式会社 Image controller
CN102339276A (en) * 2011-09-14 2012-02-01 北京龙戴特信息技术有限公司 Data processing method and device
CN102455890A (en) * 2010-10-20 2012-05-16 鸿富锦精密工业(深圳)有限公司 Filmstrip projection system and method
US20130224716A1 (en) * 2012-02-24 2013-08-29 Jerry Chih-Yuan SUN Cloud-based multimedia teaching system, development method and interaction method thereof
CN104217170A (en) * 2014-09-26 2014-12-17 广州金山移动科技有限公司 Document read-only method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018309A (en) * 2005-10-03 2007-08-15 索尼株式会社 Image controller
CN102455890A (en) * 2010-10-20 2012-05-16 鸿富锦精密工业(深圳)有限公司 Filmstrip projection system and method
CN102339276A (en) * 2011-09-14 2012-02-01 北京龙戴特信息技术有限公司 Data processing method and device
US20130224716A1 (en) * 2012-02-24 2013-08-29 Jerry Chih-Yuan SUN Cloud-based multimedia teaching system, development method and interaction method thereof
CN104217170A (en) * 2014-09-26 2014-12-17 广州金山移动科技有限公司 Document read-only method and device

Also Published As

Publication number Publication date
CN108509399B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN103956081A (en) Distance teaching method and device based on cloud platform
CN104298725B (en) The method that online courseware development system disposably edits input multi version output
CN103135990B (en) Interactive electronic textbook physical medium layered approach
CN105931161A (en) Teaching material resource management system and teaching material resource management method
CN108347448A (en) Online living broadcast interactive method and system
Phunsa Applying augmented reality technology to promote traditional Thai folk musical instruments on postcards
CN104462475A (en) Method and device for searching for courseware of teaching side of intelligent teaching system
CN205068848U (en) A multi -functional mobile information system for professional skill training
CN103177621A (en) Multimedia teaching technology for musical instrument teaching
CN105448145A (en) Implementation method, device and system of electronic teaching plans
CN106327924A (en) Intelligent classroom realization method and system
CN107016631A (en) The intelligent synthetic method of cross-platform courseware
CN108509399A (en) The production method and device of courseware
CN104504948A (en) Method and device for displaying pushed course for intelligent teaching system
CN104575125A (en) Double-audio-frequency rereading method and device
CN108572956A (en) The call method and device of knowledge point slice
CN103200239B (en) A kind of store method of the interactive electronic book based on hetero-com-munication
CN104484422A (en) Information processing method and device for intelligent tutoring system
CN108509443A (en) The update method of courseware slice, apparatus and system
CN108509456A (en) The processing method and processing device of courseware data
CN104253965A (en) Split-type video storage and transmission method and system based on track recording
CN104485026B (en) A kind of device and method of simultaneous display for wisdom tutoring system
CN201985883U (en) Virtual video publishing system
Ludwigsen Lessons learned from failures
Neilsen Use of interactive simulations in pre-class learning activities

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
GR01 Patent grant
GR01 Patent grant