Comments (12)
The parsing of redirects, at least the way implemented above, requires that it
is the
first recursive call - see attached file for details.
Original comment by [email protected]
on 28 Apr 2010 at 3:09
Attachments:
from gwtwiki.
Original comment by [email protected]
on 28 Apr 2010 at 7:04
- Changed state: Accepted
from gwtwiki.
Could you please try, if these changes solve the problem:
http://code.google.com/p/gwtwiki/source/detail?r=1107
Original comment by [email protected]
on 28 Apr 2010 at 7:05
from gwtwiki.
Works for me! Thanks.
Original comment by [email protected]
on 29 Apr 2010 at 2:11
from gwtwiki.
Original comment by [email protected]
on 13 May 2010 at 3:28
- Changed state: Fixed
from gwtwiki.
Hi axelclk,
Im new on Bliki, and I have the same problem sfisla is talking about - with the
redirections... I saw that you amde some changes to the bliki.core library.
can you please explain me how to update me files with your file in order to
handle the redirection issue.
Im using maven (I didnt succed to activate my project without making it a maven
project.)
Original comment by [email protected]
on 5 Jun 2012 at 6:46
from gwtwiki.
This has been fixed some time ago - r1107 noted above. What version of bliki
api are you using?
Original comment by [email protected]
on 5 Jun 2012 at 1:17
from gwtwiki.
Yes, I checked out the bliki code and saw that these changes have already been
added to the library.
I followed this tutorial exactly:
http://www.integratingstuff.com/2012/04/06/hook-into-wikipedia-using-java-and-th
e-mediawiki-api/
and still, when I search for "Machester United football club" I don't get
anything, but when I use the dibugger I notice I have a "#REDIRECT[[Machester
United F.C.]]", means that it doesn't do the recursive call for redirections.
Can you explain what I have to do in order to pass over all those redirection
and just get the value of what I search for? (please refer to the tutorial in
your answer as I am not an expert in bliki...)
Original comment by [email protected]
on 5 Jun 2012 at 4:44
from gwtwiki.
You have a typo in your article text:
"Machester United football club"
versus
"Manchester United football club"
Original comment by [email protected]
on 5 Jun 2012 at 5:18
from gwtwiki.
Its just a typo in the comment...
When I search for "Machester United Football Club" and use the debugger,
I notice that after doing the next line:
List<Page> listOfPages = user.queryContent(listOfTitleStrings);
I get the next value for listOfPages:
[PageID: 2983919; NS: 0; Title: Manchester United Football Club;
Image url:
Content:
#REDIRECT [[Manchester United F.C.]]]
Original comment by [email protected]
on 5 Jun 2012 at 5:46
from gwtwiki.
OK.
There's a IWikModel#getRedirectLink() method which returns the parsed redircet
link after parsing the first wiki text.
With this redirect title string you can again use the Wikipedia API.
See the modified HTMLCreatorExample I've commited in r5527.
The Example creates two files.
The first file
C:\temp\Manchester_United_Football_Club.html
contains no visible HTML.
The second file
C:\temp\Manchester_United_F.C..html
contains the rendered redirect title.
Original comment by [email protected]
on 5 Jun 2012 at 6:58
from gwtwiki.
Thank You very much!
Now I can handle redirections so thank's:)
Original comment by [email protected]
on 6 Jun 2012 at 12:22
from gwtwiki.
Related Issues (20)
- ConcurrentEditException while importing HTML page to my mediawiki HOT 1
- Does not recognize image tags with non-ascii characters HOT 2
- Problem when a language uses a mix of native and English tags HOT 2
- WikiXMLParser doesn't read bzip2 files directly HOT 2
- Jar File ?
- iframe incorrect translation HOT 2
- CmContinue Empty for XMLCategoryMembersParser HOT 2
- version 3.0.19 renderns invalid html for TOC HOT 2
- Login Broken
- Bold Wiki Text does not end properly HOT 3
- Problem in converting MediaWiki text to Plain text HOT 1
- It is impossible to create new page with Connector.edit() method HOT 1
- make hide Table of Contents (toc) convenient HOT 2
- Error on rendering Wiki to HTML of some pages HOT 4
- toc generate not valid anchor HOT 3
- Html to wiki for embedded unordered lists adds an additional list item HOT 1
- line breaks removed after stripping wikipedia markup language
- Nested Links Are Not Resolved Correctly
- Slashes in titles should be escaped (?)
- Scribunto (Luaj scripting for Wikipedia) support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwtwiki.