It would be easier to answer if you could first explain what you mean by
"when we add any math type in the editor..." - read
http://moodle.org/mod/forum/discuss.php?d=127295
I suppose you mean TeX and if you want to remove links from TeX images that tex filter produces you should edit file filter/tex/filter.php and function string_file_picture_tex - different versions of moodle have a little different code but I guess you want to do the same as Maher in http://moodle.org/mod/forum/discuss.php?d=101134#p485237
If you want to remove links from all users you should also delete that row
$output .= "<a href=\"$CFG->wwwroot/filter/tex/texdebug.php\">";
(otherwise $output .= "</a>"; later leaves link tags open for administrators... )
So the current 1.9 version of that function could look like this if you want to delete also those alt tags and titles and show only img tags
function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $align="middle", $alt='') {
global $CFG;
// Work out any necessary inline style.
$rules = array();
if ($align !== 'middle') {
$rules[] = 'vertical-align:' . $align . ';';
}
if ($height) {
$rules[] = 'height:' . $height . 'px;';
}
if ($width) {
$rules[] = 'width:' . $width . 'px;';
}
if (!empty($rules)) {
$style = ' style="' . implode('', $rules) . '" ';
} else {
$style = '';
}
// Prepare the title attribute.
if ($tex) {
$tex = str_replace('&','&',$tex);
$tex = str_replace('<','<',$tex);
$tex = str_replace('>','>',$tex);
$tex = str_replace('"','"',$tex);
$tex = str_replace("\'",''',$tex);
}
// Build the output.
$output = "";
if ($imagefile) {
$output .= "<img class=\"texrender\" src=\"";
if ($CFG->slasharguments) { // Use this method if possible for better caching
$output .= "$CFG->wwwroot/filter/tex/pix.php/$imagefile";
} else {
$output .= "$CFG->wwwroot/filter/tex/pix.php?file=$imagefile";
}
$output .= "\" $style/>";
} else {
$output .= "Error: must pass URL or course";
}
return $output;
}
Thank You ,Thank You ,Thank You ,Thank You ,Thank You ,Thank You ,Thank You .
You hav solved my problem .
I got stuck in this problem form last 4 days.
Thank u very much , u are a great man.
regards
deepak
As you can see, it is optional, so it would be very worthwhile to leave in the alt text unless in your specific course you have a special need to remove it.
Cheers,
Bob
As Our Site is www.talentbarometer.com ,this site is for School going students , we are providing then test papers.
I thing there is no need for the Math type image alttext . coz it shows math type code.
regards
dEePaK
The alt tags that TeX filter gives are pure LaTeX - I don't personally know any blind people who have used screen readers etc to test usability of latex tags but here's one discussion about subject from other forums:
http://accessgarage.wordpress.com/2009/01/09/tools-for-accessible-math-conversion/
MathML or ASCIIMathML rendering MathML in Firefox might be more accessible math for blind student - or some other tools than TeX in the future...
http://www.dessci.com/en/solutions/access/default.htm has a really intersting list of some math accessibility tools.
Most people feel alt tags useful for another important reason - it is possible to learn syntax of LaTeX or other maths if you see the code with alt tag (on hover) - like this expression
$$\displaystyle\phi_n(\kappa) = \frac{1}{4\pi^2\kappa^2} \int_0^\infty \frac{\sin(\kappa R)}{\kappa R} \frac{\partial}{\partial R} \left[R^2\frac{\partial D_n(R)}{\partial R}\right]\,dR$$
to be able to write something similar even without TeX guides or TeX editors.
Maths is sometimes complex to read and write online even if you can see and write. Maybe the original reason why Deepak wanted to cut alt tags was the heavy content (many images causing a lot of HTTP requests and slow rendering of code...)
I am still thankfull to Mauno.
best regards
deepak