Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2019-11

Changes in wiki?

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Werner Pamler

Some time ago I wrote a wiki article on our NumLib (https://wiki.lazarus.freepascal.org/NumLib_Documentation). Looking at this page again today I found that the math expressions are no longer rendered correctly by Firefox, it just displays the MathML source text, e.g. https://wiki.lazarus.freepascal.org/NumLib_Documentation#Matrices. Chrome does display it correctly, though. So I suspect that Firefox has disabled yet another add-on. I've been using the add-on "NativeMathML" which has been working so far. Is there anything else that I should select?

There must also have been a change related to <code> tags enclosing a paragraph. Now short empty "code-blocks" appear on the rendered page before and after such a paragraph. This happens for example in https://wiki.lazarus.freepascal.org/NumLib_Documentation#Generic_matrices
- see screenshot. The wiki code is like this:

Alternatively a matrix also can be specified as a one-dimensional array. This works because all data are found within the same memory block. The array index, <code>k</code> must be converted to the 2D matrix indexes, <code>i, j</code>:

    <code>
       k := i * n + j      <==> i = k div n, j := k mod n          {for
    0-based array and matrix indexes}
       k := (i-1) * n + j  <==> i := (k-1) div n + 1, j := (k-1) mod n +
    1  {for 1-based array and matrix indexes}
    </code>
    Using a one-dimensional array a

Both Firefox and Chrome display it this way. I noticed that using <syntaxhighlight> tags avoids this isse. Is this the way to do it now?

Werner

Reply by email

Michael Van Canneyt
to Bart
Bart wrote 7 lines
On Thu, Nov 28, 2019 at 9:53 PM Werner Pamler wrote: > > Some time ago I wrote a wiki article on our NumLib (https://wiki.lazarus.freepascal.org/NumLib_Documentation). Looking at this page again today I found > that the math expressions are no longer rendered correctly by Firefox, it just displays the MathML source text, e.g. https://wiki.lazarus.freepascal.org > /NumLib_Documentation#Matrices. No problem here with FF 70.0.1 (64-bits) on Win10.

Works on MacOS as well with FF same version as Bart.

Michael.

Reply by email

Martin Frb
to Werner Pamler: Some time ago I wrote a wiki article on our NumLib…
Werner Pamler wrote 6 lines
Looking at this page again today I found that the math expressions are no longer rendered correctly by Firefox, it just displays the MathML source text, e.g. https://wiki.lazarus.freepascal.org/NumLib_Documentation#Matrices.

The matrix looks fine in firefox 70.1, chrome, edge, IE 11 It usually takes 1 or 2 seconds before it shows correct.

All on windows 10.

I can see it loads various scripts and fonts via cloudflare. Maybe your Firefox does not load all of those?

There must also have been a change related to <code> tags enclosing a paragraph. Now short empty "code-blocks" appear on the rendered page before and after such a paragraph.

Yep, they are there tested firefox and chrome.

Reply by email

Werner Pamler
to Michael Van Canneyt: Works on MacOS as well with FF same version as Bart. Michael.

Thanks to all who answered. Since nobody could reproduce the Firefox issue with the MathML expression I switched to the default Firefox profile and - alas - the expressions were rendered correctly. Therefore, I somehow must have screwed up my Firefox profile settings. Need to investigate on that.

Anything about the question with the <code> tags? Who takes care of the wiki software? There is another issue that it is not possible any more to replace existing uploaded images by new versions (at least when I tried the last time, some weeks ago).

Reply by email

Karoly Balogh (Charlie/SGR
to Werner Pamler

Hi,

Werner Pamler wrote
Who takes care of the wiki software? There is another issue that it is not possible any more to replace existing uploaded images by new versions (at least when I tried the last time, some weeks ago).

It's me. And I know. I spent today 3 hours again trying to debug it, upgrading/downgrading versions left and right, doing all sorts of DB magic, trying to wave a dead chicken above an upside down pentagramm drawn with black goat blood upon full moon, but to no avail.

Because of course a normal Googling doesn't reveal anything, except FPC people asking about this issue on all possible forums. And today I came to the conclusion - again -, that my life is not long enough to debug that pile of PHP garbage, sorry.

But as always, ideas and suggestions welcomed. What's for sure, it's not a file/directory simple permission or misconfiguration issue. But probably a genunine bug somewhere. According to some ancient - probably only slightly related - MediaWiki bugtracker entries, it could be in one of the extensions we use. Which are only a handful, actually. No idea.

But I failed even enabling some sane debug logging for the Wiki. Like, I follow the manual, expect a debug log to happen, but literally nothing. (Additional funfact: the manual claims some variable to be used for DB debugging, but when I visit that variable's description page, it was removed 5+ versions ago. Yeah.) And without even that, every attempt is just poking into a black hole with a stick.

Rant aside, if you ignore that Error message, the "fun" part is, uploading new versions of a file actually seem to work for me. You still get the error, but then when you reload the file, the new content is there.

Charlie

Reply by email