mwlib + Semantic MediaWiki

56 views
Skip to first unread message

Hauke Pribnow

unread,
Apr 15, 2010, 5:46:24 AM4/15/10
to mwlib
Hello everybody!

I'm using mwlib with a Semantic MediaWiki installation. Semantic
MediaWiki introduces a new type of link Syntax:

[[Property::Value]]

When writing something like this in a page, the bit "Value" will
internally be assigned to the property "Property" for the page. However,
only "Value" will be visible in the text (i.e. the part "Property::"
will not show up).

Since mwlib doesn't know this kind of Syntax, it always displays the
whole string "Property::Value" on generated documents (e.g. PDFs).

Is there already a way to change this behavior so that mwlib acts like
the (extended) Wiki parser?

If not: Where should I start looking into the code to modify it
accordingly? mwlib? mwlib.r? (I mean, should I modify the rendering
engine or the mwlib parser?)


Thanks in advance for any suggestion!

Hauke Pribnow

Ralf Schmitt

unread,
Apr 20, 2010, 2:50:48 AM4/20/10
to mw...@googlegroups.com
Hauke Pribnow <hauke....@gmx.net> writes:

> If not: Where should I start looking into the code to modify it
> accordingly? mwlib? mwlib.r? (I mean, should I modify the rendering
> engine or the mwlib parser?)

mwlib. you can probably work around this by implementing a treecleaner
method, which removes those prefixes.

--
You received this message because you are subscribed to the Google Groups "mwlib" group.
To post to this group, send email to mw...@googlegroups.com.
To unsubscribe from this group, send email to mwlib+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en.

David Leonelli

unread,
May 16, 2013, 11:40:57 AM5/16/13
to mw...@googlegroups.com, ra...@brainbot.com
Was anyone able to workaround this? SMW property name are confusing to end users in the rendered book.
Reply all
Reply to author
Forward
0 new messages