Beispiel #1
0
        protected string PackageHtml5(PublicationInformation projInfo, InProcess inProcess, string path)
        {
            inProcess.SetStatus("Packaging for Html5");

            string fileNameV3     = CreateFileNameFromTitle(projInfo);
            var    resultFileName = Path.Combine(projInfo.DictionaryPath, fileNameV3 + ".zip");
            var    zf             = new ZipFolder();

            zf.CreateZip(path, resultFileName, 0);
#if (TIME_IT)
            TimeSpan tsTotal = DateTime.Now - dt1;
            Debug.WriteLine("Exportepub: time spent in .epub conversion: " + tsTotal);
#endif
            inProcess.PerformStep();
            return(resultFileName);
        }
Beispiel #2
0
        private void Compress(string sourceFolder, string ldmlFullName)
        {
            var mODT = new ZipFolder();

            mODT.CreateZip(sourceFolder, ldmlFullName, 0);
        }