Ejemplo n.º 1
0
        public void Process()
        {
            var pipelineText = _context.GetPipelineText <TextStructure>();

            var resultPipeline = pipelineText
                                 .ConvertText <CreateTextSegments, TextSegment>()
                                 .ConvertText <FilterTextSegments, TextSegment>()
                                 .ConvertText <AfterFilterTextSegments, TextSegment>();

            _context.SetPipelineText <TextSegment>(resultPipeline);
        }
Ejemplo n.º 2
0
        public void Process()
        {
            var pipelineText = _context.GetPipelineText <TextSegment>();

            var resultPipeline = pipelineText
                                 .ConvertText <CreateContent, TextSegment>();

            _context.SetPipelineText <TextSegment>(resultPipeline);
        }
Ejemplo n.º 3
0
        public void Process()
        {
            var pipelineText = _context.GetPipelineText <TextSegment>();

            var resultPipeline = pipelineText
                                 .ConvertText <CreateTreeSegments, TextSegment>(true)
                                 .ShowPdf <ShowTitleSegment>($"{_context.OutputFilePrefix}-titles.pdf")
                                 .Log <AnalyzeSegmentTitles>($"{_context.OutputFilePrefix}-analyze-segment-titles.txt")
                                 .Log <AnalyzeTreeStructure2>($"{_context.OutputFilePrefix}-tree.txt");

            _context.SetPipelineText <TextSegment>(resultPipeline);

            _context.AddOutput("tree", $"{_context.OutputFilePrefix}-tree.txt");
        }
Ejemplo n.º 4
0
        public void Process()
        {
            var pipelineText = _context.GetPipelineText <TextSegment>();

            var conteudo = pipelineText
                           .ConvertText <TransformConteudo2, Conteudo>()
                           .ToList();

            var createArticle = new TransformArtigo();
            var artigos       = createArticle.Create(conteudo);

            createArticle.CreateXML(artigos, $"{_context.OutputFolder}/{_context.Basename}/artigos", _context.Basename);

            _context.AddOutput("artigosGN", $"{_context.OutputFolder}/{_context.Basename}/artigos/{_context.Basename}-artigo{{0}}.xml");
        }