[Wikidata-bugs] [Maniphest] [Commented On] T138717: Render math values properly

2017-03-13 Thread Physikerwelt
Physikerwelt added a comment.
I did not make a lot of progress here. However, at least I found a way to render math using a custom module https://en.wikipedia.org/wiki/Module:ShowMathTASK DETAILhttps://phabricator.wikimedia.org/T138717EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: PhysikerweltCc: Lydia_Pintscher, daniel, Physikerwelt, Aklapper, Zppix, hoo, Lucie, Maosef, Debenben, D3r1ck01, Izno, Wikidata-bugs, Prod, aude, fredw, Pkra, jayvdb, Ricordisamoa, scfc, Mbch331, Ltrlg___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138717: Render math values properly

2017-03-13 Thread Physikerwelt
Physikerwelt added a comment.
I'm not really sure how to reproduce this problem. Is there more documentation on the parser function {{#property| ...}} as opposed to here https://www.mediawiki.org/wiki/Extension:Wikibase_Client#Data_transclusion? When I use the property parser function I see the raw texvc source code.TASK DETAILhttps://phabricator.wikimedia.org/T138717EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: PhysikerweltCc: Lydia_Pintscher, daniel, Physikerwelt, Aklapper, Zppix, hoo, Lucie, Maosef, Debenben, D3r1ck01, Izno, Wikidata-bugs, Prod, aude, fredw, Pkra, jayvdb, Ricordisamoa, scfc, Mbch331, Ltrlg___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138717: Render math values properly

2017-01-10 Thread Physikerwelt
Physikerwelt added a comment.
@hoo anyhow, it was worth a try. Thus we need to debate about some kind of preprocessing.TASK DETAILhttps://phabricator.wikimedia.org/T138717EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: PhysikerweltCc: Lydia_Pintscher, daniel, Physikerwelt, Aklapper, Zppix, hoo, Lucie, Debenben, D3r1ck01, Izno, Wikidata-bugs, Prod, aude, fredw, Pkra, jayvdb, Ricordisamoa, scfc, Mbch331, Ltrlg___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138717: Render math values properly

2017-01-10 Thread hoo
hoo added a comment.

In T138717#2929160, @Physikerwelt wrote:
As discussed with @hoo one option would be to use {{#tag:math|content|atrib=value}} rather than content in the wikitext formatter. @hoo can you test if that renders ok with lua?


Tested… and it doesn't… it needs preprocessing just like using the tag does :/TASK DETAILhttps://phabricator.wikimedia.org/T138717EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: hooCc: Lydia_Pintscher, daniel, Physikerwelt, Aklapper, Zppix, hoo, Lucie, Debenben, D3r1ck01, Izno, Wikidata-bugs, Prod, aude, fredw, Pkra, jayvdb, Ricordisamoa, scfc, Mbch331, Ltrlg___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138717: Render math values properly

2016-11-21 Thread hoo
hoo added a comment.

In T138717#2811406, @Lydia_Pintscher wrote:
Does anyone of you know what we need to do to fix this?


The  tag needs to be preprocessed if outputted by Lua. The math formatter can hardly do that: Preprocessing depends on the concrete Parser instance.

Also we run into problems here because we probably don't want to pollute our wikitext output with that.

In theory we could special case this either on the PHP side or in Lua and run the wikitext through Parser::preprocess or frame:preprocess respectively. For that we probably want to have another callback on the data type definition that allows us to determine whether the outputted wikitext needs preprocessing or not (that's also quite ugly?).TASK DETAILhttps://phabricator.wikimedia.org/T138717EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: hooCc: Lydia_Pintscher, daniel, Physikerwelt, Aklapper, Zppix, hoo, Lucie, Debenben, D3r1ck01, Izno, Wikidata-bugs, Prod, aude, fredw, Pkra, jayvdb, Ricordisamoa, scfc, Mbch331, Jay8g, Ltrlg___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138717: Render math values properly

2016-11-21 Thread Lydia_Pintscher
Lydia_Pintscher added a comment.
Does anyone of you know what we need to do to fix this?TASK DETAILhttps://phabricator.wikimedia.org/T138717EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lydia_PintscherCc: Lydia_Pintscher, daniel, Physikerwelt, Aklapper, Zppix, hoo, Lucie, Debenben, D3r1ck01, Izno, Wikidata-bugs, Prod, aude, fredw, Pkra, jayvdb, Ricordisamoa, scfc, Mbch331, Jay8g, Ltrlg___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138717: Render math values properly

2016-06-28 Thread Physikerwelt
Physikerwelt added a comment.
That's to be expected. The wikitext math tag contains tex. Otherwise it would not be wikitext. It has to be differentiated between the html math tags (which contain mathml markup) and the wikitext math tags. That's not the same at all.
If lua does not process wikitext correctly, I think that's nothing that should be solved manually, otherwise other tags will cause similar problems.TASK DETAILhttps://phabricator.wikimedia.org/T138717EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: PhysikerweltCc: Physikerwelt, Aklapper, Zppix, hoo, Lucie, Debenben, D3r1ck01, Izno, Wikidata-bugs, Prod, aude, fredw, Pkra, jayvdb, Ricordisamoa, scfc, Mbch331, Ltrlg___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138717: Render math values properly

2016-06-28 Thread hoo
hoo added a comment.
The math formatters are in the Math extension, that possibly complicates things here.

@Physikerwelt: We're talking about the wikitext formatter for math here, that seems to be returning plain  tags. In order to use that via Lua, we need to preprocess those… that's kind of ugly (and also, slow).TASK DETAILhttps://phabricator.wikimedia.org/T138717EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: hooCc: Physikerwelt, Aklapper, Zppix, hoo, Lucie, Debenben, D3r1ck01, Izno, Wikidata-bugs, Prod, aude, fredw, Pkra, jayvdb, Ricordisamoa, scfc, Mbch331, Ltrlg___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138717: Render math values properly

2016-06-28 Thread Physikerwelt
Physikerwelt added a comment.
The description is quite brief, can you provide an example?TASK DETAILhttps://phabricator.wikimedia.org/T138717EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: PhysikerweltCc: Physikerwelt, Aklapper, Zppix, hoo, Lucie, Debenben, D3r1ck01, Izno, Wikidata-bugs, Prod, aude, fredw, Pkra, jayvdb, Ricordisamoa, scfc, Mbch331, Ltrlg___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs