#] #] ********************* #] "$d_Qndfs"'symbols flatliner derivations/symbols zProcess notes.txt' www.BillHowell.ca 15Jul2018 initial for tracking of symbol updates # view this file in a text editor, with [constant width font, tab = 3 spaces], no line-wrap ******************************* 14Jul2018 I need a "pattern" correction for all symbols Try experimentally - use bash sed "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh" >> seems to work Now do combined translation : see ">>>>>> MANUAL processing of symDiff files (the [hard,error-prone] part)" in file "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols instructions - extractions and translations.txt" +---+ MANUAL processing of d_temp/symDiff files edit & activate in '/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh' : trans_BackGrnd "Howell - Background math for Lucas Universal Force, Chapter 4 " "180714 06h50m48s" qnial> lq_quips qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4 ' '180714 15h14m' +---+ Starting after last run, for details refer to "symbols instructions - extractions and translations.txt" : 1. manual edits of "d_temp/symDiff bads [*].txt" -> move symbols into appropriate symLists 2. run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols Lucas post-trans [bads, good], sort-archive-move.sh" 3. delete all d_temp files 4. edit & activate in '/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh' : trans_BackGrnd "Howell - Background math for Lucas Universal Force, Chapter 4 " "180714 06h50m48s" 4. $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh" 5. qnial> lq_quips 6. qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4 ' '180714 17h05m' +---+ Starting after last run, for details refer to "symbols instructions - extractions and translations.txt" : 1. manual edits of "d_temp/symDiff bads [*].txt" -> move symbols into appropriate symLists special problem : sin & cos terms not properly closed 2. run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols Lucas post-trans [bads, good], sort-archive-move.sh" 3. delete all d_temp files 4. edit & activate in '/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh' : trans_BackGrnd "Howell - Background math for Lucas Universal Force, Chapter 4 " "180714 17h06m54s" 4. $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh" 5. qnial> lq_quips 6. qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4 ' '180714 17h05m' +---+ Starting after last run, for details refer to "symbols instructions - extractions and translations.txt" : 1. manual edits of "d_temp/symDiff bads [*].txt" -> move symbols into appropriate symLists special problem : sin & cos terms not properly closed 2. run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols Lucas post-trans [bads, good], sort-archive-move.sh" 3. delete all d_temp files 4. edit & activate in '/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh' : trans_BackGrnd "Howell - Background math for Lucas Universal Force, Chapter 4 " "180714 17h06m54s" 4. $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh" 5. qnial> lq_quips 6. qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4 ' '180714 18h29m' +---+ Starting after last run, for details refer to "symbols instructions - extractions and translations.txt" : 1. manual edits of "d_temp/symDiff bads [*].txt" -> move symbols into appropriate symLists special problem : sin & cos terms not properly closed 2. run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols Lucas post-trans [bads, good], sort-archive-move.sh" 3. delete all d_temp files 4. edit & activate in '/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh' : trans_BackGrnd "Howell - Background math for Lucas Universal Force, Chapter 4 " "180714 18h30m36s" 4. $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh" 5. qnial> lq_quips 6. qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4 ' '180714 18h42m' +---+ Starting after last run, for details refer to "symbols instructions - extractions and translations.txt" : 1. manual edits of "d_temp/symDiff bads [*].txt" -> move symbols into appropriate symLists special problem : sin & cos terms not properly closed 2. run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols Lucas post-trans [bads, good], sort-archive-move.sh" 3. delete all d_temp files 4. [edit,SAVE,activate] in '/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh' : trans_BackGrnd "Howell - Background math for Lucas Universal Force, Chapter 4 " "180714 18h43m36s" 4. $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh" 5. qnial> lq_quips 6. qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4 ' '180714 18h54m' +---+ There is a BIG problem seemingly caused by my edits not being retained - probably becuase I forget to [update,SAVE] changes to '/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh'??!!! BUT - it seems to be more of a problem than that. Why aren't changes holding??? +---+ Starting after last run, for details refer to "symbols instructions - extractions and translations.txt" : 1. manual edits of "d_temp/symDiff bads [*].txt" -> move symbols into appropriate symLists special problem : sin & cos terms not properly closed 2. run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols Lucas post-trans [bads, good], sort-archive-move.sh" 3. delete all d_temp files 4. [edit,SAVE,activate] in '/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh' : trans_BackGrnd "Howell - Background math for Lucas Universal Force, Chapter 4 " "180714 18h43m36s" 4. $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate regexpr.sh" 5. qnial> lq_quips 6. qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4 ' '180714 18h54m' +---+ ************************ 15Jul2018 create symsProcess_Lucas in 'symbols translate.ndf' remove error-prone manual execution of several tasks problem with : host link 'rm "' d_QNial_temp '*' ; >> Finally resollved (for the nth time!! - see "/media/bill/PROJECTS/System_maintenance/Linux/rm notes.txt" Step 1 options, ONE of : qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' qnial> symTranslate_file_Lucas 'Howell - math of Lucas Universal Force' Step 3 options, ONE of : qnial> symsProcess_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' qnial> symsProcess_Lucas 'Howell - math of Lucas Universal Force' +---+ Starting after last run, for details refer to "symbols instructions - extractions and translations.txt" : 0. If needed -> qnial to launch, lq_quips to load Lucas system 1. qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' 2. manual edits of "d_temp/symDiff bads [*].txt" -> move symbols into appropriate symLists a) test for "volumes" of problems in d_remp/f_derivatives : edit-run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols grep symbol.sh" b) high-volume changes : edit-run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols grep-sed.sh" b) [small-volume,trickey] changes : search-replace in "$d_temp""f_derivations" (NOT in d_Lucas!!) 3. qnial> symsProcess_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' this re-runs symTranslate_file_Lucas 4. back to step#2 +---+ ************************************ 16Jul2018 Something wrong with "symList english.txt" and probably others - filtering of good symbols isn't always happening, so good symbols end up in "symList bads [*].txt" Why? - maybe differences in "bash,QNial" sort orders foibles search??? (not likely) in"symbols translate.ndf" : tranList_read_Lucas IS OP bads_acronym { LOCAL bads bads_msgList ; NONLOCAL d_Lucas d_QNial_mine d_QNial_temp ; % ; IF flag_break THEN BREAK ; ENDIF ; bads := readfile_list (link d_Lucas 'symList bads ' bads_acronym '.txt') ; bads_msgList := (gage shape bads) reshape (solitary link 'tranList_updates_Lucas: ' timestamp_YYMMDD_HMS) ; trans_old := link (execute (link 'trans_old_' bads_acronym)) bads ; trans_new := link (execute (link 'trans_new_' bads_acronym)) bads ; trans_msg := link (execute (link 'trans_msg_' bads_acronym)) bads_msgList ; % ; %sortup&cull based on trans_old, sortup_cull_listCollection is in "setup.ndf" ; trans_old trans_new trans_msg := sortup_cull_listCollection (trans_old trans_new trans_msg) ; n_rows := gage shape trans_old ; fot := open (link d_QNial_temp 'tranList new ' bads_acronym '.txt') "w ; FOR i WITH tell n_rows DO writefile fot (link ' ' `' trans_old@i `' ' ' `' trans_new@i `' ' ' `' trans_msg@i `' ) ; ENDFOR ; close fot ; } in "setup.ndf" : sortup_cull_listCollection IS OP arrayOfLists { LOCAL A addressListCulled addressListSorted culledLists sortedLists ; % ; A := first arrayOfLists ; %sort by "up" (lexicographic comparison - alphabetic for strings) based on first List ; addressListSorted := gradeup A ; sortedLists := addressListSorted EACHRIGHT choose arrayOfLists ; % ; %cull the lists [raw,trn] - I need a list of indexes that are the "first occurence of items" in (first arrayOfLists) ; A := first sortedLists ; addressListCulled := cull (A EACHLEFT find A) ; addressListCulled EACHRIGHT choose sortedLists } Test the two - take a list of strings from "symDiff bads HFLN.txt" -> "/media/bill/ramdisk/sort-test bads.txt" FIRST First For From Given - similar sorted list from "symList english.txt" -> "/media/bill/ramdisk/sort-test standard.txt" Finite first First FIRST following for For force Force forces form formal format formula formulation frame frames from From front frozen function Galilean Gausss generali geometry given Given From symbols_compare_Lucas in "symbols extract.ndf" host link 'diff "' pn_Lucas '" "' pn_english '" | grep "< " | sed "s/< //" >"' p_temp1 '" ' ; which becomes : $ diff "/media/bill/ramdisk/sort-test bads.txt" "/media/bill/ramdisk/sort-test standard.txt" | grep "< " | sed "s/< //" FIRST >> Ah Hah! That WAS the problem, as I thought To rectify, use bash AFTER QNial's "sortup_cull_listCollection", on "d_QNial_temp 'tranList new ' bads_acronym '.txt' $ sort "/media/bill/ramdisk/sort-test bads.txt" >"/media/bill/ramdisk/sort-test bads bashed.txt" $ diff "/media/bill/ramdisk/sort-test bads bashed.txt" "/media/bill/ramdisk/sort-test standard.txt" | grep "< " | sed "s/< //" FIRST >> Oops, same problem!! I got it backwards as $ sort "/media/bill/ramdisk/sort-test standard.txt" >"/media/bill/ramdisk/sort-test standard bashed.txt" $ diff "/media/bill/ramdisk/sort-test bads.txt" "/media/bill/ramdisk/sort-test standard bashed.txt" | grep "< " | sed "s/< //" >> Ah Hah!! That worked Change-to in" symbols translate.ndf" : tranList_read_Lucas IS OP bads_acronym { LOCAL bads bads_msgList ; NONLOCAL d_Lucas d_QNial_mine d_QNial_temp ; % ; IF flag_break THEN BREAK ; ENDIF ; bads := readfile_list (link d_Lucas 'symList bads ' bads_acronym '.txt') ; bads_msgList := (gage shape bads) reshape (solitary link 'tranList_updates_Lucas: ' timestamp_YYMMDD_HMS) ; trans_old := link (execute (link 'trans_old_' bads_acronym)) bads ; trans_new := link (execute (link 'trans_new_' bads_acronym)) bads ; trans_msg := link (execute (link 'trans_msg_' bads_acronym)) bads_msgList ; % ; %sortup&cull based on trans_old, sortup_cull_listCollection is in "setup.ndf" ; trans_old trans_new trans_msg := sortup_cull_listCollection (trans_old trans_new trans_msg) ; n_rows := gage shape trans_old ; fot := open (link d_QNial_temp 'tranList new ' bads_acronym '.txt') "w ; FOR i WITH tell n_rows DO writefile fot (link ' ' `' trans_old@i `' ' ' `' trans_new@i `' ' ' `' trans_msg@i `' ) ; ENDFOR ; close fot ; } >> YIKES!! That isn't even relevant! - It's for building a list of symTrans rows... "symbols Lucas post-manual [bads, good], sort-archive-move.sh" for goods & bads sort --unique "$d_Luca$1"".txt" >"$d_temp$1"".txt" >> versus symExtract_file_Lucas host link 'sort --unique "' pname_HFLN '" >"' pname_temp '" ' ; WORRY ABOUT this some other time. For now, just continue with the correction cycle using +---+ Starting after last run, for details refer to "symbols instructions - extractions and translations.txt" : 0. launch qnial, lq_quips to load Lucas system (if not already done) For EACH of [HFLN,Lucas] : 1. qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' 2. manual edits of "d_temp/symDiff bads [HFLN,Lucas].txt" -> move symbols into appropriate symLists a) edit-run $ bash "d_NDFs/symbols grep symbol.sh" This shows the "volumes" of problems in d_temp/f_derivatives, and makes it easier to follow symbols during next step... b) edit-run $ bash "d_NDFS/symbols classify manual.sh" "[HFLN,Lucas]" Manually classify symbols in "d_temp/symDiff bads [HFLN,Lucas].txt" c) manually EDIT the "correct" (2nd column) symbols!!!! d) edit-run "symbols sort-archive-move, post-manual-class.sh" to copy list of symbols from "d_temp/classed [english,eqn#,{[HFLN,Lucas] [good,ignore,later,transl]}].txt" to "d_Luca/[{symList [good,ignore,later,transl]},{tranList [HFLN,Lucas]}].ndf" 3. back to step#1 +---+ No longer used - did this to solve a BIG set of errors with sin/cos extra right parens `) b) edit-run $ bash "d_NDFs/symbols grep-sed.sh" high-volume changes d) [small-volume,trickey] manual changes : look at : "d_temp/sorted HFLN temp later.txt" add to : "d_Luca/Use "tranList [HFLN,Lucas].ndf" actually better to use "symbols sort manual.sh" (step c) qnial> symsProcess_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' symsProcess_Lucas is in "d_Luca/symbols translate.ndf" this runs : "symbols sort-archive-move, post-manual-class.sh" rm d_temp files "symbols compliance POI.sh" and re-runs : symTranslate_file_Lucas symbols translate file_test log.txt symbols log.txt *********************************** 23Jul2018 Cleanup unused code from "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate.ndf" : # differer "tranList bads old HFLN.txt" "symList bads HFLN.txt" "tranList bads new HFLN.txt" differer "tranList bads old Lucas.txt" "symList bads Lucas.txt" "tranList bads new Lucas.txt" diff "$d_temp$1" "$d_Lucas$2" | grep "< " | sed "s/< //" >"$d_temp$3" symTranslate_file pname_inn pname_trn ; %24May2018 disactivate this now, until I get the whole system working better ; % 4. "d_NDFs/symbols sort unique Lucas.sh" - for updates [symDiff,symList] files need to add script - backup current files with YYMMDD_HMS in name, copy-over of files etc 5. prepare lists of OLD "trans_old_HFLN" qnial> EACH write trans_old_HFLN copy&paste screen list to "/media/bill/ramdisk/tranList bads old HFLN.txt" qnial> EACH write trans_old_Lucas_bads copy&paste screen list to "/media/bill/ramdisk/tranList bads old Lucas.txt" 5. run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols bad - old versus new.sh" to generate lists of missing "bads" 5. QNial filter "d_Lucas/symList bads [*].txt" using "d_Lucas/symList bads [*].txt" to get list of additions to make 5. Using "d_Lucas/symList bads [*].txt", make [additions,deletions,corrections] to : tranList HLFN bads.ndf tranList Lucas bads.ndf tranList HLFN to Lucas.ndf tranList Lucas to HLFN.ndf # symsProcess_Lucas IS - [add,delete,correct] symbols AFTER [symTranslate_file_Lucas,manual bads] # www.BillHowell.ca 06Jul2018 initial # fileread_list IS OP pname -> from fileops.ndf # This MUST be used immediately AFTER : # symTranslate_file_Lucas which uses "symbols file counts Lucas.sh" # manual edits of "d_temp/symDiff bads [*].txt" -> move good symbols into appropriate symLists good # It then reruns symTranslate_file_Lucas # repeat # manual edits of "d_temp/symDiff bads [*].txt" -> move good symbols into appropriate symLists good # Iterate this until done changes needed at this point symsProcess_Lucas IS OP fbase_derivatives { NONLOCAL d_Lucas d_QNial_mine d_QNial_temp ; % ; host link 'bash "' d_QNial_mine '"symbols sort-archive-move, post-manual-class.sh" ' ; host link 'find "' d_QNial_temp '" -type f | tr \\n \\0 | xargs -0 rm ' ; host link 'bash "' d_QNial_mine '"symbols compliance POI.sh" ' ; lq_quips ; symTranslate_file_Lucas fbase_derivatives ; } # examples : qnial> symsProcess_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' qnial> symsProcess_Lucas 'Howell - math of Lucas Universal Force' # tranList_updates_Lucas IS - full [extraction,translation] of [syms,exprs] in Lucas f_derivation file # www.BillHowell.ca 06Jul2018 initial # fileread_list IS OP pname -> from fileops.ndf # # "new" symbols were picked out by "symbols_compare_Lucas" in "symTranslate_file_Lucas" -> symDiffs ; # symDiffs were manually sorted into "symList [bads,good] [HFLN,Lucas].txt", leaving those files empty ; # so now the (d_QNial_temp "symList [bads,good] [HFLN,Lucas].txt") files ARE the updated lists # prepare ALL for inclusion in "tranList [*].txt" files, but only some will be used!! (manual selection?) tranList_updates_Lucas IS { LOCAL bads_HFLN fname_symExtr p_bash p_log_test pname_bads_old_HFLN pname_bads_new_HFLN pname_bads_dif_HFLN pname_bads_old_Lucas pname_bads_new_Lucas pname_bads_dif_Lucas ; NONLOCAL d_Lucas d_QNial_mine d_QNial_temp p_log_test_fNum trans_old_HFLN trans_new_HFLN trans_msg_HFLN ; % ; %choose full (l) or simple (o) output ; %select "stdout" or logfile output ; %p_log_test := 'stdout' ; p_log_test := link d_QNial_mine 'symbols log.txt' ; %07Jul2018 WRONG! - should close p_log_test_fNum if open, then open with correct pname!! ; IF (p_log_test = 'stdout') THEN p_log_test_fNum := 1 ; ELSE p_log_test_fNum := open p_log_test "a ; ENDIF ; t_stamp := timestamp_YYMMDD_HMS ; % ; EACH write_testStr ' ' '+---------------+' (link 'tranList_updates_Lucas, ' t_stamp) ; write_testStr 'Updates tranLists with "empty" replacement expressions that must be completed' ; % ; % read new "bads" list, append to [old,new] and append dated null comments to [msg], output to files ; EACH tranList_read_Lucas 'HFLN' 'HFLN_to_Lucas' 'Lucas' 'Lucas_to_HFLN' ; % ; write_testStr timestamp ; IF (p_log_test_fNum ~= 1) THEN close p_log_test_fNum ; ENDIF ; p_log_test_fNum := 1 ; } >>>>>> Update tranLists At times, it will be helpful to get rid of old useless stuff in the lists. to delete ALL content in the files "d_Lucas/... /symList [bads,good] [*].txt" This will make it easier to condense "d_Lucas/... /tranList [*] [bads,].txt" by 1. QNial operator "tranList_updates_Lucas" - in "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols translate.ndf" 2. Using "d_Lucas/symList bads [*].txt", make [additions,deletions,corrections] to : tranList HLFN bads.txt tranList Lucas bads.txt tranList HLFN to Lucas.txt tranList Lucas to HLFN.txt 6. Go back to "PROCESS RESULTS" step #1 - iterate until corrections settled ************************************ 24Jul2018 Run through "MANUAL processing of "symDiff bads" and "tranList" files" sequence First - 3. MANUALLY EDIT the "correct" (2nd column) symbols!!!!************ Create an operator to identify line# of [weird,orphan] symbols see symbol_find in "symbols extract.ndf" symbol_find IS OP sym_in p_name { LOCAL i symList str ; fin := open p_name "r ; i := 1 ; WHILE (~= ??eof (str := readfile fin)) DO symList := symExtract_string str ; IF (OR (sym_in EACHRIGHT = symList) THEN write link 'line : ' (string i) '; ' str ; ENDIF ; i := i + 1 ; ENDWHILE ; close fin ; } qnial> symbol_find '0ocs' (link d_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4.txt') >> nothing!! >> Test on known : qnial> symbol_find 'Rpcs(POIp)' (link d_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4.txt') >> nothing!! so something is wrong with operator symbol_find Re-try : qnial> symbol_find 'Rpcs(POIp)' (link d_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4.txt') ... line : 2082; = { Rpcs(POIp)^2*[cos(Aθpc(POIo(t)))^2 + sin(Aθpc(POIp))^2 ] ... >> OK, now it works qnial> symbol_find '0ocs' (link d_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4.txt') >> nothing!! so remove symbol from tranList HFLN.txt qnial> symbol_find '0pcs' (link d_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4.txt') >> nothing!! so remove symbol from tranList HFLN.txt qnial> symbol_find '0pcs' (link d_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4.txt') +-----+ Revamped : # use f_outr = 1 for stdout symbol_find IS OP sym_in p_sorc f_outr { LOCAL i symList str ; fin := open p_sorc "r ; i := 1 ; WHILE (~= ??eof (str := readfile fin)) DO symList := symExtract_string str ; IF (OR (sym_in EACHRIGHT = symList)) THEN writefile f_outr (link 'line : ' (string i) '; ' str) ; ENDIF ; i := i + 1 ; ENDWHILE ; close fin ; } qnial> symbol_find 'Rpcs(POIp)' (link d_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4.txt') 1 >> Works OK!! +-----+ Write an operator that will do ALL "classed HFLN translate.txt" old symbols and write to file 24Jul2018 see "fileops.ndf" - general operators [readfile_list,readfile_table,writefile_table] New : symbol_finds IS OP p_tranList p_sorc p_outr { LOCAL symList sym trans_cols trans_HFLN trans_rows_HFLN trans_old_HFLN trans_new_HFLN trans_msg_HFLN ; f_outr := open p_outr "w ; % ; trans_HFLN_old := first readfile_table p_tranList ; FOR sym WITH trans_old_HFLN DO f_outr EACH writefile '' (link 'sym = ' sym) ; symbol_find sym p_sorc f_outr ; ENDFOR ; % ; close f_outr ; } qnial> symbol_finds (link d_QNial_temp 'classed HFLN translate.txt') (link d_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4.txt') (link d_QNial_temp 'symbol_finds temp.txt') >> Works great!! 24Jul2018 13:50 Removed "classed HFLN translate.txt" lines for symbols with NO output in "symbol_finds temp.txt" : '0ocs' '0ocs' 'added 180720 14h11m' '0pcs' '0pcs' 'added 180720 14h11m' 'AngleBetween{planeofVonv&Rpcv(POIo(t),t))' 'AngleBetween{planeofVonv&Rpcv(POIo(t),t))' 'added 180720 14h11m' 'BT(POIo(t),t)' 'BT(POIo(t),t)' 'added 180720 14h11m' 'cosA' 'cos(Aθoc)' 'added 180720 14h11m' 'f_BARNES(Vonv(particle),Aθpd(POIo(t),t))' 'f_BARNES(Vonv(particle),Aθpd(POIo(t),t))' 'added 180720 14h11m' '0ocs(POIo)' '0ocs(POIo' 'added 180720 14h11m' 'PI2och' 'AφPI2och' 'added 180720 14h11m' 'PI2ocs' 'PI2ocs' 'added 180720 14h11m' 'PI2ods' 'PI2ods' 'added 180720 14h11m' 'PI2pch' 'PI2pch' 'added 180720 14h11m' 'PI2pcs' 'PI2pcs' 'added 180720 14h11m' 'PI2pds' 'PI2pds' 'added 180720 14h11m' 'sin(Aθpc(POIp)' 'sin(Aθpc(POIp))' 'added 180720 14h11m' 'oc(POI)' 'oc(POI)' 'added 180720 14h01m' Removed "classed HFLN translate.txt" lines which have been "commented out" in f_derivation : 'BItds' 'BItds' 'added 180720 14h11m' 'BItds(notused)' 'BItds(notused)' 'added 180720 14h11m' For the remining symbols of "d_temp/classed HFLN translate.txt", details on how they were treated are provided in the file "symbol_finds temp.txt". >> This is a GREAT tool!! ***************************** 25Jul2018 now to test "symbols sort-archive-move, post-manual-class.sh" I amalgamated "[sym,tran]List [HFLN_to_Lucas,Lucas_to_HFLN].txt" into "[sym,tran]List [Lucas,HFLN].txt" >>"symbols sort-archive-move, post-manual-class.sh" seems to work great Now - following changes to NDFs, re-start QNial +-----+ qnial> lq_quips loading /media/bill/HOWELL_BASE/Qnial/quips.ndf ... >>> loading start : symbols translate.ndf ?undefined identifier: WITH TELL TRANSEXPR_ROWS_HFLN_TO_LUCAS <***> DO IF ( ?undefined identifier: XPRLIST_TRN := XPRS_EXTRACTTRANSLATE <***> STR ; SYMLIST_RAW ?undefined identifier: STRNEW := SYMSEXTRACTTRANSLATE <***> STR ; ENDIF ?undefined identifier: LINE_IN := SYMTRANSLATE_STRING <***> STR ; ?undefined identifier: % ; <<< loading ended : symbols translate.ndf errors found: 5 >>> loading start : symbols translate- tests.ndf ?undefined identifier: T_RESULT := XPRS_EXTRACTTRANSLATE <***> T_INPUT ; TEST_COMMENT ?undefined identifier: T_RESULT := SYMTRANSLATE_STRING <***> T_INPUT ; TEST_COMMENT ?undefined identifier: SYMTRANS_TEST ; XPRS_EXTRACTTRANSLATE_TEST <***> ; SYMEXPR_SUB_TEST ; ?undefined identifier: SYMEXTRACT_ALLTEST ; SYMTRANSLATE_ALLTEST <***> ; <<< loading ended : symbols translate- tests.ndf errors found: 4 +-----+ >> OK, only a few problems? Check for : qnial> trans_old_HFLN ?no_value qnial> lq_quips >> OK works Check for : qnial> trans_old_HFLN ?no_value >> same problem "tranList HFLN.ndf" Change : trans_old_HFLN trans_new_HFLN trans_msg_HFLN := link readfile_table (link d_Lucas 'tranList HFLN.txt') ; transExpr_old_HFLN transExpr_new_HFLN transExpr_msg_HFLN := link readfile_table (link d_Lucas 'tranExpr HFLN.txt') ; To : trans_old_HFLN trans_new_HFLN trans_msg_HFLN := readfile_table (link d_Lucas 'tranList HFLN.txt') ; transExpr_old_HFLN transExpr_new_HFLN transExpr_msg_HFLN := readfile_table (link d_Lucas 'tranExpr HFLN.txt') ; Changed to : xprs_ExtractTranslate IS OP str { LOCAL i xprList_raw xprList_trn ; NONLOCAL symTrans_lineType transExpr_old_Lucas_bads transExpr_new_Lucas_bads transExpr_old_HFLN_bads transExpr_new_HFLN_bads ; % ; xprList_raw xprList_trn := null null ; IF (= `$ symTrans_lineType) THEN FOR i WITH tell gage shape transExpr_old_Lucas_bads DO IF (in_string transExpr_old_Lucas_bads@i str) THEN xprList_raw := link xprList_raw (solitary transExpr_old_Lucas_bads@i) ; xprList_trn := link xprList_trn (solitary transExpr_new_Lucas_bads@i) ; ENDIF ; ENDFOR ; ELSEIF (= `% symTrans_lineType) THEN FOR i WITH tell gage shape transExpr_old_HFLN_bads DO IF (in_string transExpr_old_HFLN_bads@i str) THEN xprList_raw := link xprList_raw (solitary transExpr_old_HFLN_bads@i) ; xprList_trn := link xprList_trn (solitary transExpr_new_HFLN_bads@i) ; ENDIF ; ENDFOR ; ELSE xprList_raw := fault '?symTrans ERROR: unknown symTrans_lineType' ; ENDIF ; xprList_raw xprList_trn } # 25Jul2018 old code ELSEIF (= `^ symTrans_lineType) THEN FOR i WITH tell transExpr_rows_Lucas_to_HFLN DO IF (in_string transExpr_old_Lucas_to_HFLN@i str) THEN xprList_raw := link xprList_raw (solitary transExpr_old_Lucas_to_HFLN@i) ; xprList_trn := link xprList_trn (solitary transExpr_new_Lucas_to_HFLN@i) ; ENDIF ; ENDFOR ; ELSEIF (= `& symTrans_lineType) THEN FOR i WITH tell transExpr_rows_HFLN_to_Lucas DO IF (in_string transExpr_old_HFLN_to_Lucas@i str) THEN xprList_raw := link xprList_raw (solitary transExpr_old_HFLN_to_Lucas@i) ; xprList_trn := link xprList_trn (solitary transExpr_new_HFLN_to_Lucas@i) ; ENDIF ; ENDFOR ; # 25Jul2018 old code trans_old_Lucas_to_HFLN trans_new_Lucas_to_HFLN trans_old_HFLN_to_Lucas trans_new_HFLN_to_Lucas ; ELSEIF (= `^ symTrans_lineType) THEN symNew := (find_Howell symbol trans_old_Lucas_to_HFLN ) choose trans_new_Lucas_to_HFLN ; %write_debug trans_new@(find_Howell symbol trans_old_Lucas_to_HFLN ) ; ELSEIF (= `& symTrans_lineType) THEN symNew := (find_Howell symbol trans_old_HFLN_to_Lucas ) choose trans_new_HFLN_to_Lucas ; %write_debug trans_new@(find_Howell symbol trans_old_HFLN_to_Lucas ) ; # 25Jul2018 old code IF (in str@0 '#$%^&') THEN symTrans_lineType := str@0 ; flag_symFirst := l ; ENDIF ; IF flag_symFirst THEN IF (= `^ symTrans_lineType) THEN strNew := link '%' strNew ; ELSEIF (= `& symTrans_lineType) THEN strNew := link '$' strNew ; ENDIF ; ENDIF ; ************************** 25Jul2018 retry translate qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' /media/bill/PROJECTS/Qnial/MY_NDFS/symbols count in file.sh: line 37: /media/bill/PROJECTS/Lucas - Universal Force/symList bads .txt: No such file or directory paste: /media/bill/ramdisk/symbols count in file f_symList.txt: No such file or directory >> OOPS... symTranslate_file_Lucas in "symbols translate.ndf" : It didn't specify [HFLN,Lucas] : host link 'bash "' d_QNial_mine 'symbols count in file.sh"' ; OK, go bash scripts to work, but now have ~350 bad syms!!! I'm getting multiple substitutions again!??? AAARRGGHH!! Parenthesis for symbols mmust balance- or tranExpr substitutes may go wrong Examples of my errors in tranList HFLN.txt : 'Vonv_X_Rpcv' 'Vonv_X_Rpcv(POIo(t),t)' 'Hbad: added 180720 14h11m' 'B0pds(POIp,t)' '(B0pds(POIp,t)=0)' 'Hbad: msg_notime msg_B0' 'cos(Aθoc)' 'cos(Aθoc)' 'Hbad: added 180720 14h11m' 'EIpds(POIp,t)' '(EIpds(POIp,t)=0)' 'Hbad: msg_time msg_EIp' 'EIpdv(POIp,t)' '(EIpdv(POIp,t)=0)' 'Hbad: msg_time msg_EIp' 'ETpds(POIo(t),t)' '(ETpds(POIo(t),t)=E0pds(POIp))' 'Hbad: msg_ETp msg_notime' 'ETpdv(POIo(t),t)' '(ETpdv(POIo(t),t)=E0pdv(POIp))' 'Hbad: msg_RF_diff msg_ETp' 'POIt' '???POIo(t)' 'L->H: needs explanation' 'Pph' '???Rodh(Vonv_X_Rpcv)' 'L->H: msg_Lucas_sol' 'sin(Aθpc(POIo(t),t)' 'sin(Aθpc(POIo(t),t))' 'Hbad: 14Jul2018 fix' 'sin(Aθpc(POIp)' 'sin(Aθpc(POIp))' 'Hbad: 14Jul2018 fix' '∇' '???∂[∂t:' 'L->H: time derivative dot-product (not spacial gradient)???' 'U' 'U(POIo,t)' 'L->H: 05-02 Generalized_potential_U' 'U' 'U(POIo,t)' 'L->H: msg_Lucas_to_HFLN_sol' >> I must not "upgrade" symbols!!!, that will cause redundancies >> I must not put symExprs in symLists! >> augment "symbols compliance POI.sh" with many more "atomic" symbols After massive fixes to "Howell - Background math for Lucas Universal Force, Chapter 4.txt" Re-start QNial, Re-try symTranslate_file_Lucas in "symbols translate.ndf" : **************************** 26Jul2018 Errors when doing "symbols classify manual.sh" : goods wrong! : BT_LENZodv(POIo(t),t) - must have this in goods? RθPI2pch(POIo) 119 ∂[∂(t): Rocs(POIp(t),t)*cosAθoc(POIp(t),t)] [(t)ranslate,(g)ood,(e)nglish,equatio(n),(l)ater,(i)gnore] : g 120 ∂[∂(t): [Rocs(POIp(t),t)*cosAθoc(POIp(t),t)]^2] [(t)ranslate,(g)ood,(e)nglish,equatio(n),(l)ater,(i)gnore] : g 121 ∂[∂(t): [(Rocs(POIp(t),t)*sin(Aθoc(POIp(t),t))]^2] Can't translate!! may do huge number of bad substitutes, and always increase parens etc!! (parens unbalanced) Do these manually with search&replace, watching each substitution... 'cos(Aθpc(POIo(t),t)' 'cos(Aθpc(POIo(t),t))' 'added 180726 13h57m' 'sin(Aθoc(POIo)' 'sin(Aθoc(POIo))' 'added 180726 13h57m' 27Jul2018 "symbols extract.ndf" additions for POI compliance >> All additions now looking good : symbol_check_POI_format IS OP symChrList symbol_extract_POIs IS OP str symExtract_file_badPOIs IS OP pname_inn pname_out >> This was [complex,trickey] >> Output file for "" : "symList good badPOIs HFLN.txt" I need to create a separate output in parallel, with [POI_bad,POI_good] that I can sort unique to do auto-substitutions after a manual check -> for ALL [f_derivatives,symLists,TranLists (new only!)] 27Jul2018 I can go much further with symbol_check_POI_format -> eg when a variable = 0 EIpxx_zero(POIp) (so symbol stays together!) /media/bill/ramdisk/symList good POIproblems HFLN.txt need to adapt "symbol_check_POI_format" to produce these 'ETpdv(POIp)' 'ETisE0pdv(POIp)' *********************************** 13Aug2018 Where am I after 2 week break? 29Jul2018 Corrupted arguments for symExtract_file_Lucas (changed format - must change old code) Can I solve the "corrupted format" (extra spaces occasionally pop up) form symExpr of : sym_stdForm IS OP str used by : symExtract_file_Lucas IS OP d_inn d_out fname_base Offending pieces of code in sym_stdForm? IF (OR (in chrListLast chrs_blank) (in chrListLast chrs_paren_stop)) THEN IF (OR (AND in_HFLN (in chrListLast chrs_blank)) (in chrListLast chrs_paren_stop)) THEN Also - "symList good HFLN bad.txt" move "good symbols to "symList good HFLN.txt" and check latter for bads First - confusion caused by outdated "symbols instructions.txt" Removed from "symbols instructions.txt" & renumbered the rest : +-----+ >>>>>> TRANSLATE F_DERIVATION ... Assumes that [sym,tran]List files are [up-to-date,saved] >>>>>>>>> Step-by-step 1. Double check that symTrans_lineType '#$%^&' are properly set in f_derivations (these change with time too) 2. Start qnial, if not already running then to load ALL symbols-related files : lq_symbols 3. To do translations and create resultant files in [d_lucas,dQNial_temp], enter (examples) : qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4.txt' qnial> symTranslate_file_Lucas 'Howell - math of Lucas Universal Force.txt' >>>>>>>>> Example from "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols log.txt" : +--+ symTranslate_file_Lucas 180706 11h22m46s.txt /media/bill/PROJECTS/Qnial/code develop_tests/symbols translate- tests.ndf Fri Jul 6 11:22:46 2018 uses symTranslate_string, which translates symbols and expressions pname_inn= /media/bill/PROJECTS/Lucas - Universal Force/Howell - math of Lucas Universal Force 180518.txt pname_trn= /media/bill/PROJECTS/Lucas - Universal Force/Howell - math of Lucas Universal Force 180706 11h22m46s.txt pname_dif= /media/bill/ramdisk/fileDiff - math of Lucas Universal Force 180706 11h22m46s.txt (ideally pname_diff will be empty except for "good" substitution lines) 183 /media/bill/PROJECTS/Lucas - Universal Force/symList bads Lucas.txt 141 /media/bill/PROJECTS/Lucas - Universal Force/symList bads HFLN.txt 475 /media/bill/PROJECTS/Lucas - Universal Force/symList good Lucas.txt 232 /media/bill/PROJECTS/Lucas - Universal Force/symList english (copy).txt 286 /media/bill/PROJECTS/Lucas - Universal Force/symList bads Lucas_to_HFLN.txt 816 /media/bill/PROJECTS/Lucas - Universal Force/symList good Lucas_to_HFLN.txt 647 /media/bill/PROJECTS/Lucas - Universal Force/symList good HFLN.txt 223 /media/bill/PROJECTS/Lucas - Universal Force/symList english.txt 504 /media/bill/PROJECTS/Lucas - Universal Force/symList good Lucas (copy).txt 86 /media/bill/PROJECTS/Lucas - Universal Force/symList equation numbers.txt 254 /media/bill/ramdisk/symDiff bads HFLN.txt 435 /media/bill/ramdisk/symDiff bads Lucas.txt Fri Jul 6 11:24:00 2018 +--+ >> Note the result files "cart [symList[bads,goods],symDiff bads,symExtract_file] [HFLN,HFLN_to_Lucas,Lucas,Lucas_to_HFLN] " 13Jul2018 I had to add the symbol counts manually, using : $ paste "/media/bill/ramdisk/symTranslate_file_test f_counts.txt" "/media/bill/ramdisk/symTranslate_file_test fSym_names.txt" >>"/media/bill/ramdisk/farterg.txt" >> ??? why didn't this work within "symTranslate_file_Lucas" -> $ bash "symbols file counts Lucas.sh" >> do I need sleep 4s to ensure files are ready to count? +---+ >>>>>> Fixes : MANUAL processing of "symDiff bads" and "tranList" files (the [hard,error-prone] part) # 02Aug2018 WARNING sym_stdForm_file: Start each input file pname_inn with an empty line, or at least NOT with one of '=<>#$%' # For some unknown reason, first line with '=<>#$%' leads to "mashed unicode" output... +-----+ 13Aug2018 17:56 To get good look at the issues, using "symbols instructions.txt" : $ qnial qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4.txt' +-----+ symExtract_file ERROR- file does not exist : +-------+----------------------------------------------------------------------------------------------------- |?noexpr|+----+----------------------------------------------------------------------------------------------- | || "|/media/bill/ramdisk/Howell - Background math for Lucas Universal Force, Chapter 4.txt/media/bil | |+----+----------------------------------------------------------------------------------------------- +-------+----------------------------------------------------------------------------------------------------- ------------------------------------------+ --------------------------------------+--+| l/ramdisk/symExtract_file HFLN.txt.txt|" || --------------------------------------+--+| ------------------------------------------+ +-----+ >> OOPS! instructions should have read (no '.txt' extension!) : qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' I updated [symTranslate_file_Lucas, symExtract_file_Lucas] - moved [symbols_compare_Lucas, host link 'bash "' d_QNial_mine 'symbols count in file.sh"'] - changed call arguments for symExtract_file_Lucas in symTranslate_file_Lucas Bye to QNial & reload symbols qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' >> OK, it ran. 13Aug2018 19:35 Tomorrow, check results. The system now should NOT change existing files after running [symTranslate_file_Lucas, symExtract_file_Lucas] >>>>>> 2. Run symTranslate_file_Lucas - this occurs only after several other manual steps >>>>>> 8. edit-run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols sort-archive-move, post-manual-class.sh" ****************************** 23Aug2018 re-start work after 1.5 week break I STILL get extra spaces in symExprs. Let's take one more try to fix it. From : +-----+ 29Jul2018 Corrupted arguments for symExtract_file_Lucas (changed format - must change old code) Can I solve the "corrupted format" (extra spaces occasionally pop up) form symExpr of : sym_stdForm IS OP str (in "symbols system loaddefs.ndf") used by : symExtract_file_Lucas IS OP d_inn d_out fname_base Offending pieces of code in sym_stdForm? IF (OR (in chrListLast chrs_blank) (in chrListLast chrs_paren_stop)) THEN IF (OR (AND in_HFLN (in chrListLast chrs_blank)) (in chrListLast chrs_paren_stop)) THEN +-----+ Maybe run symTranslate_file_HFLN and just see how many extra spaces are created, and where. I did some parenthesis fixing in "symList good [HFLN,Lucas].txt" 23Aug2018 17:22 qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' Changed to : sym_stdForm IS OP str { LOCAL blanks chrList i in_blanks len symNew ; NONLOCAL chrs_blank ; % ; blanks := link chrs_blank ; chrListLast := null ; chrList := str_to_unicodeList str ; len := gage shape chrList ; in_blanks := o ; in_HFLN := o ; i := 0 ; % can remove "in_blanks" and "in_HFLN" code ; symNew := null ; WHILE (i < len) DO IF (in chrList@i chrs_blank) THEN in_blanks := l ; ELSEIF (in chrList@i chrs_symbols_HFLN) THEN IF (OR (in chrListLast chrs_blank) (in chrListLast chrs_paren_stop)) THEN symNew := link symNew ' ' chrList@i ; ELSE symNew := link symNew chrList@i ; ENDIF ; in_HFLN := l ; in_blanks := o ; ELSEIF (in chrList@i chrs_paren_strt) THEN IF (OR (AND in_HFLN (in chrListLast chrs_blank)) (in chrListLast chrs_paren_stop)) THEN symNew := link symNew ' ' chrList@i ; ELSE symNew := link symNew chrList@i ; ENDIF ; in_HFLN := o ; in_blanks := o ; ELSEIF (in chrList@i chrs_math_spaced) THEN IF (in (last symNew) blanks) THEN spc_pre := null; ELSE spc_pre := ' ' ; ENDIF ; symNew := link symNew spc_pre chrList@i ' ' ; in_HFLN := o ; in_blanks := l ; ELSEIF (= chrList@i ':') THEN symNew := link symNew chrList@i ' ' ; in_HFLN := o ; in_blanks := l ; ELSE symNew := link symNew chrList@i ; in_HFLN := o ; in_blanks := o ; ENDIF ; chrListLast := chrList@i ; i := i + 1 ; ENDWHILE ; % ; symNew } >> for a couple of conditions, changed to "in_blanks := l ; " >> what about : IF (OR (AND in_HFLN (in chrListLast chrs_blank)) (in chrListLast chrs_paren_stop)) THEN >> ******************** 24Aug2018 finish manual classification - mostly of english, ignore symbols & expressions as these are wrong formats >>>>>> 8. edit-run $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols sort-archive-move, post-manual-class.sh" >> Done Adapt "symbols sort-archive-move, post-manual-class.sh" to add special routines just ot process SOME of the results. In this case : "symList english.txt" and "$d_Luca""symList equation numbers.txt" deactivate do_all, activate do_some $ bash "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols sort-archive-move, post-manual-class.sh" [HFLN,Lucas] >> OK, worked great (easy) >> I just did HFLN, and manually cleaned up both lists 24Aug2018 10:31 go boack to : sym_stdForm IS OP str (in "symbols system loaddefs.ndf") Changed to : +-----+ sym_stdForm IS OP str { LOCAL blanks chrList i in_blanks len symNew ; NONLOCAL chrs_blank ; % ; blanks := link chrs_blank ; chrListLast := null ; chrList := str_to_unicodeList str ; len := gage shape chrList ; i := 0 ; % ; symNew := null ; WHILE (i < len) DO IF (in chrList@i chrs_blank) THEN null ; ELSEIF (in chrList@i chrs_symbols_HFLN) THEN IF (OR (in chrListLast chrs_blank) (in chrListLast chrs_paren_stop)) THEN symNew := link symNew ' ' chrList@i ; ELSE symNew := link symNew chrList@i ; ENDIF ; ELSEIF (in chrList@i chrs_math_spaced) THEN IF (in chrListLast chrs_blank) THEN spc_pre := null; ELSE spc_pre := ' ' ; ENDIF ; symNew := link symNew spc_pre chrList@i ' ' ; ELSEIF (= chrList@i ':') THEN symNew := link symNew chrList@i ' ' ; ELSE symNew := link symNew chrList@i ; ENDIF ; chrListLast := chrList@i ; i := i + 1 ; ENDWHILE ; % ; symNew } +-----+ Try again : qnial> lq_symbols qnial> lq_symTests qnial> symbols_Strings_Extract_Translate_alltest >> OUCH! alltest zummary log 180706 11h16m19s.txt - all tests OK alltest zummary log 180824 12h22m10s.txt - half are WRONG!! >> some key failures : "-+" no space before, but 2 spaces after ":" 2 spaces after Changed to : +-----+ sym_stdForm IS OP str { LOCAL blanks chrList chrListLast i in_blanks len spc symNew ; NONLOCAL chrs_blank ; % ; chrListLast := null ; chrList := str_to_unicodeList str ; len := gage shape chrList ; i := 0 ; % ; symNew := null ; WHILE (i < len) DO IF (in chrList@i chrs_blank) THEN null ; ELSEIF (in chrList@i chrs_symbols_HFLN) THEN IF (OR (in chrListLast chrs_blank) (in chrListLast chrs_paren_stop)) THEN symNew := link symNew ' ' chrList@i ; ELSE symNew := link symNew chrList@i ; ENDIF ; ELSEIF (in chrList@i chrs_math_spaced) THEN IF (in chrListLast chrs_blank) THEN spc := null ; ELSE spc := ' ' ; ENDIF ; symNew := link symNew spc chrList@i ' ' ; ELSEIF (= chrList@i ':') THEN symNew := link symNew chrList@i ' ' ; ELSE symNew := link symNew chrList@i ; ENDIF ; chrListLast := last symNew ; i := i + 1 ; ENDWHILE ; % ; symNew } +-----+ >> Try again : qnial> lq_symbols nyet - qnial> lq_symTests qnial> strings_alltest >> OK, all work! qnial> symExtract_alltest >> Lots of failures !! : symExtract_stringPosn_test : in general positions of symbols are good, BUT recursion not working first symbol dropped often (especially with recursion) ************************** 24Aug2018 13:10 symbols extract.ndf sym_stdForm does NOT affect [symParen_contents, syms_inParens, symExtract_stringPosn, symExtract_string, symbol_find, symbol_finds] sym_stdForm DOES affect symExtract_file_Lucas 28Aug2018 13:51 back at it - symExtract_stringPosn_test 28Aug2018 17:34 The Eaarth just moved! Day became night! A day of 36 hours! charrep now returns integers > 127 for unicodes, nit negatives!!! WHY??? I fixed symExtract_stringPosn_test : alltest strings 180828 17h45m56s.txt all work alltest symExtract 180828 17h45m56s.txt all work alltest symTranslate 180828 17h45m58s.txt many failures problems encountered : +-----+ WARNING : 30Aug2018 13:19 LMDE2 uses SIGNED bytes, RaspPi UNSIGNED!! in "str_to_unicodeList IS OP str " definition in "strings.ndf" : LMDE2 : IF (charrepList@i < 0) THEN RaspPi : IF (charrepList@i > 127) THEN >> I need to code this automatically someday +-----+ ****************************** 30Aug2018 13:28 Now to fix symTranslate Re-run symTranslate_alltest of "symbols translate- tests.ndf" A lot of work to fix t_standards and some errors. Try symbols_Strings_Extract_Translate_alltest : >> ONLY error was with : # xprs_ExtractTranslate_test example 5a : FAILED - result does NOT match standard +-----+ # xprs_ExtractTranslate_test example 5a : FAILED - result does NOT match standard t_input, t_standard, t_result = + 1/Rocs(POIo)/c*dp[dt : | Ei(ro - vo*t,t) |] ] +---------------------------------------------------+---------------------------------------------------------+ |+-----+-----------------+---------------+---------+|+----------+----------------+----------------+----------+| ||dp[dt||Ei(ro - vo*t,t)||Ei(ro - vo*t,t)|ro - vo*t|||∂[∂(t)|EIods(POIp(t),t)|EIodv(POIp(t),t)|Rpcv(POIp)|| |+-----+-----------------+---------------+---------+|+----------+----------------+----------------+----------+| +---------------------------------------------------+---------------------------------------------------------+ +---------------------------------+----------------------------------------+ |+-----+---------------+---------+|+----------+----------------+----------+| ||dp[dt|Ei(ro - vo*t,t)|ro - vo*t|||∂[∂(t)|EIodv(POIp(t),t)|Rpcv(POIp)|| |+-----+---------------+---------+|+----------+----------------+----------+| +---------------------------------+----------------------------------------+ symTrans_lineType= % translation should work for all expressions oops- spaces of "| Ei(ro - vo*t,t) |" not handled properly!? +-----+ >> I hadn't figured out why this doesn't work!!!???? break - work at FireHall 31Aug2018 08:52 Conundrum of the spaces! see "symbols translate- develop.txt" >> OK - xprs_ExtractTranslate_test does NOT do sym_stdForm, so spaces AREN't removed, and expr with spaces aren't recognized. Rerun symbols_Strings_Extract_Translate_alltest after fixing t_standard : >> It's ALL good! YEAH! Great, so now I can try f_translate ********************************* 31Aug2018 08:52 refer to section TRANSLATE F_DERIVATION in "/media/bill/PROJECTS/Qnial/MY_NDFS/symbols instructions.txt" qnial> symTranslate_file_Lucas 'Howell - Background math for Lucas Universal Force, Chapter 4' >> runs, but "run-together" of many symbols. Examples : +-----+ 2016Briefly 210reminder 2But 2COMBINING 2Conversions 2dimensions 2Finally cos(Aθpc(POIo(t),t))Show cos(Aθpc(POIo(t),t))So cos(Aθpc(POIo(t),t))Subbing cos(Aθpc(POIo(t),t)Summarizing: cos(Aθpc(POIo(t),t))∂[∂(t): E0ods(POIo(t),t)*sin(Aθpc(POIo(t),t))^a] cos(Aθpc(POIo(t),t))Therefore cos(Aθpc(POIo(t),t))∂[∂(t): Rpcs(POIo(t),t)^( - 3)] cos(Aθpc(POIo(t),t)*********************************************wherechoose()isthechooseoperation(1 + z)^( - m) + m*(m + 1)/2!*z^2 - m*(m + 1)*(m + 2)/3!*z^3 + ...Careful,Imayhaverthewrongsignsfortheresults(easytomixup).Fromthefile"Howell - mathofLucasUniversalForce.ndf",derivationofequation'04_37 - iteration4rev126Jun2016': +-----+ >> I had this problem before and inserted spaces. >> Why are these occuring? >> DO I need to change code? There are NOT many examples, considering the size of f_derivations. Perhaps code final closed parenthesis to define expressions? (closing "open expressions) Maybe I can just fix the expressions directly in f_derivations? >> I need to do the "CODE MODIFICATIONS" process to get line numbers! see "symbols instructions.txt" qnial> symTranslate_file l 'Howell - Background math for Lucas Universal Force, Chapter 4' rm: cannot remove ‘/media/bill/ramdisk/symbols count in file f_symList.txt’: No such file or directory paste: /media/bill/ramdisk/symbols count in file f_symList.txt: No such file or directory rm: cannot remove ‘/media/bill/ramdisk/symbols count in file f_symList.txt’: No such file or directory rm: cannot remove ‘/media/bill/ramdisk/symbols count in file f_symList.txt’: No such file or directory paste: /media/bill/ramdisk/symbols count in file f_symList.txt: No such file or directory rm: cannot remove ‘/media/bill/ramdisk/symbols count in file f_symList.txt’: No such file or directory symExtract_file - processing executed normally on file : "/media/bill/ramdisk/Howell - Background math for Lucas Universal Force, Chapter 4.txt" >> f_derivations__converted was generated with line numbers, but lines were NOT amalgamated >> other files are empty! >> I should clean up a bit - later Where did I amalgamate lines? >> not in [symbols fix.ndf, file_ops.ndf] >> Ah Hah! sym_stdForm_file in "symbols system loaddefs.ndf" I adjusted "CODE MODIFICATIONS" in "symbols instructions.txt" Back to symTranslate_file failure - Why? I am missing 'Howell - Background math for Lucas Universal Force, Chapter 4 stdForm.txt' Much re-editing to update filenames and to use "filepath_pathBaseExtn IS OP pname" in "d_QNial_mine/file_ops.ndf" # enddoc