Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328206

Summary: MediaWiki to DITA ignores image caption
Product: z_Archived Reporter: Jarno Elovirta <jarno>
Component: MylynAssignee: David Green <greensopinion>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 1.4.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Jarno Elovirta CLA 2010-10-20 02:18:09 EDT
When converting MediaWiki documents that use image captions to DITA, captions are ignored. For

  [[Image:images/editor-assist-proposals.png|alt=Alternative text|Caption text.]]

the generated DITA is

  <image href="images/editor-assist-proposals.png" alt="Alternative text"/>

To retain caption, a fig element should be used as a wrapper:

  <fig>
    <title>Caption text.</title>
    <image href="images/editor-assist-proposals.png" alt="Alternative text"/>
  </fig>

Tested with WikiText standalone mylyn-wikitext-standalone-3.5.0.I20100926-0400.
Comment 1 David Green CLA 2010-10-21 14:11:03 EDT
Thanks for the bug!  Fixed in CVS.
Comment 2 David Green CLA 2010-10-21 14:11:04 EDT
Created attachment 181430 [details]
mylyn/context/zip