From 5886946f1d2bb11f15a80d06f6e24ed5bfc4085e Mon Sep 17 00:00:00 2001 From: llsth Date: Wed, 8 Apr 2015 16:27:35 +0200 Subject: [PATCH] Basic multilingual support --- Makefile | 29 +++++- README.md | 4 +- app/localize/help.h | 23 ++--- app/localize/ident.h | 2 +- app/localize/text.h | 2 +- app/system/language_amiga.cpp | 5 + catalog/README | 3 + catalog/README.md | 0 catalog/danish/amath-help.catalog | Bin 0 -> 234 bytes catalog/danish/amath-help.ct | 130 ++++++++++++++++++++++++++ catalog/danish/amath-ident.catalog | Bin 0 -> 4730 bytes catalog/danish/amath-ident.ct | 139 ++++++++++++++++++++++++++++ catalog/danish/amath-text.catalog | Bin 0 -> 1786 bytes catalog/danish/amath-text.ct | 99 ++++++++++++++++++++ catalog/english/amath-help.catalog | Bin 0 -> 122 bytes catalog/english/amath-help.ct | 130 ++++++++++++++++++++++++++ catalog/english/amath-ident.catalog | Bin 0 -> 122 bytes catalog/english/amath-ident.ct | 139 ++++++++++++++++++++++++++++ catalog/english/amath-text.catalog | Bin 0 -> 122 bytes catalog/english/amath-text.ct | 99 ++++++++++++++++++++ catalog/help.cd | 3 + catalog/help.sd | 2 +- catalog/ident.sd | 2 +- catalog/text.sd | 2 +- configure | 31 ++++++- 25 files changed, 817 insertions(+), 27 deletions(-) create mode 100644 catalog/README create mode 100644 catalog/README.md create mode 100644 catalog/danish/amath-help.catalog create mode 100644 catalog/danish/amath-help.ct create mode 100644 catalog/danish/amath-ident.catalog create mode 100644 catalog/danish/amath-ident.ct create mode 100644 catalog/danish/amath-text.catalog create mode 100644 catalog/danish/amath-text.ct create mode 100644 catalog/english/amath-help.catalog create mode 100644 catalog/english/amath-help.ct create mode 100644 catalog/english/amath-ident.catalog create mode 100644 catalog/english/amath-ident.ct create mode 100644 catalog/english/amath-text.catalog create mode 100644 catalog/english/amath-text.ct diff --git a/Makefile b/Makefile index ced4bc56..6ce21d8e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Portable Makefile generated by configure +# Makefile generated by configure all: libs app @@ -7,6 +7,7 @@ AR = ar RANLIB = ranlib CFLAGS = -DWITHTEST -I. -Wall -Werror LFLAGS = -lstdc++ -lamathapp -lcamath -lcomplex -lamath +FLXCAT = flexcat evaluator.o: app/main/evaluator.cpp ${CC} -O2 ${CFLAGS} -Ilib -Iapp -Wall -Werror -c app/main/evaluator.cpp @@ -377,9 +378,15 @@ dprint.o: lib/dconv/dprint.cpp libs: libamath libcomplex libcamath libamathapp catalogs: - flexcat catalog/help.cd app/localize/help.h=catalog/help.sd - flexcat catalog/ident-clean.cd app/localize/ident.h=catalog/ident.sd - flexcat catalog/text.cd app/localize/text.h=catalog/text.sd + ${FLXCAT} catalog/help.cd app/localize/help.h=catalog/help.sd + ${FLXCAT} catalog/ident-clean.cd app/localize/ident.h=catalog/ident.sd + ${FLXCAT} catalog/text.cd app/localize/text.h=catalog/text.sd + ${FLXCAT} catalog/help.cd catalog/danish/amath-help.ct CATALOG catalog/danish/amath-help.catalog + ${FLXCAT} catalog/ident.cd catalog/danish/amath-ident.ct CATALOG catalog/danish/amath-ident.catalog + ${FLXCAT} catalog/text.cd catalog/danish/amath-text.ct CATALOG catalog/danish/amath-text.catalog + ${FLXCAT} catalog/help.cd catalog/english/amath-help.ct CATALOG catalog/english/amath-help.catalog + ${FLXCAT} catalog/ident.cd catalog/english/amath-ident.ct CATALOG catalog/english/amath-ident.catalog + ${FLXCAT} catalog/text.cd catalog/english/amath-text.ct CATALOG catalog/english/amath-text.catalog libamathapp: aengine.o charbuf.o cplex.o fgrid.o ntext.o real.o ${AR} rcs libamathapp.a aengine.o charbuf.o cplex.o fgrid.o ntext.o real.o @@ -402,6 +409,20 @@ app: libs evaluator.o functions.o graphlist.o lexer.o nodes.o operators.o optim clean: rm -f aengine.o charbuf.o cplex.o fgrid.o ntext.o real.o acos.o acosh.o asin.o asinh.o atan.o atan2.o atanh.o cbrt.o ceil.o copysign.o cos.o cosh.o exp.o expm1.o fabs.o finite.o floor.o fmod.o hypot.o isnan.o kcos.o kremp2.o ksin.o ktan.o log.o log10.o log1p.o pow.o remp2.o round.o scalbn.o sin.o sinh.o sqrt.o tan.o tanh.o trunc.o cacos.o cacosh.o cacot.o cacoth.o cacsc.o cacsch.o casec.o casech.o casin.o casinh.o catan.o catanh.o ccbrt.o ccos.o ccosh.o ccot.o ccoth.o ccsc.o ccsch.o cexp.o clog.o clog10.o clogb.o cpow.o csec.o csech.o csgn.o csin.o csinh.o csqrt.o ctan.o ctanh.o prim.o alloccpy.o mem.o memcpy.o memset.o strcmp.o strlen.o untag.o dragon4.o dmath.o dprint.o evaluator.o functions.o graphlist.o lexer.o nodes.o operators.o optimizer.o parser.o statements.o token.o values.o viewer.o console.o console_amiga.o console_stdc.o filesystem_amiga.o filesystem_stdc.o graph.o graph_amiga.o graph_gtk.o language.o language_amiga.o language_stdc.o preferences.o preferences_amiga.o preferences_stdc.o proc_amiga.o program.o program_amiga.o program_stdc.o program_test.o task_amiga.o task_stdc.o window_amiga.o io.o main.o libamath.a libcamath.a libcomplex.a libamathapp.a amath + rm -Rf dist + +dist: catalogs app + mkdir dist + mkdir dist/catalog + mkdir dist/catalog/danish + mkdir dist/catalog/english + cp catalog/danish/*.catalog dist/catalog/danish/ + cp catalog/english/*.catalog dist/catalog/english/ + cp amath dist/ + cp LICENSE dist/ + cp COPYRIGHT dist/ + cp catalog/README dist/catalog/ + cp catalog/LICENSE dist/catalog/ depend: @echo Dependencies already done diff --git a/README.md b/README.md index f333c1aa..e9f582cb 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ * Mathematical constants and rounding functions * Disk functions to load, save and view content * Comprehensive and easy to use built-in help -* Optimized 68000, 68020, 68040 and FPU versions -* Freely distributable sources (BSD license) +* Full multi-lingual locale support +* Freely distributable sources Install by copying the desired amath binary to C: or any other appropriate location. diff --git a/app/localize/help.h b/app/localize/help.h index cda18fef..c59a674f 100644 --- a/app/localize/help.h +++ b/app/localize/help.h @@ -33,7 +33,7 @@ /** * @file help.h * @brief Localized help text definitions. - * + * */ #include "clib.h" @@ -70,16 +70,17 @@ static const helptextdef helptexts[] = { { 19, symsave, "The save statement saves defined variables and functions to a file in a#NEWLINE#plain text format. Saved variables and functions can be retrieved using#NEWLINE#the load statement.#NEWLINE# #SYNTAXHIGHLIGHT#Syntax: save \"worktokeep\"#NEWLINE#" }, { 20, symversion, "Show which version of amath is running.#NEWLINE#" }, { 21, symmem, "Show internal memory usage together with maximum usage.#NEWLINE#" }, - { 22, symvariable, "The variable statement shows a list of variables in memory.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: variables#NEWLINE##NORMALTEXT#optional syntax: vars#NEWLINE#" }, - { 23, symexit, "The exit statement shuts down amath.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: exit#NEWLINE#" }, - { 24, syme, "Euler's number is base of the exponential function which equals its own#NEWLINE#derivative. It is approximately equal to 2.71828.#NEWLINE##SYNTAXHIGHLIGHT#Example: ln(e)#NEWLINE#" }, - { 25, sympi, "Pi is the ratio of the circumference of a circle to its diameter. Being an#NEWLINE#irrational number, pi cannot be expressed exactly as a common fraction.#NEWLINE#The value of pi is commonly approximated as #SYNTAXHIGHLIGHT#3.14159#NORMALTEXT#.#NEWLINE#" }, - { 26, symi, "The imaginary unit is denoted and commonly referred to as i.#NEWLINE#The imaginary unit is a number, which when multiplied#NEWLINE#by itself gives -1.#NEWLINE#" }, - { 27, symins, "No help is available for the ins variable#NEWLINE#" }, - { 28, symbin, "No help is available for the binary keyword#NEWLINE" }, - { 29, symoct, "No help is available for the octal keyword#NEWLINE" }, - { 30, symdec, "No help is available for the decimal keyword#NEWLINE" }, - { 31, symhex, "No help is available for the hexadecimal keyword#NEWLINE" }, + { 22, symprefs, "There is no help for prefs statement now.#NEWLINE#" }, + { 23, symvariable, "The variable statement shows a list of variables in memory.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: variables#NEWLINE##NORMALTEXT#optional syntax: vars#NEWLINE#" }, + { 24, symexit, "The exit statement shuts down amath.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: exit#NEWLINE#" }, + { 25, syme, "Euler's number is base of the exponential function which equals its own#NEWLINE#derivative. It is approximately equal to 2.71828.#NEWLINE##SYNTAXHIGHLIGHT#Example: ln(e)#NEWLINE#" }, + { 26, sympi, "Pi is the ratio of the circumference of a circle to its diameter. Being an#NEWLINE#irrational number, pi cannot be expressed exactly as a common fraction.#NEWLINE#The value of pi is commonly approximated as #SYNTAXHIGHLIGHT#3.14159#NORMALTEXT#.#NEWLINE#" }, + { 27, symi, "The imaginary unit is denoted and commonly referred to as i.#NEWLINE#The imaginary unit is a number, which when multiplied#NEWLINE#by itself gives -1.#NEWLINE#" }, + { 28, symins, "No help is available for the ins variable#NEWLINE#" }, + { 29, symbin, "No help is available for the binary keyword#NEWLINE" }, + { 30, symoct, "No help is available for the octal keyword#NEWLINE" }, + { 31, symdec, "No help is available for the decimal keyword#NEWLINE" }, + { 32, symhex, "No help is available for the hexadecimal keyword#NEWLINE" }, { -1, symzero, EMPTYSTRING } }; diff --git a/app/localize/ident.h b/app/localize/ident.h index 56273a66..5c5b4e6b 100644 --- a/app/localize/ident.h +++ b/app/localize/ident.h @@ -33,7 +33,7 @@ /** * @file ident.h * @brief Localized help text definitions. - * + * */ #include "clib.h" diff --git a/app/localize/text.h b/app/localize/text.h index a662ea83..e6aaff8f 100644 --- a/app/localize/text.h +++ b/app/localize/text.h @@ -33,7 +33,7 @@ /** * @file text.h * @brief Localized text definitions. - * + * */ #include "clib.h" diff --git a/app/system/language_amiga.cpp b/app/system/language_amiga.cpp index 76471ac4..70ed0f8a 100644 --- a/app/system/language_amiga.cpp +++ b/app/system/language_amiga.cpp @@ -38,6 +38,10 @@ AmigaLanguage::AmigaLanguage() { + // OpenCatalog searches for files in the following locations: + // PROGDIR:Catalogs/languageName/name + // LOCALE:Catalogs/languageName/name + base = (struct LocaleBase*)OpenLibrary("locale.library", 38L); locale = OpenLocale(NULL); help = OpenCatalog(NULL, "amath-help.catalog", @@ -187,3 +191,4 @@ bool AmigaLanguage::StrIsEqualLoc(const char* s1, const char* s2) //#define CLOSEQUOTE 46 /* end of quoted block */ #endif + diff --git a/catalog/README b/catalog/README new file mode 100644 index 00000000..3ee5cf2f --- /dev/null +++ b/catalog/README @@ -0,0 +1,3 @@ +The catalog files are distrubuted under Creative Common License. +See license file for details or visit: +http://creativecommons.org/licenses/by-sa/3.0/ diff --git a/catalog/README.md b/catalog/README.md new file mode 100644 index 00000000..e69de29b diff --git a/catalog/danish/amath-help.catalog b/catalog/danish/amath-help.catalog new file mode 100644 index 0000000000000000000000000000000000000000..f801d6678bdf499e07af60159b16a475b4e88d04 GIT binary patch literal 234 zcmaKkO$x#=5QVez0=geiL0yFSi?|bsBGd|Psq1LdCbUf?sh-WfH}NEnxN+sc$D853 zH``-$AcVX&NwC|dJi@)-LtTNA)s^tp9scPoA?Z^Dr`CIA2c literal 0 HcmV?d00001 diff --git a/catalog/danish/amath-help.ct b/catalog/danish/amath-help.ct new file mode 100644 index 00000000..30926798 --- /dev/null +++ b/catalog/danish/amath-help.ct @@ -0,0 +1,130 @@ +## version $VER: help.catalog 1.60 (08.04.2015) +## language danish +## codeset 0 +; ############################################################################# +; Copyright (c) 2015, Carsten Larsen +; All rights reserved. +; +; Redistribution and use in source and binary forms, with or without +; modification, are permitted provided that the following conditions are met: +; +; * Redistributions of source code must retain the above copyright notice, this +; list of conditions and the following disclaimer. +; +; * Redistributions in binary form must reproduce the above copyright notice, +; this list of conditions and the following disclaimer in the documentation +; and/or other materials provided with the distribution. +; +; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +; ############################################################################# +; ### flexcat catalog/help.cd NEWCTFILE catalog/danish/amath-help.ct +; flexcat catalog/help.cd catalog/danish/amath-help.ct CATALOG catalog/danish/amath-help.catalog +; ############################################################################# +; Introduction table - Symbol(0) +symzero +Enter command or expression to evaluate.#NEWLINE##SYNTAXHIGHLIGHT#Example: 2+3-cos(3)#NORMALTEXT##NEWLINE# #NEWLINE#More help is available for designated topics.#NEWLINE#-------------------------------------------------#NEWLINE#functions Base functions.#NEWLINE#trigon Trigonometric functions.#NEWLINE#hyper Hyperbolic functions.#NEWLINE#complex Syntax for complex numbers.#NEWLINE#statements Available statements.#NEWLINE#operators Supported operators.#NEWLINE#-------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: help trigon#NEWLINE# +; Table of operators +symoperator +-------------------------------------------------#NEWLINE# + Mathematical addition.#NEWLINE# - Mathematical subtraction.#NEWLINE# * Mathematical multiplication.#NEWLINE# / Mathematical division.#NEWLINE# ^ Mathematical exponentiation.#NEWLINE# = Assignment of variable values.#NEWLINE# | Absolute value of number. #NEWLINE#-------------------------------------------------#NEWLINE# +; Table of functions +symfunction +-------------------------------------------------#NEWLINE#abs Absolute value of number.#NEWLINE#sgn Mathematical signum function.#NEWLINE#round Round to nearest integer number.#NEWLINE#trunc Discard fraction part of number.#NEWLINE#floor Mathematical floor function.#NEWLINE#ceil Mathematical ceiling function.#NEWLINE#sqrt Square root function (exp 1/2).#NEWLINE#cbrt Cube root function (exp 1/3).#NEWLINE#lb Binary logarithm function (base 2).#NEWLINE#ln Natural logarithm function (base e).#NEWLINE#lg Common logarithm function (base 10).#NEWLINE#-------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: round(1.55)#NORMALTEXT##NEWLINE# +; Table of trigonometric functions +symtrigon +-------------------------------------------------#NEWLINE#sin Trigonometric sine function.#NEWLINE#cos Trigonometric cosine function.#NEWLINE#tan Trigonometric tangent function.#NEWLINE#cot Trigonometric cotangent function.#NEWLINE#sec Trigonometric secant function.#NEWLINE#csc Trigonometric cosecant function.#NEWLINE#asin Inverse trigonometric sine function.#NEWLINE#acos Inverse trigonometric cosine function.#NEWLINE#atan Inverse trigonometric tangent function.#NEWLINE#acot Inverse trigonometric cotangent function.#NEWLINE#asec Inverse trigonometric secant function.#NEWLINE#acsc Inverse trigonometric cosecant function.#NEWLINE#-------------------------------------------------#NEWLINE#Inverse functions can be prefixed with ar or arc #NEWLINE#instead of a.#NEWLINE# +; Table of hyperbolic functions +symhyper +-------------------------------------------------#NEWLINE#sinh Hyperbolic sine function.#NEWLINE#cosh Hyperbolic cosine function.#NEWLINE#tanh Hyperbolic tangent function.#NEWLINE#coth Hyperbolic cotangent function.#NEWLINE#sech Hyperbolic secant function.#NEWLINE#csch Hyperbolic cosecant function. #NEWLINE#asinh Inverse hyperbolic sine function.#NEWLINE#acosh Inverse hyperbolic cosine function.#NEWLINE#atanh Inverse hyperbolic tangent function.#NEWLINE#acoth Inverse hyperbolic cotangent function.#NEWLINE#asech Inverse hyperbolic secant function.#NEWLINE#acsch Inverse hyperbolic cosecant function.#NEWLINE#-------------------------------------------------#NEWLINE#Inverse functions can be prefixed with ar or arc #NEWLINE#instead of a.#NEWLINE# +; Table of statements +symstatement +---------------------------------------------------------#NEWLINE#clear Clear console window.#NEWLINE#def Define function.#NEWLINE#delete Delete variable or function.#NEWLINE#digits Set number of significant digits.#NEWLINE#eval Evaluate arithmetic expression.#NEWLINE#execute Execute statements in a file.#NEWLINE#functions Show list of user defined functions.#NEWLINE#input Change numeral input system (experimental).#NEWLINE#help Show basic help text.#NEWLINE#output Change numeral output system (experimental).#NEWLINE#list Show content of a directory.#NEWLINE#show Show content of a file.#NEWLINE#load Load variable and functions from file.#NEWLINE#save Save variable and functions to file.#NEWLINE#variables Show list of variables.#NEWLINE#version Show version string.#NEWLINE#memory Show internal memory usage.#NEWLINE#exit Exit program.#NEWLINE#---------------------------------------------------------#NEWLINE#The def and eval statements are optional. Functions and#NEWLINE#variables statements can be shorten to funcs and vars.#NEWLINE# +; Help for complex numbers +symcomplex +Expressions with complex numbers are written using an i to denote#NEWLINE#the imaginary value. Complex numbers can seamlessly be mixed with#NEWLINE#real numbers.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: 2+3i#NEWLINE#Example: 2+3.2i*cos(-1i)+5/7#NEWLINE# +; Help for clear statement +symclear +The clear statement erases all text in the console window.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: clear#NEWLINE# +; Help for def statement +symdef +The def statement is used to define functions. When defining a function#NEWLINE#it is possible to omit the def keyword. Defined functions can be shown#NEWLINE#using the functions statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: def f(x)=2*x+3#NEWLINE#Optional syntax: f(x)=2*x+3#NEWLINE# +; Help for delete statement +symdelete +The delete statement can delete variable and functions. To delete a#NEWLINE#single variable or functions use the name of the function or variable.#NEWLINE#To delete all functions or variables specify either the variable or#NEWLINE#function keyword.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: delete f(x)#NEWLINE#Syntax: delete variables#NEWLINE# +; Help for digits statement +symdigits +The digits statement defines the displayed number of significant digits.#NEWLINE#To show current configuration use the digits statement without specifying#NEWLINE#the number.#NEWLINE# #SYNTAXHIGHLIGHT#Syntax: digits 7#NEWLINE# +; Help for eval statement +symeval +The eval statement evaluates an expression. When evaluating an expression#NEWLINE#it is possible to omit the eval keyword.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: eval 2.4*x+3.2#NEWLINE#Optional syntax: 2.4*x+3.2#NEWLINE# +; Help for execute statement +symexecute +The execute statement reads the content of a file and execute all statements.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: execute "savedfile"#NEWLINE# +; Help for input statement +syminput +The input statement either changes or shows the how numeral input is interpreted.#NEWLINE#Possible input systems are: binary, octal, decimal and hexadecimal. Default is#NEWLINE#decimal. To use positional systems with other bases specify the base number.#NEWLINE#Numeral output system can be modified using the output statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: input hexadecimal#NEWLINE#Syntax: input 4#NEWLINE# +; Help for help statement +symhelp +The help statement can be used to display help about topics and statements.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: help variables#NEWLINE# +; Help for output statement +symoutput +The output statement either changes or shows the how numeral output is shown.#NEWLINE#Possible output systems are: binary, octal, decimal and hexadecimal. Default#NEWLINE#is decimal. To use positional systems with other bases specify the base number.#NEWLINE#Numeral input system can be modified using the input statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: output octal#NEWLINE# +; Help for list statement +symlist +No description is available for the list statement.#NEWLINE# +; Help for show statement +symshow +The show statement displays the content of a file.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: show "filetosee"#NEWLINE# +; Help for load statement +symload +The load statement retrieves a set of defined variables and functions from#NEWLINE#a file. Variables and functions can be saved using the save statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: load "savedwork"#NEWLINE# +; Help for save statement +symsave +The save statement saves defined variables and functions to a file in a#NEWLINE#plain text format. Saved variables and functions can be retrieved using#NEWLINE#the load statement.#NEWLINE# #SYNTAXHIGHLIGHT#Syntax: save "worktokeep"#NEWLINE# +; Help for version statement +symversion +Viser hvilken version af amath der kører.#NEWLINE# +; Help for memory statement +symmem +Viser internt hukommelsesforbrug.#NEWLINE# +; Help for prefs statement +symprefs +There is no help for prefs statement now.#NEWLINE# +; Help for variable statement +symvariable +The variable statement shows a list of variables in memory.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: variables#NEWLINE##NORMALTEXT#optional syntax: vars#NEWLINE# +; Help for exit statement +symexit +The exit statement shuts down amath.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: exit#NEWLINE# +; Help for constant epsilon +syme +Euler's number is base of the exponential function which equals its own#NEWLINE#derivative. It is approximately equal to 2.71828.#NEWLINE##SYNTAXHIGHLIGHT#Example: ln(e)#NEWLINE# +; Help for constant pi +sympi +Pi is the ratio of the circumference of a circle to its diameter. Being an#NEWLINE#irrational number, pi cannot be expressed exactly as a common fraction.#NEWLINE#The value of pi is commonly approximated as #SYNTAXHIGHLIGHT#3.14159#NORMALTEXT#.#NEWLINE# +; Help for imaginary unit +symi +The imaginary unit is denoted and commonly referred to as i.#NEWLINE#The imaginary unit is a number, which when multiplied#NEWLINE#by itself gives -1.#NEWLINE# +; Help for ins variable +symins +No help is available for the ins variable#NEWLINE# +; Help for binary keyword +symbin +No help is available for the binary keyword#NEWLINE +; Help for octal keyword +symoct +No help is available for the octal keyword#NEWLINE +; Help for decimal keyword +symdec +No help is available for the decimal keyword#NEWLINE +; Help for hexadecimal keyword +symhex +No help is available for the hexadecimal keyword#NEWLINE diff --git a/catalog/danish/amath-ident.catalog b/catalog/danish/amath-ident.catalog new file mode 100644 index 0000000000000000000000000000000000000000..e303feb6e57576728374f4186f6d64c095333363 GIT binary patch literal 4730 zcmb`}*-pYh6oBDz#eLt`Q9yC41pyHkLa-1M#H2KOO{A7eZ3*Hl@glsK(+h9C`X_TT znas&|E+#oS{v1Q0vft*#yS%aK)$k~9LO~~1ToNdV2ft+2) z*@K*Y$dQn906B+{6AooWAB#aw9CD5z=NNJlkfWw~*Le3rJ+(XU-ddx*P(_}sq zPKV|)8(I1;`ze$Cn8{~z>nns*3e_FZ(=8@V@0gIHUNUe`u`axHqpri_&mq*;stBP_ zF-qSJP1~wfwlz&R3Uy;&-_f*c>04#5TEd?gRIF8M^=w|#_KZShuc&Lf<(fehFl{?7 zWj<|(r!+7xyT-aR<5#gw9kosI zDdylqKF;3SH4}GCXx@ z)3LifALo`-gaZ%exEm`NG!HM+d1@HW3m-wZ8uu6QR^&sX@)X5xA=#?%F?WyCzLX}i ze}M>^Cs?o3d712j%!1X@Yzy&Ye7ToA{!_5;NBx@U5-OdJ;4~Qak(+GPXVB#?(zQoD zl@dbt94kNSPghm)FN~pSsWPFlT}CnINw;JU+RVSS9d1YYo}inDZt3%=SpnKyRb~Q- z83(%@KN~WELL$ycmx_pxm*5u<+;GrVUDiaRM~6tFufVM)IIAZmzNISfLkahingtbi zLW7wOR3Ls5R54(!B-oh!DD;$Z@DyudUwu9$9nW%j+K@ak#$*ZHV%b#RlN1&U;}3!G B-ZlUL literal 0 HcmV?d00001 diff --git a/catalog/danish/amath-text.ct b/catalog/danish/amath-text.ct new file mode 100644 index 00000000..1e06dcbd --- /dev/null +++ b/catalog/danish/amath-text.ct @@ -0,0 +1,99 @@ +## version $VER: help.catalog 1.60 (08.04.2015) +## language danish +## codeset 0 +; ############################################################################# +; Copyright (c) 2015, Carsten Larsen +; All rights reserved. +; +; Redistribution and use in source and binary forms, with or without +; modification, are permitted provided that the following conditions are met: +; +; * Redistributions of source code must retain the above copyright notice, this +; list of conditions and the following disclaimer. +; +; * Redistributions in binary form must reproduce the above copyright notice, +; this list of conditions and the following disclaimer in the documentation +; and/or other materials provided with the distribution. +; +; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +; ############################################################################# +; ### flexcat catalog/text.cd NEWCTFILE catalog/danish/amath-text.ct +; flexcat catalog/text.cd catalog/danish/amath-text.ct CATALOG catalog/danish/amath-text.catalog +; ############################################################################# +INTROMSG +#NORMALTEXT##BOLD##STARTMSG##NEWLINE##NORMALTEXT##COLOR02##ITALICS#Skriv help for at få vist mere information.#NEWLINE# +TXTLISTDIRHEADER +Type Navn#NEWLINE#-----------------------------------------------#NEWLINE# +TXTLISTDIRTFILE +[fil] +TXTLISTDIRTDIR +[mappe] +TXTLISTDIRTUNKNOWN +[ukendt] +TXTMEMBLOCKS +Allokerede blokke: #SPACE# +TXTMEMSIZE +Hukommelsesforbrug:#SPACE# +TXTMEMMAXSIZE +Højeste forbrug: #SPACE# +HELPNOHELP +Der er ingen hjælp tilgængelig om det emne.#NEWLINE# +HELPSYNTAX +Syntaktiske fejl:#SPACE# +HELPUERROR +Uventet fejl:#SPACE# +HELPVARNDEF +Variablen er ikke defineret:#SPACE# +HELPFUNNDEF +Funktionen er ikke defineret:#SPACE# +HELPFUNRDEF +Funktionen kan ikke omdefineres:#SPACE# +HELPPNUMERA +Basen skal være mellem 2 og 32:#SPACE# +HELPPDIGITS +Antal decimaler skal være mellem 0 og 15:#SPACE# +HELPINPUSHOW +Talsystemet når computeren læser er#SPACE# +HELPOUTPSHOW +Talsystemet når computeren skriver er#SPACE# +HELPINPUSETT +Talsystemet ved læsning ændret til#SPACE# +HELPOUTPSETT +Talsystemet ved skrivning ændret til#SPACE# +HELPDIGISETT +Antal decimaler ændret til#SPACE# +HELPDIGISHOW +Antal decimaler der vises er#SPACE# +HELPVARSNDEF +Der er ikke defineret nogle variabler.#NEWLINE# +HELPFUNCNDEF +Der er ikke defineret nogle funktioner.#NEWLINE# +HELPLOADSUCC +Variabler og funktioner indlæst fra fil.#NEWLINE# +HELPSAVESUCC +Variabler og funktioner gemt til fil.#NEWLINE# +HELPSAVEFAIL +Kan ikke gemme til fil.#NEWLINE# +HELPSAVENOTH +Der er ikke noget og gemme.#NEWLINE# +HELPPREFLOAD +Præferencer indlæst.#NEWLINE# +HELPPREFNOLO +Præferencer kunne ikke indlæses.#NEWLINE# +HELPPREFSAVE +Præferencer blev gemt.#NEWLINE# +HELPPREFNOSA +Præferencer kunne ikke gemmes.#NEWLINE# +MSGNODIR +Mappen kan ikke åbnes:#SPACE# +MSGNOFILE +Filen kan ikke åbnes.#NEWLINE# diff --git a/catalog/english/amath-help.catalog b/catalog/english/amath-help.catalog new file mode 100644 index 0000000000000000000000000000000000000000..6b09986d26a58d7b35f06ea8837a6817046290e3 GIT binary patch literal 122 zcmZ?s5AtPTU?_49@o{$xa}5HrRaJnrl|n{pPJv!>Vo737e!7C8o|%DyhJl5ifr*}x pfuX4;1A~vFpF2=BM`~VrPG)figLANJ2#~J;#CSn)NKi0H0RSwQ6gvO_ literal 0 HcmV?d00001 diff --git a/catalog/english/amath-help.ct b/catalog/english/amath-help.ct new file mode 100644 index 00000000..be1473a1 --- /dev/null +++ b/catalog/english/amath-help.ct @@ -0,0 +1,130 @@ +## version $VER: help.catalog 1.60 (08.04.2015) +## language english +## codeset 0 +; ############################################################################# +; Copyright (c) 2015, Carsten Larsen +; All rights reserved. +; +; Redistribution and use in source and binary forms, with or without +; modification, are permitted provided that the following conditions are met: +; +; * Redistributions of source code must retain the above copyright notice, this +; list of conditions and the following disclaimer. +; +; * Redistributions in binary form must reproduce the above copyright notice, +; this list of conditions and the following disclaimer in the documentation +; and/or other materials provided with the distribution. +; +; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +; ############################################################################# +; ### flexcat catalog/help.cd NEWCTFILE catalog/english/amath-help.ct +; flexcat catalog/help.cd catalog/english/amath-help.ct CATALOG catalog/english/amath-help.catalog +; ############################################################################# +; Introduction table - Symbol(0) +symzero +Enter command or expression to evaluate.#NEWLINE##SYNTAXHIGHLIGHT#Example: 2+3-cos(3)#NORMALTEXT##NEWLINE# #NEWLINE#More help is available for designated topics.#NEWLINE#-------------------------------------------------#NEWLINE#functions Base functions.#NEWLINE#trigon Trigonometric functions.#NEWLINE#hyper Hyperbolic functions.#NEWLINE#complex Syntax for complex numbers.#NEWLINE#statements Available statements.#NEWLINE#operators Supported operators.#NEWLINE#-------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: help trigon#NEWLINE# +; Table of operators +symoperator +-------------------------------------------------#NEWLINE# + Mathematical addition.#NEWLINE# - Mathematical subtraction.#NEWLINE# * Mathematical multiplication.#NEWLINE# / Mathematical division.#NEWLINE# ^ Mathematical exponentiation.#NEWLINE# = Assignment of variable values.#NEWLINE# | Absolute value of number. #NEWLINE#-------------------------------------------------#NEWLINE# +; Table of functions +symfunction +-------------------------------------------------#NEWLINE#abs Absolute value of number.#NEWLINE#sgn Mathematical signum function.#NEWLINE#round Round to nearest integer number.#NEWLINE#trunc Discard fraction part of number.#NEWLINE#floor Mathematical floor function.#NEWLINE#ceil Mathematical ceiling function.#NEWLINE#sqrt Square root function (exp 1/2).#NEWLINE#cbrt Cube root function (exp 1/3).#NEWLINE#lb Binary logarithm function (base 2).#NEWLINE#ln Natural logarithm function (base e).#NEWLINE#lg Common logarithm function (base 10).#NEWLINE#-------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: round(1.55)#NORMALTEXT##NEWLINE# +; Table of trigonometric functions +symtrigon +-------------------------------------------------#NEWLINE#sin Trigonometric sine function.#NEWLINE#cos Trigonometric cosine function.#NEWLINE#tan Trigonometric tangent function.#NEWLINE#cot Trigonometric cotangent function.#NEWLINE#sec Trigonometric secant function.#NEWLINE#csc Trigonometric cosecant function.#NEWLINE#asin Inverse trigonometric sine function.#NEWLINE#acos Inverse trigonometric cosine function.#NEWLINE#atan Inverse trigonometric tangent function.#NEWLINE#acot Inverse trigonometric cotangent function.#NEWLINE#asec Inverse trigonometric secant function.#NEWLINE#acsc Inverse trigonometric cosecant function.#NEWLINE#-------------------------------------------------#NEWLINE#Inverse functions can be prefixed with ar or arc #NEWLINE#instead of a.#NEWLINE# +; Table of hyperbolic functions +symhyper +-------------------------------------------------#NEWLINE#sinh Hyperbolic sine function.#NEWLINE#cosh Hyperbolic cosine function.#NEWLINE#tanh Hyperbolic tangent function.#NEWLINE#coth Hyperbolic cotangent function.#NEWLINE#sech Hyperbolic secant function.#NEWLINE#csch Hyperbolic cosecant function. #NEWLINE#asinh Inverse hyperbolic sine function.#NEWLINE#acosh Inverse hyperbolic cosine function.#NEWLINE#atanh Inverse hyperbolic tangent function.#NEWLINE#acoth Inverse hyperbolic cotangent function.#NEWLINE#asech Inverse hyperbolic secant function.#NEWLINE#acsch Inverse hyperbolic cosecant function.#NEWLINE#-------------------------------------------------#NEWLINE#Inverse functions can be prefixed with ar or arc #NEWLINE#instead of a.#NEWLINE# +; Table of statements +symstatement +---------------------------------------------------------#NEWLINE#clear Clear console window.#NEWLINE#def Define function.#NEWLINE#delete Delete variable or function.#NEWLINE#digits Set number of significant digits.#NEWLINE#eval Evaluate arithmetic expression.#NEWLINE#execute Execute statements in a file.#NEWLINE#functions Show list of user defined functions.#NEWLINE#input Change numeral input system (experimental).#NEWLINE#help Show basic help text.#NEWLINE#output Change numeral output system (experimental).#NEWLINE#list Show content of a directory.#NEWLINE#show Show content of a file.#NEWLINE#load Load variable and functions from file.#NEWLINE#save Save variable and functions to file.#NEWLINE#variables Show list of variables.#NEWLINE#version Show version string.#NEWLINE#memory Show internal memory usage.#NEWLINE#exit Exit program.#NEWLINE#---------------------------------------------------------#NEWLINE#The def and eval statements are optional. Functions and#NEWLINE#variables statements can be shorten to funcs and vars.#NEWLINE# +; Help for complex numbers +symcomplex +Expressions with complex numbers are written using an i to denote#NEWLINE#the imaginary value. Complex numbers can seamlessly be mixed with#NEWLINE#real numbers.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: 2+3i#NEWLINE#Example: 2+3.2i*cos(-1i)+5/7#NEWLINE# +; Help for clear statement +symclear +The clear statement erases all text in the console window.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: clear#NEWLINE# +; Help for def statement +symdef +The def statement is used to define functions. When defining a function#NEWLINE#it is possible to omit the def keyword. Defined functions can be shown#NEWLINE#using the functions statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: def f(x)=2*x+3#NEWLINE#Optional syntax: f(x)=2*x+3#NEWLINE# +; Help for delete statement +symdelete +The delete statement can delete variable and functions. To delete a#NEWLINE#single variable or functions use the name of the function or variable.#NEWLINE#To delete all functions or variables specify either the variable or#NEWLINE#function keyword.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: delete f(x)#NEWLINE#Syntax: delete variables#NEWLINE# +; Help for digits statement +symdigits +The digits statement defines the displayed number of significant digits.#NEWLINE#To show current configuration use the digits statement without specifying#NEWLINE#the number.#NEWLINE# #SYNTAXHIGHLIGHT#Syntax: digits 7#NEWLINE# +; Help for eval statement +symeval +The eval statement evaluates an expression. When evaluating an expression#NEWLINE#it is possible to omit the eval keyword.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: eval 2.4*x+3.2#NEWLINE#Optional syntax: 2.4*x+3.2#NEWLINE# +; Help for execute statement +symexecute +The execute statement reads the content of a file and execute all statements.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: execute "savedfile"#NEWLINE# +; Help for input statement +syminput +The input statement either changes or shows the how numeral input is interpreted.#NEWLINE#Possible input systems are: binary, octal, decimal and hexadecimal. Default is#NEWLINE#decimal. To use positional systems with other bases specify the base number.#NEWLINE#Numeral output system can be modified using the output statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: input hexadecimal#NEWLINE#Syntax: input 4#NEWLINE# +; Help for help statement +symhelp +The help statement can be used to display help about topics and statements.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: help variables#NEWLINE# +; Help for output statement +symoutput +The output statement either changes or shows the how numeral output is shown.#NEWLINE#Possible output systems are: binary, octal, decimal and hexadecimal. Default#NEWLINE#is decimal. To use positional systems with other bases specify the base number.#NEWLINE#Numeral input system can be modified using the input statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: output octal#NEWLINE# +; Help for list statement +symlist +No description is available for the list statement.#NEWLINE# +; Help for show statement +symshow +The show statement displays the content of a file.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: show "filetosee"#NEWLINE# +; Help for load statement +symload +The load statement retrieves a set of defined variables and functions from#NEWLINE#a file. Variables and functions can be saved using the save statement.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: load "savedwork"#NEWLINE# +; Help for save statement +symsave +The save statement saves defined variables and functions to a file in a#NEWLINE#plain text format. Saved variables and functions can be retrieved using#NEWLINE#the load statement.#NEWLINE# #SYNTAXHIGHLIGHT#Syntax: save "worktokeep"#NEWLINE# +; Help for version statement +symversion +Show which version of amath is running.#NEWLINE# +; Help for memory statement +symmem +Show internal memory usage together with maximum usage.#NEWLINE# +; Help for prefs statement +symprefs +There is no help for prefs statement now.#NEWLINE# +; Help for variable statement +symvariable +The variable statement shows a list of variables in memory.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: variables#NEWLINE##NORMALTEXT#optional syntax: vars#NEWLINE# +; Help for exit statement +symexit +The exit statement shuts down amath.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: exit#NEWLINE# +; Help for constant epsilon +syme +Euler's number is base of the exponential function which equals its own#NEWLINE#derivative. It is approximately equal to 2.71828.#NEWLINE##SYNTAXHIGHLIGHT#Example: ln(e)#NEWLINE# +; Help for constant pi +sympi +Pi is the ratio of the circumference of a circle to its diameter. Being an#NEWLINE#irrational number, pi cannot be expressed exactly as a common fraction.#NEWLINE#The value of pi is commonly approximated as #SYNTAXHIGHLIGHT#3.14159#NORMALTEXT#.#NEWLINE# +; Help for imaginary unit +symi +The imaginary unit is denoted and commonly referred to as i.#NEWLINE#The imaginary unit is a number, which when multiplied#NEWLINE#by itself gives -1.#NEWLINE# +; Help for ins variable +symins +No help is available for the ins variable#NEWLINE# +; Help for binary keyword +symbin +No help is available for the binary keyword#NEWLINE +; Help for octal keyword +symoct +No help is available for the octal keyword#NEWLINE +; Help for decimal keyword +symdec +No help is available for the decimal keyword#NEWLINE +; Help for hexadecimal keyword +symhex +No help is available for the hexadecimal keyword#NEWLINE diff --git a/catalog/english/amath-ident.catalog b/catalog/english/amath-ident.catalog new file mode 100644 index 0000000000000000000000000000000000000000..6b09986d26a58d7b35f06ea8837a6817046290e3 GIT binary patch literal 122 zcmZ?s5AtPTU?_49@o{$xa}5HrRaJnrl|n{pPJv!>Vo737e!7C8o|%DyhJl5ifr*}x pfuX4;1A~vFpF2=BM`~VrPG)figLANJ2#~J;#CSn)NKi0H0RSwQ6gvO_ literal 0 HcmV?d00001 diff --git a/catalog/english/amath-ident.ct b/catalog/english/amath-ident.ct new file mode 100644 index 00000000..a043e907 --- /dev/null +++ b/catalog/english/amath-ident.ct @@ -0,0 +1,139 @@ +## version $VER: help.catalog 1.60 (08.04.2015) +## language english +## codeset 0 +; ############################################################################# +; This file is published under Creative Common License. See: +; http://creativecommons.org/licenses/by-sa/3.0/ +; Parts of the content came from wikipedia.org +; ############################################################################# +; ### flexcat catalog/ident.cd NEWCTFILE catalog/english/amath-ident.ct +; flexcat catalog/ident.cd catalog/english/amath-ident.ct CATALOG catalog/english/amath-ident.catalog +; ############################################################################# +abs +The absolute value (or modulus) |x| of a real number x is the#NEWLINE#non-negative value of x without regard to its sign.#NEWLINE##SYNTAXHIGHLIGHT#Example: abs(-237.25)#NORMALTEXT##NEWLINE# +sgn +The sign function or signum function is used to extract the sign of a number.#NEWLINE#Thus sgn(x) is 1 when x is positive, and sgn(x) is -1 when x is negative.#NEWLINE##SYNTAXHIGHLIGHT#Example: sgn(-23.94)#NORMALTEXT##NEWLINE# +round +Rounding a numerical value means replacing it by another value that is#NEWLINE#approximately equal but has a shorter, simpler, or more explicit#NEWLINE#representation. Amath rounds a number to the nearest integer.#NEWLINE# +trunc +Truncation is limiting the number of digits right of the decimal point,#NEWLINE#by discarding the least significant ones. Amath truncates a number to#NEWLINE#the nearest integer.#NEWLINE##SYNTAXHIGHLIGHT#Example: trunc(-23.94#NEWLINE# +floor +No help is available for this function.#NEWLINE# +ceil +No help is available for this function.#NEWLINE# +sqr +No help is available for this function.#NEWLINE# +sqrt +No help is available for this function.#NEWLINE# +cbr +No help is available for this function.#NEWLINE# +cbrt +No help is available for this function.#NEWLINE# +lb +No help is available for this function.#NEWLINE# +log2 +No help is available for this function.#NEWLINE# +ln +No help is available for this function.#NEWLINE# +lg +No help is available for this function.#NEWLINE# +log +No help is available for this function.#NEWLINE# +log10 +No help is available for this function.#NEWLINE# +sin +Sine is the trigonometric function that for an acute angle is the#NEWLINE#ratio between the leg opposite the angle when it is considered#NEWLINE#part of a right triangle and the hypotenuse.#NEWLINE# +cos +Cosine is the trigonometric function that for an acute angle is the#NEWLINE#ratio between the leg adjacent to the angle when it is considered#NEWLINE#part of a right triangle and the hypotenuse#NEWLINE# +tan +Tangent is one of the trigonometry functions. In a right triangle,#NEWLINE#the tangent of an angle is the opposite side over the adjacent side.#NEWLINE# +cot +No help is available for this function.#NEWLINE# +sec +No help is available for this function.#NEWLINE# +csc +No help is available for this function.#NEWLINE# +asin +No help is available for this function.#NEWLINE# +acos +No help is available for this function.#NEWLINE# +atan +No help is available for this function.#NEWLINE# +acot +No help is available for this function.#NEWLINE# +asec +No help is available for this function.#NEWLINE# +acsc +No help is available for this function.#NEWLINE# +arsin +No help is available for this function.#NEWLINE# +arcos +No help is available for this function.#NEWLINE# +artan +No help is available for this function.#NEWLINE# +arcot +No help is available for this function.#NEWLINE# +arsec +No help is available for this function.#NEWLINE# +arcsc +No help is available for this function.#NEWLINE# +arcsin +No help is available for this function.#NEWLINE# +arccos +No help is available for this function.#NEWLINE# +arctan +No help is available for this function.#NEWLINE# +arccot +No help is available for this function.#NEWLINE# +arcsec +No help is available for this function.#NEWLINE# +arccsc +No help is available for this function.#NEWLINE# +sinh +No help is available for this function.#NEWLINE# +cosh +No help is available for this function.#NEWLINE# +tanh +No help is available for this function.#NEWLINE# +coth +No help is available for this function.#NEWLINE# +sech +No help is available for this function.#NEWLINE# +csch +No help is available for this function.#NEWLINE# +asinh +No help is available for this function.#NEWLINE# +acosh +No help is available for this function.#NEWLINE# +atanh +No help is available for this function.#NEWLINE# +acoth +No help is available for this function.#NEWLINE# +asech +No help is available for this function.#NEWLINE# +acsch +No help is available for this function.#NEWLINE# +arsinh +No help is available for this function.#NEWLINE# +arcosh +No help is available for this function.#NEWLINE# +artanh +No help is available for this function.#NEWLINE# +arcoth +No help is available for this function.#NEWLINE# +arsech +No help is available for this function.#NEWLINE# +arcsch +No help is available for this function.#NEWLINE# +arcsinh +No help is available for this function.#NEWLINE# +arccosh +No help is available for this function.#NEWLINE# +arctanh +No help is available for this function.#NEWLINE# +arccoth +No help is available for this function.#NEWLINE# +arcsech +No help is available for this function.#NEWLINE# +arccsch +No help is available for this function.#NEWLINE# diff --git a/catalog/english/amath-text.catalog b/catalog/english/amath-text.catalog new file mode 100644 index 0000000000000000000000000000000000000000..6b09986d26a58d7b35f06ea8837a6817046290e3 GIT binary patch literal 122 zcmZ?s5AtPTU?_49@o{$xa}5HrRaJnrl|n{pPJv!>Vo737e!7C8o|%DyhJl5ifr*}x pfuX4;1A~vFpF2=BM`~VrPG)figLANJ2#~J;#CSn)NKi0H0RSwQ6gvO_ literal 0 HcmV?d00001 diff --git a/catalog/english/amath-text.ct b/catalog/english/amath-text.ct new file mode 100644 index 00000000..97de353d --- /dev/null +++ b/catalog/english/amath-text.ct @@ -0,0 +1,99 @@ +## version $VER: help.catalog 1.60 (08.04.2015) +## language english +## codeset 0 +; ############################################################################# +; Copyright (c) 2015, Carsten Larsen +; All rights reserved. +; +; Redistribution and use in source and binary forms, with or without +; modification, are permitted provided that the following conditions are met: +; +; * Redistributions of source code must retain the above copyright notice, this +; list of conditions and the following disclaimer. +; +; * Redistributions in binary form must reproduce the above copyright notice, +; this list of conditions and the following disclaimer in the documentation +; and/or other materials provided with the distribution. +; +; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +; ############################################################################# +; ### flexcat catalog/text.cd NEWCTFILE catalog/english/amath-text.ct +; flexcat catalog/text.cd catalog/english/amath-text.ct CATALOG catalog/english/amath-text.catalog +; ############################################################################# +INTROMSG +#NORMALTEXT##BOLD##STARTMSG##NEWLINE##NORMALTEXT##COLOR02##ITALICS#Type help to show info.#NEWLINE# +TXTLISTDIRHEADER +Type Name#NEWLINE#-----------------------------------------------#NEWLINE# +TXTLISTDIRTFILE +[file] +TXTLISTDIRTDIR +[dir] +TXTLISTDIRTUNKNOWN +[unknown] +TXTMEMBLOCKS +Allocated blocks:#SPACE# +TXTMEMSIZE +Memory usage: #SPACE# +TXTMEMMAXSIZE +Maximum usage: #SPACE# +HELPNOHELP +No help is available for this topic.#NEWLINE# +HELPSYNTAX +Syntax error:#SPACE# +HELPUERROR +Unexpected error:#SPACE# +HELPVARNDEF +Variable is not defined:#SPACE# +HELPFUNNDEF +Function is not defined:#SPACE# +HELPFUNRDEF +Function cannot be redefined:#SPACE# +HELPPNUMERA +Base value must be between 2 and 32:#SPACE# +HELPPDIGITS +Number of digist must be between 0 and 15:#SPACE# +HELPINPUSHOW +Numeral input system is#SPACE# +HELPOUTPSHOW +Numeral output system is#SPACE# +HELPINPUSETT +Input changed to#SPACE# +HELPOUTPSETT +Output changed to#SPACE# +HELPDIGISETT +Number of digits changed to#SPACE# +HELPDIGISHOW +Number of digits shown are#SPACE# +HELPVARSNDEF +No variables are defined.#NEWLINE# +HELPFUNCNDEF +No functions are defined.#NEWLINE# +HELPLOADSUCC +Variable and functions loaded from file.#NEWLINE# +HELPSAVESUCC +Variable and functions saved to file.#NEWLINE# +HELPSAVEFAIL +Cannot save to file.#NEWLINE# +HELPSAVENOTH +Nothing to save.#NEWLINE# +HELPPREFLOAD +Preferences loaded.#NEWLINE# +HELPPREFNOLO +Preferences could not be loaded.#NEWLINE# +HELPPREFSAVE +Preferences saved to disk.#NEWLINE# +HELPPREFNOSA +Preferences could not be saved.#NEWLINE# +MSGNODIR +Could not open directory:#SPACE# +MSGNOFILE +Cannot open file.#NEWLINE# diff --git a/catalog/help.cd b/catalog/help.cd index a1ee8d09..2d643fd8 100644 --- a/catalog/help.cd +++ b/catalog/help.cd @@ -94,6 +94,9 @@ Show which version of amath is running.#NEWLINE# ; Help for memory statement symmem (/40/) Show internal memory usage together with maximum usage.#NEWLINE# +; Help for prefs statement +symprefs (/40/) +There is no help for prefs statement now.#NEWLINE# ; Help for variable statement symvariable (/40/) The variable statement shows a list of variables in memory.#NEWLINE##SYNTAXHIGHLIGHT#Syntax: variables#NEWLINE##NORMALTEXT#optional syntax: vars#NEWLINE# diff --git a/catalog/help.sd b/catalog/help.sd index 28adc6f7..9a196ebd 100644 --- a/catalog/help.sd +++ b/catalog/help.sd @@ -26,7 +26,7 @@ * * Generated with FlexCat. For more information, see: * http://sourceforge.net/projects/flexcat/ - * + * */ #ifndef AMATH_LOCALIZE_HELP_H diff --git a/catalog/ident.sd b/catalog/ident.sd index 1fb340b7..c7f21ef1 100644 --- a/catalog/ident.sd +++ b/catalog/ident.sd @@ -26,7 +26,7 @@ * * Generated with FlexCat. For more information, see: * http://sourceforge.net/projects/flexcat/ - * + * */ #ifndef AMATH_LOCALIZE_IDENT_HELP_H diff --git a/catalog/text.sd b/catalog/text.sd index ec3b8094..24e99f65 100644 --- a/catalog/text.sd +++ b/catalog/text.sd @@ -26,7 +26,7 @@ * * Generated with FlexCat. For more information, see: * http://sourceforge.net/projects/flexcat/ - * + * */ #ifndef AMATH_LOCALIZE_TEXT_H diff --git a/configure b/configure index fb536dc3..4f1cf77e 100755 --- a/configure +++ b/configure @@ -232,7 +232,7 @@ if $VALID ; then nff="-fno-strict-aliasing -ffloat-store " ( - echo "# Portable Makefile generated by configure" + echo "# Makefile generated by configure" echo echo "all: libs app" echo @@ -241,6 +241,7 @@ if $VALID ; then echo "RANLIB = ${CROSSCOMPILE}ranlib" echo "CFLAGS = ${ARCFLAG}$options ${CROSSCOMPILEFLAGS}-I. -Wall -Werror" echo "LFLAGS = $gcclib -lamathapp${outext} -lcamath${outext} -lcomplex${outext} -lamath${outext}" + echo "FLXCAT = flexcat" echo i="" @@ -311,10 +312,16 @@ if $VALID ; then echo "libs: libamath libcomplex libcamath libamathapp" echo echo "catalogs: " - echo " flexcat catalog/help.cd app/localize/help.h=catalog/help.sd" - echo " flexcat catalog/ident-clean.cd app/localize/ident.h=catalog/ident.sd" - echo " flexcat catalog/text.cd app/localize/text.h=catalog/text.sd" - echo + echo " \${FLXCAT} catalog/help.cd app/localize/help.h=catalog/help.sd" + echo " \${FLXCAT} catalog/ident-clean.cd app/localize/ident.h=catalog/ident.sd" + echo " \${FLXCAT} catalog/text.cd app/localize/text.h=catalog/text.sd" + echo " \${FLXCAT} catalog/help.cd catalog/danish/amath-help.ct CATALOG catalog/danish/amath-help.catalog" + echo " \${FLXCAT} catalog/ident.cd catalog/danish/amath-ident.ct CATALOG catalog/danish/amath-ident.catalog" + echo " \${FLXCAT} catalog/text.cd catalog/danish/amath-text.ct CATALOG catalog/danish/amath-text.catalog" + echo " \${FLXCAT} catalog/help.cd catalog/english/amath-help.ct CATALOG catalog/english/amath-help.catalog" + echo " \${FLXCAT} catalog/ident.cd catalog/english/amath-ident.ct CATALOG catalog/english/amath-ident.catalog" + echo " \${FLXCAT} catalog/text.cd catalog/english/amath-text.ct CATALOG catalog/english/amath-text.catalog" + echo echo "libamathapp: ${libapp}" echo " \${AR} rcs libamathapp${outext}.a ${libapp}" echo " \${RANLIB} libamathapp${outext}.a" @@ -336,6 +343,20 @@ if $VALID ; then echo echo "clean:" echo " rm -f ${libapp} ${libamath} ${libcomplex} ${libc} ${l} libamath${outext}.a libcamath${outext}.a libcomplex${outext}.a libamathapp${outext}.a amath${outext}" + echo " rm -Rf dist" + echo + echo "dist: catalogs app" + echo " mkdir dist" + echo " mkdir dist/catalog" + echo " mkdir dist/catalog/danish" + echo " mkdir dist/catalog/english" + echo " cp catalog/danish/*.catalog dist/catalog/danish/" + echo " cp catalog/english/*.catalog dist/catalog/english/" + echo " cp amath dist/" + echo " cp LICENSE dist/" + echo " cp COPYRIGHT dist/" + echo " cp catalog/README dist/catalog/" + echo " cp catalog/LICENSE dist/catalog/" echo echo "depend:" echo " @echo Dependencies already done"