-/xgi-bin/ReadMe.htm Last update: 5 February 2001. SELECTED ITEMS FROM THE OCEAN MACHINERY ARRANGEMENTS ==================================================== INPUT DATA TRANSFER: -------------------- The FORM data are transfered along following channels: CHARACTER EE*200 An alphanumeric control character string. CHARACTER TXS(500)*200 Texts serving different purposes. CHARACTER TA(2)*2000 Particularly for long text-strings. CHARACTER RX (500)*20 Floating point values XX as text or algebraic expressions. DIMENSION XX (500,1) Numerical floating point values. DIMENSION MARK (200) Numerical integer array. Escape string may enable alphanumeric information in all channels. Escape string is defined in EE(101:105). Default *999*. Array dimensions may change from program to program. NAME and VALUE in FORMs are identified as follows: (ijk are intgers) (subroutine get_form_data in LibGnu.f) Name="EEijk" The data value string is placed in array EE(ijk:ijk+L-1) EE is the alphanumeric control array, usual dimension EE*200. | Old: Name="EFijk" Same as for EEijk, but only first word of the value | is placed in EE(ijk:ijk). Name="TXijk" Value is alphanumeric information and is placed in TXS(ijk)(1:L). L is length of value string. Name="ARi" Value is alphanumeric information and is placed in AR(i)(1:L). L is length of value string. Name="XXijk" Floating point values. Deduced from the RX-strings in subroutine arrange_data in LibGnu.f Value is normally converted to floating point value placed in XX(ijk,1). Leading escape EE(101:105), default *999* may modify this. Name="MKijk" Value is normally converted to floating point value placed in XX(ijk,1). Modified by leading escape EE(101:105), default *999*. FILE NUMBERS: ------------- 14 iwcnt continuation 16 iwfil indata from script. (/wf/w0700.dat) 18 iwmag magazine file, raw-text file, phone, text-area etc. 19 iwfon Pocket phone web-file. 20 iwout Output from tec-program. 25 iwlog Log-file 28 iwvox Vox-bank. 30 irEls Call_Els_Web.dat 32 ilist CallingList.dat ( 34 iloc LocEquation.dat) (Brukt før: 14 iwcnt Counterlist, public. 20 iwdump Local data dump - not opened in the web-version.) EE STRING DATA ARRANGEMENT: --------------------------- EE carries control and format information. Usual dimension EE*200. ------------------------------------------------------------------------ Field: Max: Name: Value example Explanation: or default: ------------------------------------------------------------------------ EE(001:009) 9 EE001 *1140# Post number of FORMS. EE(011:019) 9 EE011 User User's Identification. EE(021:029) 9 EE021 *ijklm*# Calling reference from Form. EE(031:035) 9 EE031 HTML Output format: HTML, Plain, Text, Talk, Phone, Dump, WAPs, WAPm EE(036:039) 4 EE036 A000 Phone computer status - Active input number. @Ex036039 EE(040:040) 1 EE040 1, 2, 3(def) Dialog level in Wessel Counter. EE(041:044) 4 EE041 '(4A1)' NDG,-IEMIN,IEMAX,IDEC Global number format. EE(046:049) 4 EE046 '(4A1)' NDG,-IEMIN,IEMAX,IDEC Local number format. EE(050:050) 1 EE050 Option (Extreme value dist. type) 1 - Exponential general gamma. 2 - Double exponential. 3 - Generalised gamma. EE(051:060) 10 EE00i 2 Section included in report. EE(061:070) 10 EE00j 1 Main data only in section. EE(071:071) 1 EE071 'n' "Not a Number" in calculator code. EE(072:079) ? ? EE(077:079) 3 LL Variable XX(LL,1) Index of short-time memory (to restore in Phone). EE(080:080) 80 EE080 Number of lines between line spaces in spreadsheet. Maximum numbers are 25. MDEC-number series is used. EE(081:089) 9 EE081 '007008009' Repeated calculations. EE(081:083) IRX Variable XX(IRX,1) contains number to be varied. EE(084:086) IDX Variable XX(IDX,1) contains step length. EE(087:089) INX Variable XX(INX,1) contains number of repetitions. (See SETREP and PRETECH in LIBWEB). EE(090:090) NSPR Number of spreadsheet variables, modulo 64. EE(091:091) NXX Number of columns in XX, modulo64. EE(092:093) KD Line in DD with looped variable, modulo 64. EE(094:094) = AIR(KD:KD) Status of line of looped variable. EE(095:096) IVAR The XX-index of the looped variable, modulo 64. EE(101:105) Change to EE(91:95) 5 Escape code string to enable alphabetic information. xxxxxxxxxxx EE(101:119) Input variables required. xxxxxxxxxxx ikke brukt. xxxxxxxxxxx EE(121:139) Input variables received (so far). xx ikke brukt. EE(150:150) ' ' Voice indicator. ' ' for standard voices. EE(151:154) '3C94' Standard voice numbers in Talk reports. EE(161:164) '1111' Standard moods. Special for the Complex Calculator: ----------------------------------- EE(040:040) 1 EE040 1, 2, 3(def) Dialog level in Wessel Counter. EE(041:041) Number of digits. EE(042:042) Exponent on. EE(043:043) Integer on. EE(051:051) = 1 EE051 1 Memory Field Display ON/OFF. EE(052:052) = 1 EE052 1 Dialog box ON. EE(053:053) = 1 EE053 1 Code Chart Scroll ON/OFF. ------------------------------------------------------------------------ TXS TEXT ARRAY and TA Text area arrray: --------------------------------------- Common symbols are TXS. Most usual dimension is TXS(99)*200. ------------------------------------------------------------------------ Use in Calling routine (program t0100.f): TXS(6) Error Report. TXS(7) Calling box command. TXS(8) Calling from service catalogue. TXS(9) Calling from text-book content. Use in phone computer / editor: TA(1) Textarea prepared for output. TA(2) Primary, uncoded text-area. With codes inserted -> TA(1). TXS(2) Phone key identification string '1234567890*#DCABP'. TXS(3) Command or communication field / Current text line. TXS(4) Copy of Previous TXS(3). TXS(5) Echo - spoken response in editor (and calculator?) TXS(6) Error message? TXS(7) Successive keystrokes code / Call Braille code. TXS(8) Keystroke value. TXS(9) Text editor string (Calling code). ? ? ? TXS(10) Copy of previous text editor string ? ? ? Use in the calculators (program t0200.f and program t0300.f): TXS(1) Day-time string. TXS(3) User calculator input string. TXS(4) Commmand from operation Selecter (f.ex.: add [*#1]). TXS(5) Current display value. TXS(6) Error Report. Use in other technical programs and routines: TXS(1) Day-time string. TXS(2) Remote IPADRESS. TXS(3) Initial user report line. TXS(4) Final user report line. TXS(5) Report extent ("Text and results", "All Results", "Main Results") TXS(6) Error Report. TXS(7) Call-box command. TXS(8) Calling from service catalogue. TXS(9) Calling from text-book content. TXS(10) Title of service. TXS(11)-(18) may be used for technical data in the technical programs. TXS(15) Beaufort sea-state in t1310.f. TXS(16) Wave growth message in t1310-phone. TXS(19) First line in spreadsheet (independent variable). TXS(21) First spreadsheet variable listed in a form. - - - TXS(48) Last spreadsheet variable listed in a form. TXS(50) Adress to previous page in the hierarchy. TXS(50-59) Primary URL-adresses of the Calling system transferred with the form. TXS(60-69) Adresses to the player fields of the phones. TXS(70) Keypad Braille code: ISO: '7418520*963#' CCITT:'147258*0369#' TXS(71) URL to Background picture. TXS(72) Acknowledge of Background picture. TXS(81) Text edito control string. TXS(82) Copy of last string. ------------------------------------------------------------------------ TA(1) Textarea prepared for output, with substitutes for codes. TA(2) Primary, uncoded text-area. With codes inserted -> TA(1). ------------------------------------------------------------------------ Braille editor operation, TXS(9): TXS(9)(01:03) Decimal value of last completed Braille code. (04:06) Escapes: 154(SCI) or 155(CSI) (decimal code). (07:09) 132(IND) or - (decimal code) (10:12) First control sequence number (integer). (13:15) Second control sequence number (integer). (16:18) Current line number (integer). (19:21) Current location in this line (integer). (22:24) Selected area start line number (integer). (25:27) " " " character number (integer). (28:30) Selected area end line number (integer). (31:33) " " " character number (integer). (34:36) Last deleted character (decimal code). (41: ) Last deleted word (text string). XX(i,j) FLOATING FORMAT NUMERIC ARRAY: -------------------------------------- Standard applications: ------------------------------------------------------------------------ XX(7,1) Variable no: i in XX to be looped. (loop over j) XX(8,1) Value increment. XX(9,1) Number of loops N. (total number of values is N+1. Those may be redefined in EE(081:098). ------------------------------------------------------------------------ MARK (i) INTEGER NUMERIC ARRAY: ------------------------------- Applications in the STICK-routines: ------------------------------------------------------------------------ MARK (1) Number of input numbers + 1. (max 20) MARK(2)-MARK(MARK(1)) The XX-numbers of input variables. MARK(21-48) Variables corresponding to TXS(21-48), spreadsheet variables. MARK (51-60) Start lines of text result document segments. ( ? ? ? MARK (60) Number of document segments. (NSECTS) ? ? ? ) MARK (61-70) Last lines of text result document segments. MARK (71-72) X-Y value of image. MARK (101-119) Input variables represented by the XX-index. MARK (120) Number of input variables (NINPS) MARK (121-139) Requested phone text, line in doc for the input variables. Those are not so far applied, because phone texts are given as separate elements. ------------------------------------------------------------------------ NUMBER AND TEXT EMBEDDING FORMAT: --------------------------------- Text and number strings may be filled into a document (DOX) line according to a special format field in the text. Escape character is @. Escape character is neutralised by preceding apostroph "@. Format of a format field is @Xuijk @Xuij or @Xui for XX-numbers, followed by a space. @Tuijk @Tuij or @Tui for TXS text strings. @Zijkl for internal format setting. @Au00i to include text area A(i). @EijkIJK substitute EE(ijk:IJK). Third character "u" in @Xuij and @Tuijk, indicate adjustment thus: Character from the strings 'uvwxyz' indicate packing of text or number in the text line, thus: u = Packed on left side. Space on right side. v = Left character on @-position. Space on right side. w = Space on left side. Packed on right side. x = Left character on @-position. Packed on right side. y = Packed on both sides. z = Space on each side. INDEX('abcdefghijklmnopqrst','@') positions are reserved for the number. First character is positioned at @. +- signs moved one step left. INDEX('ABCDEFGHIJKLMNOPQRST','@') positions are reserved for number. Rightmost character is positioned on next right position. In the internal format setting, @Zijkl, the variables are: i = NDG, That is number of significant digits in numerics. j =-IEMIN, Numbers less than 10**-IEMIN are written with exponent. k = IEMAX, Numbers greater than 10**+IEMAX are written with exponent. l = IDEC =0 Integers are written WITHOUT decimal point. =1 Integers are written WITH decimal point. values are entered into EE(046:049). This is mainly implemented in Subroutine SIFF. TAGGING THE TALK FILES: ----------------------- Last column may have a continuation mark. Slash / is usual. Two first columns in the talk-files are devoted to markup, thus: First column indicates priority 1 or 2. (2 is the least important) Second column indicates heading. Third column blank gives preformatted text. Blank lines: Last line not preformatted, gives <p>. ------------------------------------------ Priority/countinuation: 1 2 1/ 2/ ------------------------------------------ Document, (Bild) d D b B Page, (circulate) g G c C Equation, formula e E f F Section, (Zection) s S z Z Paragraph, quote p P q Q Passage (blank) a A ------------------------------------------ The following rules yield for listing of results in HTML-format: Document: d D b B gives <H2> heading and is followed by unformatted text. Section: s S z Z gives <H3> heading and is followed by preformatted text. Paragraph: p P q Q gives a bold preformatted heading, formatting after is equal to formatting before. HYPER-LINK ROOTS: ----------------- Hyperlinks or URLs consist of a Root and a Local name. Roots are defined in the <roots> segment in "callinglist.dat". The URLs referred to in the machinery, the roots are most commonly substituted by a $ followed by two characters such as %% %$ or $$. First root is, however, a "miss"-file located when identification fails. Present Roots are: http://www.math.uio.no/~ocean/miss.html http://www.math.uio.no/~ocean/ substituted by %% http://www.dnv.no/ocean/ substituted by %$ Elsevier URL substituted by $$ INPUT FIELD FUNCTIONS: ---------------------- In the numerical input fields, there are certain operations possible, which accept one or two numbers and one mathematical operation. Those are: *#1 add Adds two numbers. *#2 sub Subtracts last number from the first. *#3 mul Multiplies two numbers. *#4 div Divides first number through the last. *#5 pow Raises first number to the power of the last. *#7 inv Inverts the number 1/x. *#8 sqrt root Square root of the number. *#9 squa Squares the number x**2. *#*031 exp Natural exponent of e**x *#*032 ln Natural log of the number. *#*034 log Briggean log base 10. *#*010 deg2rad radians Change degrees to radians. *#*019 rad2deg degrees Change radians to degrees. - - knots Change m/s to knots. m/s Change knots to m/s. - - nautic Changes km to nautic miles. km Changes nautic miles to km. WAVE FILE ECHOES: ----------------- Found at: w:\ocean\backs\abc\charijk.wav Most ASCII character echoes are available. In addition: char979.wav "New value". char980.wav "Restored value". char981.wav "New variable". char982.wav "Deleted". char983.wav "Position lost". char984.wav "Keyboard typing". char985.wav "Braille typing". char986.wav "Key letters". char987.wav "Spoken input". char988.wav "Compiler". char989.wav "Welcome". char990.wav "Received". char991.wav "Calculated". char992.wav "Text input". char995.wav "Hit any key". char997.wav "Sorry". char998.wav "Good bye". char999.wav "Hello". SITE CODE - ELEMENTS and KINDS: -------------------------------- Standard code for site location is *ijNo*LK# where: i Chapter number. j Article number. No Number: For textbook: N=Section. N=8 for Appendix. N=9 for References. o=Paragraph. For equation, table or figure: No=number in that article. L Element: L = 0 or blank: Textbook section L = 1 - - Same L = 2 Page L = 3 Figure L = 4 Equation L = 5 Table. K Kind of file: K = 0 or blank: Site in textbook. K = 1 Talk file. K = 2 Separate html-file. K = 3 Gif-image. K = 6 Postscript. K = 7 TROFF-file. K = 8 eqn-code for equations. =========================================================================