public override void ProcessParagraphUnit(IParagraphUnit paragraphUnit) { if (paragraphUnit.IsStructure) { return; } foreach (ISegmentPair item in paragraphUnit.SegmentPairs) { if (SkipSegment(item)) { continue; } _dataExtractor.Process(item.Source); var sourceText = _dataExtractor.PlainText.ToString(); List <Token> sourceTokens = CloneList(_dataExtractor.Tokens); _dataExtractor.Process(item.Target); string targetText = _dataExtractor.PlainText.ToString(); List <Token> targetTokens = CloneList(_dataExtractor.Tokens); List <string> comments = _dataExtractor.Comments; _excelSuperWriter.WriteEntry(item.Properties.Id.Id, sourceText, targetText, comments, item.Properties); } }
public void ProcessParagraphUnit(IParagraphUnit paragraphUnit) { if (paragraphUnit.IsStructure) { return; } foreach (var item in paragraphUnit.SegmentPairs) { if (SkipSegment(item)) { continue; } var sourceText = ReadSegment(item.Source, out var sourceTokens); var targetText = ReadSegment(item.Target, out var targetTokens); var comments = _dataExtractor.Comments; _excelSuperWriter.WriteEntry(item.Properties.Id.Id, sourceText, targetText, comments, item.Properties); } }