lookixm.blogg.se

Use media wiki offline
Use media wiki offline








  1. #Use media wiki offline full
  2. #Use media wiki offline portable
  3. #Use media wiki offline software

This means implementing an ad hoc parser, and it might even be necessary to borrow the implementation from MediaWiki itself. It seems to me that the only way to make a parser that works in the same way is to follow the vague instructions in the Template mechanism documentation. I've implemented what one would consider a normal recursive descent parser for the MediaWiki template language, but my implementation doesn't quite match up with the given examples in the weird corner cases.

use media wiki offline

This is a prime example of Greenspun's Tenth Rule that states "Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp." The lack of a grammar, and the Byzantine expansion rules, makes this template language somewhat challenging to parse.

#Use media wiki offline full

The Wikimedia Help:Template page seems to be the best documentation I can find, and it's chock full of contrived examples and pathological cases without even bothering to present a clear grammar. However, as languages go, it is not terribly well specified or documented. The MediaWiki template language is an example of a domain-specific language. It seems reasonably easy to use, but behind the scenes the source for the en-noun template is a nearly impenetrable forest of curly braces, wiki markup, HTML, and XML-like tags and comments. For example, have a look at the template documentation for indicating English noun plural forms. Wikipedia makes limited use of templates, but as I've discovered, Wiktionary uses them extensively and in decidedly nontrivial ways.

#Use media wiki offline software

The MediaWiki software offers simple templates, which allow page authors to include common text and markup into articles. This is where things started to get complicated. Then I wrote a quick program to extract the entries from the XML and do some simple formatting of the wiktionary pages. Next, I downloaded the entire English wiktionary from Wikimedia Downloads, which gives me the raw wiki markup for each entry in one big XML file. So, the first thing I did was implement a DICT protocol server in Python. As nice as a web browser is, often I just want to use a simple command line program to do a quick lookup without all the extra fluff. I want to use dict to look up words in Wiktionary. This is an enormously aggressive goal and I look forward to seeing it grow. No matter what your preferred language, ideally you will be able to use Wiktionary to look up anything found in print anywhere and find a definition in your chosen language. So, you can look up definitions in English for thank you, danke, спасибо, or even ありがとう. The incredible thing about Wiktionary is that it is fully multilingual-it aims to provide definitions for every word in every language in every other language. Like Wikipedia, anybody can contribute and edit definitions to any word. Wiktionary is a sister project to the more well-known Wikipedia. The server has quite a number of different dictionaries available, of varying utility.Įnter Wiktionary. dict uses the standard Dictionary Server Protocol to connect to a dictionary server (by default, ) to retrieve definitions. I always have a command prompt window open, and frequently (perhaps compulsively) look up words with which I'm unfamiliar.

use media wiki offline

Posted by rangefinder 1.The dict command line program is something I use pretty much daily. There's also a Bitnami DokuWiki Stack, if you want to try it out using a Bitnami installer.

use media wiki offline

One downside to this option is that it's not "portable" (no Bitnami on a stick).

#Use media wiki offline portable

(If you're not familiar with setting up web servers/databases, I think the Bitnami stack installation is more user-friendly than the MoWeS Portable route.) It's available for Windows, Linux, or Mac - download a full stack (it's free) from the native installers section (you can also use a "module" download if you want to run a more general stack and try other Bitnami software stacks). It's free, but only available for Windows.Īnother option is the Bitnami MediaWiki Stack, which has all the required software already bundled in one customized installer. The MoWeS "mixer" can package up all of the software you need to run it. I've used MoWeS Portable before (not with MediaWiki in particular, though) and found it pretty easy to set up either on a USB drive or on a local hard drive (YMMV). Re: webhund's "Mediawiki on a (USB) stick" link - the first option on that page is for installing MediaWiki with MoWeS Portable. (You're probably already aware, but just in case - Wikipedia runs on MediaWiki.) What computer/OS will you be using for the wiki?










Use media wiki offline