Commit ac76b5ee authored by jhargrave's avatar jhargrave

add icml filter integration tests

parent 12ed8e3d
......@@ -27,6 +27,12 @@
<artifactId>okapi-core</artifactId>
<version>${okapi.version}</version>
</dependency>
<dependency>
<groupId>net.sf.okapi.filters</groupId>
<artifactId>okapi-filter-icml</artifactId>
<version>${okapi.version}</version>
</dependency>
<dependency>
<groupId>net.sf.okapi.filters</groupId>
......
<?xml version="1.0"?>
<?aid style="50" type="snippet" readerVersion="6.0" featureSet="257" product="6.0(352)"?><?aid SnippetType="InCopyInterchange"?><Document DOMVersion="6.0" Self="xhtml2icml_document"><RootCharacterStyleGroup Self="xhtml2icml_character_styles"><CharacterStyle Self="CharacterStyle/link" Name="link"/><CharacterStyle Self="CharacterStyle/i" Name="i"/><CharacterStyle Self="CharacterStyle/b" Name="b"/></RootCharacterStyleGroup><RootParagraphStyleGroup Self="xhtml2icml_paragraph_styles"><ParagraphStyle Self="ParagraphStyle/h1" Name="h1"/><ParagraphStyle Self="ParagraphStyle/h2" Name="h2"/><ParagraphStyle Self="ParagraphStyle/h3" Name="h3"/><ParagraphStyle Self="ParagraphStyle/h4" Name="h4"/><ParagraphStyle Self="ParagraphStyle/h5" Name="h5"/><ParagraphStyle Self="ParagraphStyle/h6" Name="h6"/><ParagraphStyle Self="ParagraphStyle/p" Name="p"/><ParagraphStyle Self="ParagraphStyle/pFollowsP" Name="pFollowsP"/><ParagraphStyle Self="ParagraphStyle/ul" Name="ul"/><ParagraphStyle Self="ParagraphStyle/ol" Name="ol"/><ParagraphStyle Self="ParagraphStyle/table" Name="table"/><ParagraphStyle Self="ParagraphStyle/quote" Name="quote"/><ParagraphStyle Self="ParagraphStyle/footnote" Name="footnote"/></RootParagraphStyleGroup><Story Self="xhtml2icml_default_story" AppliedTOCStyle="n" TrackChanges="false" StoryTitle="MyStory" AppliedNamedGrid="n"><StoryPreference OpticalMarginAlignment="false" OpticalMarginSize="12" FrameType="TextFrameType" StoryOrientation="Horizontal" StoryDirection="LeftToRightDirection"/><InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false"/><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/h1"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Openoffice Footnote Test</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/p"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>This is a paragraph.</Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" Position="Superscript"><Footnote><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"><Content><?ACE 4?></Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> Here is footnote number 1.</Content></CharacterStyleRange></ParagraphStyleRange></Footnote></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/pFollowsP"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>This is a second paragraph.</Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" Position="Superscript"><Footnote><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"><Content><?ACE 4?></Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> Here is footnote number 2. It has a second pagragraph.</Content></CharacterStyleRange><CharacterStyleRange><Br/></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Here.</Content></CharacterStyleRange></ParagraphStyleRange></Footnote></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> This is. This is a second paragraph. This is a second paragraph. This is a second paragraph. This is a second paragraph. This is a second paragraph. This is a second paragraph. This is a second paragraph. This is a second paragraph.</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/pFollowsP"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> </Content></CharacterStyleRange><Br/></ParagraphStyleRange></Story><HyperlinkURLDestination Self="huds-1" Name="1" DestinationURL="#sdfootnote1sym" DestinationUniqueKey="1"/><HyperlinkURLDestination Self="huds-2" Name="2" DestinationURL="#sdfootnote2sym" DestinationUniqueKey="2"/><HyperlinkURLDestination Self="huds-3" Name="1" DestinationURL="#sdfootnote1anc" DestinationUniqueKey="3"/><HyperlinkURLDestination Self="huds-4" Name="2" DestinationURL="#sdfootnote2anc" DestinationUniqueKey="4"/><Hyperlink Self="hs-1" Name="1" Source="htss-1" Visible="true" DestinationUniqueKey="1"><Properties><BorderColor type="enumeration">Black</BorderColor><Destination type="object">huds-1</Destination></Properties></Hyperlink><Hyperlink Self="hs-2" Name="2" Source="htss-2" Visible="true" DestinationUniqueKey="2"><Properties><BorderColor type="enumeration">Black</BorderColor><Destination type="object">huds-2</Destination></Properties></Hyperlink><Hyperlink Self="hs-3" Name="1" Source="htss-3" Visible="true" DestinationUniqueKey="3"><Properties><BorderColor type="enumeration">Black</BorderColor><Destination type="object">huds-3</Destination></Properties></Hyperlink><Hyperlink Self="hs-4" Name="2" Source="htss-4" Visible="true" DestinationUniqueKey="4"><Properties><BorderColor type="enumeration">Black</BorderColor><Destination type="object">huds-4</Destination></Properties></Hyperlink></Document>
<?xml version="1.0"?>
<?aid style="50" type="snippet" readerVersion="6.0" featureSet="257" product="6.0(352)"?><?aid SnippetType="InCopyInterchange"?><Document DOMVersion="6.0" Self="xhtml2icml_document"><RootCharacterStyleGroup Self="xhtml2icml_character_styles"><CharacterStyle Self="CharacterStyle/link" Name="link"/><CharacterStyle Self="CharacterStyle/i" Name="i"/><CharacterStyle Self="CharacterStyle/b" Name="b"/></RootCharacterStyleGroup><RootParagraphStyleGroup Self="xhtml2icml_paragraph_styles"><ParagraphStyle Self="ParagraphStyle/h1" Name="h1"/><ParagraphStyle Self="ParagraphStyle/h2" Name="h2"/><ParagraphStyle Self="ParagraphStyle/h3" Name="h3"/><ParagraphStyle Self="ParagraphStyle/h4" Name="h4"/><ParagraphStyle Self="ParagraphStyle/h5" Name="h5"/><ParagraphStyle Self="ParagraphStyle/h6" Name="h6"/><ParagraphStyle Self="ParagraphStyle/p" Name="p"/><ParagraphStyle Self="ParagraphStyle/pFollowsP" Name="pFollowsP"/><ParagraphStyle Self="ParagraphStyle/ul" Name="ul"/><ParagraphStyle Self="ParagraphStyle/ol" Name="ol"/><ParagraphStyle Self="ParagraphStyle/table" Name="table"/><ParagraphStyle Self="ParagraphStyle/quote" Name="quote"/><ParagraphStyle Self="ParagraphStyle/footnote" Name="footnote"/><ParagraphStyle Self="ParagraphStyle/author" Name="author"/><ParagraphStyle Self="ParagraphStyle/excerpt" Name="excerpt"/><ParagraphStyle Self="ParagraphStyle/enigma" Name="enigma"/></RootParagraphStyleGroup><Story Self="xhtml2icml_default_story" AppliedTOCStyle="n" TrackChanges="false" StoryTitle="MyStory" AppliedNamedGrid="n"><StoryPreference OpticalMarginAlignment="false" OpticalMarginSize="12" FrameType="TextFrameType" StoryOrientation="Horizontal" StoryDirection="LeftToRightDirection"/><InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false"/><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/h1"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Paragraph Class Test</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/author"><CharacterStyleRange><Content>by </Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Author Name</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/p"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>This is a paragraph. It is followed by a quote.</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/quote"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/p"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>This is just a paragraph.</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/pFollowsP"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>This is a paragraph following a plain paragraph. It is followed by an excerpt.</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/excerpt"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/p"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>This is a final paragraph. It is followed by an enigma.</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/enigma"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>¡</Content></CharacterStyleRange><Br/></ParagraphStyleRange></Story></Document>
<?xml version="1.0"?>
<?aid style="50" type="snippet" readerVersion="6.0" featureSet="257" product="6.0(352)"?><?aid SnippetType="InCopyInterchange"?><Document DOMVersion="6.0" Self="xhtml2icml_document"><RootCharacterStyleGroup Self="xhtml2icml_character_styles"><CharacterStyle Self="CharacterStyle/link" Name="link"/><CharacterStyle Self="CharacterStyle/i" Name="i"/><CharacterStyle Self="CharacterStyle/b" Name="b"/><CharacterStyle Self="CharacterStyle/sc" Name="sc"/><CharacterStyle Self="CharacterStyle/italic_sc" Name="italic_sc"/></RootCharacterStyleGroup><RootParagraphStyleGroup Self="xhtml2icml_paragraph_styles"><ParagraphStyle Self="ParagraphStyle/h1" Name="h1"/><ParagraphStyle Self="ParagraphStyle/h2" Name="h2"/><ParagraphStyle Self="ParagraphStyle/h3" Name="h3"/><ParagraphStyle Self="ParagraphStyle/h4" Name="h4"/><ParagraphStyle Self="ParagraphStyle/h5" Name="h5"/><ParagraphStyle Self="ParagraphStyle/h6" Name="h6"/><ParagraphStyle Self="ParagraphStyle/p" Name="p"/><ParagraphStyle Self="ParagraphStyle/pFollowsP" Name="pFollowsP"/><ParagraphStyle Self="ParagraphStyle/ul" Name="ul"/><ParagraphStyle Self="ParagraphStyle/ol" Name="ol"/><ParagraphStyle Self="ParagraphStyle/table" Name="table"/><ParagraphStyle Self="ParagraphStyle/quote" Name="quote"/><ParagraphStyle Self="ParagraphStyle/footnote" Name="footnote"/></RootParagraphStyleGroup><Story Self="xhtml2icml_default_story" AppliedTOCStyle="n" TrackChanges="false" StoryTitle="MyStory" AppliedNamedGrid="n"><StoryPreference OpticalMarginAlignment="false" OpticalMarginSize="12" FrameType="TextFrameType" StoryOrientation="Horizontal" StoryDirection="LeftToRightDirection"/><InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false"/><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/h1"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Span Class Test</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/p"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>This is a paragraph. It has special markup indicated by a range of
inline elements, for example, </Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/i"><Content>em</Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>, </Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/b"><Content>strong</Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>, as
well as span elements with class attributes like </Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/sc"><Content>sc</Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> and </Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/italic_sc"><Content>italic_sc</Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>.</Content></CharacterStyleRange><Br/></ParagraphStyleRange></Story></Document>
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0"?>
<?aid style="50" type="snippet" readerVersion="6.0" featureSet="257" product="6.0(352)"?><?aid SnippetType="InCopyInterchange"?><Document DOMVersion="6.0" Self="xhtml2icml_document"><RootCharacterStyleGroup Self="xhtml2icml_character_styles"><CharacterStyle Self="CharacterStyle/link" Name="link"/><CharacterStyle Self="CharacterStyle/i" Name="i"/><CharacterStyle Self="CharacterStyle/b" Name="b"/></RootCharacterStyleGroup><RootParagraphStyleGroup Self="xhtml2icml_paragraph_styles"><ParagraphStyle Self="ParagraphStyle/h1" Name="h1"/><ParagraphStyle Self="ParagraphStyle/h2" Name="h2"/><ParagraphStyle Self="ParagraphStyle/h3" Name="h3"/><ParagraphStyle Self="ParagraphStyle/h4" Name="h4"/><ParagraphStyle Self="ParagraphStyle/h5" Name="h5"/><ParagraphStyle Self="ParagraphStyle/h6" Name="h6"/><ParagraphStyle Self="ParagraphStyle/p" Name="p"/><ParagraphStyle Self="ParagraphStyle/pFollowsP" Name="pFollowsP"/><ParagraphStyle Self="ParagraphStyle/ul" Name="ul"/><ParagraphStyle Self="ParagraphStyle/ol" Name="ol"/><ParagraphStyle Self="ParagraphStyle/table" Name="table"/><ParagraphStyle Self="ParagraphStyle/quote" Name="quote"/><ParagraphStyle Self="ParagraphStyle/footnote" Name="footnote"/></RootParagraphStyleGroup><Story Self="xhtml2icml_default_story" AppliedTOCStyle="n" TrackChanges="false" StoryTitle="MyStory" AppliedNamedGrid="n"><StoryPreference OpticalMarginAlignment="false" OpticalMarginSize="12" FrameType="TextFrameType" StoryOrientation="Horizontal" StoryDirection="LeftToRightDirection"/><InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false"/><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/h1"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Three Paragraph Footnote Test</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/p"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>This is a paragraph.</Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" Position="Superscript"><Footnote><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"><Content><?ACE 4?></Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> Here is footnote number 1.</Content></CharacterStyleRange><CharacterStyleRange><Br/></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Here is the first footnote's second paragraph.</Content></CharacterStyleRange></ParagraphStyleRange></Footnote></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/pFollowsP"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> </Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/pFollowsP"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> </Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/p"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Here is the first footnote's third paragraph (unhandled).</Content></CharacterStyleRange><Br/></ParagraphStyleRange></Story><HyperlinkURLDestination Self="huds-1" Name="[1]" DestinationURL="#_ftn1" DestinationUniqueKey="1"/><HyperlinkURLDestination Self="huds-2" Name="[1]" DestinationURL="#_ftnref1" DestinationUniqueKey="2"/><Hyperlink Self="hs-1" Name="[1]" Source="htss-1" Visible="true" DestinationUniqueKey="1"><Properties><BorderColor type="enumeration">Black</BorderColor><Destination type="object">huds-1</Destination></Properties></Hyperlink><Hyperlink Self="hs-2" Name="[1]" Source="htss-2" Visible="true" DestinationUniqueKey="2"><Properties><BorderColor type="enumeration">Black</BorderColor><Destination type="object">huds-2</Destination></Properties></Hyperlink></Document>
<?xml version="1.0"?>
<?aid style="50" type="snippet" readerVersion="6.0" featureSet="257" product="6.0(352)"?><?aid SnippetType="InCopyInterchange"?><Document DOMVersion="6.0" Self="xhtml2icml_document"><RootCharacterStyleGroup Self="xhtml2icml_character_styles"><CharacterStyle Self="CharacterStyle/link" Name="link"/><CharacterStyle Self="CharacterStyle/i" Name="i"/><CharacterStyle Self="CharacterStyle/b" Name="b"/></RootCharacterStyleGroup><RootParagraphStyleGroup Self="xhtml2icml_paragraph_styles"><ParagraphStyle Self="ParagraphStyle/h1" Name="h1"/><ParagraphStyle Self="ParagraphStyle/h2" Name="h2"/><ParagraphStyle Self="ParagraphStyle/h3" Name="h3"/><ParagraphStyle Self="ParagraphStyle/h4" Name="h4"/><ParagraphStyle Self="ParagraphStyle/h5" Name="h5"/><ParagraphStyle Self="ParagraphStyle/h6" Name="h6"/><ParagraphStyle Self="ParagraphStyle/p" Name="p"/><ParagraphStyle Self="ParagraphStyle/pFollowsP" Name="pFollowsP"/><ParagraphStyle Self="ParagraphStyle/ul" Name="ul"/><ParagraphStyle Self="ParagraphStyle/ol" Name="ol"/><ParagraphStyle Self="ParagraphStyle/table" Name="table"/><ParagraphStyle Self="ParagraphStyle/quote" Name="quote"/><ParagraphStyle Self="ParagraphStyle/footnote" Name="footnote"/></RootParagraphStyleGroup><Story Self="xhtml2icml_default_story" AppliedTOCStyle="n" TrackChanges="false" StoryTitle="MyStory" AppliedNamedGrid="n"><StoryPreference OpticalMarginAlignment="false" OpticalMarginSize="12" FrameType="TextFrameType" StoryOrientation="Horizontal" StoryDirection="LeftToRightDirection"/><InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false"/><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/h1"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Word Footnote Test</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/p"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>This is a paragraph.</Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" Position="Superscript"><Footnote><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"><Content><?ACE 4?></Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> Here is footnote number 1.</Content></CharacterStyleRange></ParagraphStyleRange></Footnote></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/pFollowsP"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>This is a second paragraph.</Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" Position="Superscript"><Footnote><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"><Content><?ACE 4?></Content></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> Here is footnote number 2. It has a second pagragraph.</Content></CharacterStyleRange><CharacterStyleRange><Br/></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content>Here.</Content></CharacterStyleRange></ParagraphStyleRange></Footnote></CharacterStyleRange><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> This is. This is a second paragraph. This is a second paragraph. This is a second paragraph. This is a second paragraph. This is a second paragraph. This is a second paragraph. This is a second paragraph. This is a second paragraph.</Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/pFollowsP"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> </Content></CharacterStyleRange><Br/></ParagraphStyleRange><ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/pFollowsP"><CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"><Content> </Content></CharacterStyleRange><Br/></ParagraphStyleRange></Story><HyperlinkURLDestination Self="huds-1" Name="[1]" DestinationURL="#_ftn1" DestinationUniqueKey="1"/><HyperlinkURLDestination Self="huds-2" Name="[2]" DestinationURL="#_ftn2" DestinationUniqueKey="2"/><HyperlinkURLDestination Self="huds-3" Name="[1]" DestinationURL="#_ftnref1" DestinationUniqueKey="3"/><HyperlinkURLDestination Self="huds-4" Name="[2]" DestinationURL="#_ftnref2" DestinationUniqueKey="4"/><Hyperlink Self="hs-1" Name="[1]" Source="htss-1" Visible="true" DestinationUniqueKey="1"><Properties><BorderColor type="enumeration">Black</BorderColor><Destination type="object">huds-1</Destination></Properties></Hyperlink><Hyperlink Self="hs-2" Name="[2]" Source="htss-2" Visible="true" DestinationUniqueKey="2"><Properties><BorderColor type="enumeration">Black</BorderColor><Destination type="object">huds-2</Destination></Properties></Hyperlink><Hyperlink Self="hs-3" Name="[1]" Source="htss-3" Visible="true" DestinationUniqueKey="3"><Properties><BorderColor type="enumeration">Black</BorderColor><Destination type="object">huds-3</Destination></Properties></Hyperlink><Hyperlink Self="hs-4" Name="[2]" Source="htss-4" Visible="true" DestinationUniqueKey="4"><Properties><BorderColor type="enumeration">Black</BorderColor><Destination type="object">huds-4</Destination></Properties></Hyperlink></Document>
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<ea:Stories ea:WWVersion="2.0" xmlns:aic="http://ns.adobe.com/AdobeInCopy/2.0"
xmlns:ea="urn:SmartConnection_v3">
<ea:Story ea:GUID="12345678-1234-1234-1234-123456789012"
pi0="style=&quot;50&quot; type=&quot;snippet&quot; readerVersion=&quot;6.0&quot; featureSet=&quot;257&quot; product=&quot;7.5(142)&quot; "
pi1="SnippetType=&quot;InCopyInterchange&quot;">
<ea:StoryInfo>
<ea:SI_EL>credit</ea:SI_EL>
<ea:SI_Version>87654321-4321-4321-4321-210987654321</ea:SI_Version>
</ea:StoryInfo>
<Document DOMVersion="7.5" Self="d">
<RootCharacterStyleGroup Self="rcsg 1">
<CharacterStyle Self="CharacterStyle/$ID/[No character style]"
Name="$ID/[No character style]"/>
</RootCharacterStyleGroup>
<RootParagraphStyleGroup Self="rpsg 1">
<ParagraphStyle Self="ParagraphStyle/$ID/NormalParagraphStyle"
Name="$ID/NormalParagraphStyle">
<Properties>
<BasedOn type="string">$ID/[No paragraph style]</BasedOn>
</Properties>
</ParagraphStyle>
</RootParagraphStyleGroup>
<Story Self="story 1" Guid="12345678-1234-1234-1234-123456789012"
VersionGuid="87654321-4321-4321-4321-210987654321">
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle">
<CharacterStyleRange
AppliedCharacterStyle="CharacterStyle/$ID/[No character style]">
<Content>Some text.</Content>
</CharacterStyleRange>
</ParagraphStyleRange>
</Story>
</Document>
</ea:Story>
<ea:wwsd_document/>
</ea:Stories>
This diff is collapsed.
package net.sf.okapi.roundtrip.integration;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.FileNotFoundException;
import java.net.URISyntaxException;
import java.util.Arrays;
import net.sf.okapi.common.LocaleId;
import net.sf.okapi.common.Util;
import net.sf.okapi.common.XMLFileCompare;
import net.sf.okapi.common.integration.IntegrationtestUtils;
import net.sf.okapi.common.integration.RoundTripUtils;
import net.sf.okapi.filters.icml.ICMLFilter;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ErrorCollector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class RoundTripIcmlIT
{
private final Logger LOGGER = LoggerFactory.getLogger(getClass());
private ICMLFilter icmlFilter;
@Rule
public ErrorCollector errCol = new ErrorCollector();
@Before
public void setUp() throws Exception {
icmlFilter = new ICMLFilter();
}
@After
public void tearDown() throws Exception {
icmlFilter.close();
}
@Test
public void icmlFiles() throws FileNotFoundException, URISyntaxException {
// run top level files (without config)
for (File file : IntegrationtestUtils.getTestFiles("/icml/valid.icml", Arrays.asList(".icml", ".wcml"))) {
runTest(false, file, "okf_icml", null);
runTest(true, file, "okf_icml", null);
}
// run each subdirectory where we assume there is a custom config)
for(File d : IntegrationtestUtils.getSubDirs((new File(IntegrationtestUtils.class.getResource("/icml/valid.icml").toURI())).getParent()))
{
for(File c : IntegrationtestUtils.getConfigFile(d.getPath()))
{
for(File file : IntegrationtestUtils.getTestFiles(d.getPath(), Arrays.asList(".icml", ".wcml"), true))
{
String configName = Util.getFilename(c.getAbsolutePath(), false);
String customConfigPath = c.getParent();
runTest(false, file, configName, customConfigPath);
runTest(true, file, configName, customConfigPath);
}
}
}
}
private void runTest(boolean segment, File file, String configName, String customConfigPath)
throws FileNotFoundException, URISyntaxException {
String f = file.getName();
LOGGER.info(f);
String root = file.getParent() + File.separator;
String xliff = root + f + ".xliff";
String original = root + f;
String tkitMerged = root + f + ".tkitMerged";
String mergedRoundTrip = root + f + ".mergedRoundTrip";
RoundTripUtils.extract(LocaleId.ENGLISH, LocaleId.FRENCH, original, xliff, configName, customConfigPath, segment);
RoundTripUtils.merge(LocaleId.ENGLISH, LocaleId.FRENCH, false, original, xliff, tkitMerged, configName, customConfigPath);
RoundTripUtils.extract(LocaleId.ENGLISH, LocaleId.FRENCH, tkitMerged, xliff, configName, customConfigPath, segment);
RoundTripUtils.merge(LocaleId.ENGLISH, LocaleId.FRENCH, false, tkitMerged, xliff, mergedRoundTrip, configName, customConfigPath);
XMLFileCompare compare = new XMLFileCompare();
try {
assertTrue("Compare Lines: " + f, compare.compareFilesPerLines(mergedRoundTrip, tkitMerged));
} catch(Throwable e) {
errCol.addError(e);
}
}
}
package net.sf.okapi.tkit.integration;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.FileNotFoundException;
import java.net.URISyntaxException;
import java.util.Arrays;
import net.sf.okapi.common.LocaleId;
import net.sf.okapi.common.Util;
import net.sf.okapi.common.XMLFileCompare;
import net.sf.okapi.common.integration.IntegrationtestUtils;
import net.sf.okapi.common.integration.RoundTripUtils;
import net.sf.okapi.filters.icml.ICMLFilter;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ErrorCollector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class RoundTripIcmlTkitsIT
{
private final Logger LOGGER = LoggerFactory.getLogger(getClass());
private ICMLFilter icmlFilter;
@Rule
public ErrorCollector errCol = new ErrorCollector();
@Before
public void setUp() throws Exception {
icmlFilter = new ICMLFilter();
}
@After
public void tearDown() throws Exception {
icmlFilter.close();
}
@Test
public void icmlTkitTestFiles() throws FileNotFoundException, URISyntaxException {
// run top level files (without config)
for (File file : IntegrationtestUtils.getTestFiles("/icml/valid.icml", Arrays.asList(".icml", ".wcml"))) {
runTest(false, file, "okf_icml", null);
runTest(true, file, "okf_icml", null);
}
// run each subdirectory where we assume there is a custom config)
for(File d : IntegrationtestUtils.getSubDirs((new File(IntegrationtestUtils.class.getResource("/icml/valid.icml").toURI())).getParent()))
{
for(File c : IntegrationtestUtils.getConfigFile(d.getPath()))
{
for(File file : IntegrationtestUtils.getTestFiles(d.getPath(), Arrays.asList(".icml", ".wcml"), true))
{
String configName = Util.getFilename(c.getAbsolutePath(), false);
String customConfigPath = c.getParent();
runTest(false, file, configName, customConfigPath);
runTest(true, file, configName, customConfigPath);
}
}
}
}
private void runTest(boolean segment, File file, String configName, String customConfigPath)
throws FileNotFoundException, URISyntaxException {
String f = file.getName();
LOGGER.info(f);
String root = file.getParent() + File.separator;
String xliff = root + f + ".xliff";
String original = root + f;
String tkitMerged = root + f + ".tkitMerged";
String merged = root + f + ".merged";
RoundTripUtils.extract(LocaleId.ENGLISH, LocaleId.FRENCH, original, xliff, configName, customConfigPath, segment);
RoundTripUtils.merge(LocaleId.ENGLISH, LocaleId.FRENCH, false, original, xliff, tkitMerged, configName, customConfigPath);
RoundTripUtils.merge(LocaleId.ENGLISH, LocaleId.FRENCH, true, original, xliff, merged, configName, customConfigPath);
XMLFileCompare compare = new XMLFileCompare();
try {
assertTrue("Compare Lines: " + f, compare.compareFilesPerLines(tkitMerged, merged));
} catch(Throwable e) {
errCol.addError(e);
}
}
}
package net.sf.okapi.xliffcompare.integration;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.FileNotFoundException;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.List;
import net.sf.okapi.common.Event;
import net.sf.okapi.common.LocaleId;
import net.sf.okapi.common.Util;
import net.sf.okapi.common.filters.FilterTestDriver;
import net.sf.okapi.common.integration.IntegrationtestUtils;
import net.sf.okapi.common.integration.RoundTripUtils;
import net.sf.okapi.common.resource.RawDocument;
import net.sf.okapi.filters.icml.ICMLFilter;
import net.sf.okapi.filters.xliff.XLIFFFilter;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ErrorCollector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class IcmlXliffCompareIT
{
private final Logger LOGGER = LoggerFactory.getLogger(getClass());
private ICMLFilter icmlFilter;
@Rule
public ErrorCollector errCol = new ErrorCollector();
@Before
public void setUp() throws Exception {
icmlFilter = new ICMLFilter();
}
@After
public void tearDown() throws Exception {
icmlFilter.close();
}
@Test
public void icmlXliffCompareFiles() throws FileNotFoundException, URISyntaxException {
// run top level files (without config)
for (File file : IntegrationtestUtils.getTestFilesNoRecurse("/icml/valid.icml", Arrays.asList(".icml", ".wcml"))) {
runTest(true, file, "okf_icml", null, null);
}
// run each subdirectory where we assume there is a custom config)
for(File d : IntegrationtestUtils.getSubDirs((new File(IntegrationtestUtils.class.getResource("/icml/valid.icml").toURI())).getParent()))
{
for(File c : IntegrationtestUtils.getConfigFile(d.getPath()))
{
for(File file : IntegrationtestUtils.getTestFiles(d.getPath(), Arrays.asList(".icml", ".wcml"), true))
{
String configName = Util.getFilename(c.getAbsolutePath(), false);
String customConfigPath = c.getParent();
runTest(true, file, configName, customConfigPath, d);
}
}
}
}
private void runTest(boolean segment, File file, String configName, String customConfigPath, File subDir)
throws FileNotFoundException, URISyntaxException {
String f = file.getName();
LOGGER.info(f);
String root = file.getParent() + File.separator;
String xliff = root + f + ".xliff";
String original = root + f;
String sd = ((subDir == null) ? "" : subDir.getName() + "/");
String xliffPrevious = XliffCompareUtils.CURRENT_XLIFF_ROOT + "icml/" + sd + f + ".xliff";
RoundTripUtils.extract(LocaleId.ENGLISH, LocaleId.FRENCH, original, xliff, configName, customConfigPath, segment);
XLIFFFilter xf = new XLIFFFilter();
RawDocument ox = new RawDocument(Util.toURI(xliff), StandardCharsets.UTF_8.name(), LocaleId.ENGLISH, LocaleId.FRENCH);
List<Event> oe = IntegrationtestUtils.getTextUnitEvents(xf, ox);
RawDocument px = new RawDocument(Util.toURI(xliffPrevious), StandardCharsets.UTF_8.name(), LocaleId.ENGLISH, LocaleId.FRENCH);
List<Event> pe = IntegrationtestUtils.getTextUnitEvents(xf, px);
try {
assertTrue("Compare Events: " + f, FilterTestDriver.compareEvents(oe, pe));
} catch(Throwable e) {
errCol.addError(e);
} finally {
ox.close();
px.close();
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:okp="okapi-framework:xliff-extensions" xmlns:its="http://www.w3.org/2005/11/its" xmlns:itsxlf="http://www.w3.org/ns/its-xliff/" its:version="2.0">
<file original="ParagraphClassTest.icml" source-language="en" target-language="fr" datatype="x-application/x-icml+xml" okp:inputEncoding="UTF-8">
<header><tool tool-id="okapi" tool-name="okapi-tests" tool-version="M28" tool-company="okapi"></tool></header>
<body>
<group id="spr1" resname="Stories" restype="x-spread">
<group id="sto1" resname="xhtml2icml_default_story" restype="x-story">
<trans-unit id="xhtml2icml_default_story-1">
<source xml:lang="en">Paragraph Class Test</source>
<seg-source><mrk mid="0" mtype="seg">Paragraph Class Test</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">Paragraph Class Test</mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-2">
<source xml:lang="en"><bpt id="1" ctype="x-CharacterStyleRange">&lt;CharacterStyleRange&gt;&lt;Content&gt;</bpt>by <ept id="1">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="2" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>Author Name<ept id="2">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;Br/&gt;</ept></source>
<seg-source><mrk mid="0" mtype="seg"><bpt id="1" ctype="x-CharacterStyleRange">&lt;CharacterStyleRange&gt;&lt;Content&gt;</bpt>by <ept id="1">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="2" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>Author Name<ept id="2">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;Br/&gt;</ept></mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg"><bpt id="1" ctype="x-CharacterStyleRange">&lt;CharacterStyleRange&gt;&lt;Content&gt;</bpt>by <ept id="1">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="2" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>Author Name<ept id="2">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;Br/&gt;</ept></mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-3">
<source xml:lang="en">This is a paragraph. It is followed by a quote.</source>
<seg-source><mrk mid="0" mtype="seg">This is a paragraph.</mrk><mrk mid="1" mtype="seg"> It is followed by a quote.</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">This is a paragraph.</mrk><mrk mid="1" mtype="seg"> It is followed by a quote.</mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-4">
<source xml:lang="en">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </source>
<seg-source><mrk mid="0" mtype="seg">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</mrk> </seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</mrk> </target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-5">
<source xml:lang="en">This is just a paragraph.</source>
<seg-source><mrk mid="0" mtype="seg">This is just a paragraph.</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">This is just a paragraph.</mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-6">
<source xml:lang="en">This is a paragraph following a plain paragraph. It is followed by an excerpt.</source>
<seg-source><mrk mid="0" mtype="seg">This is a paragraph following a plain paragraph.</mrk><mrk mid="1" mtype="seg"> It is followed by an excerpt.</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">This is a paragraph following a plain paragraph.</mrk><mrk mid="1" mtype="seg"> It is followed by an excerpt.</mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-7">
<source xml:lang="en">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</source>
<seg-source><mrk mid="0" mtype="seg">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</mrk><mrk mid="1" mtype="seg"> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</mrk><mrk mid="2" mtype="seg"> Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</mrk><mrk mid="1" mtype="seg"> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</mrk><mrk mid="2" mtype="seg"> Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-8">
<source xml:lang="en">This is a final paragraph. It is followed by an enigma.</source>
<seg-source><mrk mid="0" mtype="seg">This is a final paragraph.</mrk><mrk mid="1" mtype="seg"> It is followed by an enigma.</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">This is a final paragraph.</mrk><mrk mid="1" mtype="seg"> It is followed by an enigma.</mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-9">
<source xml:lang="en">¡</source>
<seg-source><mrk mid="0" mtype="seg">¡</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">¡</mrk></target>
</trans-unit>
</group>
</group>
</body>
</file>
</xliff>
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:okp="okapi-framework:xliff-extensions" xmlns:its="http://www.w3.org/2005/11/its" xmlns:itsxlf="http://www.w3.org/ns/its-xliff/" its:version="2.0">
<file original="SpanClassTest.icml" source-language="en" target-language="fr" datatype="x-application/x-icml+xml" okp:inputEncoding="UTF-8">
<header><tool tool-id="okapi" tool-name="okapi-tests" tool-version="M28" tool-company="okapi"></tool></header>
<body>
<group id="spr1" resname="Stories" restype="x-spread">
<group id="sto1" resname="xhtml2icml_default_story" restype="x-story">
<trans-unit id="xhtml2icml_default_story-1">
<source xml:lang="en">Span Class Test</source>
<seg-source><mrk mid="0" mtype="seg">Span Class Test</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">Span Class Test</mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-2">
<source xml:lang="en"><it id="1" ctype="x-cs_NOCHARACTERSTYLE" pos="open">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</it>This is a paragraph. It has special markup indicated by a range of
inline elements, for example, <it id="1" ctype="x-cs_NOCHARACTERSTYLE" pos="close">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</it><bpt id="2" ctype="x-CharacterStyleRange">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/i"&gt;&lt;Content&gt;</bpt>em<ept id="2">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="3" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>, <ept id="3">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="4" ctype="x-CharacterStyleRange">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/b"&gt;&lt;Content&gt;</bpt>strong<ept id="4">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><it id="5" ctype="x-cs_NOCHARACTERSTYLE" pos="open">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</it>, as
well as span elements with class attributes like <it id="5" ctype="x-cs_NOCHARACTERSTYLE" pos="close">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</it><bpt id="6" ctype="x-cs_SC">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/sc"&gt;&lt;Content&gt;</bpt>sc<ept id="6">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="7" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt> and <ept id="7">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="8" ctype="x-cs_ITALIC_SC">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/italic_sc"&gt;&lt;Content&gt;</bpt>italic_sc<ept id="8">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="9" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>.<ept id="9">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;Br/&gt;</ept></source>
<seg-source><mrk mid="0" mtype="seg"><it id="1" ctype="x-cs_NOCHARACTERSTYLE" pos="open">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</it>This is a paragraph.</mrk><mrk mid="1" mtype="seg"> It has special markup indicated by a range of</mrk>
<mrk mid="2" mtype="seg"> inline elements, for example, <it id="1" ctype="x-cs_NOCHARACTERSTYLE" pos="close">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</it><bpt id="2" ctype="x-CharacterStyleRange">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/i"&gt;&lt;Content&gt;</bpt>em<ept id="2">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="3" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>, <ept id="3">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="4" ctype="x-CharacterStyleRange">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/b"&gt;&lt;Content&gt;</bpt>strong<ept id="4">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><it id="5" ctype="x-cs_NOCHARACTERSTYLE" pos="open">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</it>, as</mrk>
<mrk mid="3" mtype="seg"> well as span elements with class attributes like <it id="5" ctype="x-cs_NOCHARACTERSTYLE" pos="close">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</it><bpt id="6" ctype="x-cs_SC">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/sc"&gt;&lt;Content&gt;</bpt>sc<ept id="6">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="7" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt> and <ept id="7">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="8" ctype="x-cs_ITALIC_SC">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/italic_sc"&gt;&lt;Content&gt;</bpt>italic_sc<ept id="8">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="9" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>.<ept id="9">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;Br/&gt;</ept></mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg"><it id="1" ctype="x-cs_NOCHARACTERSTYLE" pos="open">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</it>This is a paragraph.</mrk><mrk mid="1" mtype="seg"> It has special markup indicated by a range of</mrk>
<mrk mid="2" mtype="seg"> inline elements, for example, <it id="1" ctype="x-cs_NOCHARACTERSTYLE" pos="close">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</it><bpt id="2" ctype="x-CharacterStyleRange">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/i"&gt;&lt;Content&gt;</bpt>em<ept id="2">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="3" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>, <ept id="3">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="4" ctype="x-CharacterStyleRange">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/b"&gt;&lt;Content&gt;</bpt>strong<ept id="4">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><it id="5" ctype="x-cs_NOCHARACTERSTYLE" pos="open">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</it>, as</mrk>
<mrk mid="3" mtype="seg"> well as span elements with class attributes like <it id="5" ctype="x-cs_NOCHARACTERSTYLE" pos="close">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</it><bpt id="6" ctype="x-cs_SC">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/sc"&gt;&lt;Content&gt;</bpt>sc<ept id="6">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="7" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt> and <ept id="7">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="8" ctype="x-cs_ITALIC_SC">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/italic_sc"&gt;&lt;Content&gt;</bpt>italic_sc<ept id="8">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="9" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>.<ept id="9">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;Br/&gt;</ept></mrk></target>
</trans-unit>
</group>
</group>
</body>
</file>
</xliff>
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:okp="okapi-framework:xliff-extensions" xmlns:its="http://www.w3.org/2005/11/its" xmlns:itsxlf="http://www.w3.org/ns/its-xliff/" its:version="2.0">
<file original="ThreeParagraphFootnoteTest.icml" source-language="en" target-language="fr" datatype="x-application/x-icml+xml" okp:inputEncoding="UTF-8">
<header><tool tool-id="okapi" tool-name="okapi-tests" tool-version="M28" tool-company="okapi"></tool></header>
<body>
<group id="spr1" resname="Stories" restype="x-spread">
<group id="sto1" resname="xhtml2icml_default_story" restype="x-story">
<trans-unit id="xhtml2icml_default_story-1">
<source xml:lang="en">Three Paragraph Footnote Test</source>
<seg-source><mrk mid="0" mtype="seg">Three Paragraph Footnote Test</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">Three Paragraph Footnote Test</mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-2">
<source xml:lang="en">This is a paragraph.</source>
<seg-source><mrk mid="0" mtype="seg">This is a paragraph.</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">This is a paragraph.</mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-3">
<source xml:lang="en"><bpt id="1" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"&gt;&lt;Content&gt;&lt;?ACE 4?&gt;&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt> Here is footnote number 1.<ept id="1">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;CharacterStyleRange&gt;&lt;Br/&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="2" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>Here is the first footnote's second paragraph.<ept id="2">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;/ParagraphStyleRange&gt;&lt;/Footnote&gt;&lt;/CharacterStyleRange&gt;</ept><it id="3" ctype="x-cs_NOCHARACTERSTYLE" pos="open">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</it> This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.<it id="3" ctype="x-cs_NOCHARACTERSTYLE" pos="close">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;Br/&gt;</it></source>
<seg-source><mrk mid="0" mtype="seg"><bpt id="1" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"&gt;&lt;Content&gt;&lt;?ACE 4?&gt;&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt> Here is footnote number 1.<ept id="1">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;CharacterStyleRange&gt;&lt;Br/&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="2" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>Here is the first footnote's second paragraph.<ept id="2">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;/ParagraphStyleRange&gt;&lt;/Footnote&gt;&lt;/CharacterStyleRange&gt;</ept></mrk><mrk mid="1" mtype="seg"><it id="3" ctype="x-cs_NOCHARACTERSTYLE" pos="open">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</it> This is a paragraph.</mrk><mrk mid="2" mtype="seg"> This is a paragraph.</mrk><mrk mid="3" mtype="seg"> This is a paragraph.</mrk><mrk mid="4" mtype="seg"> This is a paragraph.</mrk><mrk mid="5" mtype="seg"> This is a paragraph.</mrk><mrk mid="6" mtype="seg"> This is a paragraph.</mrk><mrk mid="7" mtype="seg"> This is a paragraph.</mrk><mrk mid="8" mtype="seg"> This is a paragraph.</mrk><mrk mid="9" mtype="seg"> This is a paragraph.</mrk><mrk mid="10" mtype="seg"> This is a paragraph.<it id="3" ctype="x-cs_NOCHARACTERSTYLE" pos="close">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;Br/&gt;</it></mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg"><bpt id="1" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"&gt;&lt;Content&gt;&lt;?ACE 4?&gt;&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt> Here is footnote number 1.<ept id="1">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;CharacterStyleRange&gt;&lt;Br/&gt;&lt;/CharacterStyleRange&gt;</ept><bpt id="2" ctype="x-cs_NOCHARACTERSTYLE">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</bpt>Here is the first footnote's second paragraph.<ept id="2">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;/ParagraphStyleRange&gt;&lt;/Footnote&gt;&lt;/CharacterStyleRange&gt;</ept></mrk><mrk mid="1" mtype="seg"><it id="3" ctype="x-cs_NOCHARACTERSTYLE" pos="open">&lt;CharacterStyleRange AppliedCharacterStyle="CharacterStyle/[No character style]"&gt;&lt;Content&gt;</it> This is a paragraph.</mrk><mrk mid="2" mtype="seg"> This is a paragraph.</mrk><mrk mid="3" mtype="seg"> This is a paragraph.</mrk><mrk mid="4" mtype="seg"> This is a paragraph.</mrk><mrk mid="5" mtype="seg"> This is a paragraph.</mrk><mrk mid="6" mtype="seg"> This is a paragraph.</mrk><mrk mid="7" mtype="seg"> This is a paragraph.</mrk><mrk mid="8" mtype="seg"> This is a paragraph.</mrk><mrk mid="9" mtype="seg"> This is a paragraph.</mrk><mrk mid="10" mtype="seg"> This is a paragraph.<it id="3" ctype="x-cs_NOCHARACTERSTYLE" pos="close">&lt;/Content&gt;&lt;/CharacterStyleRange&gt;&lt;Br/&gt;</it></mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-4">
<source xml:lang="en"> </source>
<seg-source><mrk mid="0" mtype="seg"> </mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg"> </mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-5">
<source xml:lang="en"> </source>
<seg-source><mrk mid="0" mtype="seg"> </mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg"> </mrk></target>
</trans-unit>
<trans-unit id="xhtml2icml_default_story-6">
<source xml:lang="en">Here is the first footnote's third paragraph (unhandled).</source>
<seg-source><mrk mid="0" mtype="seg">Here is the first footnote's third paragraph (unhandled).</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">Here is the first footnote's third paragraph (unhandled).</mrk></target>
</trans-unit>
</group>
</group>
</body>
</file>
</xliff>
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:okp="okapi-framework:xliff-extensions" xmlns:its="http://www.w3.org/2005/11/its" xmlns:itsxlf="http://www.w3.org/ns/its-xliff/" its:version="2.0">
<file original="small.wcml" source-language="en" target-language="fr" datatype="x-application/x-icml+xml" okp:inputEncoding="UTF-8">
<header><tool tool-id="okapi" tool-name="okapi-tests" tool-version="M28" tool-company="okapi"></tool></header>
<body>
<group id="spr1" resname="Stories" restype="x-spread">
<group id="sto1" resname="story 1" restype="x-story">
<trans-unit id="story 1-1">
<source xml:lang="en">Some text.</source>
<seg-source><mrk mid="0" mtype="seg">Some text.</mrk></seg-source>
<target xml:lang="fr"><mrk mid="0" mtype="seg">Some text.</mrk></target>
</trans-unit>
</group>
</group>
</body>
</file>
</xliff>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment