[LON-CAPA-cvs] cvs: loncom /html/adm/help/tex CAPA_LON-CAPA_function_diffs.tex Problem_LON-CAPA_Functions.tex Script_Functions.tex all_functions_table.tex

albertel lon-capa-cvs-allow@mail.lon-capa.org
Tue, 11 Sep 2007 21:53:42 -0000


albertel		Tue Sep 11 17:53:42 2007 EDT

  Modified files:              
    /loncom/html/adm/help/tex	CAPA_LON-CAPA_function_diffs.tex 
                             	Problem_LON-CAPA_Functions.tex 
                             	Script_Functions.tex 
                             	all_functions_table.tex 
  Log:
  - documenting &languages()
  
  
Index: loncom/html/adm/help/tex/CAPA_LON-CAPA_function_diffs.tex
diff -u loncom/html/adm/help/tex/CAPA_LON-CAPA_function_diffs.tex:1.4 loncom/html/adm/help/tex/CAPA_LON-CAPA_function_diffs.tex:1.5
--- loncom/html/adm/help/tex/CAPA_LON-CAPA_function_diffs.tex:1.4	Wed Feb 18 18:00:20 2004
+++ loncom/html/adm/help/tex/CAPA_LON-CAPA_function_diffs.tex	Tue Sep 11 17:53:41 2007
@@ -52,6 +52,9 @@
 Not in CAPA  & \&dollarformat(\$x,'optional target')  &   \\ 
 
  \hline 
+Not in CAPA  & \&languages(@desired\_languages)  &   \\ 
+
+ \hline 
 roundto(x,n)  & \&roundto(\$x,\$n)  &   \\ 
 
  \hline 
Index: loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex
diff -u loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex:1.10 loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex:1.11
--- loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex:1.10	Thu May 24 07:29:16 2007
+++ loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex	Tue Sep 11 17:53:41 2007
@@ -53,7 +53,15 @@
  
 \&dollarformat(\$x,'optional target')  & Reformats \$x to have a \$ (or $\backslash$\$ if in tex mode) and to have , grouping thousands. The 'optional target' argument is optional but can be used to force \&prettyprint to generate either 'tex' output, or 'web' output, most people do not need to specify this argument and can leave it blank.\\
 \hline
- 
+
+\parbox{6.49cm}{
+Option 1 - \$best = \&languages() \\
+Option 2 - @all = \&languages() \\
+Option 3 - \$best = \&languages($\backslash$@desired\_languages) \\
+Option 4 - @all = \&languages($\backslash$@desired\_languages) \\
+}& Returns the best language to use, in the first two options returns the languages codes in the preference order of the user. In the second two examples returns the best matches from a list of desired language possibilities. & \\
+\hline
+
 \&roundto(\$x,\$n)  & Rounds a real number to n decimal points. \$x and \$n can be pure numbers \\
 \hline
  
Index: loncom/html/adm/help/tex/Script_Functions.tex
diff -u loncom/html/adm/help/tex/Script_Functions.tex:1.6 loncom/html/adm/help/tex/Script_Functions.tex:1.7
--- loncom/html/adm/help/tex/Script_Functions.tex:1.6	Sun May 20 17:07:02 2007
+++ loncom/html/adm/help/tex/Script_Functions.tex	Tue Sep 11 17:53:41 2007
@@ -35,6 +35,7 @@
 \item sub\_string() 
 \item array\_moments(array) 
 \item format(x,y),prettyprint(x,y,target),dollarformat(x,target) 
+\item languages
 \item map(...) 
 \item caparesponse\_check 
 \item caparesponse\_check\_list
Index: loncom/html/adm/help/tex/all_functions_table.tex
diff -u loncom/html/adm/help/tex/all_functions_table.tex:1.7 loncom/html/adm/help/tex/all_functions_table.tex:1.8
--- loncom/html/adm/help/tex/all_functions_table.tex:1.7	Sun May 20 17:07:02 2007
+++ loncom/html/adm/help/tex/all_functions_table.tex	Tue Sep 11 17:53:41 2007
@@ -39,6 +39,13 @@
 Not in CAPA &\&prettyprint(\$x,'nn','optional target') &Display or format \$x as nn where nn is nF or nE or nS and n is an integer. Also supports the first character being a \$, it then will format the result with a a call to \&dollarformat() described below. If the first character is a , it will format it with commas grouping the thousands. In S mode it will fromat the number to the specified number of significant figures and display it in F mode. In E mode it will attempt to generate a pretty x10\^{}3 rather than a E3 following the number, the 'optional target' argument is optional but can be used to force \&prettyprint to generate either 'tex' output, or 'web' output, most people do not need to specify this argument and can leave it blank. &  \\
  \hline 
 Not in CAPA &\&dollarformat(\$x,'optional target') &Reformats \$x to have a \$ (or $\backslash$\$ if in tex mode) and to have , grouping thousands. The 'optional target' argument is optional but can be used to force \&prettyprint to generate either 'tex' output, or 'web' output, most people do not need to specify this argument and can leave it blank. &  \\
+ \hline
+Not in CAPA &\parbox{6.49cm}{
+Option 1 - \$best = \&languages() \\
+Option 2 - @all = \&languages() \\
+Option 3 - \$best = \&languages($\backslash$@desired\_languages) \\
+Option 4 - @all = \&languages($\backslash$@desired\_languages) \\
+}& Returns the best language to use, in the first two options returns the languages codes in the preference order of the user. In the second two examples returns the best matches from a list of desired language possibilities. & \\
  \hline 
 roundto(x,n) &\&roundto(\$x,\$n) &Rounds a real number to n decimal points. \$x and \$n can be pure numbers &  \\
  \hline