--- loncom/xml/lonxml.pm 2008/05/02 22:00:12 1.477 +++ loncom/xml/lonxml.pm 2008/05/28 01:32:59 1.478 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.477 2008/05/02 22:00:12 www Exp $ +# $Id: lonxml.pm,v 1.478 2008/05/28 01:32:59 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1497,6 +1497,30 @@ sub verify_html { return ''; } +sub renderingoptions { + my %langchoices=('' => ''); + foreach (&Apache::loncommon::languageids()) { + if (&Apache::loncommon::supportedlanguagecode($_)) { + $langchoices{&Apache::loncommon::supportedlanguagecode($_)} + = &Apache::loncommon::plainlanguagedescription($_); + } + } + return + ''. + &mt('Language: '). + &Apache::loncommon::select_form($env{'form.languages'},'languages', + %langchoices).' + + '. + &mt('Math Rendering: '). + &Apache::loncommon::select_form($env{'form.texengine'},'texengine', + ('' => '', + 'tth' => 'tth', + 'jsMath' => 'jsMath', + 'mimetex' => 'mimetex')).' + '; +} + sub inserteditinfo { my ($filecontents, $filetype, $filename)=@_; $filecontents = &HTML::Entities::encode($filecontents,'<>&"');