CodeBaseX / wikimodel

Automatically exported from code.google.com/p/wikimodel
1 stars 0 forks source link

Wikimedia parsing : image not recognized when first item in paragraph #190

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. find a wiki page (using mediawiki syntax) where a paragraph begins with an 
image (for example, the Wikipedia page titled Amazon_River; example section :
==Flooding==
[[Image:Amazon-river-NASA.jpg|thumb|A [[NASA]] satellite image of a flooded 
portion of the river.]] Not all of the Amazon's tributaries...
)
2. parse this with the mediawiki parser 
(org.wikimodel.wem.wikimedia.MediaWikiParser)
3. The sequence of events for the section here will be :
beginSection([1])
beginHeader(2,[])
beginFormat([])
onWord('Flooding')
endFormat([])
endHeader(2, [])
beginSectionContent([1])
beginParagraph([])
beginFormat([])
onEscape('[')
onReference('Image:Amazon-river-NASA.jpg')

What is the expected output? What do you see instead?
The last event should be "onImage()", and the "OnEscape" just previous should 
not be there.

What version of the product are you using? On what operating system?
release 2.0.6 (downloaded 2010.08.16)

Please provide any additional information below.

Original issue reported on code.google.com by alandavo...@gmail.com on 18 Aug 2010 at 5:45

GoogleCodeExporter commented 8 years ago
same as Issue Id=2

Comments in Issue 2 seems to indicate the presence of a patch...
please let me know if that's the case

Original comment by alandavo...@gmail.com on 18 Aug 2010 at 5:48

GoogleCodeExporter commented 8 years ago
Hi you should try last snapshot instead of 2.0.6, no official release has been 
since a a long time and a lots of improvements has been applied.

If you want an updated maven repository with last tested snapshot of wikimodel 
you can find it on 
http://maven.xwiki.org/externals/org/wikimodel/org.wikimodel.wem/

Please try last snapshot and close this issue if it's working well.

Original comment by thomas.m...@gmail.com on 19 Aug 2010 at 7:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
it seems my understanding of the problem was wrong : this seems to be caused by 
links being found in the caption of the picture.

I updated to the latest code and the problem remains.

I don't see how to close this issue but it should be done (or merged into issue 
#2).

Original comment by alandavo...@gmail.com on 19 Aug 2010 at 3:15

GoogleCodeExporter commented 8 years ago
Possible you don't have the right to do it indeed, i'm doing it now.

Original comment by thomas.m...@gmail.com on 20 Aug 2010 at 7:07