-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple Wikipedias #2
Comments
That's fantastic! @symac, we need to do the same for the French Wikipedia. |
@wetneb that would be great yet, I won't have much time for this I believe but if you need help to create the lookup table between French template parameters and the English one I might help. |
The problem is that each Wikipedia has its own templates, but also its own template processing code in Lua… So basically we would need to do the same work I have done for en.wiki for each other language, AND translate the JSON outputs to the same schema. The situation is bad. French template processing code: https://fr.wikipedia.org/wiki/Module:Biblio |
I am working on adding the code from Modulo:Citazione @ itwiki (see CristianCantoro@91104a0). Again, the idea is to put all the language-dependent code in different subdirectories. This needs some further tweaking because the Lua code from the Module does not work as of now. @wetneb is absolutely right in saying that:
I am not expert in using and/or writing Lua code, any help in that regard is more than welcome. I think that after we have started porting the library to 2 or 3 languages we will see if this design is working or not. |
OK. My understanding is that these Lua codes (at least CS1) work like this:
My strategy to wrap the CS1 module was to get rid of the second part, only keeping the internal representation, and sending it back to Python. As the Lua code calls Mediawiki-specific functions (which are not available in Lua by default), I had to simulate them by Python functions, which are passed to the Lua code as arguments. I wonder whether there is a clean way to do this, in order to make Lua code updates manageable. |
I think that the code coming from the Lua modules on Wikipedia should be wrapped in a way that as little modifications as possible should be made to it easier to apply updates. |
I wanted to point out this initiative by @nemobis on Italian Wikipedia:
(source: OpenAccess-l) |
Fantastic! Thank you very much for pointing that out! I can see Dario has pointed Federico to our Wikicite mailing list so I'll just wait for him to go there before replying. But I've joined the list. |
@JackPotte has a correspondence between french and english citation parameters here: https://github.com/JackPotte/JackBot/blob/master/hyperlynx.py |
Hi,
I am interested in extending this library to support Italian Wikipedia. I am opening this bug as a tracker for issues around this topic.
The text was updated successfully, but these errors were encountered: