Mathematics Filter does not work for me
manveru - February 9, 2007 - 21:28
| Project: | Mathematics Filter |
| Version: | 5.x-1.0.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | dwees |
| Status: | closed |
Jump to:
Description
I have Drupal 5.1 on PHP 4.4.4 on Apache 1.3.4 with MimeTeX installed remotely, but it looks like it does not filter at all.
Is it possible that is interferre with Rep[lacement]Tags module?
What additional information you need to resolve my problem?

#1
Does either of the tags work?
Is it possible for you to set up a public location where I can look at the results of you entering the tags into a node?
Did you set up a filter with this enabled?
Did you go to the settings page and modify the path to your mimetex.cgi directory?
Dave
#2
Generally, is it working? Because I am about to install it.
#3
It works fine for me on 2 different servers. I've used Mimetex lots. It's possible there is some compatibility problem with the module this person talks about. If you view the test page, you can see it works.
Dave
#4
I have mimetex.cgi installed on: http://student.agh.edu.pl/~manveru/mimetex.cgi?\frac12
this is working fine.
As you can see on: http://www.manveru.pl/node/44
The tags are not handled at all by filter - I didn't have time too look at the code and try some debuging to check what is is happening. If you find any good way to debug this (mayby some log file), please write here. I am ready to help with this, and I even will have some suggestions about more configurable interface.
#5
I've just added some primitive logging into mathfilter and what I saw is that mathfilter_filter() function in not called at all. So it means that it is not hooked properly. Is this 5.1 issue or PHP 4.4.4 issue?
#6
Did you go to admin/settings/filters and click on configure for one of the input formats and add this filter?
Check to see if this filter is able to enabled by doing this, and then let me know what the results are.
Dave
#7
Something happened!
I looked into logging I've added and it started processing. But resulting output is cleaned from [tex][/tex] and [graph][/graph] entries (even no empty ). It looks like pattern matching are working correctly, but nothing is put instead of tags. So there still is a problem.
Q: Why the output filtering could not be enabled by default? By install script for example?
#8
Aah, here's another gotcha. If you use the mathematics filter with the filtered html, what happens is my filter gets called first, and creates the img elements and the iframe elements, both of which are then stripped by the filter_html filter. Try enabling my filter with the full html filter, and trying it out. It should work there.
Normally filters are always off by default, although I could enable it in the hook_install relatively easily, but I don't necessarily know what input filters you've created or are using regularly, so I choose not to.
Dave
#9
OK! It works that way - but you have to at least document it somewhere for others :-)
I am currenlty thinking how to force Filtered HTML to catch this properly... It looks quite strange, because weights look like below:
When I've moved Mathematics up to -1 then only graphs are rendered. I've added to the allowed tags. For now we can treat this issue as closed, but I think it need more work to make all features working.
#10
When I've put it as last one (weight = 10) it show only graphs too. I see only one resolution now: Creating new format with only Mathematics filter enabled.
#11
I've updated the README.txt and the INSTALL.txt to reflect the added instructions I gave you. I actually only noticed this problem a few days ago when I enabled this module on one of my new sites.
Dave
#12
The built-in HTML filter beahves very strange. I've just added and , now it allows output from Mathematics Filter, but cuts off "style" formating attributes. And this behaviour does not depend on sequence in which filters should run (weights).
#13
It is probably it removing stuff that isn't valid xhtml. Do you mean things like <font> etc...?
I'm pretty sure this has nothing to do with my module though, I'd post an issue with the Drupal project.
Dave