--- loncom/interface/loncommon.pm 2011/12/27 19:47:02 1.1028.2.2 +++ loncom/interface/loncommon.pm 2011/12/04 16:27:05 1.1029 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1028.2.2 2011/12/27 19:47:02 foxr Exp $ +# $Id: loncommon.pm,v 1.1029 2011/12/04 16:27:05 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -154,8 +154,6 @@ sub ssi_with_retries { # ----------------------------------------------- Filetypes/Languages/Copyright my %language; my %supported_language; -my %latex_language; # For choosing hyphenation in -my %latex_language_bykey; # for choosing hyphenation from metadata my %cprtag; my %scprtag; my %fe; my %fd; my %fm; @@ -188,15 +186,11 @@ BEGIN { while (my $line = <$fh>) { next if ($line=~/^\#/); chomp($line); - my ($key,$two,$country,$three,$enc,$val,$sup,$latex)=(split(/\t/,$line)); + my ($key,$two,$country,$three,$enc,$val,$sup)=(split(/\t/,$line)); $language{$key}=$val.' - '.$enc; if ($sup) { $supported_language{$key}=$sup; } - if ($latex) { - $latex_language_bykey{$key} = $latex; - $latex_language{$two} = $latex; - } } close($fh); } @@ -3236,29 +3230,11 @@ sub languagedescription { ($supported_language{$code}?' ('.&mt('interface available').')':''); } -=pod - -=item * &plainlanguagedescription - -Returns both the plain language description (e.g. 'Creoles and Pidgins, English-based (Other)') -and the language character encoding (e.g. ISO) separated by a ' - ' string. - -=cut - sub plainlanguagedescription { my $code=shift; return $language{$code}; } -=pod - -=item * &supportedlanguagecode - -Returns the supported language code (e.g. sptutf maps to pt) given a language -code. - -=cut - sub supportedlanguagecode { my $code=shift; return $supported_language{$code}; @@ -3266,35 +3242,6 @@ sub supportedlanguagecode { =pod -=item * &latexlanguage() - -Given a language key code returns the correspondnig language to use -to select the correct hyphenation on LaTeX printouts. This is undef if there -is no supported hyphenation for the language code. - -=cut - -sub latexlanguage { - my $code = shift; - return $latex_language{$code}; -} - -=pod - -=item * &latexhyphenation() - -Same as above but what's supplied is the language as it might be stored -in the metadata. - -=cut - -sub latexhyphenation { - my $key = shift; - return $latex_language_bykey{$key}; -} - -=pod - =item * ©rightids() returns list of all copyrights @@ -5577,6 +5524,11 @@ span.LC_current_location { background: $pgbg; } +span.LC_current_nav_location { + font-weight:bold; + background: $sidebg; +} + span.LC_parm_menu_item { font-size: larger; }